/* ============================================================
   Stopping Time — warm editorial system
   Tokens bound from OpenDesign direction `editorial-monocle`
   ============================================================ */

/* Tokens live in index.html <head> (single source of truth; the design
   linter checks the artifact document). */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 3rem;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.55vw + 0.9rem, 1.125rem);
  line-height: 1.62;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.mono { font-family: var(--font-mono); font-size: .74em; letter-spacing: .06em; text-transform: uppercase; }
em { font-style: italic; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

/* ---------- top rule + paper grain ---------- */
.rule-top {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60;
  background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%;
  animation: rule-in 1.1s var(--ease) .15s forwards;
}
@keyframes rule-in { to { transform: scaleX(1); } }

.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .35;
  background-image: radial-gradient(currentColor .5px, transparent .5px);
  background-size: 4px 4px;
  color: oklch(70% 0.01 80 / .22);
  mix-blend-mode: multiply;
}

/* ---------- chapter rail ---------- */
.rail {
  position: fixed; top: 50%; right: clamp(.6rem, 1.6vw, 1.6rem);
  transform: translateY(-50%); z-index: 50;
  display: flex; flex-direction: column; align-items: center; gap: 1.1rem;
  /* paper backing so the numbers stay legible over the orbit canvas */
  padding: .85rem .35rem; border-radius: 999px;
  background: oklch(98% 0.004 95 / .82);
  backdrop-filter: blur(3px);
  box-shadow: inset 0 0 0 1px var(--border);
}
.rail__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.rail__list a {
  display: grid; place-items: center;
  width: 2rem; height: 2rem; border: 1px solid transparent; border-radius: 50%;
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .04em;
  color: var(--muted); transition: color .35s var(--ease), border-color .35s var(--ease), transform .45s var(--spring);
}
.rail__list a:hover { color: var(--fg); border-color: var(--border); transform: scale(1.14); }
.rail__list a[aria-current="true"] { color: var(--accent-ink); border-color: var(--accent-ink); }
.rail__mark .dot {
  display: block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--fg); transition: background .3s;
}
.rail__mark:hover .dot { background: var(--accent); }
@media (max-width: 720px) { .rail { display: none; } }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.wrap--narrow { max-width: 46rem; }
.sec { padding: clamp(4.5rem, 11vw, 9rem) 0; border-top: 1px solid var(--border); position: relative; z-index: 2; }

.kicker {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent-ink); margin: 0 0 1.6rem;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -.015em; line-height: 1.04; margin: 0; }
h2 { font-size: clamp(2.1rem, 5.2vw, 3.7rem); margin-bottom: clamp(2rem, 4vw, 3.4rem); max-width: 22ch; }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }

/* ---------- hero ---------- */
.hero {
  position: relative; z-index: 2;
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(5rem, 12vh, 9rem) 0 clamp(4rem, 9vh, 6rem);
}
.hero .wrap { width: 100%; }
.hero__name {
  font-size: clamp(3.2rem, min(13vw, 15vh), 9.5rem);
  line-height: .92; margin: 0 0 clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: -.03em;
}
.hero__name .line { display: block; }
.line--indent { padding-left: clamp(1.5rem, 12vw, 9rem); }

.hero__thesis {
  font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  font-style: italic; max-width: 30ch; margin: 0 0 1.4rem; color: var(--fg);
}
.hero__lede { max-width: 46ch; color: var(--muted); margin: 0 0 clamp(2rem, 4vw, 3rem); }

.hero__meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1px; border-top: 1px solid var(--border);
}
.hero__meta > div { padding: 1.1rem 1rem 1.1rem 0; border-right: 1px solid oklch(86% 0.006 95); }
.hero__meta > div:last-child { border-right: 0; }
.hero__meta .k { display: block; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.hero__meta .v { font-size: .95rem; }

/* ---------- collatz orbit ---------- */
.orbit {
  position: absolute; right: clamp(-4rem, -2vw, 0rem); top: 50%;
  width: clamp(20rem, 42vw, 44rem); aspect-ratio: 1;
  transform: translateY(-50%); margin: 0; z-index: 0; pointer-events: none;
  opacity: 0; animation: fade-up 1.6s var(--ease) .5s forwards;
}
.orbit canvas { width: 100%; height: 100%; display: block; }
.orbit figcaption {
  position: absolute; bottom: 0; right: 0; color: var(--muted); font-size: .6rem !important;
}
@media (max-width: 1000px) {
  .orbit { position: relative; right: auto; top: auto; transform: none; width: min(88vw, 26rem); margin: 3rem auto 0; }
  .orbit figcaption { position: static; text-align: center; margin-top: .6rem; }
}

.scroll-cue {
  position: absolute; left: var(--gut); bottom: 2rem; color: var(--muted);
  display: flex; align-items: center; gap: .6rem; font-size: .6rem !important;
}
.scroll-cue .bar { display: block; width: 3rem; height: 1px; background: var(--border); position: relative; overflow: hidden; }
.scroll-cue .bar::after {
  content: ""; position: absolute; inset: 0; background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%; animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { 0% { transform: scaleX(0); } 55% { transform: scaleX(1); } 100% { transform: scaleX(0) translateX(100%); } }

/* ---------- index ---------- */
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.index-list li { border-bottom: 1px solid var(--border); }
.index-list a {
  display: grid; grid-template-columns: 3.2rem 1fr auto; align-items: baseline;
  gap: 1rem; padding: 1.35rem 0; transition: padding-left .5s var(--spring), color .3s;
}
.index-list a:hover { padding-left: .9rem; }
.index-list .lead { display: none; }
.index-list .meta { color: var(--muted); }
@media (max-width: 620px) { .index-list a { grid-template-columns: 2.4rem 1fr; } .index-list .meta { display: none; } }

/* ---------- research entries ---------- */
.entry {
  display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: clamp(1.2rem, 4vw, 3.5rem);
  padding: clamp(2rem, 4vw, 3.2rem) 0; border-top: 1px solid var(--border);
}
.entry:last-child { border-bottom: 1px solid var(--border); }
.entry__body p { margin: 0 0 1rem; max-width: 60ch; }
.entry__body p:last-child { margin-bottom: 0; }
.entry .tag { color: var(--muted); margin: .7rem 0 0; }
@media (max-width: 860px) { .entry { grid-template-columns: 1fr; } }

.stats {
  grid-column: 2; list-style: none; display: flex; flex-wrap: wrap; gap: 2.6rem;
  margin: 1.6rem 0 0; padding: 0;
}
.stats li { display: flex; align-items: baseline; gap: .5rem; }
.stats .num { font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-variant-numeric: tabular-nums; }
.stats .mono { color: var(--muted); }
@media (max-width: 860px) { .stats { grid-column: 1; } }

/* ---------- ticker ---------- */
.ticker {
  overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 1.1rem 0; position: relative; z-index: 2; background: var(--surface);
  contain: paint;
}
.ticker__track {
  display: flex; gap: 2.2rem; white-space: nowrap; width: max-content;
  font-family: var(--font-mono); font-size: .86rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--muted); will-change: transform;
}
.ticker__track span:nth-child(odd) { color: var(--accent-ink); }

/* ---------- cards ----------
   NB: do NOT give this container a background — with an auto-fit grid the
   unused cells of the last row render that background as a solid slab. */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  border-top: 1px solid var(--border); border-left: 1px solid var(--border);
}
.card {
  background: var(--bg); padding: clamp(1.6rem, 3vw, 2.4rem);
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: .7rem;
  transition: background .45s var(--ease);
}
.card:hover { background: var(--surface); }
.card__no { color: var(--accent); margin: 0; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card .tag { color: var(--muted); }
.card__meta { margin-top: auto !important; color: var(--fg) !important; }

/* ---------- method ---------- */
.sec--method { background: var(--surface); }
.lede { font-family: var(--font-display); font-size: clamp(1.2rem, 2.2vw, 1.7rem); line-height: 1.4; }
blockquote {
  margin: clamp(2rem, 4vw, 3rem) 0 0; padding-left: 1.4rem;
  border-left: 2px solid var(--accent);
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.1rem, 2vw, 1.5rem);
}

/* ---------- archive ---------- */
.sec--archive { background: var(--bg); }
.archive { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.archive li {
  padding: .95rem 0; border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: .86rem; letter-spacing: .02em;
  transition: padding-left .45s var(--spring), color .3s;
}
.archive li:hover { padding-left: .8rem; color: var(--accent-ink); }
.archive .d { color: var(--muted); opacity: .5; margin-right: .9rem; }

/* ---------- contact ---------- */
.big-link {
  font-family: var(--font-display); font-size: clamp(1.5rem, 4.6vw, 3rem);
  border-bottom: 2px solid var(--accent); padding-bottom: .15em;
  transition: border-color .45s var(--ease), letter-spacing .5s var(--ease), color .3s;
  display: inline-block; position: relative;
}
.big-link::after {
  content: "↗"; font-size: .55em; vertical-align: super; margin-left: .35em;
  color: var(--accent-ink); transition: transform .45s var(--spring); display: inline-block;
}
.big-link:hover { letter-spacing: .012em; border-color: var(--fg); }
.big-link:hover::after { transform: translate(3px,-3px); }
.fine { color: var(--muted); margin-top: 2.4rem; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--border); padding: 2.6rem 0; position: relative; z-index: 2; }
.foot p { margin: 0; }
.foot .dim { color: var(--muted); margin-top: .4rem; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--spring); }

@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.orbit { animation-name: fade-up; }
.orbit { animation: orbit-in 1.6s var(--ease) .5s forwards; }
@keyframes orbit-in {
  from { opacity: 0; transform: translateY(-50%) scale(.94); }
  to   { opacity: 1; transform: translateY(-50%) scale(1); }
}
@media (max-width: 1000px) {
  @keyframes orbit-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
}

/* self-drawing hairline used on section tops */
.sec::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 100%; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 1.1s var(--ease);
}
.sec.is-in::before { transform: scaleX(1); }

/* scroll-velocity typography */
[data-velocity] { transition: letter-spacing .5s var(--ease), transform .5s var(--ease); }
body.is-scrolling-fast [data-velocity] { letter-spacing: .012em; }

/* magnetic buttons */
.big-link { will-change: transform; }

/* ============================================================
   GAME LAYER — progression, depth, feedback, discovery
   ============================================================ */

/* particle field (behind content) */
.field { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }

/* cursor reticle */
.follower {
  position: fixed; top: 0; left: 0; width: 20px; height: 20px; z-index: 55;
  margin: -10px 0 0 -10px; border: 1px solid var(--accent-ink); border-radius: 50%;
  pointer-events: none; opacity: 0; transition: opacity .35s var(--ease), width .25s var(--spring), height .25s var(--spring), background .25s;
}
.follower.on { opacity: .85; }
.follower.press { width: 34px; height: 34px; margin: -17px 0 0 -17px; background: oklch(52% 0.10 28 / .14); }
.follower.link { width: 34px; height: 34px; margin: -17px 0 0 -17px; border-color: var(--fg); }
@media (hover: none) { .follower { display: none; } }

/* HUD */
.hud {
  position: fixed; left: var(--gut); top: 1rem; z-index: 56;
  display: flex; align-items: center; gap: .75rem;
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); pointer-events: none;
  padding: .32rem .75rem; border-radius: 999px;
  background: oklch(98% 0.004 95 / .82); backdrop-filter: blur(3px);
  box-shadow: inset 0 0 0 1px var(--border);
}
.hud__ch b { color: var(--accent-ink); font-weight: 400; font-variant-numeric: tabular-nums; }
.hud__ch i { opacity: .35; font-style: normal; margin: 0 .18rem; }
.hud__ch span { color: var(--fg); }
.hud__bar { display: block; width: clamp(2.5rem, 11vw, 8rem); height: 2px; background: var(--border); position: relative; overflow: hidden; }
.hud__bar i { position: absolute; inset: 0; background: var(--accent-ink); transform: scaleX(0); transform-origin: 0 50%; }
.hud__vel { color: var(--accent-ink); min-width: 3.4em; font-variant-numeric: tabular-nums; }
/* HUD recedes when idle so it never competes with section headings */
.hud { opacity: .45; transition: opacity .5s var(--ease); }
body.is-scrolling-fast .hud { opacity: 1; }
@media (max-width: 720px) { .hud__vel { display: none; } }
@media (max-width: 460px) { .hud { font-size: .56rem; gap: .5rem; } }

/* parallax depth */
[data-parallax] { will-change: transform; }

/* scene-change sweep on section entry */
.sec::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: linear-gradient(100deg, transparent 30%, oklch(52% 0.10 28 / .055) 50%, transparent 70%);
  transform: translateX(-100%); opacity: 0;
}
.sec.is-in::after { animation: sweep 1.25s var(--ease) .08s forwards; }
@keyframes sweep {
  0%   { transform: translateX(-100%); opacity: 0; }
  25%  { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

/* velocity streaks */
.streaks {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  transition: opacity .3s var(--ease);
  background: repeating-linear-gradient(180deg,
    transparent 0 3px, oklch(52% 0.10 28 / .05) 3px 4px);
}
body.is-scrolling-fast .streaks { opacity: 1; }

/* card tilt + lift */
.cards { perspective: 1200px; }
.card {
  transform-style: preserve-3d;
  transition: background .45s var(--ease), transform .5s var(--spring), box-shadow .5s var(--ease);
}
.card.tilting {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(8px);
  background: var(--surface);
  box-shadow: 0 18px 40px -28px oklch(20% 0.018 70 / .45);
}

/* ---------- the playable lab ---------- */
.lab {
  margin: clamp(2rem, 4vw, 3rem) 0;
  border: 1px solid var(--border); background: var(--surface);
}
.lab__head { padding: clamp(1.4rem, 3vw, 2rem); border-bottom: 1px solid var(--border); }
.lab__head .kicker { margin-bottom: .7rem; }
.lab__intro { margin: 0; max-width: 62ch; color: var(--muted); }
.lab__hint { color: var(--accent-ink); margin: 1rem 0 0 !important; }
.lab__panel { display: grid; grid-template-columns: minmax(0, 1fr) 13.5rem; }
.lab__plot { position: relative; display: flex; flex-direction: column; min-width: 0; }
#lab-canvas { width: 100%; height: clamp(12rem, 26vw, 16rem); display: block; background: var(--bg); }
.lab__legend {
  display: flex; align-items: center; gap: .45rem; flex-wrap: wrap;
  padding: .5rem .8rem; border-top: 1px solid var(--border);
  color: var(--muted); font-size: .6rem !important; margin: 0;
}
.lab__legend .k { display: inline-block; width: 1.5rem; height: 0; border-top: 2px solid var(--accent-ink); }
.lab__legend .k.ghost { border-top: 1px dashed oklch(52% 0.10 28 / .45); }
.lab__legend .k + .k { margin-left: .6rem; }
.lab__side { display: flex; flex-direction: column; border-left: 1px solid var(--border); min-width: 0; }
.lab__read {
  margin: 0; padding: 1.1rem 1.2rem;
  display: grid; align-content: start; gap: .15rem;
}
.lab__read > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  border-bottom: 1px solid var(--border); padding: .55rem 0;
}
.lab__read dt { margin: 0; color: var(--muted); }
.lab__read dd { margin: 0; font-family: var(--font-display); font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.lab__read dd.pop { animation: pop .45s var(--spring); }
@keyframes pop { 0% { transform: scale(1); } 45% { transform: scale(1.22); color: var(--accent-ink); } 100% { transform: scale(1); } }
.lab__foot {
  display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap;
  padding: 1rem clamp(1.4rem, 3vw, 2rem); border-top: 1px solid var(--border);
}
.lab__logwrap {
  display: flex; flex-direction: column; gap: .5rem;
  padding: 1rem 1.2rem 1.2rem; border-top: 1px solid var(--border);
  margin-top: auto;
}
.lab__loglabel { color: var(--muted); font-size: .58rem !important; }
.lab__note { color: var(--muted); font-size: .58rem !important; }
.lab__btn {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .7rem 1.25rem; min-height: 44px; border: 1px solid var(--fg); background: transparent; color: var(--fg);
  cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease), transform .35s var(--spring), letter-spacing .35s var(--ease);
}
.lab__btn:hover { background: var(--fg); color: var(--bg); letter-spacing: .18em; }
.lab__btn:active { transform: scale(.955); }
.lab__log { list-style: none; margin: 0; padding: 0; display: grid; font-size: .68rem !important; color: var(--muted); }
.lab__log li {
  display: flex; align-items: baseline; gap: .45rem;
  border-bottom: 1px solid var(--border); padding: .34rem 0;
  font-variant-numeric: tabular-nums;
}
.lab__log li::before { content: "·"; width: .8rem; text-align: center; opacity: .45; }
.lab__log li.new { color: var(--fg); }
.lab__log li.new::before { content: "›"; opacity: 1; }
.lab__log li.hi { color: var(--accent-ink); }
.lab__log li.hi::before { content: "★"; opacity: 1; }
.lab__log li.lo { color: var(--fg); }
.lab__log li.lo::before { content: "▽"; opacity: 1; }
.lab__log:empty::after { content: "no runs yet"; opacity: .55; }
/* once a run finishes, the dashed "path ahead" is fully covered by the traced
   line — hide it so the legend never advertises something invisible */
.lab.is-done .lab__legend .k.ghost,
.lab.is-done .lab__legend .ghosttxt { display: none; }
kbd {
  font-family: var(--font-mono); font-size: .82em; border: 1px solid var(--border);
  border-bottom-width: 2px; padding: .04em .38em; border-radius: 3px;
}
@media (max-width: 820px) {
  .lab__panel { grid-template-columns: 1fr; }
  .lab__side { border-left: 0; border-top: 1px solid var(--border); }
  .lab__read { grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr)); }
  .lab__read > div { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .field, .follower, .streaks { display: none; }
  .sec::after { display: none; }
  [data-parallax] { transform: none !important; }
  .card.tilting { transform: none; box-shadow: none; }
}

/* ============================================================
   CONVERSION LAYER — offer, proof links, store, brief
   Tokens unchanged. Contrast measured:
   bg/accent 5.46:1 · accent-ink/bg 7.77:1 · muted/bg 6.18:1
   ============================================================ */

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--fg); color: var(--bg); padding: .8rem 1.1rem;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
}
.skip:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }

.cta-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: .7rem;
  margin: 0 0 clamp(1.8rem, 4vw, 2.8rem);
}
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.15rem; border-radius: 2px;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .13em;
  text-transform: uppercase; border: 1px solid var(--fg); background: transparent;
  color: var(--fg); cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), letter-spacing .35s var(--ease);
}
.btn:hover { letter-spacing: .17em; color: var(--fg); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn--primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--bg); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); }

.chip {
  display: inline-flex; align-items: center; min-height: 32px;
  padding: .3rem .7rem; border: 1px solid var(--accent); border-radius: 999px;
  color: var(--accent-ink); font-size: .72rem !important; letter-spacing: .12em;
}

.sec--offer { background: var(--bg); }
.deliver { margin: 1rem 0 0 !important; color: var(--muted); }
.deliver a, .entry h3 a { color: inherit; border-bottom: 1px solid var(--border); }
.deliver a:hover, .entry h3 a:hover { color: var(--accent-ink); border-color: var(--accent); }

.steps {
  list-style: none; margin: clamp(1.6rem, 4vw, 2.8rem) 0;
  padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.steps li { padding: 1.3rem 1.3rem 1.3rem 0; border-right: 1px solid var(--border); }
.steps li:last-child { border-right: 0; }
.steps p { margin: .5rem 0 0; color: var(--muted); font-size: .95rem; max-width: 34ch; }
.steps__n { color: var(--accent-ink); }
@media (max-width: 640px) {
  .steps li { border-right: 0; border-bottom: 1px solid var(--border); padding-left: 0; }
  .steps li:last-child { border-bottom: 0; }
}

.shop { margin-top: clamp(2.2rem, 5vw, 3.4rem); border: 1px solid var(--border); background: var(--surface); }
.shop__head { padding: clamp(1.2rem, 2.6vw, 1.8rem); border-bottom: 1px solid var(--border); }
.shop__head .kicker { margin-bottom: .5rem; }
.shop__intro { margin: 0; color: var(--muted); max-width: 60ch; }
.shop__list { list-style: none; margin: 0; padding: 0; }
.shop__list li { border-bottom: 1px solid var(--border); }
.shop__list a {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.4fr) 4rem;
  align-items: baseline; gap: 1rem; padding: .9rem clamp(1.2rem, 2.6vw, 1.8rem);
  transition: background .35s var(--ease), padding-left .45s var(--spring);
}
.shop__list a:hover { background: var(--bg); padding-left: calc(clamp(1.2rem, 2.6vw, 1.8rem) + .5rem); }
.shop__name { font-family: var(--font-display); font-size: 1.05rem; }
.shop__desc { color: var(--muted); }
.shop__price { text-align: right; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.shop__cta { margin: 0; padding: 1rem clamp(1.2rem, 2.6vw, 1.8rem); }
.text-link { border-bottom: 1px solid var(--border); padding-bottom: 1px; }
.text-link:hover { border-color: var(--accent); }
@media (max-width: 660px) {
  .shop__list a { grid-template-columns: minmax(0, 1fr) auto; }
  .shop__name { grid-column: 1; grid-row: 1; }
  .shop__price { grid-column: 2; grid-row: 1; }
  .shop__desc { grid-column: 1 / -1; grid-row: 2; }
}

.brief { margin: 1.6rem 0 2.4rem; border: 1px solid var(--border); background: var(--surface); display: grid; }
.brief__text {
  margin: 0; padding: 1.1rem 1.2rem; white-space: pre-wrap; overflow-x: auto;
  font-family: var(--font-mono); font-size: .78rem; line-height: 1.7;
  color: var(--fg); letter-spacing: .02em; text-transform: none;
}
.brief__copy {
  justify-self: start; margin: 0 1.2rem 1.1rem; padding: .55rem .9rem; min-height: 44px;
  border: 1px solid var(--fg); background: transparent; color: var(--fg);
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.brief__copy:hover { background: var(--fg); color: var(--bg); }
.brief__copy[data-state="ok"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }

.card h3 a { border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.card h3 a:hover { border-bottom-color: var(--accent); color: var(--fg); }
.card__links { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: .2rem 0 0 !important; }
.card__links a { color: var(--fg); border-bottom: 1px solid var(--border); }
.card__links a:hover { color: var(--accent-ink); border-color: var(--accent); }
