/* DeepEnd: a magazine stand. Every post is an issue.
   Dark is the shop at night; "lights on" is the daytime shop. Covers never change with the lights.
   All cover type is in cqw so one cover scales from a thumbnail to a full spread.

   Cover options, set per post in Ghost:
     feature image            cover art (no image gives a type cover)
     og_title / Facebook title  short cover headline (falls back to the post title)
     custom_excerpt           the cover line
     internal tag #ink-lime, #ink-red, #ink-pink, #ink-plum, #ink-black   masthead and line colour */

:root {
  --wall: #111114;
  --wall-2: #18181c;
  --ink: #efece4;
  --mute: #a4a3a8;
  --rule: #2e2e34;
  --paper: #141417;
  --pop: #ff4b3e;
  --ledge-1: #55555f;
  --ledge-2: #232329;
  --led: 0 0 26px 3px rgba(255, 214, 160, .34);
  --spot: rgba(255, 216, 170, .13);
  --peg: rgba(255, 255, 255, .045);
  --cover-shadow: 0 2px 2px rgba(0,0,0,.6), 10px 16px 30px rgba(0,0,0,.6);
  --cover-shadow-up: 0 4px 4px rgba(0,0,0,.6), 20px 34px 54px rgba(0,0,0,.7);

  --mast: "Bodoni Moda", Didot, Georgia, serif;
  --poster: "Anton", Impact, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --read: "Literata", Georgia, serif;
  --gutter: clamp(16px, 3.4vw, 46px);
  --column: 680px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --wall: #e8e6df;
  --wall-2: #dedbd2;
  --ink: #131316;
  --mute: #55545b;
  --rule: #c8c5bb;
  --paper: #fbf9f3;
  --pop: #d42a20;
  --ledge-1: #2a2a30;
  --ledge-2: #101013;
  --led: 0 0 0 0 transparent;
  --spot: transparent;
  --peg: rgba(0, 0, 0, .05);
  --cover-shadow: 0 1px 2px rgba(0,0,0,.3), 8px 12px 22px rgba(0,0,0,.24);
  --cover-shadow-up: 0 2px 3px rgba(0,0,0,.3), 16px 26px 40px rgba(0,0,0,.32);
  color-scheme: light;
}

@view-transition { navigation: auto; }

/* Bodoni's display cut loses its hairlines on dark paper, so hold it at a sturdier optical size */
h1, h2, h3, blockquote, .name { font-variation-settings: "opsz" 13 !important; }
.cover .mh { font-variation-settings: "opsz" 30 !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--wall); color: var(--ink); font: 400 17px/1.55 var(--read); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--pop); color: #fff; }
:focus-visible { outline: 2px solid var(--pop); outline-offset: 3px; }
.eyebrow { margin: 0 0 12px; font: 500 13px/1.2 var(--mono); color: var(--pop); }

/* ---------- bar ---------- */
:root { --bar-h: 57px; }
.bar { position: relative; z-index: 5; display: flex; align-items: center; gap: 22px; padding: 12px var(--gutter); background: var(--wall); }
.name { font: 800 italic 30px/1 var(--mast); letter-spacing: -0.015em; text-decoration: none; margin-right: auto; }
.bar nav { display: flex; gap: 20px; font: 400 13px/1 var(--mono); }
.bar nav a { text-decoration: none; color: var(--mute); padding: 6px 0; }
.bar nav a:hover { color: var(--ink); }
.lights { display: inline-flex; align-items: center; gap: 8px; font: 400 12.5px/1 var(--mono); padding: 8px 10px; background: none; border: 1px solid var(--rule); color: var(--ink); }
.lights i { width: 9px; height: 9px; border-radius: 50%; background: #55555c; }
.lights[aria-pressed="true"] i { background: #ffc24a; box-shadow: 0 0 9px #ffc24a; }
.sub { font: 500 13px/1 var(--mono); padding: 10px 13px; background: var(--pop); color: #fff; text-decoration: none; }
.sub:hover { background: var(--ink); color: var(--wall); }
@media (max-width: 720px) {
  .bar { flex-wrap: wrap; gap: 10px 12px; }
  .bar nav { order: 4; width: 100%; gap: 16px; }
}

/* flicker when the lights change */
.flick main { animation: flick .42s steps(1) 1; }
@keyframes flick { 0% { opacity: .35; } 22% { opacity: 1; } 34% { opacity: .55; } 56% { opacity: 1; } 68% { opacity: .78; } 100% { opacity: 1; } }

/* ---------- the stand ---------- */
.stand {
  display: grid; grid-template-columns: minmax(210px, .28fr) minmax(0, 1fr); gap: clamp(22px, 3.4vw, 54px); align-items: end; align-content: center;
  min-height: calc(100vh - var(--bar-h)); min-height: calc(100svh - var(--bar-h));
  padding: 28px var(--gutter) 36px;
  background-color: var(--wall);
  background-image: radial-gradient(var(--peg) 1.5px, transparent 1.6px); background-size: 22px 22px;
}
.lead-copy { padding-bottom: 14px; }
.lead-copy h1 { margin: 0 0 12px; font: 800 clamp(34px, 3.5vw, 50px)/1.02 var(--mast); letter-spacing: -0.025em; }
.lead-copy h1 a { text-decoration: none; }
.lead-copy h1 a:hover { color: var(--pop); }
.dek { margin: 0 0 12px; font: 400 italic 20px/1.4 var(--read); color: var(--mute); }
.stamp { margin: 0 0 20px; font: 400 12.5px/1.5 var(--mono); color: var(--mute); }
.go { display: inline-block; font: 500 14px/1 var(--mono); padding: 13px 16px; background: var(--ink); color: var(--wall); text-decoration: none; }
.go:hover { background: var(--pop); color: #fff; }

.rack { display: grid; grid-template-columns: minmax(0, 2.12fr) repeat(2, minmax(0, 1fr)); gap: 34px clamp(14px, 1.8vw, 26px); max-width: min(1600px, calc((100vh - var(--bar-h) - 96px) * 1.4)); margin-left: auto; width: 100%; }
.rack .slot:first-child { grid-row: span 2; }

/* each slot is a lit ledge */
.slot { position: relative; padding-bottom: 12px; }
.slot::before { content: ""; position: absolute; left: -12%; right: -12%; top: -18%; bottom: 0; background: radial-gradient(60% 56% at 50% 40%, var(--spot), transparent 72%); pointer-events: none; }
.slot::after { content: ""; position: absolute; left: -8px; right: -8px; bottom: 0; height: 12px; background: linear-gradient(180deg, var(--ledge-1), var(--ledge-2)); box-shadow: var(--led); }

/* ---------- a magazine ---------- */
.mag { display: block; position: relative; z-index: 1; text-decoration: none; color: inherit; transform-origin: 50% 100%; transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0)); transition: transform .35s cubic-bezier(.2,.9,.3,1.1); will-change: transform; }
.mag .cover { box-shadow: var(--cover-shadow); transition: box-shadow .35s ease; }
.gloss { position: absolute; inset: 0; pointer-events: none; opacity: 0; mix-blend-mode: soft-light; background: radial-gradient(70% 55% at var(--gx, 50%) var(--gy, 30%), rgba(255,255,255,.75), transparent 68%); transition: opacity .3s ease; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .mag:hover { --ty: -10px; }
  .mag:hover .cover { box-shadow: var(--cover-shadow-up); }
  .mag:hover .gloss { opacity: 1; }
}

/* ---------- cover anatomy ---------- */
.cover { container-type: inline-size; display: block; position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #0c0c0f; color: #fff; margin: 0; font-family: var(--mast); }
.cover .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.42) 0, transparent 24%, transparent 50%, rgba(0,0,0,.76) 88%); }
.cover .mh { position: absolute; left: 5cqw; right: 5cqw; top: 2.2cqw; font: 900 20.4cqw/1 var(--mast); letter-spacing: -0.035em; white-space: nowrap; color: var(--c-mast, #fff); }
.cover .strip { position: absolute; left: 5.4cqw; right: 5.4cqw; top: 24.8cqw; display: flex; justify-content: space-between; gap: 2cqw; padding-top: 1.1cqw; border-top: .35cqw solid currentColor; font: 500 2.4cqw/1.2 var(--mono); text-transform: uppercase; color: var(--c-mast, #fff); }
.cover .head { position: absolute; left: 5cqw; right: 5cqw; bottom: 5.4cqw; display: block; }
.cover .big { display: block; font: 400 var(--size, 13cqw)/.96 var(--poster); text-transform: uppercase; letter-spacing: .002em; color: var(--c-big, #fff); }
.cover .line { display: block; margin-top: 2.2cqw; padding-right: 17cqw; min-height: 8.6cqw; font: 500 italic 4.1cqw/1.22 var(--read); color: var(--c-line, #fff); }
.cover .code { position: absolute; right: 5cqw; bottom: 5.4cqw; width: 13cqw; height: 8.6cqw; background: #fff; }
.cover .code::after { content: ""; position: absolute; inset: 7% 7% 7% 7%; background: repeating-linear-gradient(90deg, #111 0 .4cqw, transparent .4cqw .8cqw, #111 .8cqw 1.5cqw, transparent 1.5cqw 1.8cqw, #111 1.8cqw 2cqw, transparent 2cqw 2.8cqw); }

.cover.tag-hash-ink-lime { --c-mast: #c8f73a; --c-line: #c8f73a; }
.cover.tag-hash-ink-red { --c-mast: #ff4b3e; --c-line: #ff8a80; }
.cover.tag-hash-ink-pink { --c-mast: #ffb6c6; --c-line: #ffc9d5; }
.cover.tag-hash-ink-plum .shade { background: linear-gradient(180deg, rgba(34,8,24,.86) 0, rgba(34,8,24,.5) 22%, transparent 40%, transparent 52%, rgba(18,4,12,.82) 88%); }
.cover.tag-hash-ink-black { --c-mast: #101013; --c-big: #101013; --c-line: #101013; }
.cover.tag-hash-ink-black .shade { display: none; }
.cover.no-art { background: #f3f0e6; --c-mast: #e4322b; --c-big: #111114; --c-line: #111114; }
.cover.no-art .shade { display: none; }

/* ---------- back issues: magazines stacked on their sides ---------- */
.library { padding: 54px var(--gutter) 40px; background: var(--wall-2); }
.library h2, .more h2, .shelfpage h1 { margin: 0 0 22px; font: 800 clamp(38px, 5vw, 66px)/1 var(--mast); letter-spacing: -0.03em; }
.pile { list-style: none; margin: 0 auto; padding: 0 0 14px; max-width: 1100px; position: relative; }
.pile::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: 0; height: 12px; background: linear-gradient(180deg, var(--ledge-1), var(--ledge-2)); box-shadow: var(--led); }
.pile li { margin: 0; --tone: #26262c; --text: #efece4; }
.pile li:nth-child(5n+1) { --tone: #c8f73a; --text: #0c0c0f; margin-left: 2%; margin-right: 1%; }
.pile li:nth-child(5n+2) { --tone: #1740e0; --text: #fff; margin-left: 0; margin-right: 3%; }
.pile li:nth-child(5n+3) { --tone: #f3f0e6; --text: #111114; margin-left: 3%; margin-right: 0; }
.pile li:nth-child(5n+4) { --tone: #d62a20; --text: #fff; margin-left: 1%; margin-right: 2%; }
.pile li:nth-child(5n+5) { --tone: #e3b3bd; --text: #1c0c14; margin-left: 2.4%; margin-right: 1.2%; }
.pile a { display: grid; grid-template-columns: 60px minmax(0, 1fr) 110px 90px; gap: 14px; align-items: center; height: 60px; padding: 0 18px; background: var(--tone); color: var(--text); text-decoration: none; border-bottom: 2px solid rgba(0,0,0,.42); box-shadow: inset 0 2px 0 rgba(255,255,255,.2); transition: transform .28s cubic-bezier(.2,.9,.3,1.1); }
.pile a:hover { transform: translateX(-16px); }
.pile .no { font: 400 24px/1 var(--poster); }
.pile .t { font: 400 22px/1 var(--poster); text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pile .k, .pile .d { font: 400 12px/1 var(--mono); }
.pile .d { text-align: right; }
@media (max-width: 680px) { .pile a { grid-template-columns: 38px minmax(0, 1fr) 70px; height: 56px; padding: 0 12px; gap: 8px; } .pile .k { display: none; } .pile .t { font-size: 18px; } }

/* ---------- editor's letter ---------- */
.letter { padding: 74px var(--gutter); text-align: center; background: var(--wall); }
.letter .eyebrow { margin-bottom: 20px; }
.letter blockquote { margin: 0 auto 26px; font: 700 italic clamp(31px, 4.6vw, 64px)/1.14 var(--mast); letter-spacing: -0.02em; }
.letter blockquote span { display: block; text-wrap: balance; }
.letter .who { margin: 0; font: 400 13px/1.4 var(--mono); color: var(--mute); text-wrap: balance; }

/* ---------- reply card ---------- */
.card-wrap { padding: 0 var(--gutter) 70px; background: var(--wall); }
.reply { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 26px 52px; max-width: 980px; margin: 0 auto; padding: 44px clamp(20px, 4vw, 48px) 40px; background: #f3f0e6; color: #131316; box-shadow: var(--cover-shadow); }
.reply::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: radial-gradient(circle at 8px -2px, var(--wall) 6px, transparent 6.5px) 0 0 / 16px 12px repeat-x; }
.reply .eyebrow { margin-bottom: 14px; color: #c8281f; }
.reply h2 { margin: 0 0 14px; font: 800 clamp(30px, 3.8vw, 46px)/1.06 var(--mast); letter-spacing: -0.025em; }
.reply p { margin: 0; color: #4a4a50; text-wrap: balance; }
.reply label { display: block; font: 500 13px/1 var(--mono); margin-bottom: 7px; }
.reply input { width: 100%; font: 400 17px/1.4 var(--read); padding: 9px 2px; background: transparent; color: #131316; border: 0; border-bottom: 2px solid #131316; border-radius: 0; }
.reply input::placeholder { color: #6a6a70; }
.reply button { width: 100%; margin-top: 12px; font: 500 14px/1 var(--mono); padding: 13px; background: #131316; color: #f3f0e6; border: 0; }
.reply button:hover { background: #c8281f; }
.reply .ok, .reply .bad { display: none; margin-top: 8px; font: 400 13px/1.4 var(--mono); }
.reply.success .ok, .reply.error .bad { display: block; }
.reply.loading button { opacity: .6; }
@media (max-width: 720px) { .reply { grid-template-columns: minmax(0, 1fr); } }

/* ---------- an open issue ---------- */
.issue { padding-bottom: 20px; }
.spread { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 620px); justify-content: center; gap: clamp(24px, 5vw, 76px); align-items: center; padding: 44px var(--gutter) 54px; }
.spread .cover { box-shadow: var(--cover-shadow); }
.spread-copy h1 { margin: 0 0 16px; font: 800 clamp(42px, 5.6vw, 78px)/1 var(--mast); letter-spacing: -0.03em; }
.spread-copy .dek { font-size: 23px; }
@media (max-width: 820px) { .spread { grid-template-columns: minmax(0, 1fr); padding-top: 20px; } .spread-cover { width: min(100%, 300px); margin: 0 auto; } }

.gh-content { max-width: var(--column); margin: 0 auto; padding: 0 20px; font: 400 20px/1.72 var(--read); }
.gh-content > * { margin-top: 0; margin-bottom: 1.15em; }
.gh-content > p:first-of-type::first-letter { float: left; font: 400 4.3em/.84 var(--poster); padding: .05em .1em 0 0; color: var(--pop); }
.gh-content h2 { font: 800 36px/1.08 var(--mast); letter-spacing: -0.022em; margin: 1.7em 0 .5em; }
.gh-content h3 { font: 800 27px/1.12 var(--mast); margin: 1.5em 0 .4em; }
.gh-content a { color: var(--pop); text-underline-offset: 3px; }
.gh-content blockquote { margin-inline: 0; padding-left: 18px; border-left: 3px solid var(--pop); font: 500 italic 25px/1.35 var(--read); }
.gh-content pre { font: 400 15px/1.6 var(--mono); background: #0b0b0e; color: #efece4; padding: 16px 18px; overflow-x: auto; }
.gh-content code { font: 400 .84em var(--mono); }
.gh-content img { margin-inline: auto; }
.gh-content hr { border: 0; text-align: center; margin: 2em 0; }
.gh-content hr::before { content: "* * *"; color: var(--pop); letter-spacing: .4em; }
.kg-width-wide { width: min(1000px, calc(100vw - 2 * var(--gutter))); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.kg-width-full { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }

/* ---------- designed sections: site.js groups a post at each H2 ---------- */
.issue { --hue: #8ea2ff; --band: #1740e0; --band-ink: #fff; --accent: var(--hue); --page: var(--wall); transition: background-color .7s ease; }
.issue.tag-hash-ink-lime { --hue: #c8f73a; --band: #c8f73a; --band-ink: #0c0c0f; }
.issue.tag-hash-ink-red { --hue: #ff4b3e; --band: #d62a20; --band-ink: #fff; }
.issue.tag-hash-ink-plum { --hue: #ffb6c6; --band: #ffb6c6; --band-ink: #2a1020; }
.issue.tag-hash-ink-black { --hue: #c8f73a; --band: #c8f73a; --band-ink: #0c0c0f; }
:root[data-theme="light"] .issue { --accent: color-mix(in srgb, var(--hue) 56%, #131316); }
.issue[data-tone="1"] { --page: color-mix(in srgb, var(--band) 5%, var(--wall)); background-color: var(--page); }
.issue[data-tone="2"] { --page: color-mix(in srgb, var(--band) 10%, var(--wall)); background-color: var(--page); }

.gh-content.designed { max-width: none; padding: 0; }
.sec { position: relative; padding: clamp(54px, 8vw, 110px) 0; }
.sec-head { max-width: 1320px; margin: 0 auto clamp(26px, 4vw, 54px); padding: 0 var(--gutter); }
.sec-no { display: block; margin-bottom: 10px; font: 500 14px/1 var(--mono); color: var(--accent); }
.sec-head h2 { margin: 0; font: 400 clamp(46px, 8vw, 124px)/.98 var(--poster); letter-spacing: 0; text-transform: uppercase; text-wrap: balance; }
.sec-text { max-width: var(--column); margin: 0 auto; padding: 0 20px; }
.sec-text > * { margin-top: 0; margin-bottom: 1.15em; }
.sec-text > :last-child { margin-bottom: 0; }
.sec-text h2 { margin: 1.5em 0 .4em; font: 400 40px/1.04 var(--poster); letter-spacing: 0; text-transform: uppercase; color: var(--accent); }
.sec-text h3 { font: 400 28px/1.1 var(--poster); text-transform: uppercase; color: var(--accent); }
.sec-text a { color: var(--accent); }
.sec.intro .sec-text > p:first-of-type::first-letter { float: left; font: 400 4.6em/.82 var(--poster); padding: .05em .1em 0 0; color: var(--accent); }

/* a quote takes the whole width and lights up word by word as it scrolls past */
.sec-text blockquote {
  width: 100vw; max-width: none; margin: clamp(40px, 6vw, 80px) 0 clamp(40px, 6vw, 80px) calc(50% - 50vw); padding: clamp(50px, 8vw, 120px) var(--gutter);
  border: 0; background: var(--band); color: var(--band-ink); text-align: center; text-wrap: balance;
  font: 400 clamp(38px, 6.6vw, 104px)/1.02 var(--poster); text-transform: uppercase;
}
.sec-text blockquote.long { font-size: clamp(30px, 4.4vw, 68px); line-height: 1.08; }
.sec-text blockquote p { margin: 0; }
.sec-text blockquote em, .sec-text blockquote i, .sec-text blockquote strong, .sec-text blockquote b { font-style: normal; font-weight: 400; }
.sec-text blockquote .w { opacity: .2; transition: opacity .25s linear; }
.sec-text blockquote .w.on { opacity: 1; }

/* a section with an image pins it to one side while the words scroll */
.sec.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 0; }
.sec-pic { position: sticky; top: 0; height: 100vh; margin: 0; display: grid; place-items: center; padding: 4vh clamp(20px, 3vw, 48px); }
.sec-pic img { width: auto; height: auto; max-width: min(100%, var(--shown, 100%)); max-height: 100%; }
.sec-body { min-width: 0; padding: clamp(60px, 9vh, 110px) clamp(24px, 5vw, 76px) clamp(70px, 12vh, 130px); }
.split.flip .sec-pic { order: 2; }
.split .sec-head { margin: 0 0 clamp(22px, 3vw, 38px); padding: 0; }
.split .sec-head h2 { font-size: clamp(44px, 5.4vw, 86px); }
.split .sec-text { max-width: 620px; margin: 0; padding: 0; }
.split .sec-text blockquote { width: auto; margin: 1.3em 0; padding: 0; background: none; color: var(--accent); text-align: left; font-size: clamp(34px, 3.8vw, 58px); }
.split .sec-text blockquote.long { font-size: clamp(27px, 2.6vw, 40px); }

/* images that aren't pinned run wide */
.sec-wide { margin: 0 0 clamp(36px, 5vw, 70px); padding: 0 20px; }
.sec-wide img { width: 100%; max-width: min(var(--shown, 100%), var(--column)); margin: 0 auto; }
.sec-text figure { width: min(1180px, 100vw); max-width: none; margin: clamp(36px, 5vw, 64px) 0 clamp(36px, 5vw, 64px) calc(50% - min(590px, 50vw)); }
.sec-text figure img { width: 100%; max-width: var(--shown, 100%); margin: 0 auto; }
.sec-text figure.small { width: auto; margin-left: 0; }
.split .sec-text figure { width: auto; margin: 1.6em 0; }

@media (min-width: 1100px) {
  .issue:not(.tag-essays) .sec:not(.split, .intro) > .sec-text { --r: max(var(--gutter), calc((100vw - 1320px) / 2)); width: var(--column); max-width: none; margin-left: auto; margin-right: var(--r); padding: 0; }
  .issue:not(.tag-essays) .sec:not(.split, .intro) > .sec-text blockquote { margin-left: calc(var(--r) + var(--column) - 100vw); }
  .issue:not(.tag-essays) .sec:not(.split, .intro) > .sec-text figure:not(.small) { margin-left: calc(var(--r) + var(--column) - 50vw - min(590px, 50vw)); }
}
/* essays stay soft: quiet serif headings, no bands, plenty of air */
.issue.tag-essays, :root[data-theme="light"] .issue.tag-essays { --accent: var(--ink); }
.issue.tag-essays[data-tone="1"] { --page: color-mix(in srgb, var(--band) 3%, var(--wall)); background-color: var(--page); }
.issue.tag-essays[data-tone="2"] { --page: color-mix(in srgb, var(--band) 6%, var(--wall)); background-color: var(--page); }
.tag-essays .sec { padding-block: clamp(50px, 7vw, 100px); }
.tag-essays .sec.split { padding-block: 0; }
.tag-essays .sec-no { display: none; }
.tag-essays .sec-head { max-width: var(--column); margin-bottom: 24px; padding: 0 20px; }
.tag-essays .split .sec-head { padding: 0; }
.tag-essays .sec-head h2, .tag-essays .split .sec-head h2 { font: 500 italic clamp(34px, 4.4vw, 58px)/1.14 var(--mast); letter-spacing: -0.015em; text-transform: none; }
.tag-essays .sec-text { font-size: 20px; line-height: 1.8; }
.tag-essays .sec-text h2 { font: 500 italic 30px/1.2 var(--mast); letter-spacing: -0.01em; text-transform: none; color: inherit; }
.tag-essays .sec-text h3 { font: 500 italic 25px/1.25 var(--mast); text-transform: none; color: inherit; }
.tag-essays .sec-text blockquote, .tag-essays .sec-text blockquote.long, .tag-essays .split .sec-text blockquote, .tag-essays .split .sec-text blockquote.long {
  width: auto; margin: 1.9em 0; padding: 0; background: none; color: inherit; text-align: left; text-wrap: pretty;
  font: 400 italic clamp(24px, 2.4vw, 30px)/1.45 var(--read); text-transform: none;
}
.tag-essays .sec-text blockquote em, .tag-essays .sec-text blockquote i { font-style: italic; }
.tag-essays .sec.intro .sec-text > p:first-of-type::first-letter { font: 500 3.5em/.9 var(--mast); padding: .04em .08em 0 0; color: inherit; }

/* a told post: an illustration drawn in code stays beside the words and plays as they are read */
.gh-content.told { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.told > * { grid-column: 1; }
.told > .story {
  grid-column: 2; grid-row: 1 / span 40; position: sticky; top: 0; align-self: start; height: 100vh; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 60% 66% at 60% 66%, #000 52%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 66% at 60% 66%, #000 52%, transparent 100%);
}
@media (min-width: 861px) {
  /* these three are hard-edged drawings, so they sit straight on the page with no fade */
  .tag-hash-story-collage .told > .story, .tag-hash-story-meter .told > .story, .tag-hash-story-union .told > .story {
    -webkit-mask-image: none; mask-image: none;
  }
}
:root[data-theme="light"] .tag-hash-story-collage .told > .story, :root[data-theme="light"] .tag-hash-story-meter .told > .story, :root[data-theme="light"] .tag-hash-story-union .told > .story { background-color: #111114; }
.story svg { display: block; width: 100%; height: 100%; }
.told .sec { padding-block: clamp(44px, 6vw, 84px); }
.told .sec-head h2 { font-size: clamp(38px, 4.8vw, 70px); }
.told .sec-head, .told .sec-text { max-width: 600px; margin-left: auto; margin-right: clamp(24px, 4vw, 72px); padding: 0; }
.told .sec-wide { padding: 0; margin: 0 clamp(24px, 4vw, 72px) 0 auto; max-width: 600px; }
.told .sec-text figure, .told .sec-text figure:not(.small) { width: auto; margin: 2em 0; }
@media (max-width: 860px) {
  .gh-content.told { display: block; }
  .told > .story {
    position: sticky; top: 0; z-index: 3; height: 42vh; background-color: var(--page); transition: background-color .7s ease;
    -webkit-mask-image: linear-gradient(180deg, #000 90%, transparent);
    mask-image: linear-gradient(180deg, #000 90%, transparent);
  }
  .told .sec-head, .told .sec-text { margin-inline: auto; padding: 0 20px; }
  .told .sec-wide { margin: 0 auto; padding: 0 20px; }
}

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (max-width: 860px) {
  .sec.split { display: block; }
  .sec-pic { position: relative; height: auto; padding: 0 20px; }
  .sec-body { padding: 34px 20px 54px; }
  .sec-head h2 { font-size: clamp(44px, 13vw, 76px); }
  .split .sec-head h2 { font-size: clamp(42px, 12vw, 72px); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .sec-text blockquote .w { opacity: 1; }
}

.colophon { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 640px; margin: 54px auto 0; padding: 14px 0 0; border-top: 2px solid var(--ink); font: 400 13.5px/1.5 var(--mono); }
.colophon dt { color: var(--mute); font-size: 11.5px; } .colophon dd { margin: 0; }
@media (max-width: 680px) { .colophon { margin-inline: 20px; grid-template-columns: 1fr 1fr; } }
.talk { max-width: var(--column); margin: 54px auto 0; padding: 0 20px; }
.talk iframe { color-scheme: light; } /* a mismatched scheme makes the browser paint the widget white */

.more { padding: 54px var(--gutter) 60px; background: var(--wall-2); margin-top: 60px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 44vw), 1fr)); gap: 34px clamp(14px, 2vw, 28px); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; }
@media (max-width: 680px) { .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.three .slot:nth-child(3) { display: none; } }

.shelfpage { padding: 40px var(--gutter) 70px; min-height: 60vh; background-image: radial-gradient(var(--peg) 1.5px, transparent 1.6px); background-size: 22px 22px; }
.shelfpage .dek { max-width: 50ch; }
.sold h1 { font-size: clamp(60px, 11vw, 140px); }
.pagination { display: flex; gap: 16px; justify-content: center; margin-top: 30px; font: 400 13px/1 var(--mono); }
.plain { max-width: var(--column); margin: 0 auto; padding: 50px 0 70px; }
.plain h1 { margin: 0 20px 24px; font: 800 clamp(44px, 6vw, 72px)/1 var(--mast); letter-spacing: -0.03em; }

/* ---------- foot ---------- */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 18px var(--gutter) 26px; border-top: 1px solid var(--rule); background: var(--wall); font: 400 12.5px/1.5 var(--mono); color: var(--mute); }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--ink); }

/* ---------- responsive rack ---------- */
@media (max-width: 1080px) { .stand { grid-template-columns: minmax(0, 1fr); align-items: start; } .lead-copy { order: 2; padding-bottom: 0; } .rack { margin: 0 auto; max-width: 1100px; } }
@media (max-width: 720px) {
  .rack { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
  .rack .slot:first-child { grid-column: 1 / -1; grid-row: auto; }
  .rack .slot:first-child .mag { width: min(86%, 340px); margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flick main { animation: none; }
  .mag { transition: none; }
  @view-transition { navigation: none; }
}
