/* Hallmark · macrostructure: Split Studio · tone: warm-grounded-human
 * genre: modern-minimal (warmed) · theme: custom "warm clay"
 * paper-band: light · display-style: grotesque · accent-hue: warm
 * nav: N5 floating pill · footer: Ft6 letter-close
 * enrichment: hand-built artifact cards (Tier A/B) · no stock photography
 * polish: none
 * pre-emit critique: P4 H5 E4 S5 R4 V5
 * supersedes: Specimen build (numbered left-margin labels) — excluded by diversification
 */

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

html, body { overflow-x: clip; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.028em;
  overflow-wrap: anywhere;
  min-width: 0;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }

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

.shell { max-width: 76rem; margin-inline: auto; padding-inline: var(--page-gutter); }

/* keep anchored headings clear of the fixed pill nav */
section[id], header[id], footer[id] { scroll-margin-top: 6rem; }

/* ============ N5 · floating pill nav ============ */
.pill {
  position: fixed; z-index: 90;
  top: var(--space-sm); left: 50%; translate: -50% 0;
  display: flex; align-items: center; gap: var(--space-md);
  padding: var(--space-2xs) var(--space-2xs) var(--space-2xs) var(--space-md);
  background: color-mix(in oklch, var(--color-paper) 86%, transparent);
  backdrop-filter: blur(12px);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 24px -18px oklch(24% 0.018 60 / 0.6);
  max-width: calc(100% - (var(--page-gutter) * 2));
}
.pill__mark {
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--text-sm); letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
}
.pill__mark span { color: var(--color-accent); }
.pill__cta {
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm);
  text-decoration: none; white-space: nowrap;
  padding: var(--space-2xs) var(--space-md);
  background: var(--color-ink); color: var(--color-paper);
  border-radius: var(--radius-pill);
  transition: background var(--dur-mid) var(--ease-out);
}
.pill__cta:hover { background: var(--color-accent); }

/* ============ hero ============ */
.hero { padding-block: clamp(6.5rem, 16vh, 9.5rem) var(--space-2xl); }
.hero__grid {
  display: grid; gap: var(--space-2xl);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 62rem) {
  .hero__grid { grid-template-columns: 1.02fr minmax(0, 0.98fr); gap: var(--space-xl); }
}

.hero h1 { font-size: var(--text-display); font-weight: 800; max-width: 15ch; line-height: 0.98; }
.hero__lede {
  margin-top: var(--space-md);
  font-size: var(--text-lg); color: var(--color-ink-2);
  max-width: var(--measure);
}
.hero__actions { margin-top: var(--space-lg); display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: center; }

.btn {
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-base);
  text-decoration: none; white-space: nowrap;
  padding: var(--space-xs) var(--space-lg);
  border-radius: var(--radius-pill);
  background: var(--color-accent); color: var(--color-paper);
  border: var(--rule-hair) solid transparent;
  transition: translate var(--dur-mid) var(--ease-out), background var(--dur-mid) var(--ease-out);
}
.btn:hover { background: var(--color-accent-ink); translate: 0 -2px; }
.btn--quiet {
  background: transparent; color: var(--color-ink);
  border-color: var(--color-rule);
}
.btn--quiet:hover { background: var(--color-paper-2); translate: 0 -2px; }

.tagline {
  display: inline-flex; align-items: center; gap: var(--space-2xs);
  font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: 0.06em; color: var(--color-accent-ink);
  background: var(--color-accent-wash);
  padding: var(--space-3xs) var(--space-xs);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-md);
}

/* ============ artifact cards (hand-built, no fake chrome) ============ */
.card {
  background: var(--color-paper);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: 0 24px 60px -46px oklch(24% 0.018 60 / 0.75);
}
.card + .card { margin-top: var(--space-sm); }
.card__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-sm); margin-bottom: var(--space-sm);
  padding-bottom: var(--space-2xs);
  border-bottom: var(--rule-hair) solid var(--color-rule-soft);
}
.card__who { font-weight: 700; font-size: var(--text-base); }
.card__time { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-ink-3); }

.chip {
  font-family: var(--font-mono); font-size: var(--text-xs);
  padding: 2px var(--space-2xs); border-radius: var(--radius-sm);
  background: var(--color-calm-wash); color: var(--color-calm);
  white-space: nowrap;
}
.chip--done { background: var(--color-accent-wash); color: var(--color-accent-ink); }

.line { display: flex; gap: var(--space-sm); padding-block: var(--space-3xs); font-size: var(--text-sm); }
.line dt { color: var(--color-ink-3); flex: none; width: 5.5rem; }
.line dd { color: var(--color-ink); }

.note__body { font-size: var(--text-sm); color: var(--color-ink-2); }
.note__body p + p { margin-top: var(--space-2xs); }
.note__body b { color: var(--color-ink); font-weight: 700; }

.card__foot {
  margin-top: var(--space-sm); padding-top: var(--space-2xs);
  border-top: var(--rule-hair) solid var(--color-rule-soft);
  font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-ink-3);
}

/* ============ split studio sections ============ */
.split { padding-block: var(--space-2xl); }
.split__grid {
  display: grid; gap: var(--space-xl);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 62rem) {
  .split__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-2xl); }
  .split--flip .split__media { order: -1; }
}
.split h2 { font-size: var(--text-3xl); max-width: 13ch; }
.split__copy p {
  margin-top: var(--space-md); color: var(--color-ink-2);
  font-size: var(--text-lg); max-width: var(--measure);
}

.band { background: var(--color-paper-2); }
.band--warm {
  background:
    linear-gradient(150deg,
      color-mix(in oklch, var(--color-paper) 100%, var(--color-accent) 6%),
      var(--color-paper-2));
}

/* ============ steps ============ */
.steps { display: grid; gap: var(--space-md); margin-top: var(--space-xl); }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step {
  background: var(--color-paper); border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-md); padding: var(--space-md);
}
.step__k {
  width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--color-accent); color: var(--color-paper);
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 700;
  margin-bottom: var(--space-sm);
}
.step h3 { font-size: var(--text-xl); margin-bottom: var(--space-2xs); }
.step p { font-size: var(--text-sm); color: var(--color-ink-2); }

/* ============ ways of working / aims ============ */
.step--bar { border-top: 3px solid var(--color-accent); }
.step--bar:nth-child(2) { border-top-color: var(--color-calm); }
.step--bar:nth-child(3) { border-top-color: var(--color-ink-3); }

.aim__tag {
  display: inline-block;
  font-family: var(--font-mono); font-size: var(--text-xs);
  color: var(--color-ink-3); letter-spacing: 0.06em;
  margin-bottom: var(--space-sm);
}
.note-line {
  margin-top: var(--space-xl);
  font-size: var(--text-sm); color: var(--color-ink-3);
  max-width: 44ch;
}

/* ============ Ft6 · letter close ============ */
.close { padding-block: var(--space-3xl) var(--space-2xl); }
.close__inner { max-width: 42rem; }
.close h2 { font-size: var(--text-3xl); }
.close p { margin-top: var(--space-md); font-size: var(--text-lg); color: var(--color-ink-2); }
.close p.close__sign {
  margin-top: var(--space-lg); font-family: var(--font-display);
  font-size: var(--text-xl); font-weight: 700; color: var(--color-ink);
}
.close p.close__meta {
  margin-top: var(--space-2xl); padding-top: var(--space-md);
  border-top: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-xs); color: var(--color-ink-3); line-height: 1.8;
}
.close p.close__meta a { color: var(--color-ink-2); }

/* ============ legal strip — very bottom ============ */
.legal { padding-block: var(--space-md) var(--space-xl); }
.legal p {
  font-size: var(--text-2xs);
  line-height: 1.7;
  color: var(--color-ink-3);
  max-width: 82ch;
  text-wrap: pretty;
}

/* ============ reveal ============ */
.rv { opacity: 0; translate: 0 14px; transition: opacity var(--dur-slow) var(--ease-out), translate var(--dur-slow) var(--ease-out); }
.rv.in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; translate: 0 0; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
