/* Halden Review, single stylesheet. No JavaScript anywhere on the site. */
@import url("https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400&family=Inter+Tight:wght@500;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --bg: #E6F5EC;
  --ink: #0A0F0B;
  --muted: #2B3A2E;
  --rule: #6F8C74;
  --accent: #0F4D24;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--serif); }
a { color: inherit; }
a:hover { opacity: 0.72; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header .wrap { padding-top: 32px; }
.site-header .bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--ink);
}
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.brand .a { font-family: var(--serif); font-size: 28px; }
.brand .b { font-family: var(--sans); font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.site-nav a {
  display: inline-block; padding: 12px 0; text-decoration: none;
  font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em;
}
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

/* Shared type */
.kicker { margin: 0 0 24px; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.label { margin: 0; font-family: var(--mono); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.lede { font-size: 21px; line-height: 1.45; color: var(--muted); }
.num { font-family: var(--serif); font-style: italic; line-height: 1; color: var(--accent); }
.date { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* Landing */
.hero { padding: 120px 0 96px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; }
.hero > div { flex: 999 1 560px; min-width: 0; }
.hero h1 { margin: 0; font-family: var(--sans); font-weight: 800; font-size: clamp(48px, 8vw, 112px); line-height: 0.95; letter-spacing: -0.04em; }
.hero .lede { flex: 1 1 280px; margin: 0; }
.latest { border-top: 1px solid var(--ink); padding: 24px 0 96px; }
.latest .head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.latest .head a { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; display: inline-block; padding: 12px 0; }
.cards { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.cards li { display: flex; flex-direction: column; gap: 12px; border-top: 1px dotted var(--rule); padding-top: 20px; }
.cards .num { font-size: 40px; }
.cards h3 { margin: 0; font-family: var(--sans); font-weight: 700; font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; }
.cards h3 a { text-decoration: none; }

/* Article list */
.page-head { padding: 72px 0 32px; border-bottom: 1px dotted var(--rule); }
.page-head h1 { margin: 0; font-family: var(--sans); font-weight: 800; font-size: clamp(56px, 9vw, 120px); line-height: 0.95; letter-spacing: -0.04em; }
.page-head .lede { margin: 20px 0 0; max-width: 640px; }
.list { list-style: none; margin: 0 0 96px; padding: 0; }
.list li { border-bottom: 1px dotted var(--rule); }
.list article { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 32px; padding: 28px 0; }
.list .num { flex: 0 0 72px; font-size: 44px; }
.list .body { flex: 999 1 420px; min-width: 0; }
.list h2 { margin: 0; font-family: var(--sans); font-weight: 700; font-size: clamp(24px, 3vw, 34px); line-height: 1.1; letter-spacing: -0.025em; }
.list h2 a { text-decoration: none; }
.list .body p { margin: 8px 0 0; font-size: 18px; line-height: 1.45; color: var(--muted); }
.list .date { flex: 0 0 auto; }

/* Article */
.article-head { padding: 64px 0 40px; border-bottom: 1px dotted var(--rule); }
.crumb { margin: 0 0 24px; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.crumb a { color: var(--accent); text-decoration: none; display: inline-block; padding: 12px 0; }
.article-head h1 { margin: 0; max-width: 980px; font-family: var(--sans); font-weight: 800; font-size: clamp(40px, 6vw, 80px); line-height: 1; letter-spacing: -0.035em; }
.article-head .lede { margin: 28px 0 0; max-width: 720px; font-size: 23px; }
.meta { margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 16px 48px; font-family: var(--mono); font-size: 13px; }
.meta div { display: flex; flex-direction: column; gap: 4px; }
.meta dt { color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; }
.meta dd { margin: 0; }

.article-grid { display: flex; flex-wrap: wrap; gap: 48px 64px; padding: 48px 0 96px; }
.toc { flex: 1 1 240px; min-width: 0; }
.toc h2 { margin: 0 0 16px; font-family: var(--mono); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); font-family: var(--sans); font-weight: 500; font-size: 16px; line-height: 1.3; }
.toc li { border-bottom: 1px dotted var(--rule); }
.toc a { text-decoration: none; display: flex; gap: 12px; padding: 12px 0; }
.toc .num { line-height: inherit; }

.prose { flex: 999 1 560px; min-width: 0; max-width: 720px; font-size: 20px; line-height: 1.6; }
.prose h2 { margin: 0 0 16px; font-family: var(--sans); font-weight: 700; font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; }
.prose p { margin: 0 0 20px; }
.prose section { margin-bottom: 48px; }
.prose blockquote { margin: 32px 0; font-size: 28px; line-height: 1.3; font-style: italic; color: var(--accent); }
.prose a.ref { color: var(--accent); }
.sources { border-top: 1px solid var(--ink); padding-top: 24px; }
.sources h2 { margin: 0 0 20px; font-family: var(--mono); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.sources ol { margin: 0; padding: 0 0 0 28px; font-size: 17px; line-height: 1.5; display: flex; flex-direction: column; gap: 16px; }
.sources a { font-family: var(--mono); font-size: 13px; word-break: break-all; }

/* Footer */
.site-footer { border-top: 1px solid var(--ink); }
.site-footer .wrap { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.site-footer p { margin: 0; }
.site-footer a { color: var(--accent); }

/* Accessibility */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 10;
  background: var(--accent); color: var(--bg);
  font-family: var(--mono); font-size: 13px; padding: 12px 20px;
  text-decoration: none; text-transform: uppercase; letter-spacing: 0.06em;
}
.skip-link:focus { left: 0; }

/* Citation page numbers */
.ref-pages { font-size: 0.82em; color: var(--muted); }

/* Source numbers */
.src-num { font-family: var(--mono); font-size: 13px; color: var(--accent); }

/* More articles */
.more-articles { border-top: 1px dotted var(--rule); margin-top: 48px; padding-top: 24px; }
.more-articles h2 { margin: 0; font-family: var(--mono); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.more-articles ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.more-articles li { padding: 16px 0; border-bottom: 1px dotted var(--rule); }
.more-articles li:last-child { border-bottom: none; }
.more-articles a { font-family: var(--sans); font-weight: 700; font-size: 20px; line-height: 1.2; letter-spacing: -0.02em; text-decoration: none; }
.more-articles .date { padding-top: 4px; }

/* Print */
@media print {
  .skip-link, .site-header, .site-nav, .toc, .more-articles { display: none; }
  body { background: #fff; }
  .prose { font-size: 11pt; }
}
