/* Operator's Journal — chamandy.org
   Fonts, tokens, layout, components. Single stylesheet, no framework. */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #f7f4ec;
  --paper-2: #efe9dc;
  --ink: #141310;
  --ink-2: #3b3934;
  --muted: #6b665c;
  --rule: #d9d2c3;
  --rule-strong: #b9b09e;
  --accent: #b43a1e;
  --accent-ink: #8a2c16;
  --accent-soft: #f3e3da;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --measure: 66ch;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.375rem;
  --text-xl: 1.75rem;
  --text-2xl: 2.25rem;
  --text-3xl: 3rem;
  --text-4xl: 4rem;
  --text-5xl: 5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 150ms ease, opacity 150ms ease;
}

a:hover {
  color: var(--accent-ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0 0 1.1em;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  font-family: var(--sans);
  font-size: var(--text-sm);
  text-decoration: none;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  color: var(--paper);
}

.eyebrow {
  font-family: var(--mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  display: inline-block;
}

a.eyebrow:hover {
  color: var(--accent-ink);
}

.dot {
  color: var(--rule-strong);
  padding: 0 0.35em;
}

/* Progress bar */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 80;
  pointer-events: none;
}

.progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 1px 0 var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 72px;
}

.wordmark {
  margin-right: auto;
}

.wordmark a {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.primary-nav .nav-list {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  font-family: var(--sans);
  font-size: var(--text-sm);
  color: var(--ink-2);
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}

.icon-btn:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
}

.header-search {
  border-top: 1px solid var(--rule);
  padding: 18px 0;
}

.header-search[hidden] {
  display: none;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 640px;
}

.search-label {
  font-family: var(--mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.search-field {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--text-md);
  padding: 8px 2px;
}

.search-field:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1;
  padding: 14px 18px;
  border: 1px solid var(--ink);
  border-radius: 0;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.btn-sm {
  padding: 10px 14px;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  color: var(--paper);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
}

/* Hero */
.hero {
  padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 72px);
  border-bottom: 1px solid var(--rule);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}

.hero-title {
  font-size: clamp(2.75rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 18px 0 24px;
  max-width: 16ch;
}

.hero-dek {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.hero-figure {
  margin: 0;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.9);
}

.hero-figure figcaption {
  font-family: var(--mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 10px;
}

/* Sections */
.section {
  padding: clamp(40px, 5vw, 72px) 0;
  border-bottom: 1px solid var(--rule);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.section-title {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}

.section-link {
  font-family: var(--mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

/* Cards */
.cards {
  display: grid;
  gap: 40px;
}

.cards-grid {
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 48px 40px;
}

.cards-latest {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards-three {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 40px 32px;
}

.cards-single {
  grid-template-columns: minmax(0, 1fr);
}

.card {
  border-top: 1px solid var(--rule-strong);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card-feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding-top: 24px;
}

.card-cover {
  display: block;
  background: var(--paper-2);
}

.card-cover img {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  transition: opacity 150ms ease;
}

.card-cover:hover img {
  opacity: 0.9;
}

/* Grid cards: the cover is a plate, not a second headline. */
.cards-grid .card-cover,
.cards-three .card-cover {
  width: 62%;
  max-width: 340px;
  border: 1px solid var(--rule);
}

.cards-grid .card,
.cards-three .card {
  gap: 14px;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-title {
  font-size: 1.5rem;
  line-height: 1.18;
}

.card-feature .card-title {
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
}

.card-title a {
  color: var(--ink);
  text-decoration: none;
}

.card-title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.card-dek {
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}

.card-meta,
.post-meta,
.result-meta {
  font-family: var(--mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0;
}

/* Topic rows */
.topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.topic-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}

.topic-row:last-child {
  border-bottom: 1px solid var(--rule);
}

.topic-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.topic-title {
  font-size: var(--text-xl);
}

.topic-title a {
  color: var(--ink);
  text-decoration: none;
}

.topic-title a:hover {
  color: var(--accent);
}

.topic-desc {
  color: var(--ink-2);
  font-size: var(--text-base);
  margin: 0;
  max-width: 44ch;
}

.topic-posts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.topic-posts li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}

.topic-posts li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.topic-posts a {
  color: var(--ink);
  text-decoration: none;
  font-size: var(--text-md);
  line-height: 1.35;
}

.topic-posts a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.topic-posts .meta {
  font-family: var(--mono);
  font-size: var(--text-xs);
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* About band */
.about-band {
  padding: clamp(40px, 5vw, 72px) 0;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
}

.about-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
}

.about-band-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 12px 0 16px;
}

.about-band-text {
  color: var(--ink-2);
  max-width: 62ch;
  margin: 0;
}

.about-band-actions {
  margin: 0;
}

/* Subscribe band */
.subscribe-band {
  padding: clamp(40px, 5vw, 64px) 0;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.subscribe-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.subscribe-title {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  margin-bottom: 8px;
}

.subscribe-dek {
  color: var(--ink-2);
  margin: 0;
  max-width: 52ch;
}

.subscribe-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(48px, 6vw, 80px) 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(247, 244, 236, 0.18);
}

.footer-wordmark {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  color: var(--paper);
}

.footer-desc {
  color: rgba(247, 244, 236, 0.72);
  font-size: var(--text-base);
  max-width: 40ch;
  margin: 0;
}

.footer-heading {
  font-family: var(--mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 244, 236, 0.6);
  font-weight: 400;
  margin: 0 0 14px;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-list a {
  color: var(--paper);
  text-decoration: none;
  font-family: var(--sans);
  font-size: var(--text-sm);
}

.footer-list a:hover {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 24px;
  font-family: var(--mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: rgba(247, 244, 236, 0.6);
}

.footer-bottom p {
  margin: 0;
}

/* Page heads */
.page-head {
  padding: clamp(40px, 5vw, 72px) var(--gutter) clamp(24px, 3vw, 40px);
}

.page-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 14px 0 16px;
}

.page-dek {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 58ch;
  margin: 0 0 12px;
}

.page-dek p {
  margin: 0;
}

.page-count {
  font-family: var(--mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  padding-top: 18px;
}

.filter-list a {
  font-family: var(--sans);
  font-size: var(--text-sm);
  color: var(--ink-2);
  text-decoration: none;
}

.filter-list a:hover,
.filter-list a[aria-current="page"] {
  color: var(--accent);
}

.filter-list a[aria-current="page"] {
  border-bottom: 1px solid var(--accent);
}

/* Article */
.article-head {
  padding-top: clamp(32px, 4vw, 56px);
  padding-bottom: 28px;
  max-width: calc(var(--measure) + var(--gutter) * 2 + 260px);
}

.breadcrumb {
  font-family: var(--mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.article-title {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 16px 0 20px;
  max-width: 24ch;
}

.article-dek {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0 0 22px;
}

.article-cover {
  margin-top: 8px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.article-cover img {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border: 1px solid var(--rule);
}

.article-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding-bottom: clamp(40px, 6vw, 80px);
}

.article-rail {
  position: sticky;
  top: 104px;
}

.article-body {
  min-width: 0;
  max-width: var(--measure);
}

/* Table of contents */
.toc {
  font-family: var(--mono);
  font-size: var(--text-xs);
}

.toc-title {
  font-family: var(--mono);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: toc;
}

.toc-level-3 {
  padding-left: 14px;
}

.toc-list a {
  color: var(--ink-2);
  text-decoration: none;
  line-height: 1.4;
  display: block;
  border-left: 2px solid transparent;
  padding-left: 10px;
}

.toc-list a:hover {
  color: var(--accent);
}

.toc-list a.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
}

.toc-details {
  display: none;
  border: 1px solid var(--rule);
  background: var(--paper-2);
  padding: 14px 18px;
  margin-bottom: 32px;
  font-family: var(--mono);
  font-size: var(--text-xs);
}

.toc-details summary {
  cursor: pointer;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc-details .toc {
  margin-top: 14px;
}

.toc-details .toc-title {
  display: none;
}

/* Brief */
.brief {
  background: var(--paper-2);
  border-left: 3px solid var(--accent);
  padding: 24px;
  margin: 0 0 40px;
}

.brief-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brief-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
}

.brief dt {
  font-family: var(--mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.brief dd {
  margin: 0;
  font-size: var(--text-md);
  line-height: 1.45;
  color: var(--ink);
}

/* Prose */
.prose {
  font-size: 1.1875rem;
  line-height: 1.7;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1.35em;
}

.prose > p:first-of-type {
  font-size: 1.3125rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.prose h2 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.15;
  margin: 2.2em 0 0.6em;
  letter-spacing: -0.025em;
  scroll-margin-top: 104px;
}

.prose h3 {
  font-size: 1.25rem;
  margin: 1.8em 0 0.5em;
  scroll-margin-top: 104px;
}

.prose ul,
.prose ol {
  margin: 0 0 1.4em;
  padding-left: 1.3em;
}

.prose li {
  margin-bottom: 0.5em;
}

.prose li::marker {
  color: var(--muted);
}

.prose blockquote {
  margin: 1.8em 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--accent);
  color: var(--ink-2);
  font-style: italic;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose strong {
  font-weight: 600;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.4em 0;
}

.prose .callout,
.callout {
  background: var(--paper-2);
  border-left: 3px solid var(--rule-strong);
  padding: 20px 24px;
  margin: 1.8em 0;
}

.prose .callout p:last-child,
.callout p:last-child {
  margin-bottom: 0;
}

.prose ol.sources,
.prose .sources {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--muted);
  padding-left: 1.5em;
}

.prose ol.sources li,
.prose .sources li {
  margin-bottom: 0.7em;
}

.prose ol.sources a,
.prose .sources a {
  color: var(--muted);
  text-decoration-color: var(--rule-strong);
}

.prose ol.sources a:hover,
.prose .sources a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* Tables */
.prose table,
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  margin: 1.6em 0;
}

.prose th,
.prose td,
.wp-block-table th,
.wp-block-table td {
  border-bottom: 1px solid var(--rule);
  padding: 10px 12px 10px 0;
  text-align: left;
  vertical-align: top;
}

.prose th,
.wp-block-table th {
  font-family: var(--mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  border-bottom: 1px solid var(--rule-strong);
}

.prose table caption {
  caption-side: bottom;
  font-family: var(--mono);
  font-size: var(--text-xs);
  color: var(--muted);
  text-align: left;
  padding-top: 8px;
}

.wp-block-table {
  overflow-x: auto;
}

.linkedin-note {
  font-family: var(--mono);
  font-size: var(--text-xs);
  color: var(--muted);
  letter-spacing: 0.04em;
  margin: 32px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.filed-under {
  font-family: var(--mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 20px 0 0;
}

/* Author box */
.author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 40px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

.author-portrait {
  width: 80px;
  height: 100px;
  object-fit: cover;
  flex: none;
}

.author-name {
  font-family: var(--serif);
  font-size: var(--text-lg);
  font-weight: 600;
  margin: 0 0 6px;
}

.author-bio {
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 10px;
}

.author-links {
  font-family: var(--mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  margin: 0;
}

/* Related */
.related {
  border-top: 1px solid var(--rule);
}

/* Archive */
.archive-year {
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}

.archive-year-title {
  font-size: var(--text-2xl);
  margin-bottom: 18px;
}

.archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.archive-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: baseline;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 12px;
}

.archive-list a {
  color: var(--ink);
  text-decoration: none;
  font-size: var(--text-md);
}

.archive-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.archive-meta {
  font-family: var(--mono);
  font-size: var(--text-xs);
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* About page */
.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: clamp(32px, 5vw, 64px);
  align-items: end;
  padding-top: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(32px, 4vw, 56px);
}

.page-lede {
  font-size: 1.3125rem;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 54ch;
  margin: 0 0 28px;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.about-portrait {
  margin: 0;
}

.about-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.9);
}

.about-portrait figcaption {
  font-family: var(--mono);
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: 10px;
}

.prose-page {
  max-width: var(--measure);
  padding-bottom: clamp(40px, 6vw, 72px);
}

/* Contact */
.contact-list {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  max-width: var(--measure);
}

.contact-list li {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.contact-list li:first-child {
  border-top: 1px solid var(--rule-strong);
}

.contact-label {
  font-family: var(--mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-value {
  font-size: var(--text-md);
  color: var(--ink);
  text-decoration: none;
}

.contact-value:hover {
  color: var(--accent);
  text-decoration: underline;
}

.contact-note {
  font-size: var(--text-base);
  color: var(--ink-2);
  max-width: var(--measure);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  margin-top: 32px;
}

/* Search results and empty states */
.result-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--measure);
}

.result {
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}

.result-title {
  font-size: var(--text-lg);
  margin: 8px 0 8px;
}

.result-title a {
  color: var(--ink);
  text-decoration: none;
}

.result-title a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.result-dek {
  color: var(--ink-2);
  font-size: var(--text-base);
  margin: 0 0 8px;
}

.empty-state {
  max-width: var(--measure);
  padding: 40px 0 56px;
  color: var(--ink-2);
}

.empty-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  margin: 20px 0 28px;
  padding: 0;
  font-family: var(--sans);
  font-size: var(--text-sm);
}

.notfound {
  padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(64px, 8vw, 120px);
  max-width: calc(var(--measure) + var(--gutter) * 2);
}

/* Pagination */
.pagination {
  margin: 56px 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--sans);
  font-size: var(--text-sm);
}

.pagination .page-numbers {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink-2);
}

.pagination .page-numbers:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.pagination .current {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* WordPress alignment classes */
.prose .alignwide {
  margin-left: calc(-1 * clamp(0px, 6vw, 80px));
  margin-right: calc(-1 * clamp(0px, 6vw, 80px));
}

.prose .alignfull {
  margin-left: calc(-1 * var(--gutter));
  margin-right: calc(-1 * var(--gutter));
}

/* Responsive */
@media (max-width: 1080px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-rail {
    display: none;
  }

  .toc-details {
    display: block;
  }
}

@media (max-width: 900px) {
  .hero-inner,
  .about-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-figure,
  .about-portrait {
    max-width: 300px;
  }

  .cards-latest,
  .card-feature,
  .topic-row,
  .about-band-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu-toggle {
    display: inline-flex;
  }

  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 20px;
  }

  .site-header.menu-open .primary-nav {
    display: block;
  }

  .primary-nav .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .primary-nav li {
    border-bottom: 1px solid var(--rule);
  }

  .primary-nav a {
    display: block;
    padding: 14px 0;
    font-size: var(--text-md);
  }

}

@media (max-width: 640px) {
  body {
    font-size: 1.0625rem;
  }

  .header-subscribe {
    display: none;
  }

  .brief-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .contact-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-title {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .progress {
    display: none;
  }
}
