/* NAYAURA — one stylesheet, no build step.
   Palette values are fixed by the design document and verified by tools/check.py. */

/* Self-hosted so the page makes no third-party request and still works if Google is
   slow or blocked. Latin subset, variable weight. font-display: swap means the text is
   readable in the fallback immediately rather than invisible while the font loads —
   which matters on Ghanaian mobile data, where that wait can be seconds. */
@font-face {
  font-family: "Bodoni Moda";
  src: url("../assets/fonts/bodoni-moda-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}

:root {
  /* Cream behind every photograph is non-negotiable (spec section 3). Without this an
     Android force-dark pass inverts the page background while the photographs keep their
     baked-in cream backdrop, leaving a mismatched box behind every image. */
  color-scheme: light;

  --cream: #F7EEE4;
  --chocolate: #4A2C17;
  --cocoa: #6B5240;
  --muted: #84664E;
  --line: #C9B49C;

  /* --line is a hairline rule colour only. At 1.8:1 on cream it must never carry text. */

  --font-display: "Bodoni Moda", "Didot", "Bodoni MT", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: 16px;
  --measure: 34rem;
  --rule: 1px solid var(--line);
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--cocoa);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* --- Layout --------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 3.5rem 0; }
.section--tight { padding: 2.25rem 0; }
.section + .section { border-top: var(--rule); }

/* --- Type ----------------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--chocolate);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 7vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 5vw, 2.125rem); }
h3 { font-size: clamp(1.125rem, 3.4vw, 1.375rem); }

p { margin: 0 0 1.1em; max-width: var(--measure); }

a { color: var(--chocolate); text-underline-offset: 0.2em; }
a:hover { color: var(--cocoa); }

.smallcaps {
  font-family: var(--font-display);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin: 0;
}

.lede { font-size: 1.1875rem; }
.note { font-size: 0.9375rem; color: var(--muted); }

/* --- Wordmark ------------------------------------------------------------- */
.lockup { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.lockup__symbol { width: 44px; height: auto; display: block; }

.wordmark {
  font-family: var(--font-display);
  color: var(--chocolate);
  font-size: 1.375rem;
  letter-spacing: 0.15em;
  line-height: 1;
  margin: 0;
}

.wordmark--hero { font-size: clamp(2.25rem, 9vw, 4rem); }

/* --- Header --------------------------------------------------------------- */
.header {
  border-bottom: var(--rule);
  background: var(--cream);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.4rem;
  border: 1px solid var(--chocolate);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.btn--primary { background: var(--chocolate); color: var(--cream); }
.btn--primary:hover { background: var(--cocoa); color: var(--cream); }
.btn--ghost { background: transparent; color: var(--chocolate); }
.btn--ghost:hover { background: var(--chocolate); color: var(--cream); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* The header action is the conversion, so it is never hidden — it gets a shorter
   label on the narrowest phones instead. Below 26em the full label plus the wordmark
   overflow 320px and the page scrolls sideways. */
.btn__short { display: none; }

@media (max-width: 26em) {
  .header .btn { padding: 0.6rem 0.9rem; font-size: 0.875rem; }
  .header .wordmark { font-size: 1.125rem; letter-spacing: 0.12em; }
  .header .lockup__symbol { width: 34px; }
  .btn__full { display: none; }
  .btn__short { display: inline; }
}

/* --- Focus ---------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--chocolate);
  outline-offset: 3px;
  border-radius: 1px;
}

/* --- Photography ---------------------------------------------------------- */
/* Cream behind every photograph. Measured, not chosen: the hair sits at luminance
   0.038, giving 11.02:1 on cream and 1.39:1 on chocolate, where the silhouette —
   the product itself — stops being legible. */
.photo {
  background: var(--cream);
  display: block;
  width: 100%;
  height: auto;
}

.hero {
  display: grid;
  gap: 1.75rem;
  padding: 2.5rem 0 3rem;
}

.hero__figure { margin: 0; }

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 0.6rem; }

/* --- Steps and questions -------------------------------------------------- */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }

.steps li {
  counter-increment: step;
  padding: 0 0 1.25rem 2.75rem;
  position: relative;
  max-width: var(--measure);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  border: var(--rule);
  border-radius: 50%;
  font-family: var(--font-display);
  color: var(--chocolate);
  font-size: 0.9rem;
}

.qa { border-top: var(--rule); max-width: var(--measure); }
.qa:last-of-type { border-bottom: var(--rule); }

.qa summary {
  cursor: pointer;
  padding: 1rem 0;
  min-height: 44px;
  font-family: var(--font-display);
  color: var(--chocolate);
  font-size: 1.0625rem;
  list-style: none;
}

.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: " +"; color: var(--muted); }
.qa[open] summary::after { content: " \2013"; }
.qa > :not(summary) { margin-bottom: 1rem; }

/* --- Unanswered content, deliberately conspicuous ------------------------- */
/* Anything still waiting on the owner is marked so it cannot be missed on screen.
   tools/check.py --publish refuses to pass while any of these remain. */
.todo {
  background: #FFF3CD;
  border-left: 4px solid #B8860B;
  color: #5C4405;
  padding: 0.5rem 0.75rem;
  display: inline-block;
}

/* --- Footer --------------------------------------------------------------- */
.footer { border-top: var(--rule); padding: 2.5rem 0 3rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.25rem; padding: 0; margin: 0 0 1rem; list-style: none; }
.footer__links a { min-height: 44px; display: inline-flex; align-items: center; }

/* --- Policy pages --------------------------------------------------------- */
.policy { padding: 2.5rem 0 3.5rem; }
.policy h2 { margin-top: 2.25rem; }
.policy p, .policy li { max-width: var(--measure); }

/* --- Wider screens -------------------------------------------------------- */
@media (min-width: 40em) {
  :root { --gutter: 24px; }
  .hero { grid-template-columns: 1fr 1fr; align-items: center; gap: 2.5rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .section { padding: 4.5rem 0; }
}

@media (min-width: 64em) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
}

/* --- Motion --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Print ---------------------------------------------------------------- */
@media print {
  .btn, .header { display: none; }
  body { background: #fff; }
}
