/* The tokens and the base styles of all pages of the app: the landing page, the privacy page and
   the dashboard. Each page keeps its own page-only styles inline. The light values of the first
   two lines are those of svayattaforge.com; the dark values keep each surface 3 points of
   lightness or more from the next. */

/* Familjen Grotesk (SIL OFL 1.1, familjen-grotesk-OFL.txt), served by the app itself: the pages
   load nothing from another server. */
@font-face {
  font-family: "Familjen Grotesk"; src: url("/fonts/familjen-grotesk.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #f6f3ee; --bg2: #ede8e0; --card: #fbf9f6; --ink: #141417; --ink2: #55524c; --ink3: #8a857c;
  --line: #ddd6cb; --ember: #e8622c; --ember-ink: #b84416; --mark: #141417;
  --ember-tint: #fbe7dc; --ember-line: #f1c4ab; --live: #2f9e6a; --gold: #c9a227;
  --scrim: rgb(20 20 23 / .45);   /* the backdrop of a dialog */
  --font: "Familjen Grotesk", ui-sans-serif, system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #121316; --bg2: #191a1f; --card: #202228; --ink: #f2eee7; --ink2: #aba69d; --ink3: #7c776f;
  --line: #32333a; --ember-ink: #f0834f; --mark: #f2eee7;
  --ember-tint: #3e271c; --ember-line: #6b3a22;
  --scrim: rgb(0 0 0 / .65);
  color-scheme: dark;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, dl, dd, ol, ul, fieldset, figure { margin: 0; padding: 0; } fieldset { border: 0; min-width: 0; } ol, ul { list-style: none; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
code { font: 0.84em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg2); border-radius: 4px; padding: 1px 5px; white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--ink2); }
.shell { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 8px; font-weight: 600; font-size: 15px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .5; cursor: default; filter: none; }
.ghost { font-size: 13px; color: var(--ink2); background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; cursor: pointer; white-space: nowrap; }
.ghost.icon { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; }   /* the theme button: a moon goes to the dark theme, a sun to the light theme */
.tlink { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); margin-right: 7px; animation: glow 5s ease-in-out infinite; }
@keyframes glow { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }   /* the glow of the Forge anvil */
.ember { fill: var(--ember); }   /* the flagged bar of the tells mark (#tells-mark) and the ember bar of the Forge anvil in the footer */

/* The header of the public pages and of the beta pages. */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 22px; letter-spacing: -.03em; white-space: nowrap; text-decoration: none; }
.brand svg { width: 36px; height: 18px; color: var(--mark); }
.brand svg.mark { width: 22px; height: 22px; }   /* the mark of tells, square */
.maker { white-space: nowrap; }
.maker .forge { width: 22px; height: 11px; color: var(--mark); margin-right: 5px; vertical-align: -1px; }   /* the anvil of the maker */
.brand small { font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--ink2); }
.top nav { display: flex; align-items: center; gap: 18px; font-size: 15px; color: var(--ink2); }
.top nav a { text-decoration: none; } .top nav a:hover { color: var(--ink); }
footer.end { padding: 28px 0 48px; margin-top: 64px; border-top: 1px solid var(--line); color: var(--ink2); font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* The state of a participant, in the dashboard and in the example call of the landing page. */
.vd { font-size: 15px; color: var(--ink2); } .vd.flag { color: var(--ember-ink); font-weight: 600; }

/* The steps: in the guide of the dashboard, and on the landing page. */
.steps { display: grid; gap: 24px; max-width: 40em; }
.steps li { display: grid; grid-template-columns: 3rem 1fr; gap: 2px 8px; align-content: start; }
.steps .n { grid-row: span 2; font-weight: 700; font-size: 38px; line-height: 1; letter-spacing: -.04em; color: var(--ink3); }
.steps h3 { font-size: 16px; font-weight: 600; } .steps p { color: var(--ink2); }

@media (max-width: 640px) {
  .shell { padding: 0 16px; } .top nav span:not(.btn) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }
