/*
Theme Name: GlenMag
Theme URI: https://glenrhodes.com
Author: Glen Rhodes
Description: A print-magazine theme for GLENRHODES.COM: masthead, cover story, contents, features, departments and a browsable archive back to 2000.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: glenmag
*/

/* ---------- Tokens ---------- */
:root {
  --paper: #f6f2ea;
  --paper-2: #ece6da;
  --ink: #121110;
  --ink-2: #3b3833;
  --ink-3: #6d675e;
  --rule: #cfc6b6;
  --gold: #a87c2e;        /* gold for text on paper (AA on --paper) */
  --gold-bright: #dcb565; /* gold on ink */
  --night: #0f0e0c;

  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --text: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1320px;
  --gutter: clamp(16px, 3.2vw, 40px);
  --measure: 40rem;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .18em; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 100; top: 8px; left: 8px; width: auto; height: auto; clip: auto; background: var(--ink); color: var(--paper); padding: 8px 14px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Small caps labels */
.label, .kicker, .byline, .issue-line, .sections a, .section-head__label, .toc__meta, .more-link, .pager, .meta {
  font-family: var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .7rem;
  font-weight: 600;
}
.kicker { color: var(--gold); text-decoration: none; display: inline-block; }
.kicker:hover { color: var(--ink); }
.byline { color: var(--ink-3); font-weight: 500; letter-spacing: .12em; }
.byline strong { color: var(--ink); font-weight: 700; }
.byline .sep { margin: 0 .5em; color: var(--rule); }

/* ---------- Top strip ---------- */
.topbar { border-bottom: 1px solid var(--rule); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.issue-line { color: var(--ink-3); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.issue-line b { color: var(--ink); font-weight: 700; }
.topbar__right { display: flex; align-items: center; gap: 18px; }
.topbar__menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.topbar__menu .sub-menu { display: none; }
.topbar__menu a { font: 600 .68rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); }
.icon-btn { background: none; border: 0; padding: 6px; cursor: pointer; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; font: 600 .68rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.icon-btn svg { width: 18px; height: 18px; }
@media (max-width: 860px) { .topbar__menu { display: none; } }

/* ---------- Masthead ---------- */
.masthead { padding: clamp(18px, 3vw, 34px) 0 0; text-align: center; }
.masthead__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 8.55vw, 8.5rem);
  line-height: .9;
  letter-spacing: -.025em;
  text-transform: uppercase;
  white-space: nowrap;
}
.masthead__title a { text-decoration: none; color: var(--ink); }
.masthead__title .dot { color: var(--gold); font-style: italic; font-weight: 500; letter-spacing: -.04em; }
.masthead__tagline {
  margin: clamp(8px, 1.2vw, 14px) auto 0;
  font: italic 400 clamp(.95rem, 1.6vw, 1.2rem)/1.35 var(--text);
  color: var(--ink-2);
}
.masthead--small .masthead__title { font-size: clamp(2rem, 6vw, 4.6rem); }

/* Section nav */
.sections { margin-top: clamp(14px, 2vw, 22px); border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); }
.sections ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.sections li { display: flex; }
.sections a { display: block; padding: 12px clamp(10px, 1.4vw, 18px); text-decoration: none; color: var(--ink); font-size: .72rem; }
.sections a:hover, .sections .current-menu-item > a, .sections .is-current > a { color: var(--gold); }
.sections .sub-menu { display: none; }
@media (max-width: 720px) {
  .sections ul { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .sections ul::-webkit-scrollbar { display: none; }
  .sections a { white-space: nowrap; }
}

/* Search drawer */
.search-drawer { display: none; border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.search-drawer.is-open { display: block; }
.search-form { display: flex; gap: 10px; padding: 18px 0; max-width: 720px; margin: 0 auto; }
.search-form input[type=search] { flex: 1; border: 0; border-bottom: 2px solid var(--ink); background: transparent; font: italic 400 1.5rem/1.2 var(--display); padding: 8px 2px; color: var(--ink); }
.search-form input[type=search]:focus { outline: none; border-color: var(--gold); }
.btn { display: inline-block; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); padding: 11px 20px; font: 600 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }

/* ---------- Section heads ---------- */
.section { padding-top: clamp(36px, 6vw, 72px); }
.section-head { display: flex; align-items: baseline; gap: 18px; border-top: 1px solid var(--ink); padding-top: 12px; margin-bottom: clamp(20px, 3vw, 34px); }
.section-head__label { color: var(--ink); }
.section-head__title { margin: 0; font: italic 500 clamp(1.6rem, 3vw, 2.4rem)/1 var(--display); letter-spacing: -.01em; }
.section-head__aside { margin-left: auto; }
.more-link { text-decoration: none; color: var(--ink); white-space: nowrap; }
.more-link::after { content: " \2192"; }

/* ---------- Cover story ---------- */
.cover { padding-top: clamp(24px, 4vw, 48px); }
.cover__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.cover__media { position: relative; display: block; background: var(--night); aspect-ratio: 3 / 4; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(18, 17, 16, .55); }
.cover__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .8s ease; }
.cover__media:hover img { transform: scale(1.02); }
.cover__badge { position: absolute; left: 0; top: 18px; background: var(--gold-bright); color: var(--ink); padding: 8px 14px; font: 700 .66rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.cover__text .kicker { font-size: .74rem; }
.cover__title { margin: 14px 0 0; font: 700 clamp(2.3rem, 4.6vw, 4.4rem)/1 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.cover__title--long { font-size: clamp(2.1rem, 3.7vw, 3.5rem); line-height: 1.03; }
.cover__title a { text-decoration: none; }
.cover__dek { margin: 22px 0 0; font: italic 400 clamp(1.1rem, 1.6vw, 1.38rem)/1.5 var(--text); color: var(--ink-2); max-width: 36rem; }
.cover__text .byline { margin-top: 24px; display: block; }
.cover__text .btn { margin-top: 26px; }
@media (max-width: 860px) { .cover__grid { grid-template-columns: 1fr; } .cover__media { max-width: 520px; width: 100%; margin: 0 auto; } }

/* ---------- In this issue (contents) ---------- */
.toc { margin-top: clamp(40px, 6vw, 80px); background: var(--night); color: #efe9de; padding: clamp(32px, 5vw, 64px) 0; }
.toc .section-head { border-color: #4a453d; margin-bottom: clamp(22px, 3vw, 40px); }
.toc .section-head__label { color: #b9b1a3; }
.toc .section-head__title { color: #fff; }
.toc__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px clamp(20px, 2.6vw, 40px); counter-reset: toc 1; }
.toc__item { counter-increment: toc; border-top: 1px solid #3a362f; padding-top: 14px; }
.toc__num { display: block; font: italic 500 clamp(2.4rem, 4vw, 3.4rem)/1 var(--display); color: var(--gold-bright); }
.toc__num::before { content: counter(toc, decimal-leading-zero); }
.toc__title { margin: 10px 0 0; font: 600 1.18rem/1.22 var(--display); text-wrap: pretty; }
.toc__title a { text-decoration: none; color: #fff; }
.toc__title a:hover { color: var(--gold-bright); }
.toc__meta { display: block; margin-top: 10px; color: #a39b8d; font-weight: 500; }
@media (max-width: 1000px) { .toc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .toc__grid { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card__media { display: block; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--night); }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s ease, filter .6s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__title { margin: 2px 0 0; font: 700 1.42rem/1.12 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.card__title a { text-decoration: none; }
.card__dek { margin: 0; color: var(--ink-2); font-size: 1rem; line-height: 1.55; }
.card .byline { font-size: .64rem; }
.card--landscape .card__media { aspect-ratio: 16 / 10; }

/* Typographic stand-in for posts without an image */
.plate { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; color: #efe9de; background:
  radial-gradient(120% 80% at 100% 0%, rgba(220, 181, 101, .22), transparent 60%),
  linear-gradient(160deg, #1c1a17, #0f0e0c); text-decoration: none; }
.plate__year { font: italic 500 clamp(3.4rem, 7vw, 5.6rem)/.9 var(--display); color: var(--gold-bright); }
.plate__initial { font: 700 clamp(5rem, 12vw, 9rem)/.8 var(--display); color: rgba(239, 233, 222, .1); align-self: flex-end; }
.plate__label { font: 600 .64rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: #b9b1a3; }
.plate--light { background: linear-gradient(160deg, var(--paper-2), #e2dacb); color: var(--ink); }
.plate--light .plate__year { color: var(--gold); }
.plate--light .plate__initial { color: rgba(18, 17, 16, .07); }
.plate--light .plate__label { color: var(--ink-3); }
.plate--gold { background: radial-gradient(120% 90% at 0% 100%, rgba(18, 17, 16, .18), transparent 60%), linear-gradient(160deg, #e4c37a, #c99f4c); color: var(--ink); }
.plate--gold .plate__year { color: var(--ink); }
.plate--gold .plate__initial { color: rgba(18, 17, 16, .12); }
.plate--gold .plate__label { color: rgba(18, 17, 16, .7); }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 3.4vw, 52px); }
.features__lead .card__media { aspect-ratio: 4 / 3.6; }
.features__lead .card__title { font-size: clamp(1.9rem, 3.2vw, 2.8rem); line-height: 1.02; }
.features__lead .card__dek { font-size: 1.1rem; }
.features__side { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.4vw, 32px); align-content: start; }
.features__side .card__title { font-size: 1.16rem; }
.features__side .card__dek { display: none; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 48px) clamp(20px, 2.8vw, 40px); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid, .grid--4 { grid-template-columns: 1fr; } }

/* ---------- Editor's letter ---------- */
.letter { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.letter__title { margin: 0; font: 400 clamp(3rem, 6.4vw, 5.8rem)/.92 var(--display); letter-spacing: -.02em; }
.letter__title em { font-style: italic; color: var(--gold); }
.letter__mark { margin-top: 26px; width: 132px; border-radius: 50%; }
.letter__body { columns: 2 18rem; column-gap: clamp(24px, 3vw, 44px); column-rule: 1px solid var(--rule); font-size: 1.05rem; }
.letter__body p { margin: 0 0 1em; }
.letter__body p:first-child::first-letter { float: left; font: 700 4.6em/.8 var(--display); margin: .06em .1em 0 0; color: var(--ink); }
.letter__sign { break-inside: avoid; margin-top: 8px; font: italic 500 1.5rem/1.2 var(--display); }
.letter__sign small { display: block; margin-top: 4px; font: 600 .66rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-style: normal; }
@media (max-width: 860px) { .letter { grid-template-columns: 1fr; } }

/* ---------- Departments ---------- */
.depts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.dept { border-top: 3px solid var(--ink); padding-top: 14px; }
.dept__title { margin: 0 0 6px; font: italic 600 1.9rem/1 var(--display); }
.dept__title a { text-decoration: none; }
.dept__desc { margin: 0 0 14px; color: var(--ink-3); font-size: .95rem; }
.dept__list { list-style: none; margin: 0; padding: 0; }
.dept__list li { padding: 12px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 3.4rem 1fr; gap: 12px; align-items: baseline; }
.dept__list .yr { font: italic 500 1.2rem/1 var(--display); color: var(--gold); }
.dept__list a { font: 600 1.08rem/1.25 var(--display); text-decoration: none; }
@media (max-width: 900px) { .depts { grid-template-columns: 1fr; } }

/* ---------- Archive band ---------- */
.archive-band { margin-top: clamp(40px, 6vw, 80px); background: var(--paper-2); padding: clamp(32px, 5vw, 64px) 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.archive-band .section { padding-top: 0; }
.years { list-style: none; margin: clamp(28px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--rule); }
.years li { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.years a { display: block; padding: 14px 12px; text-decoration: none; }
.years a:hover { background: var(--ink); color: var(--paper); }
.years .y { display: block; font: 700 1.5rem/1 var(--display); }
.years .n { display: block; margin-top: 6px; font: 600 .6rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.years a:hover .n { color: var(--gold-bright); }

/* ---------- Story list ---------- */
.list { list-style: none; margin: 0; padding: 0; columns: 2 30rem; column-gap: clamp(24px, 4vw, 64px); }
.list li { break-inside: avoid; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--rule); }
.list .thumb { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--night); }
.list .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.list .thumb .plate { padding: 8px; }
.list .thumb .plate__year { font-size: 1.5rem; }
.list h3 { margin: 4px 0 6px; font: 700 1.14rem/1.2 var(--display); }
.list h3 a { text-decoration: none; }

/* ---------- Article ---------- */
.article-head { padding: clamp(32px, 6vw, 80px) 0 clamp(24px, 3vw, 36px); text-align: center; }
.article-head .kicker { font-size: .74rem; }
.article-title { margin: 16px auto 0; max-width: 18ch; font: 700 clamp(2.4rem, 6.2vw, 5.4rem)/.98 var(--display); letter-spacing: -.022em; text-wrap: balance; }
.article-dek { margin: 24px auto 0; max-width: 38rem; font: italic 400 clamp(1.12rem, 1.8vw, 1.42rem)/1.5 var(--text); color: var(--ink-2); text-wrap: pretty; }
.article-head .byline { margin-top: 26px; display: block; }
.archive-note { display: inline-block; margin-bottom: 18px; padding: 7px 12px; border: 1px solid var(--rule); font: 600 .64rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.archive-note b { color: var(--gold); }

.article-hero { max-width: 980px; margin: 0 auto; padding: 0 var(--gutter); }
.article-hero--portrait { max-width: 720px; }
.article-hero--small { text-align: center; }
.article-hero--small img { display: inline-block; width: auto !important; }
.article-hero img { width: 100%; box-shadow: 0 30px 60px -34px rgba(18, 17, 16, .55); }
.article-hero figcaption { margin-top: 10px; font: italic .9rem/1.4 var(--text); color: var(--ink-3); }

.prose { max-width: var(--measure); margin: clamp(32px, 5vw, 56px) auto 0; padding: 0 var(--gutter); box-sizing: content-box; font-size: clamp(1.08rem, 1.1vw + .7rem, 1.22rem); line-height: 1.72; color: #1d1b18; }
.prose > * { margin: 0 0 1.15em; }
.prose > p:first-of-type::first-letter, .prose.has-dropcap > p:first-of-type::first-letter { float: left; font: 700 4.4em/.78 var(--display); margin: .07em .09em 0 -.02em; color: var(--ink); }
.prose h2, .prose h3, .prose h4 { font-family: var(--display); line-height: 1.12; letter-spacing: -.01em; margin: 1.8em 0 .55em; }
.prose h2 { font-size: 1.85em; font-weight: 700; }
.prose h3 { font-size: 1.35em; font-weight: 700; }
.prose h4 { font: 700 .78rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.prose a { color: var(--ink); text-decoration-color: var(--gold); text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--gold); }
.prose blockquote { margin: 1.8em 0; padding: 0; border: 0; font: italic 500 1.55em/1.3 var(--display); color: var(--ink); text-align: center; }
.prose blockquote::before { content: "\201C"; display: block; font: 700 3.2em/.6 var(--display); color: var(--gold); margin-bottom: .1em; }
.prose blockquote p { margin: 0 0 .4em; }
.prose blockquote cite { display: block; margin-top: 10px; font: 600 .62rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-style: normal; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--gold); }
.prose img, .prose figure { margin-left: auto; margin-right: auto; }
.prose figure { margin: 2em auto; }
.prose figcaption { font: italic .88rem/1.4 var(--text); color: var(--ink-3); margin-top: 8px; text-align: center; }
.prose .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.prose .aligncenter { margin-left: auto; margin-right: auto; }
.prose iframe, .prose .wp-block-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }
.prose pre { overflow-x: auto; background: var(--night); color: #efe9de; padding: 18px; font-size: .82em; line-height: 1.5; }
.prose code { font-size: .88em; background: var(--paper-2); padding: .1em .3em; }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; text-align: center; margin: 2.4em 0; }
.prose hr::after { content: "\2042"; color: var(--gold); font-size: 1.4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9em; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: 8px 6px; text-align: left; }
.prose .sources, .prose .sources-head ~ ol, .prose .sources-head ~ ul { font-size: .82em; line-height: 1.5; color: var(--ink-2); }
.prose .sources-head { font: 700 .74rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; border-top: 1px solid var(--ink); padding-top: 14px; margin-top: 2.6em; }
.prose::after { content: ""; display: table; clear: both; }
.end-mark { display: inline-block; width: .62em; height: .62em; background: var(--gold); margin-left: .3em; vertical-align: baseline; }

.article-foot { max-width: var(--measure); margin: 48px auto 0; padding: 0 var(--gutter); box-sizing: content-box; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { font: 600 .62rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--rule); padding: 7px 10px; color: var(--ink-2); }
.tags a:hover { border-color: var(--ink); color: var(--ink); }
.author { display: grid; grid-template-columns: 72px 1fr; gap: 18px; margin-top: 32px; padding: 22px 0; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--rule); }
.author img { width: 72px; height: 72px; border-radius: 50%; }
.author h3 { margin: 0; font: 700 1.3rem/1.1 var(--display); }
.author p { margin: 6px 0 0; color: var(--ink-2); font-size: .98rem; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.prevnext a { text-decoration: none; display: block; }
.prevnext .label { color: var(--ink-3); display: block; margin-bottom: 6px; }
.prevnext strong { font: 700 1.08rem/1.25 var(--display); display: block; }
.prevnext .next { text-align: right; }

/* ---------- Archive pages ---------- */
.archive-head { padding: clamp(36px, 6vw, 80px) 0 clamp(24px, 3vw, 40px); text-align: center; border-bottom: 1px solid var(--ink); margin-bottom: clamp(28px, 4vw, 48px); }
.archive-head__title { margin: 12px 0 0; font: 700 clamp(2.6rem, 7vw, 6rem)/.95 var(--display); letter-spacing: -.02em; }
.archive-head__title em { color: var(--gold); }
.archive-head__desc { margin: 16px auto 0; max-width: 40rem; font: italic 1.15rem/1.5 var(--text); color: var(--ink-2); }
.archive-head .meta { margin-top: 18px; display: block; color: var(--ink-3); }
.year-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 22px; }
.year-nav a { font: 600 .9rem/1 var(--display); text-decoration: none; color: var(--ink-3); }
.year-nav a.is-current { color: var(--gold); text-decoration: underline; }

.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin: clamp(40px, 6vw, 72px) 0 0; flex-wrap: wrap; }
.pager .page-numbers { display: inline-block; min-width: 40px; padding: 11px 12px; text-align: center; text-decoration: none; border: 1px solid var(--rule); }
.pager .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pager a.page-numbers:hover { border-color: var(--ink); color: var(--ink); }
.pager .dots { border: 0; }

.empty { text-align: center; padding: 40px 0; font: italic 1.3rem/1.5 var(--text); color: var(--ink-2); }

/* ---------- Comments ---------- */
.comments { max-width: var(--measure); margin: 56px auto 0; padding: 0 var(--gutter); box-sizing: content-box; }
.comments h2 { font: italic 500 1.8rem/1 var(--display); border-top: 1px solid var(--ink); padding-top: 14px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 16px 0; border-top: 1px solid var(--rule); }
.comment-meta { font: 600 .66rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.comment-meta .fn { color: var(--ink); }
.comment-form input:not([type=submit]):not([type=checkbox]), .comment-form textarea { width: 100%; border: 1px solid var(--rule); background: #fffdf8; padding: 10px; font: 1rem/1.5 var(--text); }
.comment-form input[type=submit] { border: 1px solid var(--ink); background: var(--ink); color: var(--paper); padding: 12px 22px; font: 600 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(56px, 8vw, 110px); background: var(--night); color: #cfc7b9; padding: clamp(40px, 6vw, 72px) 0 28px; }
.site-footer a { color: #efe9de; text-decoration: none; }
.site-footer a:hover { color: var(--gold-bright); }
.footer__mast { margin: 0; font: 800 clamp(2rem, 6.4vw, 5.4rem)/.9 var(--display); letter-spacing: -.02em; text-transform: uppercase; color: #fff; }
.footer__mast .dot { color: var(--gold-bright); font-style: italic; font-weight: 500; }
.footer__tag { margin: 10px 0 0; font: italic 1.05rem/1.5 var(--text); color: #b9b1a3; }
.footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 44px; padding-top: 22px; border-top: 1px solid #3a362f; }
.footer__cols h2 { margin: 0 0 14px; font: 600 .66rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-bright); }
.footer__cols ul { list-style: none; margin: 0; padding: 0; }
.footer__cols li { margin: 0 0 9px; font-size: .98rem; }
.footer__cols .sub-menu { margin: 9px 0 0 12px; }
.footer__years { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.footer__years a { font: 500 .95rem/1.3 var(--display); }
.footer__colophon { margin-top: 44px; padding-top: 18px; border-top: 1px solid #3a362f; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 500 .66rem/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #8d8577; }
@media (max-width: 900px) { .footer__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__cols { grid-template-columns: 1fr; } }

/* ---------- WordPress bits ---------- */
.wp-caption { max-width: 100%; }
.sticky, .bypostauthor, .gallery-caption { }
.alignwide, .alignfull { max-width: none; }

/* ---------- Display optical size ---------- */
/* Bodoni Moda's display optical size has hairlines too fine for screens at headline sizes;
   pin big display type to a sturdier cut. This must come last: the `font` shorthand resets it. */
.masthead__title, .footer__mast, .cover__title, .article-title, .archive-head__title, .letter__title,
.features__lead .card__title, .section-head__title, .toc__num, .plate__year, .plate__initial, .dept__title, .prose blockquote {
  font-variation-settings: "opsz" 16;
}
