/* CFB27 Bible — The Gameday Wall.
   Street-poster wood type fused with CFB Saturday: daylight postered wall on
   the landing, the same grammar reversed out of black for night reading.
   Tokens (see scripts/SITE_DESIGN.md):
   paper #f2f0e6 · worn #e6e2d6 · yellow #ffd400 · ink #111111 · night #141414
   night-panel #1d1c19 · night-line #35322b · red #ff4a1f · kraft #dbc89a ·
   muted #a8a49a. Display: Big Shoulders Display. Text: Libre Franklin. */

:root {
    --paper: #f2f0e6;
    --worn: #e6e2d6;
    --yellow: #ffd400;
    --ink: #111111;
    --night: #141414;
    --night-panel: #1d1c19;
    --night-line: #35322b;
    --red: #ff4a1f;
    --kraft: #dbc89a;
    --muted: #a8a49a;
    --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
    --text: "Libre Franklin", -apple-system, "Segoe UI", sans-serif;
    --beat: 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

* {box-sizing: border-box;}
html {scroll-behavior: smooth;}
body {
    margin: 0; font-family: var(--text); font-size: 16px; line-height: 1.6;
    overflow-x: hidden;
}
body.day {background: var(--paper); color: var(--ink);}
body.night {background: var(--night); color: var(--paper);}

/* faint ink-screen grain on the daylight wall only */
body.day::before {
    content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 3;
    opacity: 0.05; mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {color: inherit; text-decoration: none;}
a:focus-visible, .search:focus-visible {
    outline: 2px solid var(--yellow); outline-offset: 2px;
}
.wrap {max-width: 1120px; margin: 0 auto; padding: 0 24px;}

/* ---- shared vocabulary ------------------------------------------------- */
.shout, .band, .stamp, .tab, .chip-kick, .capline, h4 {
    font-family: var(--display); text-transform: uppercase;
}
.capline {
    font-weight: 600; font-size: 0.95rem; letter-spacing: 0.05em;
}

/* rubber stamps, not badges */
.stamp {
    display: inline-block; padding: 1px 8px 0; border: 2px solid currentColor;
    font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em;
    transform: rotate(-3deg); white-space: nowrap;
}
.stamp.new {background: var(--red); border-color: var(--red); color: var(--ink);}
.stamp.upd {color: var(--kraft); border-width: 1.5px;}
body.day .stamp.upd {color: #8a7340;}

/* red band = primary action; bordered band = secondary */
.band {
    display: inline-block; padding: 13px 26px 11px;
    font-size: 1.25rem; font-weight: 700; letter-spacing: 0.04em;
    transform: skewX(-6deg); transition: transform var(--beat), background var(--beat), color var(--beat);
}
.band > span {display: inline-block; transform: skewX(6deg);}
.band.primary {background: var(--red); color: #fff;}
.band.primary:hover {background: var(--ink); color: var(--yellow); transform: skewX(-6deg) rotate(-1deg);}
.band.ghost {border: 2px solid var(--ink); color: var(--ink);}
.band.ghost:hover {background: var(--ink); color: var(--paper); transform: skewX(-6deg) rotate(-1deg);}
body.night .band.ghost {border-color: var(--paper); color: var(--paper);}
body.night .band.ghost:hover {background: var(--paper); color: var(--ink);}

/* ---- top nav: the black rail ------------------------------------------- */
.topnav {
    background: var(--ink); color: var(--paper); position: relative; z-index: 4;
}
.topnav .wrap {
    display: flex; align-items: stretch; gap: 6px; min-height: 58px;
}
.wordmark {
    font-family: var(--display); font-weight: 800; font-size: 1.5rem;
    text-transform: uppercase; letter-spacing: 0.02em; color: var(--yellow);
    display: flex; align-items: center; margin-right: auto;
}
.wordmark span {color: var(--paper); margin-left: 8px; font-weight: 600;}
.topnav a.navlink {
    font-family: var(--display); font-weight: 700; font-size: 1.05rem;
    text-transform: uppercase; letter-spacing: 0.06em;
    display: flex; align-items: center; padding: 0 18px;
    transition: background var(--beat), color var(--beat);
}
.topnav a.navlink:hover {background: var(--paper); color: var(--ink);}
.topnav a.navlink.active {background: var(--yellow); color: var(--ink);}

/* ---- landing: the daylight wall ---------------------------------------- */
.hero {position: relative; overflow: hidden; padding-bottom: 34px;}
.swath {
    position: relative; background: var(--yellow); transform: rotate(-2.5deg);
    width: 112%; margin: 30px -6% 0; padding: 30px 6% 40px;
    box-shadow: 0 4px 24px rgba(17, 17, 17, 0.18);
}
/* silkscreen grain over the whole pull */
.swath::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    opacity: 0.12; mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}
.swath-inner {
    max-width: 1120px; margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-areas: "l1 side" "l2 l2"; gap: 6px 40px;
    align-items: center;
}
.shout {display: contents; margin: 0;}
.shout span {
    font-family: var(--display); font-weight: 900; text-transform: uppercase;
    line-height: 0.86; letter-spacing: -0.01em; color: var(--ink);
    -webkit-mask-image: var(--ink-mask); mask-image: var(--ink-mask);
}
.shout .l1 {grid-area: l1; font-size: clamp(2.9rem, 8.4vw, 7rem);}
.shout .l2 {
    grid-area: l2; font-size: clamp(3.4rem, 15.5vw, 13.5rem);
    white-space: nowrap; justify-self: start; margin-left: 26%;
}
:root {
    --ink-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='2'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9 9 9 -11 0'/%3E%3C/filter%3E%3Crect width='220' height='220' fill='black' fill-opacity='0.8'/%3E%3Crect width='220' height='220' filter='url(%23m)'/%3E%3C/svg%3E");
}
.hero-side {display: flex; flex-direction: column; gap: 20px; align-items: flex-start; grid-area: side;}
.dek {
    font-family: var(--display); font-weight: 600; font-size: 1.15rem;
    line-height: 1.45; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--ink); max-width: 30rem; margin: 0;
}
.dek b {font-weight: 800; background: var(--ink); color: var(--yellow); padding: 0 6px;}
.cta-row {display: flex; gap: 14px; flex-wrap: wrap;}

.hero-plate {
    max-width: 1120px; margin: -6px auto 0; padding: 0 24px;
    display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px;
}
.hero-art-wrap {
    grid-column: 1; transform: rotate(1.4deg);
    filter: drop-shadow(6px 10px 16px rgba(17, 17, 17, 0.35));
}
.hero-art-paper {
    line-height: 0; border: 6px solid #fff; background: #fff;
    clip-path: polygon(0.5% 0.9%, 99.7% 0%, 100% 99.2%, 0.2% 100%);
}
.hero-art {width: 100%; height: auto; display: block;}
.hero-claim {
    grid-column: 2; align-self: center;
    font-size: 1.05rem; line-height: 1.65; color: var(--ink); max-width: 30rem;
}
.hero-claim p {margin: 0 0 12px;}

/* proof band: the taped-up ticker */
.proof {
    background: var(--ink); color: var(--paper); margin-top: 8px;
    font-family: var(--display); font-weight: 700; font-size: 1.05rem;
    text-transform: uppercase; letter-spacing: 0.08em;
}
.proof .wrap {padding-top: 12px; padding-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px 26px;}
.proof b {color: var(--yellow); font-weight: 800;}

/* landing sections */
.land-sec {margin-top: 64px;}
.sec-h {
    font-family: var(--display); font-weight: 900; text-transform: uppercase;
    font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 0.95;
    letter-spacing: -0.005em; margin: 0 0 10px;
    -webkit-mask-image: var(--ink-mask); mask-image: var(--ink-mask);
}
.sec-h .flip {background: var(--ink); color: var(--yellow); padding: 0 10px;}
.sec-sub {font-size: 1rem; color: #4c4941; line-height: 1.65; max-width: 44rem; margin: 0 0 24px;}
.sec-sub .hl {background: var(--yellow); padding: 0 4px; font-weight: 600; color: var(--ink);}

/* fresh stubs */
.sweep-note {margin: 0 0 18px;}
.stubs {border-top: 2px solid var(--ink);}
.stub {
    display: flex; align-items: center; gap: 16px; padding: 12px 8px;
    border-bottom: 2px solid var(--ink); font-weight: 600; font-size: 1.02rem;
    transition: background var(--beat), color var(--beat);
}
.stub:hover {background: var(--ink); color: var(--paper);}
.stub .stamp {flex-shrink: 0;}
.stub-cat {
    margin-left: auto; flex-shrink: 0; font-family: var(--display);
    font-weight: 600; font-size: 0.85rem; text-transform: uppercase;
    letter-spacing: 0.08em; color: #6b675d;
}
.stub:hover .stub-cat {color: var(--kraft);}

/* chapter posters: the wall itself */
.chap-grid {display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;}
.chap-grid > * {min-width: 0;}
.chap-card {
    position: relative; padding: 16px 16px 14px; min-height: 168px;
    display: flex; flex-direction: column; overflow: hidden;
    transition: transform var(--beat), box-shadow var(--beat);
    box-shadow: 3px 4px 0 rgba(17, 17, 17, 0.22);
}
.chap-card:nth-child(4n+1) {background: var(--ink); color: var(--paper); transform: rotate(-0.7deg);}
.chap-card:nth-child(4n+2) {background: var(--yellow); color: var(--ink); transform: rotate(0.5deg);}
.chap-card:nth-child(4n+3) {background: var(--paper); color: var(--ink); border: 2px solid var(--ink); transform: rotate(-0.4deg);}
.chap-card:nth-child(4n) {background: var(--red); color: var(--ink); transform: rotate(0.8deg);}
.chap-card:hover {transform: rotate(0deg) translateY(-3px); box-shadow: 6px 9px 0 rgba(17, 17, 17, 0.3);}
.chap-no {
    font-family: var(--display); font-weight: 900; font-size: 2.9rem;
    line-height: 0.85; letter-spacing: -0.02em;
}
.chap-card:nth-child(4n+1) .chap-no {color: var(--yellow);}
.chap-name {
    font-family: var(--display); font-weight: 800; font-size: 1.35rem;
    line-height: 0.95; text-transform: uppercase; margin-top: 6px;
    text-wrap: balance;
}
.chap-count {
    font-family: var(--display); font-weight: 600; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 0.08em; margin-top: auto;
    padding-top: 12px;
}
.chap-card:nth-child(4n+1) .chap-count {color: var(--kraft);}

/* start-here featured cards */
.feat-grid {display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;}
.feat-grid > * {min-width: 0;}
.feat {
    background: #fff; border: 2px solid var(--ink); display: flex;
    flex-direction: column; transition: transform var(--beat), box-shadow var(--beat);
    box-shadow: 4px 5px 0 rgba(17, 17, 17, 0.22);
}
.feat:hover {transform: translateY(-3px) rotate(-0.5deg); box-shadow: 7px 10px 0 rgba(17, 17, 17, 0.3);}
.feat-thumb {
    background: var(--yellow); border-bottom: 2px solid var(--ink);
    padding: 14px 14px 10px; overflow: hidden;
}
.feat-thumb .big {
    font-family: var(--display); font-weight: 900; font-size: 2.1rem;
    line-height: 0.88; text-transform: uppercase; color: var(--ink);
    letter-spacing: -0.01em; white-space: nowrap;
}
.feat-kick {
    display: block; font-family: var(--display); font-weight: 700;
    font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--ink); margin-bottom: 4px;
}
.feat-body {padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1;}
.feat-title {
    font-family: var(--display); font-weight: 800; font-size: 1.35rem;
    line-height: 1; text-transform: uppercase;
}
.feat-sum {font-size: 0.92rem; line-height: 1.55; color: #4c4941; flex: 1;}
.feat-go {
    font-family: var(--display); font-weight: 800; font-size: 1rem;
    text-transform: uppercase; letter-spacing: 0.06em; color: var(--red);
}
.feat:hover .feat-go {color: var(--ink);}

/* creators close */
.creators {
    background: var(--ink); color: var(--paper); margin-top: 72px;
    padding: 56px 0 60px;
}
.creators .sec-h {color: var(--paper);}
.creators .sec-h .flip {background: var(--yellow); color: var(--ink);}
.creators p {color: #c9c5ba; max-width: 46rem; font-size: 1.02rem; line-height: 1.7; margin: 0;}
.creators b {color: var(--yellow); font-weight: 600;}

footer {padding: 26px 0 34px;}
body.day footer {border-top: 2px solid var(--ink); margin-top: 0;}
body.night footer {border-top: 1px solid var(--night-line); margin-top: 56px;}
.foot-line {
    font-family: var(--display); font-weight: 600; font-size: 0.85rem;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
body.day .foot-line {color: #6b675d;}

/* ---- browse: the wall at night ----------------------------------------- */
.mast {margin: 38px 0 6px;}
.mast-title {
    font-family: var(--display); font-weight: 900; text-transform: uppercase;
    font-size: clamp(2.4rem, 6vw, 4rem); line-height: 0.92; letter-spacing: -0.005em;
    -webkit-mask-image: var(--ink-mask); mask-image: var(--ink-mask);
}
.mast-title .flip {background: var(--yellow); color: var(--ink); padding: 0 10px;}
.mast-meta {
    font-family: var(--display); font-weight: 600; font-size: 0.95rem;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
    margin-top: 10px;
}
.mast-meta b {color: var(--kraft); font-weight: 800;}

.search {
    width: 100%; padding: 13px 16px; margin: 20px 0 18px;
    background: var(--night-panel); border: 2px solid var(--night-line);
    color: var(--paper); font: inherit; font-size: 1rem;
}
.search::placeholder {color: var(--muted);}
.search:focus {outline: none; border-color: var(--yellow);}

.sweep {
    background: var(--night-panel); border: 1px solid var(--night-line);
    padding: 16px 18px 6px; margin: 4px 0 30px; transform: rotate(-0.7deg);
}
.sweep-head {
    font-family: var(--display); font-weight: 800; font-size: 1.15rem;
    text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px;
}
.sweep-head em {font-style: normal; background: var(--yellow); color: var(--ink); padding: 0 6px;}
.sweep-head .meta {margin-left: 10px;}
.sweep-row {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; padding: 7px 0; font-weight: 600; font-size: 0.98rem;
    border-top: 1px solid var(--night-line);
}
.sweep-row:hover {color: var(--yellow);}

/* sticky chapter tab rail */
.tabs {
    position: sticky; top: 0; z-index: 5; background: var(--ink);
    margin: 8px -24px 0; padding: 0 24px;
    display: flex; overflow-x: auto; scrollbar-width: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.tabs::-webkit-scrollbar {display: none;}
.tab {
    flex-shrink: 0; padding: 12px 16px 10px; font-weight: 700;
    font-size: 1rem; letter-spacing: 0.05em; color: var(--muted);
    transition: background var(--beat), color var(--beat);
}
.tab b {font-weight: 800; margin-right: 6px; color: var(--kraft);}
.tab:hover {color: var(--paper);}
.tab.on {background: var(--yellow); color: var(--ink);}
.tab.on b {color: var(--ink);}

/* chapter sections — each behind its oversized cropped numeral */
.chapter {
    margin-top: 46px; scroll-margin-top: 66px; position: relative;
}
.chapter::before {
    content: attr(data-no); position: absolute; top: -52px; right: -20px;
    font-family: var(--display); font-weight: 900; font-size: 11rem;
    line-height: 1; color: rgba(242, 240, 230, 0.05); pointer-events: none;
    transform: rotate(-2deg);
}
.chap-head {display: flex; align-items: baseline; gap: 14px;}
.chap-head-no {
    font-family: var(--display); font-weight: 900; font-size: 2.6rem;
    line-height: 0.85; color: var(--yellow); letter-spacing: -0.02em;
}
.chap-head-name {
    font-family: var(--display); font-weight: 800; font-size: 1.7rem;
    line-height: 0.9; text-transform: uppercase;
}
.chap-head .meta {margin-left: auto;}
.meta {
    font-family: var(--display); font-weight: 600; font-size: 0.82rem;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.chap-blurb {font-size: 0.95rem; color: var(--muted); margin: 8px 0 4px; max-width: 44rem;}

.row {
    display: block; padding: 13px 12px 14px; margin: 0 -12px;
    border-top: 1px solid var(--night-line);
    transition: background var(--beat), color var(--beat);
}
.row:first-of-type {margin-top: 10px;}
.row:hover {background: var(--paper); color: var(--ink);}
.row-head {display: flex; justify-content: space-between; align-items: baseline; gap: 14px;}
.row-title {font-size: 1.05rem; font-weight: 700;}
.row-meta {white-space: nowrap; flex-shrink: 0; display: flex; gap: 8px; align-items: baseline;}
.row:hover .meta {color: #6b675d;}
.row-sum {display: block; font-size: 0.9rem; color: var(--muted); line-height: 1.55; max-width: 48rem; margin-top: 3px;}
.row:hover .row-sum {color: #4c4941;}

/* ---- article: the reading room ------------------------------------------ */
.crumb {margin: 30px 0 14px;}
.crumb a:hover {color: var(--yellow);}
.chip-kick {
    display: inline-block; background: var(--yellow); color: var(--ink);
    font-weight: 800; font-size: 0.95rem; letter-spacing: 0.1em;
    padding: 3px 12px 2px; transform: skewX(-6deg); margin-bottom: 14px;
}
.chip-kick span {display: inline-block; transform: skewX(6deg);}
.article {display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 52px;}
h1 {
    font-family: var(--display); font-weight: 800; text-transform: uppercase;
    font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 0.94;
    letter-spacing: -0.005em; margin: 0 0 14px; text-wrap: balance;
}
.art-meta {display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-bottom: 22px;}
.chip {
    display: inline-block; padding: 2px 10px; border: 1px solid var(--night-line);
    font-family: var(--display); font-weight: 600; font-size: 0.78rem;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
    white-space: nowrap;
}

.otp {margin: 0 0 28px;}
.otp-label {
    display: inline-block; background: var(--yellow); color: var(--ink);
    font-family: var(--display); font-weight: 800; font-size: 0.8rem;
    letter-spacing: 0.14em; text-transform: uppercase;
    padding: 2px 10px 1px; transform: skewX(-6deg); margin-bottom: 8px;
}
.otp a {
    display: block; font-family: var(--display); font-weight: 700;
    font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--paper); padding: 3px 0; transition: color var(--beat);
}
.otp a b {color: var(--muted); font-weight: 600; margin-right: 8px;}
.otp a:hover {color: var(--yellow);}

.reader {max-width: 68ch; counter-reset: sec;}
.reader p, .reader li {font-size: 1.05rem; line-height: 1.75;}
.reader li {margin-bottom: 0.4rem;}
.reader h2 {
    font-family: var(--display); font-weight: 800; text-transform: uppercase;
    font-size: 1.6rem; line-height: 0.95; letter-spacing: 0.01em;
    margin: 2.4rem 0 0.8rem; scroll-margin-top: 66px; counter-increment: sec;
}
.reader h2::before {
    content: counter(sec, decimal-leading-zero); display: inline-block;
    background: var(--yellow); color: var(--ink); font-weight: 900;
    padding: 1px 8px 0; margin-right: 12px; transform: skewX(-6deg);
}
.reader h3 {font-size: 1.08rem; font-weight: 700; margin: 1.5rem 0 0.4rem;}
.reader strong {color: #fff;}
.reader code {
    font-family: ui-monospace, Consolas, monospace; font-size: 0.85em;
    background: var(--night-panel); border: 1px solid var(--night-line);
    padding: 0 5px;
}
.reader table {border-collapse: collapse; font-size: 0.92rem; display: block; overflow-x: auto;}
.reader th, .reader td {border: 1px solid var(--night-line); padding: 6px 12px;}
.reader th {
    background: var(--night-panel); font-family: var(--display);
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    font-size: 0.82rem;
}
.reader a {color: var(--kraft); text-decoration: underline; text-underline-offset: 3px;}
.reader a:hover {color: var(--yellow);}
.diagram {
    width: 100%; border: 1px solid var(--night-line); margin-bottom: 18px;
    display: block;
}

/* sources rail */
h4 {
    font-family: var(--display); font-weight: 800; font-size: 0.9rem;
    letter-spacing: 0.14em; color: var(--kraft); margin: 1.6rem 0 0.5rem;
}
.rail h4:first-child {margin-top: 0.5rem;}
.support {font-size: 0.85rem; color: var(--muted); line-height: 1.55; margin: 0 0 12px;}
.src {margin-bottom: 6px;}
.embed {
    position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
    background: var(--night-panel); border: 1px solid var(--night-line);
    margin-bottom: 8px;
}
.embed iframe {position: absolute; inset: 0; width: 100%; height: 100%; border: 0;}
.src-line {font-size: 0.88rem; line-height: 1.5; color: var(--muted);}
.src-line b {color: var(--paper);}
.src-line a {color: var(--kraft); text-decoration: underline; text-underline-offset: 2px;}
.src-line a:hover {color: var(--yellow);}
.ts-row {margin: 8px 0 20px;}
.ts {
    display: inline-block; padding: 2px 10px; margin: 0 5px 6px 0;
    font-family: var(--display); font-weight: 700; font-size: 0.82rem;
    letter-spacing: 0.05em; color: var(--kraft);
    border: 1px solid var(--night-line); white-space: nowrap;
    transition: color var(--beat), border-color var(--beat);
}
.ts:hover {color: var(--ink); background: var(--yellow); border-color: var(--yellow);}
.rel {display: block; border-top: 1px solid var(--night-line); padding: 10px 0;}
.rel-title {display: block; font-size: 0.95rem; font-weight: 600;}
.rel:hover .rel-title {color: var(--yellow);}
.rel .meta {margin-top: 2px;}

/* ---- the gate: where the teaser ends ------------------------------------ */
.gate {
    background: var(--night-panel); border: 2px solid var(--yellow);
    padding: 22px 24px 20px; margin: 30px 0 8px; max-width: 68ch;
    transform: rotate(-0.5deg);
}
.gate-head {
    font-family: var(--display); font-weight: 900; text-transform: uppercase;
    font-size: 1.7rem; line-height: 0.95; margin-bottom: 12px;
    color: var(--yellow);
}
.gate-list {margin-bottom: 18px;}
.gate-row {
    display: block; font-family: var(--display); font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em; font-size: 1rem;
    color: var(--paper); padding: 4px 0; border-top: 1px solid var(--night-line);
}
.gate-row b {color: var(--muted); font-weight: 600; margin-right: 10px;}
.gate-note {font-size: 0.85rem; color: var(--muted); margin-top: 14px; line-height: 1.5;}

/* ---- join / account ------------------------------------------------------ */
.join-grid {
    display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 48px; margin-top: 28px; align-items: start;
}
.join-pitch p {font-size: 1.05rem; line-height: 1.7; max-width: 54ch; margin: 0 0 16px;}
.join-list {list-style: none; padding: 0; margin: 0 0 24px;}
.join-list li {
    padding: 10px 0; border-top: 1px solid var(--night-line);
    font-size: 0.98rem; line-height: 1.6; color: var(--muted);
}
.join-list li b {color: var(--paper);}
.join-note {font-size: 0.85rem; color: var(--muted); line-height: 1.55; margin: 12px 0 0;}
.join-signin {
    background: var(--night-panel); border: 1px solid var(--night-line);
    padding: 20px 22px 22px; transform: rotate(0.5deg);
}
.signin-head {
    font-family: var(--display); font-weight: 800; text-transform: uppercase;
    font-size: 1.3rem; margin: 0 0 4px;
}
.signin-form {display: flex; flex-direction: column; gap: 12px; margin-top: 14px;}
.signin-form .search {margin: 0;}
.signin-btn {cursor: pointer; font-family: var(--display);
    text-transform: uppercase; background: none; align-self: flex-start;}
.signin-btn:disabled {opacity: 0.5; cursor: wait;}
#signin-msg a {color: var(--yellow);}

@media (max-width: 900px) {
    .join-grid {grid-template-columns: 1fr; gap: 28px;}
}

/* prev / next in chapter */
.pn {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    margin-top: 48px; max-width: 68ch;
}
.pn a {
    border: 2px solid var(--night-line); padding: 14px 16px;
    transition: border-color var(--beat), background var(--beat), color var(--beat);
}
.pn a:hover {background: var(--paper); color: var(--ink); border-color: var(--paper);}
.pn .dir {
    font-family: var(--display); font-weight: 800; font-size: 0.8rem;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--kraft);
    display: block; margin-bottom: 4px;
}
.pn a:hover .dir {color: var(--red);}
.pn .pn-title {font-weight: 600; font-size: 0.98rem;}
.pn a.next {text-align: right;}

/* hero route-draw: the one authored motion moment */
.hero-art .route {
    stroke-dasharray: 400; stroke-dashoffset: 400;
    animation: draw 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}
@keyframes draw {to {stroke-dashoffset: 0;}}

@media (prefers-reduced-motion: reduce) {
    html {scroll-behavior: auto;}
    * {transition: none !important; animation: none !important;}
    .hero-art .route {stroke-dashoffset: 0;}
}

/* ---- responsive --------------------------------------------------------- */
@media (max-width: 900px) {
    .swath {transform: rotate(-2deg); padding-top: 26px; padding-bottom: 30px;}
    .swath-inner {
        grid-template-columns: 1fr; gap: 14px;
        grid-template-areas: "l1" "l2" "side";
    }
    .shout .l2 {margin-left: 8%;}
    .chapter::before {font-size: 7rem; top: -30px;}
    .hero-plate {grid-template-columns: 1fr; gap: 18px; margin-top: 14px;}
    .hero-claim {grid-column: 1; max-width: none;}
    .chap-grid {grid-template-columns: repeat(2, 1fr); gap: 14px;}
    .feat-grid {grid-template-columns: 1fr;}
    .article {grid-template-columns: 1fr; gap: 12px;}
    .row-head {flex-direction: column; gap: 3px;}
    .row-meta {flex-wrap: wrap;}
    .chap-head {flex-wrap: wrap;}
    .chap-head .meta {margin-left: 0; width: 100%;}
    .pn {grid-template-columns: 1fr;}
    .pn a.next {text-align: left;}
    .topnav a.navlink {padding: 0 12px; font-size: 0.95rem;}
    .wordmark {font-size: 1.25rem;}
}
