/* Hallmark · macrostructure: Stat-Led · genre: editorial · nav: masthead · footer: colophon
 * theme: custom · vibe: verified-ledger financial print, quiet cool blue
 * paper oklch(98.2% 0.005 84.6) · accent oklch(49.1% 0.2156 264.5) cool-blue
 * display: Newsreader 600 (opsz variable) · body: IBM Plex Sans 400/600 · data: IBM Plex Mono 400/600
 * axes: light / roman-serif / cool · tone: austere-editorial · anchor hue: 265
 * self-hosted woff2 (OFL), zero third-party requests · redesign 2026-07-30
 * pre-emit critique: P4 H5 E4 S4 R5 V4
 * contrast: pass (40–41) · slop: pass (42–45) · honest: pass (46) · chrome: pass (47)
 * tokens: pass (48) · responsive: pass (49) · icons: pass (30) · mobile: pass (34, 49, 50–57) */

/* Tekiji — subscription landing page. Tokens in tokens.css (load first). */

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

html, body { overflow-x: clip; }

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 66rem;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ---- masthead ---- */

.masthead {
  border-bottom: 1px solid var(--hairline);
}

.masthead-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}

.wordmark {
  font-family: var(--font-display);
  font-size: var(--text-lede);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.wordmark-kanji {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--faint);
  margin-left: var(--space-xs);
  letter-spacing: 0.2em;
}

.masthead-tag {
  font-size: var(--text-sm);
  color: var(--faint);
}

/* ---- opening: the gap, in numbers (stat-led) ---- */

.opening {
  padding: var(--space-lg) 0 var(--space-2xl); /* bottom heavier than top (gate 44a) */
}

.dateline {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: var(--space-md);
}

.lead-figure {
  font-family: var(--font-data);
  font-size: var(--text-figure);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
}

.stat-sep { color: var(--faint); font-weight: 400; }

.lead-figure .stat-sep {
  font-size: 0.45em;
  vertical-align: 0.45em;
}

.figure-label {
  margin-top: var(--space-sm);
  font-size: var(--text-lede);
  color: var(--muted);
  max-width: 46ch;
}

.stat-source {
  margin-top: var(--space-xs);
  font-family: var(--font-data);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.opening-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  column-gap: var(--space-2xl);
  border-top: 1px solid var(--hairline);
  margin-top: var(--space-md);
  padding-top: var(--space-lg);
  align-items: start;
}

h1 {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 24ch;
}

h1, h2, .lead-figure {
  min-width: 0;
  overflow-wrap: anywhere;
}

.lede {
  max-width: 58ch;
  margin-top: var(--space-md);
  font-size: var(--text-lede);
  color: var(--muted);
}

.hero-cta { margin-top: var(--space-lg); }

/* Hero CTA: outlined chip — accent as line, not fill */
.button {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.5;
  color: var(--accent);
  background: transparent;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-control);
  padding: var(--space-sm) var(--space-lg);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: background-color var(--dur-short) var(--ease-out),
              color var(--dur-short) var(--ease-out),
              transform 80ms var(--ease-out);
}

.button:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.button:active { transform: translateY(1px); }

/* supporting stats — right data rail */

.opening-support {
  border-left: 1px solid var(--hairline);
  padding-left: var(--space-xl);
}

.opening-support .stat + .stat {
  border-top: 1px solid var(--hairline);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
}

.stat-value {
  font-family: var(--font-data);
  font-size: var(--text-title);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1.2;
}

.stat-label {
  margin-top: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--muted);
}

/* ---- what tekiji does ---- */

.what { padding: var(--space-3xl) 0 var(--space-2xl); }

h2 {
  font-family: var(--font-display);
  font-size: var(--text-title);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: var(--space-xl);
}

.feature-list { display: block; }

.feature {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--hairline);
}

.feature:last-child { border-bottom: 1px solid var(--hairline); }

.feature dt {
  font-weight: 600;
  font-size: var(--text-base);
}

.feature dd {
  color: var(--muted);
  font-size: var(--text-base);
  max-width: 58ch;
}

/* ---- subscribe ---- */

.subscribe {
  padding: var(--space-2xl) 0 var(--space-3xl); /* bottom-weighted close */
}

.subscribe-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: var(--space-2xl);
  align-items: start;
}

.offer-list {
  list-style: none;
}

.offer-list li {
  position: relative;
  padding: var(--space-xs) 0 var(--space-xs) var(--space-lg);
  color: var(--muted);
  font-size: var(--text-base);
}

.offer-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.subscribe-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: var(--space-xl);
  margin-top: var(--space-xs);
}

.subscribe-card label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--space-xs);
}

.subscribe-card input[type="email"] {
  width: 100%;
  min-height: 2.75rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-control);
  padding: var(--space-xs) var(--space-sm);
  margin-bottom: var(--space-md);
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.subscribe-card input[type="email"]:hover:not(:focus-visible) { border-color: var(--muted); }

.subscribe-card input[type="email"]::placeholder { color: var(--faint); }

.subscribe-card input[type="email"].is-invalid {
  border-color: var(--error);
}

.subscribe-card input[type="email"]:focus-visible,
.subscribe-card button:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.subscribe-card button {
  width: 100%;
  min-height: 2.75rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.5;
  color: var(--accent-ink);
  background: var(--accent);
  border: none;
  border-radius: var(--radius-control);
  padding: var(--space-xs) var(--space-lg);
  white-space: nowrap;
  cursor: pointer;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: background-color var(--dur-short) var(--ease-out),
              transform 80ms var(--ease-out);
}

.subscribe-card button:hover:not(:disabled) { background: var(--accent-hover); }
.subscribe-card button:active:not(:disabled) { transform: translateY(1px); }
.subscribe-card button:disabled { opacity: 0.55; cursor: not-allowed; }

/* Honeypot: hidden from humans, present for bots. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.65em;
  min-height: 1lh;
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
}

.form-status.is-error { color: var(--error); }
.form-status.is-success { color: var(--ok); }
.form-status.is-pending { color: var(--muted); }

.form-note {
  margin-top: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--faint);
}

/* ---- footer (colophon) ---- */

.footer {
  border-top: 1px solid var(--hairline);
  padding: var(--space-xl) 0 var(--space-2xl);
}

.footer p {
  font-size: var(--text-sm);
  color: var(--faint);
  max-width: 72ch;
}

.footer p + p { margin-top: var(--space-xs); }

.footer .disclaimer {
  color: var(--muted);
}

/* ---- reduced motion ---- */

@media (prefers-reduced-motion: reduce) {
  .button,
  .subscribe-card button {
    transition: none;
  }
  .button:active,
  .subscribe-card button:active:not(:disabled) {
    transform: none;
  }
}

/* ---- responsive ---- */

@media (max-width: 800px) {
  .opening { padding: var(--space-lg) 0 var(--space-xl); }

  .dateline { margin-bottom: var(--space-lg); }

  .opening-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--space-xl);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
  }

  .opening-support {
    border-left: none;
    border-top: 1px solid var(--hairline);
    padding-left: 0;
    padding-top: var(--space-lg);
  }

  .what { padding: var(--space-2xl) 0; }

  .feature {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2xs);
  }

  .subscribe { padding: var(--space-xl) 0 var(--space-2xl); }

  .subscribe-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xl);
  }
}
