/*
  Two colours and no third, exactly as the app's Theme.kt draws them: a warm matte charcoal and
  an editorial off-white. Emphasis is carried by contrast, never by hue — there is no chromatic
  accent anywhere on this site, because there is none in the product.

  No web fonts, no scripts, no third-party requests. A page about an app that asks for nothing
  should not ask the reader's browser for anything either, and it keeps the pages fast enough
  that Core Web Vitals are never a ranking problem.
*/

:root {
  --bg: #1e2022;        /* TacetColors.Background */
  --fg: #f5f3e9;        /* TacetColors.OnBackground */
  --muted: #959183;     /* TacetColors.Muted */
  --faint: #2e3135;     /* TacetColors.Faint */
  --measure: 34rem;
  --gutter: clamp(1.5rem, 5vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

/* Type scale — the five styles from TacetType, translated to a page. */
h1, h2, h3 { font-weight: 300; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: 1.1875rem; letter-spacing: -0.01em; }
p { margin: 0 0 1.2em; }
a { color: var(--fg); text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
a:hover { color: var(--muted); }
strong { font-weight: 500; }
ul { padding-left: 1.1rem; margin: 0 0 1.2em; }
li { margin-bottom: 0.5em; }

.label {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.lede { font-size: clamp(1.125rem, 2.4vw, 1.375rem); color: var(--fg); max-width: var(--measure); }
.muted { color: var(--muted); }

/* Layout */
.wrap { width: 100%; max-width: 62rem; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: var(--measure); }
section { padding: clamp(3.5rem, 9vw, 6.5rem) 0; border-top: 1px solid var(--faint); }
section:first-of-type { border-top: 0; }

/* Skip link — the site is keyboard-navigable for the same reason the app is screen-reader
   navigable: a product about not being seen still has to be usable without sight. */
.skip {
  position: absolute; left: -9999px;
  background: var(--fg); color: var(--bg); padding: 0.6rem 1rem;
}
.skip:focus { left: var(--gutter); top: 0.5rem; z-index: 10; }

:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

/* Header */
.site-header { padding: 1.5rem 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand svg { display: block; width: 1.5rem; height: 1.5rem; }
.brand span { font-size: 1.0625rem; letter-spacing: 0.16em; text-transform: uppercase; }
.site-header nav { display: flex; flex-wrap: wrap; gap: clamp(0.9rem, 3vw, 1.75rem); font-size: 0.9375rem; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--fg); }

/* Hero */
.hero { padding-top: clamp(3rem, 8vw, 5.5rem); }
.hero h1 { max-width: 16ch; }
.hero .lede { margin-bottom: 2rem; }

/* The mark, at display size: a T whose stem descends as shortening dashes. */
.mark { width: clamp(5rem, 12vw, 7rem); height: auto; display: block; margin-bottom: 2rem; }

/* Buttons — charcoal on cream, the mark inverted, exactly as the paywall action is built. */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--fg);
  text-decoration: none;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
}
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { background: transparent; color: var(--fg); }
.btn-secondary { color: var(--fg); border-color: var(--faint); }
.btn-secondary:hover { border-color: var(--fg); color: var(--fg); }

/* Grids */
.grid { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card h3 { margin-bottom: 0.4em; }

/* Numbered steps */
ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 2rem; }
ol.steps > li { counter-increment: step; margin: 0; padding-left: 3rem; position: relative; }
ol.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  font-size: 0.75rem; letter-spacing: 0.12em; color: var(--muted);
  border: 1px solid var(--faint); border-radius: 50%;
  width: 2rem; height: 2rem; display: grid; place-items: center;
}

/* Occasion list — plain rows, hairline separated */
.rows { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--faint); }
.rows li { margin: 0; padding: 1rem 0; border-bottom: 1px solid var(--faint); }

/* Pull quote / the differentiator */
blockquote {
  margin: 0; padding: 0 0 0 1.25rem; border-left: 1px solid var(--faint);
  font-size: clamp(1.125rem, 2.6vw, 1.5rem); letter-spacing: -0.01em; line-height: 1.4;
}

/* FAQ — details/summary, so it works with no JavaScript at all */
.faq { border-top: 1px solid var(--faint); }
.faq details { border-bottom: 1px solid var(--faint); }
.faq summary {
  cursor: pointer; padding: 1.1rem 0; font-size: 1.0625rem; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 1.25rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding-bottom: 1.1rem; max-width: var(--measure); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Related reading */
.related { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.related a { text-decoration: none; }
.related a:hover span { color: var(--fg); }
.related strong { display: block; font-weight: 400; }
.related span { color: var(--muted); font-size: 0.9375rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--faint); padding: 3rem 0 4rem; color: var(--muted); font-size: 0.9375rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 1.5rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--fg); }
.site-footer p { max-width: 44rem; }

/* Article pages */
article h2 { margin-top: 2.5rem; }
article > p, article > ul, article > ol { max-width: var(--measure); }
.byline { color: var(--muted); font-size: 0.875rem; letter-spacing: 0.04em; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
