@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,300;1,6..72,400&family=Archivo:wght@400;500;600;700&display=swap');
@import url('../data/brand-tokens.css');

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* The masthead is sticky (68px), so anything scrolled to by its id has to
     clear it. One mechanism only: adding scroll-margin-top to the targets as
     well would stack with this and drop them far below the fold. */
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
::selection { background: var(--bsj-gold); color: #15191F; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px; left: 10px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  transform: translateY(-150%);
  transition: transform .15s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { padding-block: clamp(48px, 7vw, 88px); }
.section-tight { padding-block: clamp(36px, 4.5vw, 56px); }
.section-alt { background: var(--paper-sunk); }
.section-navy { background: var(--bsj-blue-deep); color: #F2F0EA; }
[data-theme="dark"] .section-navy { background: var(--surface-sunk); }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.center { text-align: center; margin-inline: auto; }

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.35rem + 3.1vw, 3.7rem); line-height: 1.05; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 1.06rem + .6vw, 1.45rem); line-height: 1.2; }
h4 { font-size: 1.1rem; }
h5 { font-size: .95rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-family: var(--font-serif);
  font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 58ch;
}
.lede.center { margin-inline: auto; }

/* Small uppercase label. No decorative dash — the rule above it does that job. */
.eyebrow,
.archive-panel-kicker,
.article-aside-label,
.editor-dept-label {
  display: block;
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.text-link {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.text-link:hover { color: var(--link-hover); }

/* A section opener: hairline rule, label, heading. */
.section-head {
  margin-bottom: clamp(28px, 3.5vw, 44px);
  padding-top: 18px;
  border-top: 1px solid var(--rule-ink);
}
.section-head h2 { margin-bottom: .35em; }
.section-head.center { border-top: 0; padding-top: 0; }
.section-navy .section-head { border-color: rgba(255, 255, 255, .35); }
.section-navy .section-head h2,
.section-navy h2 { color: #FFFFFF; }
.section-navy .eyebrow { color: var(--bsj-gold); }
.section-navy p { color: rgba(242, 240, 234, .78); }

.breadcrumb,
.archive-breadcrumb,
.article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--ink-muted);
}
.breadcrumb a:hover,
.archive-breadcrumb a:hover,
.article-breadcrumb a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb span, .archive-breadcrumb span, .article-breadcrumb span { color: var(--rule-strong); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background-color .14s ease, border-color .14s ease, color .14s ease;
}
.btn-primary { background: var(--bsj-blue); border-color: var(--bsj-blue); color: #FFFFFF; }
.btn-primary:hover { background: var(--bsj-blue-deep); border-color: var(--bsj-blue-deep); }
[data-theme="dark"] .btn-primary { color: #0E1216; }

.btn-outline { border-color: var(--rule-strong); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); background: var(--surface-sunk); }

.btn-gold { background: var(--bsj-gold); border-color: var(--bsj-gold); color: #241800; }
.btn-gold:hover { background: #E9A50D; border-color: #E9A50D; }

.btn-sm { padding: 8px 15px; font-size: 13px; }

/* ==========================================================================
   Masthead
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.navbar-inner {
  max-width: var(--page);
  margin-inline: auto;
  padding: 0 var(--gutter);
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-right: auto;
}
.brand img { width: 30px; height: 30px; flex: none; }
.brand > span { display: flex; flex-direction: column; }
.brand-sub {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  position: relative;
  display: block;
  padding: 4px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .14s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--bsj-gold);
}

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta > .btn {
  min-width: 152px;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 2px;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px; height: 1.5px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before,
.nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.navbar.open .nav-toggle span { background: transparent; }
.navbar.open .nav-toggle span::before { transform: translateY(5px) rotate(45deg); }
.navbar.open .nav-toggle span::after { transform: translateY(-5px) rotate(-45deg); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: clamp(48px, 6vw, 80px);
  padding-block: clamp(44px, 5vw, 64px) 28px;
  border-top: 2px solid var(--rule-ink);
  background: var(--paper-sunk);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 36px;
  padding-bottom: 36px;
}
.footer-grid > div > p { color: var(--ink-muted); max-width: 40ch; margin: 0; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-serif);
  font-size: 17px;
}
.footer-brand img { width: 26px; height: 26px; }

.site-footer h5 {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer ul a { color: var(--ink-soft); }
.site-footer ul a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-muted);
}
.footer-social { display: flex; align-items: center; gap: 14px; }
.footer-social a { color: var(--ink-muted); }
.footer-social a:hover { color: var(--link); }
.footer-social svg { width: 17px; height: 17px; }
.footer-divider { width: 1px; height: 16px; background: var(--rule-strong); }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ink-muted);
  cursor: pointer;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--rule-strong); }
.theme-toggle svg { width: 15px; height: 15px; }

/* ==========================================================================
   Home — current issue
   ========================================================================== */
.hero { padding-block: clamp(36px, 5vw, 68px) clamp(40px, 5vw, 72px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.issue-stamp {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--rule-ink);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.issue-stamp b { color: var(--ink); font-weight: 600; }
.issue-stamp .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--bsj-gold);
  align-self: center;
}

.hero-cover {
  display: block;
  border: 1px solid var(--rule);
  background: var(--surface);
}
.hero-cover img { width: 100%; aspect-ratio: 8.5 / 11; object-fit: cover; }
.hero-cover:hover { border-color: var(--rule-strong); }

.hero h1 { margin-bottom: .3em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid var(--rule);
}
.hero-stats > div {
  flex: 1 1 140px;
  padding: 16px 20px 0 0;
}
.hero-stats strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero-stats span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Table of contents for the current issue */
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-list li { border-top: 1px solid var(--rule); }
.toc-list li:last-child { border-bottom: 1px solid var(--rule); }
.toc-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 18px;
  padding: 15px 0;
}
.toc-entry:hover .toc-title { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.toc-title {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.3;
  transition: color .14s ease;
}
.toc-authors {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  color: var(--ink-muted);
}
.toc-flag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}

/* Columned lists for long tables of contents */
.toc-columns { columns: 2; column-gap: 48px; }
.toc-columns > li { break-inside: avoid; }

/* ==========================================================================
   Cards — departments, timeline, generic
   ========================================================================== */
.card {
  padding: 24px 0 0;
  border-top: 1px solid var(--rule-ink);
  background: transparent;
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-muted); font-size: 15px; margin: 0; }

.division-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  padding: 24px 0 0;
  border-top: 1px solid var(--rule);
}
.division-card .num {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}
.division-card h3 { margin-bottom: .35em; }
.division-card p { color: var(--ink-muted); font-size: 15px; margin: 0; }

.timeline { display: grid; gap: 0; }
.timeline-item {
  padding: 18px 0 18px 24px;
  border-left: 1px solid var(--rule);
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -3.5px; top: 25px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--bsj-gold);
}
.timeline-item h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: .5em;
}
.timeline-item p { margin: 0; font-family: var(--font-serif); font-size: 1.02rem; line-height: 1.5; }

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 26px;
  border-top: 2px solid var(--rule-ink);
}
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { color: var(--ink-muted); margin: 0; max-width: 50ch; }

/* ==========================================================================
   Issues
   ========================================================================== */
.issue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: clamp(22px, 2.6vw, 34px);
}

.issue-card { display: flex; flex-direction: column; }
.issue-cover {
  display: block;
  border: 1px solid var(--rule);
  background: var(--surface);
  transition: border-color .14s ease;
}
.issue-cover img {
  width: 100%;
  aspect-ratio: 8.5 / 11;
  object-fit: cover;
}
.issue-card:hover .issue-cover { border-color: var(--rule-ink); }

.issue-meta { padding-top: 13px; }
.issue-meta .vol {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}
.issue-meta h3, .issue-meta h4 {
  margin: 6px 0 4px;
  font-size: 1.15rem;
  line-height: 1.2;
}
.issue-card:hover .issue-meta h3 { text-decoration: underline; text-underline-offset: 3px; }
.issue-meta .sem { font-size: 13px; color: var(--ink-muted); }

.issue-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  font-size: 12.5px;
}
.issue-links a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.issue-links a:hover { color: var(--link-hover); }

/* Expandable table of contents inside an issue card */
.issue-toc { margin-top: 10px; }
.issue-toc > summary {
  font-size: 12.5px;
  color: var(--ink-muted);
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.issue-toc > summary::-webkit-details-marker { display: none; }
.issue-toc > summary::before {
  content: '+';
  font-variant-numeric: tabular-nums;
  color: var(--rule-strong);
}
.issue-toc[open] > summary::before { content: '–'; }
.issue-toc > summary:hover { color: var(--ink); }
.issue-toc ol {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 13px;
  border-top: 1px solid var(--rule);
  padding-top: 12px;
}
.issue-toc ol a { color: var(--ink-soft); }
.issue-toc ol a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.issue-toc .toc-authors { font-size: 12px; margin-top: 2px; }

/* ==========================================================================
   Archive page
   ========================================================================== */
.archive-hero { padding-block: clamp(32px, 4vw, 56px) clamp(32px, 4vw, 52px); }
.archive-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 240px);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.archive-hero h1 { margin-bottom: .3em; }
.archive-hero-copy > p { color: var(--ink-soft); max-width: 56ch; }

.archive-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 28px 0 0;
  border-top: 1px solid var(--rule);
}
.archive-stats > div { flex: 1 1 120px; padding: 14px 20px 0 0; }
.archive-stats dt {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.archive-stats dd {
  margin: 6px 0 0;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.archive-featured-issue { display: grid; gap: 14px; }
.archive-featured-cover {
  display: block;
  border: 1px solid var(--rule);
  background: var(--surface);
}
.archive-featured-cover img { width: 100%; aspect-ratio: 8.5 / 11; object-fit: cover; }
.archive-featured-copy > span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.archive-featured-copy h2 { font-size: 1.5rem; margin-bottom: .3em; }
.archive-featured-copy p { font-size: 13.5px; color: var(--ink-muted); margin-bottom: 14px; }

.archive-browser { padding-top: 0; }
/* The tab panels are <section> elements; they must not inherit section padding. */
.archive-panel { padding-block: 0; }

.archive-tabs-shell { border-bottom: 1px solid var(--rule-ink); margin-bottom: 32px; }
.archive-tabs { display: flex; gap: 28px; }
.archive-tabs button {
  position: relative;
  padding: 0 0 13px;
  background: none;
  border: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
}
.archive-tabs button:hover { color: var(--ink); }
.archive-tabs button[aria-selected="true"] { color: var(--ink); }
.archive-tabs button[aria-selected="true"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--bsj-gold);
}

.archive-panel-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.archive-panel-heading h2 { margin-bottom: .25em; }
.archive-panel-heading p { color: var(--ink-muted); font-size: 15px; margin: 0; max-width: 52ch; }
.archive-count {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.archive-control-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  margin-bottom: 28px;
  border-block: 1px solid var(--rule);
}

.archive-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 260px;
  padding: 9px 12px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 2px;
}
.archive-search:focus-within { border-color: var(--ink-muted); }
.archive-search svg { width: 15px; height: 15px; color: var(--ink-muted); flex: none; }
.archive-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
}
.archive-search input:focus { outline: none; }
.archive-search input::-webkit-search-cancel-button { display: none; }
.archive-search-clear {
  border: 0;
  background: none;
  color: var(--ink-muted);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.archive-search-clear:hover { color: var(--ink); }

.archive-select { display: flex; align-items: center; gap: 8px; }
.archive-select > span {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.archive-select select {
  padding: 9px 10px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}

.journal-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.journal-filters button {
  padding: 7px 13px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .14s ease, color .14s ease, background-color .14s ease;
}
.journal-filters button:hover { border-color: var(--rule-strong); color: var(--ink); }
.journal-filters button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.archive-empty {
  padding: 48px 0;
  border-top: 1px solid var(--rule);
  text-align: center;
}
.archive-empty h3 { margin-bottom: .4em; }
.archive-empty p { color: var(--ink-muted); margin-bottom: 18px; }

/* ==========================================================================
   Article cards
   ========================================================================== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(26px, 3vw, 40px);
}
.article-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(24px, 2.6vw, 34px);
}

.article-card {
  display: flex;
  flex-direction: column;
  padding-top: 16px;
  border-top: 1px solid var(--rule-ink);
}
.article-card-image {
  position: relative;
  margin-bottom: 14px;
  background: var(--surface-sunk);
  overflow: hidden;
}
.article-card-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: opacity .16s ease;
}
.article-card:hover .article-card-image img { opacity: .9; }

.article-card-placeholder {
  display: grid;
  place-content: center;
  gap: 6px;
  aspect-ratio: 16 / 10;
  text-align: center;
  background: var(--surface-sunk);
  border: 1px solid var(--rule);
  color: var(--ink-muted);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.article-card-placeholder-mark {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  letter-spacing: .04em;
  text-transform: none;
  color: var(--rule-strong);
}

.article-card-category {
  position: absolute;
  left: 0; bottom: 0;
  padding: 5px 9px;
  background: var(--ink);
  color: var(--paper);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.article-card-placeholder .article-card-category { background: transparent; color: var(--ink-muted); }

.article-card-body { display: flex; flex-direction: column; flex: 1; }
.article-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 9px;
}
.article-card-meta > *:not(:last-child)::after { content: ' ·'; }
.article-card-body h2 {
  font-size: 1.22rem;
  line-height: 1.22;
  margin-bottom: .45em;
}
.article-card:hover .article-card-body h2 { text-decoration: underline; text-underline-offset: 3px; }
.article-card-body > p {
  font-size: 14.5px;
  color: var(--ink-muted);
  line-height: 1.55;
  margin-bottom: 14px;
}
.article-card-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}
.article-card-author { font-size: 12.5px; color: var(--ink-soft); }
.article-card-arrow { color: var(--ink-muted); font-size: 14px; }
.article-card:hover .article-card-arrow { color: var(--link); }

.article-card-compact .article-card-body h2 { font-size: 1.1rem; }

.article-more { display: block; margin: 36px auto 0; }
.article-loading, .article-message {
  grid-column: 1 / -1;
  padding: 36px 0;
  color: var(--ink-muted);
  font-size: 15px;
}
.article-message .btn { margin-top: 14px; }

.article-preview-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

/* ==========================================================================
   Article page
   ========================================================================== */
.article-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 150;
  background: transparent;
}
.article-progress span { display: block; height: 100%; width: 0; background: var(--bsj-gold); }

.article-header {
  padding-block: clamp(30px, 4vw, 52px) clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--rule);
}
.article-heading-shell {
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.article-heading-shell h1 { max-width: 22ch; margin-bottom: .35em; }
.article-kicker-row { margin-bottom: 14px; }
.article-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bsj-gold-ink);
}
.article-deck {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: 1.1em;
}
.article-byline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-muted);
}
.article-byline-meta #article-author { color: var(--ink); font-weight: 500; }
.article-meta-separator { width: 3px; height: 3px; border-radius: 50%; background: var(--rule-strong); }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  padding-block: clamp(32px, 4vw, 52px);
}

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

.article-aside {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 26px;
  font-size: 13px;
}
.article-back-link { color: var(--ink-muted); }
.article-back-link:hover { color: var(--link); }
.article-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  border-left: 1px solid var(--rule);
}
.article-toc li a {
  display: block;
  padding: 2px 0 2px 13px;
  color: var(--ink-muted);
  line-height: 1.35;
}
.article-toc li a:hover { color: var(--link); }

.article-tool-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--ink-soft);
  cursor: pointer;
}
.article-tool-button:hover { border-color: var(--rule-strong); color: var(--ink); }
.article-tool-button svg { width: 14px; height: 14px; }

.article-content {
  max-width: var(--measure);
  font-family: var(--font-serif);
  font-size: 1.16rem;
  line-height: 1.68;
  color: var(--ink);
}
.article-content p { margin: 0 0 1.15em; }
.article-content h2 {
  font-size: 1.55rem;
  margin: 1.9em 0 .55em;
  padding-top: .6em;
  border-top: 1px solid var(--rule);
}
.article-content h3 { font-size: 1.28rem; margin: 1.6em 0 .5em; }
.article-content h4 {
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 1.8em 0 .6em;
}
/* :not(.btn) so a button inside article body copy keeps its own colour —
   otherwise this rule wins on specificity and paints navy text on navy. */
.article-content a:not(.btn) {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.article-content ul, .article-content ol { margin: 0 0 1.15em; padding-left: 1.3em; }
.article-content li { margin-bottom: .45em; }
.article-content blockquote {
  margin: 1.6em 0;
  padding-left: 22px;
  border-left: 2px solid var(--bsj-gold);
  font-style: italic;
  color: var(--ink-soft);
}
.article-content sup { font-size: .68em; line-height: 0; }
.article-content strong { font-weight: 600; }
.article-content hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }

.article-figure { margin: 1.9em 0; }
.article-figure img { width: 100%; height: auto; background: var(--surface-sunk); cursor: zoom-in; }
.article-figure figcaption {
  margin-top: 10px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-muted);
  padding-left: 12px;
  border-left: 1px solid var(--rule);
}
.article-figure-portrait img { max-width: 420px; }
.article-figure-compact img { max-width: 300px; }
.article-figure-unavailable { background: var(--surface-sunk); border: 1px solid var(--rule); padding: 20px; }
.figure-unavailable-message { font-family: var(--font-sans); font-size: 13px; color: var(--ink-muted); margin: 0; }

.article-table-wrap { overflow-x: auto; margin: 1.6em 0; }
.article-table-wrap table { border-collapse: collapse; width: 100%; font-family: var(--font-sans); font-size: 14px; }
.article-table-wrap th, .article-table-wrap td { padding: 9px 12px; border: 1px solid var(--rule); text-align: left; }
.article-table-wrap th { background: var(--surface-sunk); font-weight: 600; }

.article-references, .article-acknowledgements {
  margin-top: 2.4em;
  padding-top: 1.4em;
  border-top: 1px solid var(--rule-ink);
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-muted);
}
.article-references ol { padding-left: 1.4em; }
.article-references li { margin-bottom: .6em; word-break: break-word; }

.video-embed { position: relative; aspect-ratio: 16 / 9; margin: 1.8em 0; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.related-articles { padding-block: clamp(40px, 5vw, 64px); background: var(--paper-sunk); }
.related-articles-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-ink);
}
.related-article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(22px, 2.4vw, 32px);
}

/* Figure lightbox */
.figure-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(10, 12, 15, .93);
}
.figure-lightbox-inner { max-width: 1100px; max-height: 100%; overflow: auto; }
.figure-lightbox-inner img { width: 100%; height: auto; }
.figure-lightbox-inner figcaption { margin-top: 12px; color: #C9CDD3; font-size: 13px; font-family: var(--font-sans); }
.figure-lightbox-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 38px; height: 38px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 2px;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}
.figure-lightbox-close:hover { border-color: #fff; }
body.lightbox-open { overflow: hidden; }

/* ==========================================================================
   Page header (about / leadership / contact)
   ========================================================================== */
.page-header {
  padding-block: clamp(32px, 4vw, 56px) clamp(26px, 3vw, 40px);
  border-bottom: 1px solid var(--rule);
}
.page-header h1 { margin-bottom: .3em; max-width: 20ch; }

/* Leadership */
.leadership-group { margin-bottom: clamp(40px, 5vw, 64px); }
.leadership-group > h2 {
  padding-top: 18px;
  margin-bottom: 28px;
  border-top: 1px solid var(--rule-ink);
  font-size: 1.5rem;
}
.editor-dept { margin-bottom: 36px; }
.editor-dept-label { margin-bottom: 18px; }

.person-card { display: block; }
.person-photo {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: var(--surface-sunk);
  border: 1px solid var(--rule);
  overflow: hidden;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--rule-strong);
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
a.person-card:hover .person-photo { border-color: var(--rule-ink); }

.person-body { padding-top: 11px; }
.person-name-row { display: flex; align-items: center; gap: 8px; }
.person-body h3 { font-size: 1.05rem; margin: 0; line-height: 1.25; }
a.person-card:hover .person-body h3 { text-decoration: underline; text-underline-offset: 3px; }
.person-linkedin { color: var(--ink-muted); }
.person-linkedin svg { width: 13px; height: 13px; }
.person-role { margin-top: 4px; font-size: 13px; color: var(--ink-muted); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.contact-info-item { padding: 18px 0; border-top: 1px solid var(--rule); }
.contact-info-item:first-of-type { border-top: 1px solid var(--rule-ink); }
.contact-info-item h4 {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: .6em;
}
.contact-info-item p { margin: 0; font-size: 15px; line-height: 1.55; }
.contact-info-item a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

.social-row { display: flex; gap: 16px; margin-top: 24px; }
.social-row a {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ink-soft);
}
.social-row a:hover { border-color: var(--ink); color: var(--ink); }
.social-row svg { width: 17px; height: 17px; }

/* Submission guidance list */
.guide-list { list-style: none; margin: 0; padding: 0; counter-reset: guide; }
.guide-list > li {
  counter-increment: guide;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}
.guide-list > li:first-child { border-top: 1px solid var(--rule-ink); }
.guide-list > li::before {
  content: counter(guide);
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}
.guide-list h4 { margin-bottom: .4em; font-size: 1.05rem; }
.guide-list p { margin: 0; font-size: 14.5px; color: var(--ink-muted); }
.guide-list a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

.spec-list { margin: 0; display: grid; gap: 0; }
.spec-list > div {
  display: grid;
  grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid var(--rule);
  font-size: 14.5px;
}
.spec-list dt { color: var(--ink-muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding-top: 3px; }
.spec-list dd { margin: 0; }

/* ==========================================================================
   Motion
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease; }
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 230px) minmax(0, 1fr); }
  .archive-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 230px); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-aside {
    position: static;
    grid-auto-flow: column;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--rule);
  }
  .article-toc { display: none; }
  .toc-columns { columns: 1; }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px var(--gutter) 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
  }
  .navbar.open .nav-links { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
  .nav-links a.active::after { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta .btn { display: none; }
  .navbar-inner { position: relative; }

  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid, .archive-hero-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-cover, .archive-featured-cover { max-width: 260px; }
  .archive-featured-issue { grid-template-columns: minmax(0, 160px) minmax(0, 1fr); align-items: start; }
  .division-card[style] { grid-column: auto !important; }
}

@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .issue-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .article-grid, .article-preview-grid, .related-article-grid { grid-template-columns: minmax(0, 1fr); }
  .archive-tabs { gap: 20px; }
  .toc-entry { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .spec-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

.article-provenance {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
}
.article-provenance a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

/* Long-form prose columns on editorial pages read in the serif, like the journal. */
.prose p {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.62;
  max-width: 62ch;
}

/* Staff cards keep a consistent size rather than stretching to fill a short row. */
.leadership-group .grid-4,
.editor-dept .grid-4 {
  /* 140px so two portraits still fit side by side on a 390px phone. */
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 24px;
}
@media (min-width: 861px) {
  .leadership-group .grid-4,
  .editor-dept .grid-4 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* The seal is a single-colour black mark; invert it so it reads on a dark ground. */
[data-theme="dark"] .brand img,
[data-theme="dark"] .footer-brand img { filter: invert(1); }
.brand img, .footer-brand img { width: auto; }

/* OCF's virtual hosting terms require a visible link to ocf.berkeley.edu. */
.host-credit { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.host-credit:hover { color: var(--link-hover); }

/* The article's own cover photo, above the body. Covers range from wide
   banners to portrait photographs, so the image is scaled to fit rather than
   cropped to a fixed band — a centre crop decapitates the portraits. */
.article-cover {
  display: flex;
  justify-content: center;
  margin: clamp(24px, 3vw, 36px) auto 0;
  padding-inline: var(--gutter);
}
.article-cover img {
  max-width: 100%;
  max-height: 440px;
  width: auto;
  height: auto;
  background: var(--surface-sunk);
  border: 1px solid var(--rule);
}

@media (max-width: 860px) {
  /* Comfortable tap targets for standalone links. Links inside running prose are
     deliberately left alone — padding them would break the line rhythm. */
  .issue-links { gap: 18px; }
  .issue-links a { padding-block: 6px; }
  .issue-toc > summary { padding-block: 6px; }
  .site-footer ul { gap: 2px; }
  .site-footer ul a { display: block; padding-block: 8px; }
  .footer-social a { padding: 6px; }
  .breadcrumb, .archive-breadcrumb, .article-breadcrumb { gap: 10px; }
  .breadcrumb a, .archive-breadcrumb a, .article-breadcrumb a { padding-block: 6px; }
  .article-back-link { display: inline-block; padding-block: 8px; }
  /* The share button already reads "Share article"; the label above is noise. */
  .article-share .article-aside-label { display: none; }
}

.staff-semester {
  margin: 14px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
