/* The Diana Dispatch, second edition.
   Halfway between a newspaper and a magazine: newsprint, black ink, one spot red,
   black and white pictures, and an editor's red pen.
   Display and text: Fraunces. Labels: Archivo condensed. Pen: Nanum Pen Script. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-full-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-full-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Nanum Pen Script";
  src: url("../fonts/nanum-pen-script-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --paper: #e9e5dc;
  --sheet: #f4f1ea;
  --ink: #161412;
  --soft: #5d5850;
  --red: #d42a1e;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --label: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --pen: "Nanum Pen Script", "Bradley Hand", cursive;
  --gutter: clamp(1rem, 3vw, 2.75rem);
  --hair: 1px solid var(--ink);
  --thick: 4px solid var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-optical-sizing: auto;
  font-variation-settings: "SOFT" 30, "WONK" 0;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.12rem); line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* newsprint grain */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .33 0 0 0 0 .3 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; }
.skip:focus { top: 1rem; }
.wrap { padding-inline: var(--gutter); max-width: 96rem; margin-inline: auto; }

.kicker {
  font-family: var(--label); font-stretch: 68%; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 0.86rem; line-height: 1.2;
}
.kicker--red { color: var(--red); }
.pen { font-family: var(--pen); color: var(--red); font-size: 1.7rem; line-height: 0.95; }

/* Ticker */
.ticker { position: relative; background: var(--ink); color: var(--paper); overflow: hidden; white-space: nowrap; font-family: var(--label); font-stretch: 75%; font-weight: 600; font-size: 0.86rem; letter-spacing: 0.04em; text-transform: uppercase; }
.ticker__track { display: inline-flex; animation: ticker 55s linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track, .ticker.is-paused .ticker__track { animation-play-state: paused; }
.ticker__pause { position: absolute; right: 0; top: 0; bottom: 0; z-index: 1; padding: 0 0.9rem; border: 0; background: var(--ink); color: var(--paper); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; box-shadow: -1rem 0 1rem var(--ink); }
.ticker__pause:hover, .ticker__pause:focus-visible { text-decoration: underline; }
.ticker__group { display: inline-flex; }
.ticker__item { padding: 0.5rem 1.5rem; display: inline-flex; align-items: center; gap: 0.7rem; }
.ticker__item::before { content: ""; width: 0.45rem; height: 0.45rem; background: var(--red); border-radius: 50%; flex: none; }
.ticker a { text-decoration: none; }
.ticker a:hover { text-decoration: underline; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Masthead */
.masthead { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 1.5rem; padding-block: clamp(0.9rem, 2vw, 1.6rem) clamp(0.5rem, 1vw, 0.9rem); }
.ear { border: var(--hair); padding: 0.55rem 0.7rem 0.6rem; max-width: 12.5rem; font-size: 0.82rem; line-height: 1.25; }
.ear strong { display: block; font-family: var(--label); font-stretch: 68%; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.74rem; margin-bottom: 0.2rem; }
.ear--right { justify-self: end; text-align: right; }
.barcode { height: 1.5rem; margin-top: 0.4rem; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 3px, var(--ink) 3px 4px, transparent 4px 7px, var(--ink) 7px 10px, transparent 10px 11px, var(--ink) 11px 12px, transparent 12px 15px); }
.masthead__title {
  display: block; text-decoration: none; text-align: center; white-space: nowrap;
  font-weight: 900; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-size: clamp(2.3rem, 7.6vw, 8.2rem); line-height: 0.9; letter-spacing: -0.045em;
}
.masthead--inner .masthead__title { font-size: clamp(2rem, 4.6vw, 4.4rem); }
.masthead--inner .ear { display: none; }
.masthead--inner { grid-template-columns: 1fr; }

.dateline { display: grid; grid-template-columns: repeat(4, 1fr); border-top: var(--thick); border-bottom: var(--hair); }
.dateline span { padding: 0.45rem 0.8rem; border-left: var(--hair); text-align: center; font-family: var(--label); font-stretch: 70%; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; font-size: 0.78rem; }
.dateline span:first-child { border-left: 0; text-align: left; padding-left: 0; }
.dateline span:last-child { text-align: right; padding-right: 0; }

.bar { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: var(--thick); }
.bar__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.9rem; }
.bar__name { font-weight: 900; font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 1.3rem; letter-spacing: -0.03em; text-decoration: none; display: none; white-space: nowrap; }
.is-stuck .bar__name { display: block; }
.bar__nav { display: flex; gap: clamp(1rem, 2.6vw, 2.4rem); margin-inline: auto; }
.is-stuck .bar__nav { margin-right: 0; }
.bar__nav a { text-decoration: none; padding-block: 0.75rem; position: relative; font-family: var(--label); font-stretch: 70%; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.88rem; }
.bar__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.5rem; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; border-radius: 2px; }
.bar__nav a[aria-current="page"]::after, .bar__nav a:hover::after, .bar__nav a:focus-visible::after { transform: scaleX(1); }

/* Pictures: black and white, printed on the page */
.pic { position: relative; overflow: hidden; background: var(--sheet); }
.pic img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.12); mix-blend-mode: multiply; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.pic::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle, rgba(233, 229, 220, 0.55) 0 34%, transparent 36%); background-size: 4px 4px; mix-blend-mode: screen; opacity: 0.55; }
.credit { font-family: var(--label); font-stretch: 75%; font-size: 0.78rem; color: var(--soft); margin-top: 0.45rem; line-height: 1.3; }

/* Front page */
.front { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 3.5vw, 3.5rem); padding-block: clamp(1.4rem, 3vw, 2.6rem) clamp(2rem, 4vw, 3.5rem); border-bottom: var(--thick); }
.lead__head { font-weight: 900; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; font-size: clamp(2.6rem, 6.6vw, 7.2rem); line-height: 0.92; letter-spacing: -0.04em; margin-top: 0.8rem; }
.lead__head .line { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.lead__head .line > span { display: block; transform: translateY(112%); animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.lead__head .line:nth-child(2) > span { animation-delay: 0.08s; }
.lead__head .line:nth-child(3) > span { animation-delay: 0.16s; }
.lead__head .line:nth-child(4) > span { animation-delay: 0.24s; }
@keyframes rise { to { transform: none; } }
.underline { position: relative; white-space: nowrap; display: inline-block; }
.underline svg { position: absolute; left: -2%; bottom: -0.1em; width: 104%; height: 0.28em; overflow: visible; }
.underline path, .circled path { fill: none; stroke: var(--red); stroke-width: 6px; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.9s 0.9s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.byline { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; border-block: var(--hair); padding-block: 0.5rem; margin-block: 1.3rem 1.1rem; }
.story-text { columns: 2; column-gap: 1.8rem; column-rule: 1px solid rgba(22, 20, 18, 0.3); text-align: left; hyphens: manual; text-wrap: pretty; }
.story-text p + p { text-indent: 1.2em; }
.story-text p:first-child::first-letter { float: left; font-weight: 900; font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 4.1em; line-height: 0.78; padding: 0.06em 0.08em 0 0; }
.inside { margin-top: 1.6rem; border-top: var(--thick); padding-top: 0.6rem; }
.inside li a { display: flex; align-items: baseline; gap: 0.5rem; padding-block: 0.42rem; text-decoration: none; border-bottom: 1px dotted var(--ink); }
.inside li a span:first-child { font-weight: 700; }
.inside li a i { flex: 1; }
.inside li a span:last-child { font-family: var(--label); font-stretch: 70%; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.06em; }
.inside li a:hover span:first-child, .inside li a:focus-visible span:first-child { color: var(--red); }

.cover { position: relative; container-type: inline-size; align-self: start; }
.cover .pic { aspect-ratio: 3 / 4; }
.cover__print { position: absolute; left: 17%; top: 6.5%; width: 66%; height: 41.5%; display: grid; grid-template-rows: auto 1fr; color: #1c1a17; mix-blend-mode: multiply; opacity: 0.86; pointer-events: none; z-index: 2; }
.cover__print b { display: block; text-align: center; font-weight: 900; font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 6.6cqw; letter-spacing: -0.04em; line-height: 1; border-bottom: 0.5cqw solid currentColor; padding-bottom: 1cqw; }
.cover__pages { display: grid; grid-template-columns: 1fr 1fr; gap: 5cqw; padding-top: 2cqw; }
.cover__pages strong { display: block; font-weight: 900; font-variation-settings: "SOFT" 100; font-size: 5.6cqw; line-height: 0.95; letter-spacing: -0.03em; }
.cover__pages em { display: block; font-style: normal; font-family: var(--label); font-stretch: 68%; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 1.9cqw; margin-bottom: 1cqw; color: var(--red); }
.greek { margin-top: 2cqw; height: 13cqw; background: repeating-linear-gradient(180deg, currentColor 0 0.35cqw, transparent 0.35cqw 1.5cqw); opacity: 0.55; }
.greek--tall { height: 24cqw; margin-top: 0; }
.cover__note { position: absolute; right: 0.4rem; top: 56%; transform: rotate(-7deg); text-align: center; z-index: 3; pointer-events: none; }
.cover__note svg { display: block; width: 3.6rem; margin: 0 auto 0 0; overflow: visible; }
.cover__note path { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.stage__hint { margin-top: 0.5rem; }

/* Loose clippings */
.scraps { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-top: 0.8rem; }
.stage.is-live .scraps { position: absolute; inset: 0; padding: 0; display: block; pointer-events: none; z-index: 4; }
.scrap { display: inline-block; text-decoration: none; user-select: none; -webkit-user-select: none; background: var(--sheet); color: var(--ink); padding: 0.5em 0.8em 0.55em; line-height: 1.02; font-family: var(--label); font-stretch: 68%; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; font-size: clamp(0.95rem, 1.45vw, 1.35rem); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 10px 18px -10px rgba(0, 0, 0, 0.55); clip-path: polygon(0 5%, 4% 0, 30% 3%, 62% 0, 97% 3%, 100% 0, 99% 95%, 95% 100%, 60% 97%, 33% 100%, 4% 97%, 0 100%); }
.scrap--serif { font-family: var(--serif); font-weight: 900; font-style: italic; text-transform: none; letter-spacing: -0.02em; font-size: clamp(1.25rem, 2.1vw, 2rem); font-variation-settings: "SOFT" 100, "WONK" 1; }
.scrap--ink { background: var(--ink); color: var(--paper); }
.scrap--red { background: var(--red); color: #fff; }
.scrap small { display: block; font: 600 0.68rem/1.2 var(--label); letter-spacing: 0.08em; margin-bottom: 0.3em; text-transform: uppercase; font-style: normal; opacity: 0.75; }
.stage.is-live .scrap { position: absolute; left: 0; top: 0; pointer-events: auto; touch-action: none; cursor: grab; will-change: transform; }
.stage.is-live .scrap.is-held { cursor: grabbing; z-index: 5; }

/* Sections */
.section { padding-block: clamp(2rem, 5vw, 4.5rem); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; border-bottom: var(--thick); padding-bottom: 0.7rem; }
.section__title { font-weight: 900; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; font-size: clamp(2rem, 4.6vw, 4.2rem); line-height: 0.95; letter-spacing: -0.04em; }

/* Stories index: one feature, then a row */
.stories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.story { border-bottom: var(--hair); padding-block: clamp(1.2rem, 2.4vw, 2rem); }
.story--feature { grid-column: 1 / -1; }
.story--left { padding-right: clamp(1rem, 2.4vw, 2rem); }
.story--right { padding-left: clamp(1rem, 2.4vw, 2rem); border-left: var(--hair); }
.story__link { display: grid; gap: 1rem; text-decoration: none; align-content: start; }
.story--feature .story__link { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.2rem, 3vw, 3rem); align-items: end; }
.story .pic { aspect-ratio: 4 / 3; }
.story--feature .pic { aspect-ratio: 16 / 10; }
.story__title { font-weight: 900; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; font-size: clamp(1.8rem, 3.4vw, 3.3rem); line-height: 0.95; letter-spacing: -0.035em; margin-block: 0.5rem 0.6rem; }
.story--feature .story__title { font-size: clamp(2.3rem, 5.4vw, 5.8rem); }
.story__title span { background-image: linear-gradient(var(--red), var(--red)); background-repeat: no-repeat; background-size: 0% 0.09em; background-position: 0 96%; transition: background-size 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.story__link:hover .story__title span, .story__link:focus-visible .story__title span { background-size: 100% 0.09em; }
.story__link:hover .pic img, .story__link:focus-visible .pic img { transform: scale(1.04); }
.story__deck { max-width: 34rem; }
.held { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.6rem 2.5rem; align-items: baseline; padding-block: 1.1rem; border-bottom: var(--thick); }
.held b { font-weight: 900; font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 1.5rem; letter-spacing: -0.02em; }
.held > span > span { color: var(--soft); }

/* Three columns */
.columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: var(--hair); }
.column { padding: clamp(1.2rem, 2.4vw, 2rem) clamp(1rem, 2vw, 1.8rem) clamp(1.4rem, 2.6vw, 2.2rem); border-left: var(--hair); text-align: left; text-wrap: pretty; }
.column:first-child { border-left: 0; padding-left: 0; }
.column:last-child { padding-right: 0; }
.column h3 { font-weight: 900; font-variation-settings: "SOFT" 100, "WONK" 1; font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1; letter-spacing: -0.03em; margin-block: 0.4rem 0.7rem; text-align: left; }
.column p + p { margin-top: 0.8rem; }
.textlink { font-weight: 700; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 0.2em; }
.textlink:hover { color: var(--red); }

/* Call out */
.callout { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; margin-top: clamp(2rem, 5vw, 4.5rem); }
.callout__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); opacity: 0.5; }
.callout__in { position: relative; padding-block: clamp(3rem, 8vw, 7rem); display: grid; gap: 2rem; }
.callout__title { font-weight: 900; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; font-size: clamp(2.6rem, 8.4vw, 9rem); line-height: 0.9; letter-spacing: -0.045em; max-width: 13ch; }
.circled { position: relative; white-space: nowrap; display: inline-block; }
.circled svg { position: absolute; left: -7%; top: 2%; width: 114%; height: 112%; overflow: visible; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.btn { display: inline-block; text-decoration: none; font-family: var(--label); font-stretch: 72%; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.95rem; padding: 0.85rem 1.3rem; border: 2px solid currentColor; color: inherit; transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.btn:hover, .btn:focus-visible { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--red); }
.btn--fill { background: var(--red); border-color: var(--red); color: #fff; }
.btn--fill:hover, .btn--fill:focus-visible { box-shadow: 5px 5px 0 var(--paper); }

/* Article pages */
.article__head { padding-block: clamp(1.6rem, 4vw, 3.5rem) clamp(1.2rem, 2.5vw, 2rem); display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(1.2rem, 3vw, 3rem); align-items: end; }
.article__section { text-decoration: none; display: inline-block; margin-bottom: 0.9rem; }
.article__title { font-weight: 900; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; font-size: clamp(2.8rem, 8.2vw, 9rem); line-height: 0.88; letter-spacing: -0.045em; text-wrap: balance; }
.article__deck { font-size: clamp(1.1rem, 1.7vw, 1.45rem); line-height: 1.32; font-style: italic; }
.status { display: block; margin-top: 0.9rem; transform: rotate(-2deg); transform-origin: left; }
.leadpic .pic { aspect-ratio: 16 / 8; }
.article__body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 4vw, 4rem); padding-block: clamp(1.5rem, 4vw, 3rem); }
.facts { border-top: var(--thick); align-self: start; position: sticky; top: 4.2rem; }
.facts div { padding-block: 0.6rem 0.7rem; border-bottom: var(--hair); }
.facts dt { font-family: var(--label); font-stretch: 68%; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.76rem; color: var(--soft); }
.facts dd { font-weight: 700; font-size: 1.05em; }
.prose h2 { font-weight: 900; font-variation-settings: "SOFT" 100, "WONK" 1; font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1; letter-spacing: -0.035em; margin-block: 2.2rem 0.8rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { max-width: 40rem; }
.prose p + p { margin-top: 0.9rem; }
.prose > p:first-of-type::first-letter { float: left; font-weight: 900; font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 4.1em; line-height: 0.78; padding: 0.06em 0.08em 0 0; }
.prose ul { max-width: 40rem; border-top: var(--hair); }
.prose li { padding-block: 0.7rem; border-bottom: var(--hair); display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; }
.prose li strong { font-weight: 800; }
.pull { border-block: var(--thick); padding-block: clamp(1.4rem, 3.5vw, 2.6rem); margin-block: clamp(1rem, 3vw, 2.5rem); }
.pull p { font-weight: 900; font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; font-size: clamp(2rem, 6vw, 5.8rem); line-height: 0.95; letter-spacing: -0.04em; max-width: 18ch; }

/* Paste-up frames wait for the photographs */
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(0.7rem, 1.6vw, 1.4rem); padding-block: clamp(1rem, 3vw, 2.5rem); }
.frame { grid-column: span 2; aspect-ratio: 4 / 5; position: relative; border: 1px dashed var(--ink); background: rgba(244, 241, 234, 0.6); display: grid; place-content: center; text-align: center; padding: 1rem; gap: 0.2rem; }
.frame.is-wide { grid-column: span 4; aspect-ratio: auto; }
.frame.is-half { grid-column: span 3; aspect-ratio: 4 / 3; }
.frame::before, .frame::after { content: ""; position: absolute; width: 0.9rem; height: 0.9rem; border: solid var(--ink); }
.frame::before { left: -0.45rem; top: -0.45rem; border-width: 0 1px 1px 0; }
.frame::after { right: -0.45rem; bottom: -0.45rem; border-width: 1px 0 0 1px; }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame.has-img { border-style: solid; }

.next { border-top: var(--thick); }
.next a { display: block; text-decoration: none; padding-block: clamp(1.8rem, 4.5vw, 3.6rem); }
.next strong { display: block; margin-top: 0.5rem; font-weight: 900; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; font-size: clamp(2.4rem, 7.6vw, 8rem); line-height: 0.9; letter-spacing: -0.045em; }
.next strong span { background-image: linear-gradient(var(--red), var(--red)); background-repeat: no-repeat; background-size: 0% 0.08em; background-position: 0 96%; transition: background-size 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.next a:hover strong span, .next a:focus-visible strong span { background-size: 100% 0.08em; }

/* About */
.timeline { border-top: var(--hair); max-width: 40rem; }
.timeline li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1.2rem; padding-block: 0.9rem; border-bottom: var(--hair); }
.timeline .when { font-family: var(--label); font-stretch: 70%; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.86rem; padding-top: 0.25rem; }
.timeline h3 { font-size: 1.08em; font-weight: 800; }
.contact { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; }
.card { background: var(--sheet); border: 2px dashed var(--ink); padding: 1.3rem 1.4rem 1.5rem; transform: rotate(2deg); max-width: 23rem; justify-self: end; color: var(--ink); position: relative; }
.card h3 { font-weight: 900; font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 2rem; line-height: 1; letter-spacing: -0.03em; margin-top: 0.3rem; }
.card p { margin-top: 0.5rem; font-size: 0.98rem; }
.card a { font-weight: 700; }

/* Footer */
.footer { border-top: var(--thick); }
.footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.1rem 1.4rem; font-size: 0.9rem; }
.footer__in nav { display: flex; gap: 1.4rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--red); text-decoration: underline; }
.notfound { min-height: 55vh; display: grid; align-content: center; gap: 1.5rem; padding-block: 4rem; }

/* Page turn */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: turn-out 0.3s ease-in both; }
::view-transition-new(root) { animation: turn-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes turn-out { to { transform: translateX(-3%); opacity: 0; } }
@keyframes turn-in { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }

@media (max-width: 900px) {
  .ear { display: none; }
  .masthead { grid-template-columns: 1fr; }
  .masthead__title { font-size: 10.6vw; }
  .dateline { grid-template-columns: 1fr 1fr; }
  .dateline span:nth-child(2), .dateline span:nth-child(3) { display: none; }
  .is-stuck .bar__name { display: none; }
  .bar__nav { width: 100%; justify-content: space-between; gap: 0.8rem; margin: 0; }
  .front { grid-template-columns: 1fr; }
  .story-text { columns: 1; text-align: left; }
  .stories { grid-template-columns: 1fr; }
  .story--left, .story--right { padding-inline: 0; border-left: 0; }
  .story--feature .story__link { grid-template-columns: 1fr; }
  .columns { grid-template-columns: 1fr; }
  .column { border-left: 0; border-top: var(--hair); padding-inline: 0; text-align: left; }
  .column:first-child { border-top: 0; }
  .article__head, .article__body, .contact { grid-template-columns: 1fr; }
  .facts { position: static; display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; }
  .leadpic .pic { aspect-ratio: 4 / 3; }
  .prose li { grid-template-columns: 1fr; gap: 0.1rem; }
  .frame, .frame.is-wide, .frame.is-half { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .card { justify-self: start; }
  .timeline li { grid-template-columns: 1fr; gap: 0.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
  .ticker__pause { display: none; }
  .lead__head .line > span { animation: none; transform: none; }
  .underline path, .circled path { animation: none; stroke-dashoffset: 0; }
  .pic img, .story__title span, .next strong span, .btn { transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* Real work: full colour, never cropped */
.pic--color img { filter: none; mix-blend-mode: normal; }
.pic--color::after { display: none; }
.leadpic .pic--color { aspect-ratio: 2 / 1; background: #d8d2c5; }
.gallery__title { grid-column: 1 / -1; border-top: var(--thick); padding-top: 0.6rem; margin-top: 1.2rem; font-weight: 900; font-variation-settings: "SOFT" 100, "WONK" 1; font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1; letter-spacing: -0.035em; }
.gallery__title:first-child { margin-top: 0; }
.work { grid-column: span 2; align-self: start; }
.work.is-third { grid-column: span 2; }
.work.is-half { grid-column: span 3; }
.work.is-full { grid-column: 1 / -1; }
.work a { display: block; cursor: zoom-in; }
.work img { width: 100%; height: auto; box-shadow: 0 22px 34px -22px rgba(22, 20, 18, 0.7); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease; }
.work a:hover img, .work a:focus-visible img { transform: translateY(-4px) rotate(-0.4deg); box-shadow: 0 30px 40px -24px rgba(22, 20, 18, 0.75); }
@media (max-width: 900px) {
  .work, .work.is-third, .work.is-half { grid-column: 1 / -1; }
  .leadpic .pic--color { aspect-ratio: 2 / 1; }
}
@media (prefers-reduced-motion: reduce) { .work img { transition: none; } }

/* Phone screens */
.phones { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2rem); }
.phone { max-width: 22rem; }
.phone a { display: block; cursor: zoom-in; }
.phone img { width: 100%; height: auto; border-radius: 1.6rem; box-shadow: 0 22px 34px -22px rgba(22, 20, 18, 0.7); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.phone a:hover img, .phone a:focus-visible img { transform: translateY(-6px); }
@media (max-width: 900px) { .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .phone img { transition: none; } }

/* Live prototype */
.proto { grid-column: 1 / -1; display: grid; justify-items: center; gap: 0.6rem; padding-block: 0.5rem 1rem; }
.proto iframe { width: min(100%, 27rem); height: min(88vh, 58rem); border: 0; border-radius: 1.8rem; background: var(--sheet); box-shadow: 0 30px 46px -26px rgba(22, 20, 18, 0.75); }

/* Cover: printed paper, and Diana behind it */
.cover .pic img { filter: contrast(1.04); }
.cover .reveal { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; }
.cover { cursor: none; }
.cover .scrap { cursor: grab; }
.cover__cursor { position: absolute; left: 0; top: 0; z-index: 6; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 2px solid var(--red); background: transparent; pointer-events: none; opacity: 0; transition: opacity 0.2s ease; }
.cover:hover .cover__cursor { opacity: 1; }
@media (hover: none) { .cover { cursor: auto; } .cover__cursor { display: none; } }

.proto .demo { width: min(100%, 22rem); height: auto; border-radius: 1.8rem; box-shadow: 0 30px 46px -26px rgba(22, 20, 18, 0.75); background: #000; }

/* Circulation: the readers count, printed above the footer like a newspaper's circulation line */
[hidden] { display: none !important; }
.circulation { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem clamp(1.2rem, 4vw, 3.5rem); padding-block: 1.1rem 0.9rem; border-bottom: var(--hair); }
.circulation__label { padding-right: clamp(1rem, 3vw, 2.5rem); border-right: var(--hair); align-self: center; }
.circulation__item { display: flex; align-items: baseline; gap: 0.7rem; }
.circulation__item strong { font-weight: 900; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 0.9; letter-spacing: -0.04em; font-variant-numeric: lining-nums tabular-nums; }
.circulation__item .kicker { color: var(--soft); }

/* Letters to the editor: the guestbook */
.letters { scroll-margin-top: 4rem; padding-bottom: 0; }
.section__head--small { padding-bottom: 0.45rem; }
.section__head--small .section__title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.03em; }
.letters__grid { display: grid; grid-template-columns: minmax(17rem, 0.75fr) 1.7fr; gap: clamp(1.2rem, 3vw, 2.4rem); padding-block: 1rem 0; align-items: start; }
.dear { background: var(--sheet); border: 2px dashed var(--ink); padding: 0.8rem 1rem 0.9rem; display: grid; gap: 0.55rem; position: relative; }
.dear__head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem; }
.dear__salute { font-size: 1.5rem; }
.field { display: grid; gap: 0.15rem; min-width: 0; }
.field__top { display: flex; justify-content: space-between; align-items: baseline; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 0.95rem; color: var(--ink); background: var(--paper); border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; padding: 0.35rem 0.5rem; resize: none; }
.field textarea { min-height: 4.6rem; line-height: 1.35rem; background-color: transparent; background-image: repeating-linear-gradient(transparent 0, transparent calc(1.35rem - 1px), rgba(22, 20, 18, 0.2) calc(1.35rem - 1px), rgba(22, 20, 18, 0.2) 1.35rem); background-position: 0 0.35rem; background-attachment: local; }
.field input:focus, .field textarea:focus { outline: 0; border-bottom-color: var(--red); box-shadow: 0 3px 0 var(--red); }
.field ::placeholder { color: var(--soft); opacity: 0.8; font-style: italic; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.dear__row { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0.7rem; }
.dear__row .btn { cursor: pointer; padding: 0.5rem 1rem; font-size: 0.85rem; }
.dear__row .btn:disabled { opacity: 0.55; cursor: progress; transform: none; box-shadow: none; }
.dear__count { color: var(--soft); font-variant-numeric: tabular-nums; font-size: 0.74rem; }
.dear__status { font-family: var(--pen); font-size: 1.25rem; line-height: 1; min-height: 0; }
.dear__status:empty { display: none; }
.dear__status[data-kind="ok"] { color: var(--ink); }
.dear__status[data-kind="error"] { color: var(--red); }

.letters__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.2rem, 2.6vw, 2.2rem); align-content: start; max-height: 15.5rem; overflow-y: auto; padding-right: 0.4rem; scrollbar-width: thin; scrollbar-color: var(--ink) transparent; }
.letter { padding-block: 0 0.65rem; margin-bottom: 0.65rem; border-bottom: var(--hair); }
.letter__body { font-style: italic; font-variation-settings: "SOFT" 60, "WONK" 1; font-size: 0.97rem; line-height: 1.4; overflow-wrap: anywhere; white-space: pre-line; text-wrap: pretty; }
.letter__body::before { content: "\201C"; color: var(--red); font-style: normal; font-weight: 900; font-size: 2.1rem; line-height: 0; vertical-align: -0.36em; margin-right: 0.1em; }
.letter__by { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.1rem 1rem; margin-top: 0.35rem; font-size: 0.76rem; }
.letter__by span::before { content: "Signed, "; color: var(--soft); font-weight: 600; }
.letter__by time { color: var(--soft); font-weight: 600; }
.letter--empty { border-bottom: 0; grid-column: 1 / -1; }

.owner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 1rem; padding-top: 0.6rem; }
.owner__btn { cursor: pointer; background: none; color: var(--ink); border: 2px solid var(--ink); padding: 0.25rem 0.7rem; }
.owner__btn:hover, .owner__btn:focus-visible { background: var(--ink); color: var(--paper); }
.owner__msg { font-family: var(--pen); font-size: 1.25rem; line-height: 1; color: var(--red); }
.letter__del { cursor: pointer; font: inherit; font-family: var(--label); font-stretch: 68%; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.76rem; color: var(--red); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 0.2em; }
.letter__del:hover { color: var(--ink); }
.letter__del:disabled { opacity: 0.5; cursor: progress; }

@media (max-width: 900px) {
  .letters__grid { grid-template-columns: 1fr; }
  .letters__list { grid-template-columns: 1fr; max-height: 17rem; }
  .circulation__label { border-right: 0; flex-basis: 100%; padding-right: 0; }
}

/* Moved from inline style attributes (issue #11) */
.masthead__h { margin: 0; }
.callout__stack { display: grid; gap: 2rem; }
.columns--rule { border-top: var(--thick); }
.article__link { margin-top: 1rem; }
