/* arvorina.com — coming-soon site and legal pages.
   Brand: docs/brand/arvorina/brandbook.html (colours §06, type §07, voice §08).
   Self-hosted fonts, no external requests, no scripts. */

@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  /* brand */
  --leaf: #6BAF45;
  --forest: #3C7623;
  --cherry: #C8102E;
  --storm: #3A4659;
  --night: #1B2130;
  --paper: #FAFAF8;
  --mist: #EEF1F5;
  /* roles (light) */
  --bg: var(--paper);
  --surface: #FFFFFF;
  --text: var(--storm);
  --muted: #616B7A;            /* Storm 80 %, 5.4 : 1 */
  --line: #E4E6EA;             /* Storm 12 % */
  --link: var(--forest);
  --wordmark: var(--storm);
  --mark-accent: var(--cherry);
  --dot: var(--cherry);
  --fan: #E1EFDA;              /* Leaf 20 % */
  --chip-bg: #F0F7EC;          /* Leaf 10 % */
  --chip-text: var(--forest);
  --band-bg: var(--night);
  --band-text: #FFFFFF;
  --band-muted: #C3C8D1;
  --band-fan: #232A3B;         /* Night + 6 % */
  --band-link: #9BD17A;
  --btn-bg: var(--forest);
  --btn-text: #FFFFFF;
  --todo-bg: #FBF3E2;
  --todo-text: #6B4E12;
  --focus: var(--forest);

  --measure: 68ch;
  --gutter: 20px;
  --radius-card: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--night);
    --surface: #232A3B;
    --text: #E7EAEF;
    --muted: #A9B0BC;
    --line: #2F3749;
    --link: #8CC96A;
    --wordmark: #FFFFFF;
    --mark-accent: #E8344F;
    --dot: #E8344F;
    --fan: #212B2A;
    --chip-bg: #222F27;
    --chip-text: #A6D58A;
    --band-bg: #232A3B;
    --band-text: #FFFFFF;
    --band-muted: #B9C0CB;
    --band-fan: #29313F;
    --band-link: #9BD17A;
    --btn-bg: var(--forest);
    --btn-text: #FFFFFF;
    --todo-bg: #3A3222;
    --todo-text: #F1D9A6;
    --focus: #8CC96A;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: "Nunito", "Arial Rounded MT Bold", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -.01em;
  text-wrap: balance;
}

p, li { text-wrap: pretty; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--surface); color: var(--text); padding: 8px 12px; border-radius: 8px; z-index: 10;
}
.skip:focus { left: 8px; }

.page { position: relative; overflow: hidden; min-height: 100vh; display: flex; flex-direction: column; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
}

/* ── Logo: mark height = cap height of «A» (0.7125 em), gap 0.22 em (brandbook §04) ── */
.lockup {
  display: inline-flex;
  align-items: baseline;
  gap: .22em;
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--wordmark);
  text-decoration: none;
  white-space: nowrap;
}
.lockup:hover { text-decoration: none; }
.lockup .mark { height: .7125em; width: .8346em; flex: none; overflow: visible; }
.mark .a { fill: var(--mark-accent); stroke: var(--mark-accent); }

/* ── Header ── */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 8px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}
.status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot) 16%, transparent);
}

/* ── Ginkgo fan (segments only, one tone, cropped by the edge — brandbook §09) ── */
.fan {
  position: absolute;
  pointer-events: none;
  fill: var(--fan);
  stroke: var(--fan);
  stroke-width: 1;
  stroke-linejoin: round;
}
.fan-hero {
  width: 340px;
  right: -150px;
  top: 74px;
  z-index: 0;
}

/* ── Home: hero ── */
.hero { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 40px; }
.hero h1 {
  font-size: clamp(34px, 6.2vw, 60px);
  line-height: 1.1;
  margin: 0 0 24px;
  max-width: 14em;
}
.lead {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 16px;
  max-width: 36em;
}
.hero .sub { color: var(--muted); margin: 0; max-width: 38em; }

.topics { margin: 40px 0 0; max-width: 46em; }
.topics h2 {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  background: var(--chip-bg);
  color: var(--chip-text);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

/* ── Home: three facts as a quiet ledger ── */
.facts { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 24px; }
.facts > h2 { font-size: 24px; line-height: 32px; margin: 0 0 8px; }
.ledger { margin: 0; padding: 0; }
.ledger > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.ledger > div:last-child { border-bottom: 1px solid var(--line); }
.ledger dt {
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 30px;
  color: var(--text);
}
.ledger dt .k { color: var(--link); }
.ledger dd { margin: 0; color: var(--muted); max-width: 40em; }

/* ── Home: for psychologists ── */
.band-wrap { padding-top: 40px; padding-bottom: 32px; position: relative; z-index: 1; }
.band {
  position: relative;
  overflow: hidden;
  background: var(--band-bg);
  color: var(--band-text);
  border-radius: var(--radius-card);
  padding: 32px 24px 28px;
}
.band .fan { fill: var(--band-fan); stroke: var(--band-fan); width: 300px; right: -110px; bottom: -40px; }
.band > *:not(.fan) { position: relative; }
.band h2 { font-size: 28px; line-height: 36px; margin: 0 0 12px; }
.band p { margin: 0 0 14px; color: var(--band-muted); max-width: 36em; }
.band p strong { color: var(--band-text); font-weight: 600; }
.band a:not(.btn) { color: var(--band-link); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.btn:hover { text-decoration: none; background: #34671E; }
.btn .addr { font-weight: 500; opacity: .92; }
.band :focus-visible { outline-color: #FFFFFF; }

/* ── Home: notes under the band ── */
.notes { position: relative; z-index: 1; padding-top: 24px; padding-bottom: 8px; display: grid; gap: 16px; }
.notes p { margin: 0; color: var(--muted); font-size: 14px; line-height: 22px; max-width: 46em; }
.notes .name em { font-style: normal; color: var(--text); font-weight: 500; }

/* ── Footer ── */
.foot { margin-top: auto; padding-top: 40px; padding-bottom: 32px; position: relative; z-index: 1; }
.foot .row {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
}
.foot .row > * + *::before { content: none; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }
.foot a[aria-current="page"] { color: var(--text); text-decoration: none; }
.draft {
  margin: 14px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
}
.draft::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--leaf); flex: none; }

/* ── Legal pages ── */
.doc { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 16px; }
.doc .back { font-size: 14px; color: var(--muted); }
.doc header h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.15; margin: 12px 0 12px; }
.doc .meta { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.doc .intro { font-size: 18px; line-height: 1.6; max-width: var(--measure); margin: 24px 0 0; }
.doc .body { max-width: var(--measure); }
.doc h2 { font-size: 24px; line-height: 32px; margin: 48px 0 12px; scroll-margin-top: 24px; }
.doc h3 { font-size: 19px; line-height: 28px; margin: 28px 0 8px; }
.doc p, .doc li { font-size: 16px; line-height: 1.7; }
.doc ul, .doc ol { padding-left: 1.25em; }
.doc li + li { margin-top: 6px; }
.doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .86em;
  background: var(--mist);
  color: var(--storm);
  padding: 1px 5px;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
@media (prefers-color-scheme: dark) {
  .doc code { background: #2A3244; color: #E7EAEF; }
}

.toc {
  margin: 32px 0 0;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  max-width: var(--measure);
}
.toc h2 { font-family: "Inter", system-ui, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; line-height: 20px; }
.toc ol { margin: 0; padding-left: 1.4em; columns: 1; }
.toc li { font-size: 15px; line-height: 1.6; margin: 0; break-inside: avoid; }
.toc li + li { margin-top: 2px; }

.callout {
  margin: 20px 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--chip-bg);
  border-left: 3px solid var(--leaf);
}
.callout p { margin: 0; }
.callout p + p { margin-top: 8px; }

.table-scroll { overflow-x: auto; margin: 16px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-top: 1px solid var(--line); }
th { font-weight: 600; }
thead th { font-size: 13px; letter-spacing: .02em; color: var(--muted); border-top: 0; padding-top: 0; }
td:first-child { min-width: 9em; }
@media (max-width: 639px) {
  table, tbody, tr, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tr { border-top: 1px solid var(--line); padding: 12px 0; }
  td { border: 0; padding: 2px 0; }
  td:first-child { font-weight: 600; min-width: 0; }
  td[data-label]::before { content: attr(data-label) " · "; color: var(--muted); font-size: 13px; }
}

dl.facts-list { display: grid; grid-template-columns: 1fr; gap: 0; margin: 24px 0 0; max-width: var(--measure); }
dl.facts-list > div { padding: 14px 0; border-top: 1px solid var(--line); }
dl.facts-list > div:last-child { border-bottom: 1px solid var(--line); }
dl.facts-list dt { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
dl.facts-list dd { margin: 2px 0 0; font-size: 16px; }

.todo {
  display: inline-block;
  background: var(--todo-bg);
  color: var(--todo-text);
  border-radius: 6px;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
}

/* ── 404 ── */
.lost { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 48px; }
.lost h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.15; margin: 0 0 16px; }
.lost p { color: var(--muted); max-width: 32em; margin: 0 0 12px; }

/* ── Wider screens ── */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .lockup { font-size: 30px; }
  .fan-hero { width: 520px; right: -190px; top: 40px; }
  .band { padding: 44px 44px 40px; }
  .band .fan { width: 420px; right: -120px; bottom: -70px; }
  .toc ol { columns: 2; column-gap: 32px; }
  .foot .row { gap: 6px 0; }
  .foot .row > * + *::before { content: "·"; display: inline-block; margin: 0 10px; color: var(--muted); text-decoration: none; }
}

@media (min-width: 960px) {
  :root { --gutter: 40px; }
  .top { padding-top: 36px; }
  .lockup { font-size: 32px; }
  .fan-hero { width: 660px; right: -150px; top: 64px; }
  .hero { padding-top: 104px; padding-bottom: 56px; }
  .lead { font-size: 20px; line-height: 1.6; }
  .facts { padding-top: 64px; }
  .ledger > div { grid-template-columns: 300px 1fr; gap: 32px; padding: 28px 0; align-items: baseline; }
  .ledger dt { font-size: 26px; line-height: 34px; }
  .ledger dd { font-size: 17px; line-height: 1.65; }
  .band-wrap { padding-top: 64px; }
  .band { padding: 56px 64px 52px; }
  .band h2 { font-size: 32px; line-height: 40px; }
  .band p { font-size: 17px; }
  .band .fan { width: 560px; right: -80px; bottom: -110px; }
  .doc { padding-top: 64px; }
}

@media (prefers-reduced-motion: no-preference) {
  .status .dot { animation: breathe 3.2s ease-in-out infinite; }
  @keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
}

@media print {
  .fan, .skip, .toc { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
