/* NOVEAK app — charte noir encre, bronze, fond crème (cahier technique, section 4) */
@font-face { font-family: "Archivo"; src: url("fonts/archivo-variable.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #1A1A1A;
  --bronze: #8C6B2F;
  --bronze-deep: #6E531F;
  --bg: #F2EFE9;
  --card: #FBF9F5;
  --line: #DDD8CE;
  --muted: #6B665C;
  --on-ink: #FBF9F5;
  --danger: #A33A2A;
  --display: "Archivo", "Arial Black", sans-serif;
  --body: "Atkinson", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.5; -webkit-text-size-adjust: 100%; }

.shell { max-width: 520px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column;
  padding: env(safe-area-inset-top, 0px) 20px 0; }
.shell.has-nav { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 8px; }
.mark { color: var(--ink); display: inline-flex; }
.profile-link { color: var(--muted); font-size: 15px; text-decoration: none; padding: 10px 0 10px 12px; }
main { flex: 1; padding: 12px 0 32px; }

.stack { display: flex; flex-direction: column; gap: 20px; }
.intro { display: flex; flex-direction: column; gap: 10px; }
.eyebrow { font-family: var(--display); font-stretch: 125%; font-weight: 600; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.eyebrow.accent { color: var(--bronze); }
h1 { margin: 0; font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 32px; line-height: 1.02; text-transform: uppercase; letter-spacing: -.01em; text-wrap: balance; }
.lead { margin: 0; font-size: 18px; line-height: 1.5; max-width: 34ch; }
.muted { margin: 0; color: var(--muted); }
.small { font-size: 14px; }
p { margin: 0; }

.btn { font: inherit; font-weight: 700; font-size: 17px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 52px; padding: 14px 18px; border-radius: 6px; border: 1px solid var(--ink); background: var(--card); color: var(--ink);
  text-decoration: none; text-align: center; cursor: pointer; width: 100%; }
.btn.primary { background: var(--ink); color: var(--on-ink); }
.btn.big { min-height: 76px; font-size: 19px; }
.btn small { font-weight: 400; font-size: 15px; color: #C4BDAE; }
.btn.quiet { border-color: var(--line); color: var(--muted); font-weight: 400; }
.btn:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--bronze); outline-offset: 2px; }
.btn:active { transform: translateY(1px); }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.slot { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.slot.next { border: 2px solid var(--ink); padding: 15px; }
.tick { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; }
.slot.done .tick { background: var(--bronze); border-color: var(--bronze); }
.tick svg { width: 16px; height: 16px; fill: none; stroke: var(--on-ink); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.slot-name { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 18px; line-height: 1; text-transform: uppercase; }
.slot-meta { font-size: 15px; color: var(--muted); }
.slot.next .slot-meta { color: var(--ink); font-weight: 700; }

.notice { background: var(--card); border: 1px solid var(--bronze); color: var(--bronze-deep); border-radius: 6px; padding: 12px 14px; font-weight: 700; }
.complete { display: flex; flex-direction: column; gap: 14px; }
.rule { border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }

.field { display: flex; flex-direction: column; gap: 8px; }
label { font-weight: 700; }
input[type="email"] { font: inherit; font-size: 18px; min-height: 54px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--ink); width: 100%; }
input[aria-invalid="true"] { border-color: var(--danger); }
.error { color: var(--danger); font-size: 15px; }
.check { display: flex; align-items: center; gap: 12px; font-weight: 400; min-height: 44px; }
.check input { width: 22px; height: 22px; accent-color: var(--ink); }

.dev-box { border: 1px dashed var(--bronze); border-radius: 6px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }

.choices { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.choice { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice-label { font-size: 19px; font-weight: 700; }
.choice-hint { font-size: 14px; font-weight: 400; color: var(--muted); }
.choice:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.choice:has(input:checked) .choice-hint { color: #C4BDAE; }
.choice:has(input:focus-visible) { outline: 3px solid var(--bronze); outline-offset: 2px; }

.facts { margin: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; min-width: 0; overflow-wrap: anywhere; text-align: right; }

.tabs { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--card); border-top: 1px solid var(--line); padding: 8px 8px calc(12px + env(safe-area-inset-bottom, 0px)); }
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; color: var(--muted); font-size: 13px; text-decoration: none; min-height: 52px; }
.tabs a.on { color: var(--ink); font-weight: 700; }
.tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tabs a.on svg { stroke: var(--bronze); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) { .btn:active { transform: none; } }
