/* Chasing the hit: series landing + chapters. Builds on style.css (post-hero, post-layout, post-body). */

/* ---------- landing ---------- */
.hit-hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 6vw, 72px); }
.hit-hero .hero-line { display: block; width: 100%; height: clamp(120px, 20vh, 220px); margin: clamp(28px, 5vw, 56px) 0 8px; pointer-events: none; }
.hit-hero .wrap { position: relative; display: grid; gap: 22px; }
.hit-title { font-size: clamp(56px, 11vw, 150px); line-height: .86; letter-spacing: -.055em; margin: 0; max-width: 9ch; }
.hit-title .ember { color: var(--ember); }
.hit-hero .lede { color: var(--on-dark-soft); font-size: clamp(19px, 2vw, 24px); line-height: 1.45; max-width: 40ch; margin: 0; }
.hit-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.hit-meta b { color: var(--dawn); font-weight: 500; }
.hit-hero .scroll-cue { margin-top: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--lough-light); }

.chapters { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(22,32,28,.14); }
.chapters li { border-bottom: 1px solid rgba(22,32,28,.14); }
.chapter-link { display: grid; grid-template-columns: clamp(56px, 9vw, 120px) minmax(0, 1fr) auto; gap: 8px clamp(16px, 3vw, 40px); align-items: baseline; padding: clamp(22px, 3vw, 34px) 0; text-decoration: none; color: var(--peat); position: relative; }
.chapter-link::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--ember); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-travel, ease); }
.chapter-link:hover::after, .chapter-link:focus-visible::after { transform: scaleX(1); }
.chapter-link:hover { color: var(--peat); }
.chapter-link .n { font-family: var(--mono); font-size: clamp(28px, 4vw, 52px); line-height: 1; color: transparent; -webkit-text-stroke: 1.2px var(--ember); font-weight: 500; }
.chapter-link .t { display: flex; flex-direction: column; gap: 8px; }
.chapter-link h3 { margin: 0; font-size: clamp(26px, 3.4vw, 44px); line-height: 1.02; letter-spacing: -.03em; transition: color .3s; }
.chapter-link:hover h3 { color: var(--ember); }
.chapter-link .d { color: var(--ink-muted); font-size: 17px; line-height: 1.45; }
.chapter-link .q { font-style: italic; color: var(--lough); font-size: 17px; }
.chapter-link .m { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); white-space: nowrap; }
.chapters.extras .n { -webkit-text-stroke-color: var(--lough); font-size: clamp(16px, 2vw, 22px); letter-spacing: .1em; }
.hit-note { font-size: 14px; line-height: 1.55; color: var(--ink-muted); max-width: 70ch; margin: 0; }
@media (max-width: 640px) { .chapter-link { grid-template-columns: 48px minmax(0, 1fr); } .chapter-link .m { grid-column: 2; } }

/* ---------- chapter ---------- */
.hit-page .post-hero { position: relative; overflow: hidden; }
.chapter-num { position: absolute; right: max(16px, 4vw); top: clamp(24px, 4vw, 48px); font-family: var(--mono); font-size: clamp(120px, 22vw, 320px); line-height: .8; color: transparent; -webkit-text-stroke: 1.5px rgba(232,87,42,.45); pointer-events: none; user-select: none; }
.hit-page .post-title { max-width: 12ch; position: relative; }
.hit-page .post-hero-inner { padding-bottom: clamp(56px, 8vw, 96px); }
.hit-page .post-body > p.lead::first-letter { color: var(--ember); }
.hit-page .post-body ul.points { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 12px; }
.hit-page .post-body ul.points li { font-size: 19px; line-height: 1.6; color: var(--ink-soft); padding-left: 30px; position: relative; }
.hit-page .post-body ul.points li::before { content: ""; position: absolute; left: 0; top: .78em; width: 16px; height: 2px; background: var(--ember); }
.hit-page .post-body ul.points strong { color: var(--peat); }
.hit-pull { margin: 1.6em 0 1.8em; padding: 0 0 0 22px; border-left: 3px solid var(--ember); font-size: clamp(25px, 2.8vw, 34px); line-height: 1.18; font-weight: 600; letter-spacing: -.025em; color: var(--peat); text-wrap: balance; }
.hit-page .support { background: #fff; margin: 2em 0 0; }
.hit-src { font-size: 14px; color: var(--ink-muted); }

/* the interactive moment */
.moment { margin: 2.2em 0 2.4em; background: var(--peat); color: var(--mist); border-radius: 22px; padding: clamp(20px, 3vw, 30px); display: grid; gap: 16px; position: relative; overflow: hidden; box-shadow: 0 30px 60px -36px rgba(0,0,0,.6); }
.moment .k { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--dawn); }
.moment .cap { margin: 0; font-size: 17px; line-height: 1.45; color: var(--on-dark-soft); min-height: 1.45em; transition: opacity .4s; }
.moment .cap.fade { opacity: 0; }
.moment .private { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.moment canvas { width: 100%; height: 220px; display: block; border-radius: 12px; background: rgba(236,239,234,.03); }
.mbtn { appearance: none; border: 1px solid rgba(236,239,234,.25); background: rgba(236,239,234,.04); color: var(--mist); border-radius: 999px; min-height: 44px; padding: 10px 18px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: border-color .3s, background .3s, transform .2s; }
.mbtn:hover { border-color: var(--ember); }
.mbtn:active { transform: scale(.97); }
.mbtn.ember { background: var(--ember); border-color: var(--ember); color: var(--peat); }
.mbtn:focus-visible, .chip-t:focus-visible, .opt:focus-visible { outline: 2px solid var(--dawn); outline-offset: 3px; }
.mrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mlink { background: none; border: 0; color: var(--on-dark-muted); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 8px 4px; }

/* swap */
.swap-stage { position: relative; height: 230px; display: grid; place-items: center; }
.swap-core { width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; text-align: center; padding: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dawn);
  background: radial-gradient(circle, rgba(242,193,78,.18), rgba(242,193,78,.02) 70%); box-shadow: 0 0 0 1px rgba(242,193,78,.4), 0 0 40px rgba(242,193,78,.18); animation: corepulse 4s ease-in-out infinite; }
@keyframes corepulse { 50% { box-shadow: 0 0 0 1px rgba(242,193,78,.6), 0 0 60px rgba(242,193,78,.3); } }
.swap-ring { position: absolute; inset: 0; margin: auto; width: 216px; height: 216px; border-radius: 50%; border: 1px dashed rgba(143,193,187,.35); animation: spin 30s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.swap-word { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); font-weight: 800; font-size: clamp(24px, 4vw, 34px); letter-spacing: -.02em; color: var(--ember); transition: opacity .45s, transform .45s, filter .45s; white-space: nowrap; }
.swap-word.out { opacity: 0; transform: translate(-50%, -14px); filter: blur(6px); }
.swap-trail { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); justify-content: center; min-height: 18px; }

/* check */
.check { display: grid; gap: 10px; }
.check-q { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: rgba(236,239,234,.04); border: 1px solid rgba(236,239,234,.08); }
.check-q p { margin: 0; font-size: 17px; line-height: 1.4; color: var(--mist); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { appearance: none; border: 1px solid rgba(236,239,234,.22); background: transparent; color: var(--on-dark-soft); border-radius: 999px; padding: 8px 14px; min-height: 40px; font-size: 15px; cursor: pointer; transition: all .3s; font-family: inherit; }
.opt[aria-pressed="true"] { background: var(--lough); border-color: var(--lough-light); color: var(--mist); }
.opt.hard[aria-pressed="true"] { background: rgba(232,87,42,.85); border-color: var(--ember); color: var(--peat); }
.check-out { margin: 0; padding: 16px; border-radius: 14px; background: rgba(242,193,78,.1); color: var(--mist); font-size: 18px; line-height: 1.45; }
.check-out[hidden] { display: none; }

/* line vs path */
.lines { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lines figure { margin: 0; padding: 14px; border-radius: 14px; background: rgba(236,239,234,.04); display: grid; gap: 8px; }
.lines svg { width: 100%; height: 120px; overflow: visible; }
.lines figcaption { font-size: 15px; line-height: 1.4; color: var(--on-dark-soft); }
.lines figcaption b { display: block; font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dawn); margin-bottom: 4px; }
.draw { stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); transition: stroke-dashoffset 2.6s cubic-bezier(.65,0,.35,1); }
.moment.in .draw { stroke-dashoffset: 0; }
.meal { opacity: 0; transition: opacity .5s; }
.moment.in .meal { opacity: 1; }
@media (max-width: 560px) { .lines { grid-template-columns: 1fr; } }

/* loop */
.loop-svg { width: 100%; max-width: 420px; margin: 0 auto; display: block; overflow: visible; }
.loop-svg text { font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; fill: var(--mist); }
.loop-svg .node { fill: #1f2b26; stroke: rgba(143,193,187,.5); transition: all 1s; }
.loop-svg .node.shame { stroke: rgba(232,87,42,.7); }
.loop-svg .shame-g { transition: transform 1.6s cubic-bezier(.2,.7,.2,1), opacity 1.6s; transform-box: fill-box; transform-origin: center; }
.loop-svg.spoken .shame-g { transform: scale(.55); opacity: .45; }
.loop-svg .spoken-g { opacity: 0; transition: opacity 1.4s .6s; }
.loop-svg.spoken .spoken-g { opacity: 1; }

/* steadier */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-t { appearance: none; border: 1px solid rgba(143,193,187,.35); background: transparent; color: var(--on-dark-soft); border-radius: 999px; padding: 8px 14px; min-height: 40px; font-size: 15px; cursor: pointer; font-family: inherit; transition: all .4s; }
.chip-t[aria-pressed="true"] { background: rgba(143,193,187,.18); border-color: var(--lough-light); color: var(--mist); box-shadow: 0 0 18px rgba(143,193,187,.25); }

/* food noise */
.noise-box { position: relative; height: 260px; border-radius: 14px; background: rgba(236,239,234,.03); overflow: hidden; }
.noise-word { position: absolute; transform: translate(-50%, -50%); font-family: "JetBrains Mono", monospace; font-size: 13px; letter-spacing: .06em; color: var(--mist); white-space: nowrap; pointer-events: none; }
.noise-quiet { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; font-size: clamp(20px, 3vw, 28px); font-weight: 600; letter-spacing: -.02em; color: var(--dawn); opacity: 0; pointer-events: none; }
.vol { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.vol input[type=range] { width: 100%; accent-color: var(--ember); height: 28px; }

/* trends board */
.board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.board section { border-radius: 14px; padding: 16px; background: rgba(236,239,234,.04); display: grid; gap: 10px; align-content: start; border-top: 3px solid var(--c, var(--lough-light)); }
.board h4 { margin: 0; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--c, var(--lough-light)); }
.board ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.board li { font-size: 16px; color: var(--mist); display: flex; gap: 10px; align-items: baseline; }
.board li span { font-family: var(--mono); font-size: 11px; color: var(--on-dark-muted); min-width: 2.4ch; }
.board p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--on-dark-soft); }
@media (max-width: 560px) { .board { grid-template-columns: 1fr; } }

/* the question at the end */
.hit-end { padding: clamp(64px, 9vw, 120px) 0; text-align: center; position: relative; overflow: hidden; }
.hit-end .mark { width: 64px; height: 64px; margin: 0 auto 22px; display: block; animation: breathe 8s ease-in-out infinite; }
.hit-end .k { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--dawn); }
.hit-end h2 { font-size: clamp(34px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -.035em; max-width: 18ch; margin: 18px auto 30px; text-wrap: balance; }
.hit-end .btns { justify-content: center; }
.next-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; text-decoration: none; color: var(--peat); padding: clamp(24px, 3vw, 34px); border-radius: 22px; background: #fff; box-shadow: 0 20px 50px -34px rgba(0,0,0,.4); transition: transform .4s; }
.next-card:hover { transform: translateY(-3px); color: var(--peat); }
.next-card .mono { color: var(--ember); font-size: 11px; }
.next-card strong { display: block; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.05; letter-spacing: -.03em; margin: 8px 0; }
.next-card em { color: var(--lough); }
.next-card .arrow { font-size: 34px; color: var(--ember); }
.hit-more { padding: clamp(48px, 7vw, 88px) 0; display: grid; gap: 18px; }
.hit-more .back { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); text-decoration: none; }
.hit-more .back:hover { color: var(--ember); }

@media (prefers-reduced-motion: reduce) {
  .swap-core, .swap-ring, .hit-end .mark { animation: none; }
  .draw { transition: none; stroke-dashoffset: 0; }
  .meal { opacity: 1; transition: none; }
}

.ukstats strong { font-size: clamp(34px, 5vw, 48px); line-height: 1; letter-spacing: -.03em; color: var(--mist); font-weight: 800; }
