/* Grounds for Reason — editorial design system. Fonts self-hosted (SIL OFL). No third-party requests. */
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader-opsz-normal.woff2") format("woff2-variations"), url("/assets/fonts/newsreader-opsz-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader-opsz-italic.woff2") format("woff2-variations"), url("/assets/fonts/newsreader-opsz-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-wght-normal.woff2") format("woff2-variations"), url("/assets/fonts/instrument-sans-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

@view-transition { navigation: auto; }

:root {
  --paper: #f3efe7; --paper-2: #ebe5d9; --ink: #17140f; --ink-2: #3f3a31; --muted: #7b7467; --rule: #d9d1c1;
  --accent: #a3341f; --night: #15130f; --night-ink: #ede7db; --night-muted: #a39b8c; --night-rule: #34302a;
  --line: rgba(23, 20, 15, .55);
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #12110e; --paper-2: #1b1915; --ink: #ede7db; --ink-2: #cfc7b8; --muted: #958d7e; --rule: #2e2b25; --accent: #e3795e; --night: #0b0a08; --night-rule: #2a2722; --line: rgba(237, 231, 219, .42); color-scheme: dark; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wrap { padding-inline: var(--gutter); max-width: 1440px; margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 60; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { top: 12px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header & progress ---------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); z-index: 50; }
.home .progress { display: none; }
.site-header { position: fixed; inset: 0 0 auto; z-index: 40; border-bottom: 1px solid transparent; transition: background .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease); view-transition-name: site-header; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.is-scrolled .site-header, .no-hero .site-header { background: color-mix(in srgb, var(--paper) 88%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: var(--rule); }
.is-hidden .site-header { transform: translateY(-100%); }
.wordmark { font: 500 1.16rem/1 var(--serif); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: baseline; gap: .5em; }
.wordmark i { width: .46em; height: .46em; border-radius: 50%; background: var(--accent); display: inline-block; transition: transform .6s var(--ease); }
.wordmark:hover i { transform: scale(1.5); }
.nav { display: flex; gap: clamp(16px, 2.4vw, 32px); font-size: .92rem; }
.nav a { text-decoration: none; color: var(--ink-2); position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a:hover { color: var(--ink); }
@media (max-width: 640px) { .nav .opt { display: none; } }

/* ---------- Type ---------- */
.eyebrow { font: 500 .86rem/1.4 var(--sans); color: var(--muted); margin: 0; letter-spacing: .01em; }
.eyebrow a { color: var(--muted); }
.title-xl { font: 360 clamp(3.4rem, 12vw, 11.5rem)/.88 var(--serif); letter-spacing: -0.05em; margin: 0; }
.title-l { font: 380 clamp(2.5rem, 6.4vw, 5.8rem)/.96 var(--serif); letter-spacing: -0.04em; margin: 0; }
.title-m { font: 400 clamp(2rem, 4.2vw, 3.6rem)/1 var(--serif); letter-spacing: -0.03em; margin: 0; }
.title-xl em, .title-l em, .title-m em { font-weight: 320; }
.lede { font: 400 clamp(1.2rem, 1.8vw, 1.5rem)/1.45 var(--serif); color: var(--ink-2); margin: 0; letter-spacing: -0.005em; }
.btn { display: inline-flex; align-items: center; gap: .7em; padding: 15px 24px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font: 500 .98rem/1 var(--sans); position: relative; overflow: hidden; isolation: isolate; }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform: translateY(101%); transition: transform .55s var(--ease); z-index: -1; }
.btn:hover::before { transform: none; }
.btn span { transition: transform .55s var(--ease); }
.btn:hover span { transform: translateX(5px); }
.link-arrow { display: inline-flex; align-items: baseline; gap: .5em; font: 500 .98rem/1.3 var(--sans); text-decoration: none; padding-bottom: 4px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .6s var(--ease); }
.link-arrow:hover { background-size: 0 1px; background-position: 100% 100%; }
.link-arrow span { display: inline-block; transition: transform .5s var(--ease); }
.link-arrow:hover span { transform: translateX(6px); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4.5vw, 60px); padding-bottom: 20px; position: relative; }
.sec-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform-origin: 0 50%; }
.js .sec-head::after { transform: scaleX(0); transition: transform 1.4s var(--ease-io); }
.js .sec-head.in::after { transform: none; }
.sec-head .eyebrow { max-width: 30em; text-align: right; }
@media (max-width: 700px) { .sec-head { flex-direction: column; align-items: start; } .sec-head .eyebrow { text-align: left; } }

/* Line reveal (CSS only) */
.ln { display: block; overflow: hidden; padding: .14em 0 .1em; margin: -.14em 0 -.1em; }
.ln > * { display: inline-block; transform: translateY(110%) rotate(2deg); transform-origin: 0 100%; animation: rise 1.3s var(--ease) forwards; }
.ln:nth-child(2) > * { animation-delay: .13s; }
.ln:nth-child(3) > * { animation-delay: .26s; }
@keyframes rise { to { transform: none; } }
.fade-late { opacity: 0; transform: translateY(14px); animation: fadeup 1.2s var(--ease) .55s forwards; }
@keyframes fadeup { to { opacity: 1; transform: none; } }
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Strata art (animated) ---------- */
.strata { width: 100%; height: 100%; display: block; overflow: visible; }
.strata path { fill: none; vector-effect: non-scaling-stroke; }
.strata .l { stroke: var(--line); stroke-width: .9; }
.strata .a { stroke-width: 2.2; }
.strata .depth { transition: transform 1.2s var(--ease); transform: translate3d(calc(var(--mx, 0) * var(--k, 0px)), calc(var(--my, 0) * var(--k, 0px)), 0); }
.strata .d0 { --k: 10px; } .strata .d1 { --k: 22px; } .strata .d2 { --k: 38px; }
.strata .w { animation: drift 16s var(--ease-io) infinite alternate; }
.strata .w:nth-child(3n+1) { animation-duration: 19s; animation-delay: -4s; }
.strata .w:nth-child(3n+2) { animation-duration: 23s; animation-delay: -9s; }
.strata .w:nth-child(4n) { animation-duration: 13s; animation-delay: -2s; }
@keyframes drift { from { transform: translate3d(-18px, -5px, 0); } to { transform: translate3d(18px, 6px, 0); } }
.js .strata path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s var(--ease-io) forwards; animation-delay: calc(.25s + var(--i, 0) * 45ms); }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; padding-top: clamp(120px, 18vh, 190px); overflow: hidden; }
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero .eyebrow { margin-bottom: clamp(20px, 3.5vh, 36px); }
.hero-foot { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px var(--gutter); margin-top: clamp(32px, 5vh, 56px); align-items: end; }
.hero-foot .lede { max-width: 30em; }
.hero-cta { justify-self: end; display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; }
.hero-art { position: relative; flex: 1 0 clamp(200px, 30vh, 360px); margin: clamp(40px, 7vh, 80px) -4% 0; pointer-events: none; will-change: transform; }
.hero-art .strata { position: absolute; inset: 0; height: 100%; }
@media (max-width: 820px) { .hero-foot { grid-template-columns: 1fr; } .hero-cta { justify-self: start; } }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 1px; height: 54px; z-index: 2; overflow: hidden; }
.scroll-cue span { position: absolute; inset: 0; background: var(--ink); animation: cue 2.4s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@media (max-width: 820px) { .scroll-cue { display: none; } }

/* ---------- Cards ---------- */
.cover, .thumb { display: block; position: relative; overflow: hidden; background: var(--paper-2); border-radius: 4px; }
.cover img, .thumb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.4s var(--ease); }
.cover { aspect-ratio: 5 / 3; }
.cover::after, .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--paper) 55%, transparent) 50%, transparent 70%); transform: translateX(-120%); transition: transform 1.2s var(--ease); }
a:hover .cover img, a:hover .thumb img { transform: scale(1.09) translateX(-2%); }
a:hover .cover::after, a:hover .thumb::after { transform: translateX(120%); }
.card-link { display: grid; gap: 18px; text-decoration: none; }
.card-body { display: grid; gap: 10px; }
.card-meta { font: 500 .84rem/1.4 var(--sans); color: var(--muted); }
.card-title { font: 400 clamp(1.45rem, 2.3vw, 2rem)/1.08 var(--serif); letter-spacing: -0.022em; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .7s var(--ease); width: fit-content; max-width: 100%; }
.card-link:hover .card-title { background-size: 100% 1px; }
.card-dek { font: 400 1.06rem/1.5 var(--serif); color: var(--ink-2); }
.card-foot { font: 500 .82rem/1.4 var(--sans); color: var(--muted); }
.card.lead .card-title { font-size: clamp(2rem, 3.8vw, 3.4rem); line-height: 1.02; letter-spacing: -0.032em; }
.card.lead .card-dek { font-size: clamp(1.1rem, 1.5vw, 1.3rem); max-width: 34em; }
.card.side .card-link { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); align-items: start; }
.card.side .card-dek, .card.small .card-dek { display: none; }

/* ---------- Home: latest ---------- */
.latest { padding: clamp(90px, 12vw, 170px) 0 clamp(70px, 9vw, 130px); }
.latest-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); }
.latest-grid.solo { grid-template-columns: minmax(0, 1fr); }
.latest-side { display: grid; align-content: start; gap: clamp(28px, 3vw, 44px); }
.latest-side .card + .card { padding-top: clamp(28px, 3vw, 44px); border-top: 1px solid var(--rule); }
@media (max-width: 900px) { .latest-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .card.side .card-link { grid-template-columns: 1fr; } }

/* ---------- Home: statement ---------- */
.statement { padding: clamp(100px, 15vw, 220px) 0; background: var(--paper-2); }
.statement p { font: 340 clamp(2rem, 4.8vw, 4.4rem)/1.1 var(--serif); letter-spacing: -0.035em; margin: 0; max-width: 19em; }
.statement p em { color: var(--accent); }
.js .split .word { opacity: .14; transition: opacity .7s var(--ease); }
.js .split .word.on { opacity: 1; }

/* ---------- Home: areas ---------- */
.areas { padding: clamp(90px, 12vw, 170px) 0; }
.area-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: clamp(28px, 4vw, 56px); }
.area-item a { display: grid; gap: 14px; text-decoration: none; }
.area-art { display: block; aspect-ratio: 16 / 7; overflow: hidden; border-radius: 4px; background: var(--paper-2); }
.area-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.area-item a:hover .area-art img { transform: scale(1.12); }
.area-name { font: 400 clamp(1.8rem, 3.4vw, 2.8rem)/1 var(--serif); letter-spacing: -0.03em; margin-top: 6px; }
.area-blurb { font: 400 1.08rem/1.5 var(--serif); color: var(--ink-2); max-width: 32em; }
.area-meta { font: 500 .84rem/1.4 var(--sans); color: var(--muted); }
.area-meta b { display: inline-block; margin-left: 6px; color: var(--ink); transition: transform .5s var(--ease); }
.area-item a:hover .area-meta b { transform: translateX(8px); }

/* ---------- Home: method ---------- */
.method { background: var(--night); color: var(--night-ink); padding: clamp(100px, 14vw, 190px) 0; }
.method .eyebrow { color: var(--night-muted); }
.method .title-l { max-width: 12em; margin-top: 22px; }
.method .intro { color: var(--night-muted); font: 400 clamp(1.1rem, 1.6vw, 1.3rem)/1.5 var(--serif); max-width: 34em; margin: 30px 0 0; }
.steps { list-style: none; margin: clamp(60px, 8vw, 110px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li { padding: 30px 30px 0 0; border-top: 1px solid var(--night-rule); position: relative; }
.steps li::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: #e3795e; transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.6s var(--ease-io) .3s; }
.steps li.in::before { transform: scaleX(1); }
.steps li + li { padding-left: 30px; }
.steps .n { font: italic 300 3.2rem/1 var(--serif); color: #e3795e; }
.steps h3 { font: 420 1.45rem/1.2 var(--serif); margin: 24px 0 10px; letter-spacing: -0.01em; }
.steps p { margin: 0; color: var(--night-muted); font-size: .98rem; line-height: 1.6; }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; gap: 40px 0; } .steps li:nth-child(odd) { padding-left: 0; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps li, .steps li + li { padding-left: 0; } }

/* ---------- Home: about ---------- */
.about { padding: clamp(100px, 13vw, 180px) 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px var(--gutter); }
.about-h { margin-top: 18px; }
.about .prose p { font: 400 1.22rem/1.62 var(--serif); color: var(--ink-2); margin: 0 0 1em; max-width: 34em; }
.about .prose p:first-child { font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.36; color: var(--ink); letter-spacing: -0.015em; }
.follow { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 34px; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: clamp(60px, 9vw, 110px) 0 40px; overflow: hidden; }
.footer-mark { font: 340 clamp(3.2rem, 13vw, 13rem)/.84 var(--serif); letter-spacing: -0.06em; margin: 0; }
.footer-mark span { display: inline-block; }
.js .footer-mark span { transform: translateY(40%); opacity: 0; transition: transform 1.4s var(--ease), opacity 1.4s var(--ease); }
.js .footer-mark span:nth-child(2) { transition-delay: .12s; }
.js .footer-mark.in span { transform: none; opacity: 1; }
.footer-mark i { color: var(--accent); font-style: normal; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; margin-top: clamp(32px, 5vw, 60px); font: 500 .86rem/1.6 var(--sans); color: var(--muted); }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer-row a { text-decoration: none; color: var(--ink-2); }
.footer-row a:hover { color: var(--ink); text-decoration: underline; }
.footer-row p { margin: 0; max-width: 40em; }

/* ---------- Archive & area pages ---------- */
.page-hero { padding: clamp(150px, 22vh, 230px) 0 clamp(40px, 6vw, 70px); }
.page-hero .title-l { margin-top: 22px; }
.filters { margin-top: clamp(36px, 5vw, 60px); display: grid; gap: 18px; }
.search input { width: 100%; max-width: 640px; font: 400 clamp(1.3rem, 2.2vw, 1.8rem)/1.2 var(--serif); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink); padding: 10px 0 12px; outline: none; border-radius: 0; }
.search input::placeholder { color: var(--muted); }
.search input:focus { border-bottom-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font: 500 .88rem/1 var(--sans); color: var(--ink-2); background: transparent; border: 1px solid var(--rule); border-radius: 999px; padding: 10px 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: border-color .3s, background .3s, color .3s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sw { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--area, var(--accent)); flex: none; }
.archive { padding: 0 0 clamp(80px, 10vw, 140px); }
.month + .month { margin-top: clamp(48px, 6vw, 80px); }
.month-name { font: 500 .9rem/1 var(--sans); color: var(--muted); margin: 0; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.month[hidden] { display: none; }
.arows { list-style: none; margin: 0; padding: 0; }
.arow a { display: grid; grid-template-columns: 180px minmax(0, 1fr) 13rem; gap: 18px var(--gutter); padding: 26px 0; border-bottom: 1px solid var(--rule); text-decoration: none; align-items: center; }
.thumb { aspect-ratio: 5 / 3; }
.arow-title { display: block; font: 400 clamp(1.35rem, 2.3vw, 2rem)/1.08 var(--serif); letter-spacing: -0.022em; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .7s var(--ease); width: fit-content; }
.arow a:hover .arow-title { background-size: 100% 1px; }
.arow-dek { display: block; margin-top: 8px; font: 400 1.02rem/1.5 var(--serif); color: var(--ink-2); max-width: 40em; }
.arow-meta { display: grid; gap: 2px; font: 500 .84rem/1.5 var(--sans); color: var(--muted); text-align: right; }
.arow[hidden] { display: none; }
.empty { font: 400 1.3rem/1.4 var(--serif); color: var(--muted); padding: 40px 0; }
@media (max-width: 820px) { .arow a { grid-template-columns: 120px minmax(0, 1fr); } .arow-meta { grid-column: 2; text-align: left; display: flex; flex-wrap: wrap; gap: 4px 14px; } }
@media (max-width: 480px) { .arow a { grid-template-columns: 1fr; } .arow-meta { grid-column: 1; } .thumb { display: none; } }
.area-hero { position: relative; padding: clamp(150px, 22vh, 230px) 0 clamp(50px, 7vw, 90px); overflow: hidden; }
.area-hero-art { position: absolute; inset: auto -4% -10% -4%; height: 70%; pointer-events: none; opacity: .9; }
.area-hero-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--paper) 10%, transparent 60%); z-index: 1; }
.area-hero .wrap { position: relative; z-index: 2; }
.area-hero .title-l { margin-top: 20px; }
.area-hero .lede { margin-top: 24px; max-width: 32em; }

/* ---------- Thread page ---------- */
.t-hero { position: relative; padding: clamp(130px, 20vh, 200px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--rule); overflow: hidden; }
.t-art { position: absolute; left: -4%; right: -4%; top: 0; height: 78%; pointer-events: none; view-transition-name: cover; }
.t-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 0%, var(--paper) 92%); }
.t-head { position: relative; z-index: 2; }
.tag { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.tag:hover { color: var(--accent); }
.t-head .eyebrow { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.t-head .topic { color: var(--muted); }
.t-head .title-l { margin-top: clamp(22px, 3vw, 34px); max-width: 15em; }
.t-head .lede { margin-top: clamp(22px, 3vw, 32px); max-width: 32em; font-style: italic; }
.t-meta { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: clamp(30px, 4vw, 44px) 0 0; font: 500 .88rem/1.5 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.t-meta a { color: var(--ink); }
.reading { position: relative; padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(50px, 7vw, 90px); }
.posts { max-width: 40rem; margin: 0 auto; }
.post { position: relative; padding: 0 0 clamp(34px, 4vw, 46px); }
.post + .post { padding-top: clamp(34px, 4vw, 46px); border-top: 1px solid var(--rule); }
.post .num { position: absolute; left: -6.4rem; width: 5rem; text-align: right; font: 500 .84rem/1.2 var(--sans); color: var(--muted); text-decoration: none; font-variant-numeric: tabular-nums; top: .4em; }
.post + .post .num { top: calc(clamp(34px, 4vw, 46px) + .4em); }
.post .num b { color: var(--ink); font-weight: 600; font-size: 1.02rem; }
.post .num .of { margin-left: 2px; }
.post .num:hover, .post .num:hover b { color: var(--accent); }
.post .num .copied { display: block; margin-top: 6px; font-size: .74rem; color: var(--accent); opacity: 0; transition: opacity .3s; }
.post .num.done .copied { opacity: 1; }
.post .text { font: 400 1.27rem/1.62 var(--serif); margin: 0; letter-spacing: -0.003em; overflow-wrap: break-word; }
.post.claim .text { font: 420 clamp(1.42rem, 2.1vw, 1.72rem)/1.42 var(--serif); letter-spacing: -0.012em; padding-left: 1.2rem; position: relative; }
.post.claim .text::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 2px; background: var(--accent); transform-origin: 50% 0; }
.js .post.claim .text::before { transform: scaleY(0); transition: transform 1.2s var(--ease-io) .25s; }
.js .post.claim.in .text::before { transform: none; }
.src { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-top: 16px; font: 500 .84rem/1.45 var(--sans); color: var(--muted); text-decoration: none; max-width: 100%; }
.src .h { color: var(--ink); background: linear-gradient(var(--rule), var(--rule)) 0 100% / 100% 1px no-repeat; transition: color .3s; }
.src .p { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 24em; }
.src:hover .h { color: var(--accent); }
.post:target .text { animation: landed 2.8s var(--ease) .3s both; border-radius: 3px; }
@keyframes landed { 0% { background-color: color-mix(in srgb, var(--accent) 20%, transparent); box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 20%, transparent); } 100% { background-color: transparent; box-shadow: 0 0 0 10px transparent; } }
.js .post[data-reveal] { transform: translateY(18px); }
@media (max-width: 1120px) {
  .post .num { position: static; display: block; width: auto; text-align: left; margin-bottom: 10px; }
  .post .num .copied { display: inline; margin: 0 0 0 10px; }
}
@media (max-width: 560px) { body { font-size: 16px; } .post .text { font-size: 1.16rem; } .src .p { max-width: 15em; } }
.minimap { position: fixed; right: clamp(16px, 2.4vw, 40px); top: 50%; transform: translateY(-50%); z-index: 30; display: none; flex-direction: column; justify-content: space-between; height: min(62vh, var(--h, 400px)); }
.minimap a { display: block; width: 14px; height: 2px; background: var(--rule); transition: width .4s var(--ease), background .4s; position: relative; }
.minimap a.c { background: color-mix(in srgb, var(--accent) 55%, var(--rule)); }
.minimap a::before { content: ""; position: absolute; inset: -3px -6px; }
.minimap a:hover { width: 22px; background: var(--ink); }
.minimap a[aria-current="true"] { width: 30px; background: var(--accent); }
.minimap .tip { position: absolute; right: 40px; font: 600 .78rem/1 var(--sans); color: var(--accent); white-space: nowrap; transform: translateY(-50%); pointer-events: none; transition: top .4s var(--ease); }
@media (min-width: 1260px) { .js .minimap { display: flex; } }
.t-end { max-width: 40rem; margin: clamp(30px, 5vw, 60px) auto 0; padding-top: 24px; border-top: 1px solid var(--ink); }
.more { padding: clamp(70px, 9vw, 120px) 0; background: var(--paper-2); }
.more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(28px, 3vw, 44px); }
.more .cover { background: var(--paper); }

.nf { min-height: 80svh; }
.nf .lede { margin: 28px 0 36px; max-width: 28em; }

/* View transitions between pages */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .55s; animation-timing-function: var(--ease); }
::view-transition-old(cover), ::view-transition-new(cover) { animation-duration: .7s; animation-timing-function: var(--ease); height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ln > *, .fade-late { transform: none !important; opacity: 1 !important; }
  .js [data-reveal], .js .split .word, .js .footer-mark span { opacity: 1 !important; transform: none !important; }
  .js .strata path { stroke-dashoffset: 0 !important; }
  .js .sec-head::after, .steps li::before, .js .post.claim .text::before { transform: none !important; }
}
@media print {
  .site-header, .minimap, .progress, .site-footer, .hero-art, .t-art, .more { display: none !important; }
  body { background: #fff; color: #000; }
  .ln > *, .fade-late, [data-reveal] { transform: none !important; opacity: 1 !important; animation: none !important; }
}
