/* Reclaim's site in the app's own look: the Night palette, with Paper for
   readers who ask for light. Tokens mirror lib/design/tokens.dart. */

@font-face {
  font-family: "Young Serif";
  src: url("/fonts/YoungSerif-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/IBMPlexSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/IBMPlexSans-Medium.ttf") format("truetype");
  font-weight: 500 600;
  font-display: swap;
}

:root {
  --ground: #17120F;
  --panel: #201A16;
  --line: #473E37;
  --text: #F4ECE0;
  --soft: #A4978A;
  --faint: #8B8175;
  --ember: #D2703F;
  --money: #7BB394;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --ground: #F3EDE3;
    --panel: #FBF7F0;
    --line: #CDC2B2;
    --text: #221B16;
    --soft: #5B5148;
    --faint: #6B6157;
    --ember: #B5552A;
    --money: #2F7A57;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { background: var(--ground); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 17px/1.6 "IBM Plex Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 60rem; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 38rem; }

.top {
  display: flex; align-items: baseline; gap: 10px;
  padding: 28px 0 0;
}
.wordmark { font-family: "Young Serif", Georgia, serif; font-size: 22px; text-decoration: none; }
.by { color: var(--faint); font-size: 13px; font-weight: 500; letter-spacing: .02em; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Home: the headline flush left over a ruled list, with the phone beside it
   on wide screens and under it on narrow ones. */
.hero {
  display: grid; gap: 48px; align-items: center;
  grid-template-columns: 1fr;
  padding: 56px 0 64px;
}
@media (min-width: 820px) {
  .hero { grid-template-columns: 1.1fr .9fr; padding: 88px 0 96px; }
}
h1 {
  font-family: "Young Serif", Georgia, serif; font-weight: 400;
  font-size: clamp(44px, 8vw, 76px); line-height: 1.02; letter-spacing: -.01em;
  margin: 0 0 20px;
}
.lede { color: var(--soft); font-size: 19px; margin: 0 0 32px; max-width: 30rem; }

.facts { list-style: none; margin: 0 0 36px; padding: 0; border-top: 1px solid var(--line); }
.facts li {
  display: grid; grid-template-columns: 1fr auto; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 500;
}
.facts span { color: var(--faint); font-weight: 400; }

.store {
  display: inline-flex; align-items: center; min-height: 52px;
  padding: 0 22px; border-radius: 14px;
  border: 1.5px solid var(--ember); color: var(--ember);
  font-weight: 600; text-decoration: none;
}
.store[aria-disabled="true"] { cursor: default; }
.soon { display: block; color: var(--faint); font-size: 13px; margin-top: 10px; }

.phone {
  justify-self: center; width: min(300px, 78vw);
  border-radius: 34px; padding: 10px; background: var(--panel);
  border: 1px solid var(--line);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 26px; }

/* Long-form pages. */
.doc { padding: 48px 0 72px; }
.doc h1 { font-size: clamp(36px, 6vw, 48px); margin-bottom: 8px; }
.doc h2 { font-size: 17px; font-weight: 600; margin: 36px 0 6px; }
.doc p { margin: 0 0 14px; }
.meta { color: var(--faint); font-size: 14px; margin: 0 0 32px; }

footer { padding: 24px 0 40px; color: var(--faint); font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 10px; }
footer a { color: var(--soft); }
