/* ONE Mahjong — site stylesheet. Brand tokens per brand/identity.md §4-§5 (v2
   "lacquer and light": Peach ground, Lavender/Wisteria pair, light-only web). */

:root {
  --one-peach: #FBE8DC;
  --one-bone: #F5EFE3;
  --one-ink: #221E1A;
  --one-lacquer: #A62639;
  --one-lacquer-deep: #7C1D2C;
  --one-lavender: #C9B8E8;
  --one-wisteria: #66549B;
  --one-jade: #1D6A5A;
  --one-brass: #C6973B;
  --one-peony: #DA4167;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-text: "Atkinson Hyperlegible", "Segoe UI", Tahoma, Verdana, sans-serif;

  /* role tokens — the web is light-only per identity v2 (directive 2026-07-17) */
  --bg: var(--one-peach);
  --fg: var(--one-ink);
  --panel: #FEF4ED;
  --panel-edge: rgba(198, 151, 59, 0.55);      /* brass rule */
  --lavender-wash: rgba(201, 184, 232, 0.28);  /* lavender surface tint over Peach */
  --muted: #5C524E;                             /* 6.4:1 on Peach */
  --link: var(--one-wisteria);                  /* 5.4:1 on Peach — the dash, text grade */
  --link-hover: #52427E;
  --accent-text: var(--one-lacquer);            /* 6.0:1 on Peach — AA text */
  --display-accent: var(--one-lacquer);         /* headlines-when-it-matters */
  --btn-bg: var(--one-lacquer);
  --btn-fg: var(--one-bone);
  --hairline: rgba(34, 30, 26, 0.28);
  color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-text);
  font-size: 1.125rem;               /* 18px body — audience is 40-70 */
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

/* ---------- accessibility scaffolding ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 99;
  background: var(--one-ink);
  color: var(--one-bone);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- layout ---------- */

.wrap {
  max-width: 71rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.prose { max-width: 44rem; }
.prose p + p { margin-top: 1rem; }

main > section { padding: 3rem 0 0.5rem; }

/* ---------- header / nav ---------- */

.site-head {
  border-bottom: 1px solid var(--panel-edge);
  padding: 0.85rem 0;
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand-home {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
}
.brand-home svg { display: block; width: 40px; height: 40px; }

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.4rem;
}
.site-nav a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 0.35rem 0;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { color: var(--link); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent-text); }

/* ---------- hero ---------- */

.hero { padding: 3.5rem 0 1rem; }
.hero-wordmark {
  width: min(34rem, 92%);
  min-width: 140px;                  /* inline lockup floor per identity §6 */
  height: auto;
  display: block;
  margin-bottom: 2.2rem;
}
.page-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.08;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.75rem, 8vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.keep { white-space: nowrap; }
.dot-period {
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-left: 0.14em;
  vertical-align: baseline;
}
.hero .sub {
  margin-top: 1.4rem;
  font-size: clamp(1.2rem, 2.6vw, 1.4rem);
  max-width: 38em;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.2;
  padding: 0.85rem 1.6rem;
  border-radius: 10px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-color: var(--btn-bg);
}
.btn-primary:hover { background: #8E2031; border-color: #8E2031; }
.btn-secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--fg);
}
.btn-secondary:hover { color: var(--link); border-color: var(--link); }

/* ---------- section furniture ---------- */

.kicker {
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;            /* all-caps = Atkinson +8% tracking */
  color: var(--link);
  margin-bottom: 0.5rem;
}
h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);  /* >=28px: display-accent safe */
  line-height: 1.15;
  color: var(--display-accent);
  margin-bottom: 1.1rem;
}
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 1.6rem);
  line-height: 1.25;
  color: var(--fg);
  margin: 2rem 0 0.6rem;
}

.divider {
  display: flex;
  justify-content: center;
  padding: 2.6rem 0 0;
}
.divider svg { width: 26px; height: 26px; color: var(--one-brass); }

/* ---------- manifesto ---------- */

.excerpt {
  border-left: 4px solid var(--one-brass);
  padding: 0.4rem 0 0.4rem 1.4rem;
  font-size: 1.2rem;
  max-width: 42em;
}
.readmore {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
  color: var(--link);
}
a { color: var(--link); }
a:hover { color: var(--link-hover); }

.manifesto-close {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.9rem;                 /* >=24px: display-accent safe */
  color: var(--display-accent);
  margin-top: 1.6rem;
}

/* ---------- how it works steps ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.steps li {
  counter-increment: step;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 14px;
  padding: 1.4rem 1.4rem 1.5rem;
}
.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--one-jade);
  color: var(--one-bone);
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.steps h3 { margin: 0 0 0.4rem; font-size: 1.3rem; }

/* ---------- stats table ---------- */

.table-scroll { overflow-x: auto; margin-top: 1rem; }
.stats {
  border-collapse: collapse;
  min-width: 30rem;
  width: 100%;
  max-width: 44rem;
  font-variant-numeric: tabular-nums;
}
.stats caption {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  padding-bottom: 0.6rem;
  color: var(--fg);
}
.stats th, .stats td {
  text-align: left;
  padding: 0.65rem 1rem 0.65rem 0;
  border-bottom: 1px solid var(--panel-edge);
  vertical-align: top;
}
.stats td:last-child {
  font-weight: 700;
  color: var(--accent-text);
  white-space: nowrap;
}

/* ---------- claims list ---------- */

.claims { list-style: none; margin-top: 0.8rem; max-width: 44rem; }
.claims li {
  padding: 0.7rem 0 0.7rem 1.6rem;
  position: relative;
}
.claims li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 2px solid var(--one-brass);
}

/* ---------- waitlist / email capture ---------- */

.capture {
  background: var(--lavender-wash);            /* the dash of lavender, as surface */
  border: 1px solid var(--one-lavender);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  margin: 1.5rem 0 2rem;
  max-width: 46rem;
}
.capture form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}
.capture label { flex-basis: 100%; font-weight: 700; }
.capture input[type="email"] {
  flex: 1 1 16rem;
  font: inherit;
  padding: 0.8rem 1rem;
  border: 2px solid var(--hairline);
  border-radius: 10px;
  background: var(--panel);
  color: var(--fg);
}
.capture .btn[aria-disabled="true"],
.capture input[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.form-note {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--accent-text);
}
.microcopy {
  margin-top: 0.8rem;
  font-size: 1rem;
  color: var(--muted);
}

/* ---------- footer ---------- */

.site-foot {
  margin-top: 3.5rem;
  border-top: 3px solid var(--one-lacquer);
  padding: 2.2rem 0 2.6rem;
}
.foot-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.75rem;                /* >=24px: display-accent safe */
  color: var(--display-accent);
  margin-bottom: 1rem;
}
.site-foot p { max-width: 46rem; }
.foot-fine {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--muted);
}

/* ---------- cards page: viewer ---------- */

.card-block {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 18px;
  padding: 1.8rem 1.4rem;
  margin-top: 1.6rem;
}
.card-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}
.card-overview {
  color: var(--muted);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin: 1.1rem 0 0.4rem;
}
.print-tip { font-size: 1rem; color: var(--muted); }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.4rem;
  align-items: baseline;
  background: var(--bg);
  border: 1px solid var(--panel-edge);
  border-left: 4px solid var(--one-brass);
  border-radius: 6px;
  padding: 0.7rem 0.9rem;
  margin: 1.2rem 0;
  font-size: 1rem;
}
.lg-title {
  flex-basis: 100%;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--link);
}
.lg-sym { font-weight: 700; color: var(--accent-text); }
.lg-eq { color: var(--muted); padding: 0 0.25em; }

.viewer { margin-top: 0.6rem; }
.viewer-sections {
  column-count: 2;
  column-gap: 2.5rem;
  column-rule: 1px solid var(--panel-edge);
}
@media (max-width: 47.9rem) {
  .viewer-sections { column-count: 1; }
}
.v-section {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 1.4rem;
}
.v-sec-head {
  border-bottom: 2px solid var(--fg);
  padding-bottom: 0.2rem;
  margin-bottom: 0.3rem;
}
.v-sec-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--fg);
  margin: 0;
}
.v-sec-blurb {
  font-size: 1rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.4;
}
.v-hand {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.32rem 0;
  border-bottom: 1px dotted var(--hairline);
  font-size: 1.0625rem;
  line-height: 1.45;
}
.v-hand:last-child { border-bottom: none; }
.v-num {
  flex: 0 0 1.4rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.v-tiles {
  flex: 1 1 auto;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.v-tiles .grp { margin-right: 0.55em; white-space: nowrap; }
.v-tiles .grp:last-child { margin-right: 0; }
.cbadge {
  flex: 0 0 auto;
  align-self: center;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  color: var(--one-bone);
  background: var(--one-jade);
  border-radius: 4px;
  padding: 0.2rem 0.35rem;
}
.v-pts {
  flex: 0 0 2.4rem;
  text-align: right;
  font-weight: 700;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}
.card-provenance {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ---------- small screens ---------- */

@media (max-width: 40rem) {
  .hero { padding-top: 2.2rem; }
  main > section { padding-top: 2.4rem; }
  .card-block { padding: 1.3rem 1rem; }
}

/* ---------- numbered lists (learn section) ---------- */

.numlist {
  margin: 0.8rem 0 0 1.5rem;
  max-width: 44rem;
}
.numlist li {
  padding: 0.4rem 0 0.4rem 0.3rem;
}
.numlist li::marker {
  font-weight: 700;
  color: var(--accent-text);
}
