@import url("https://fonts.googleapis.com/css2?family=UnifrakturCook:wght@700&display=swap");

:root {
  color-scheme: light;
  --bg: #fff;
  --surface: #fff;
  --text: #111;
  --muted: #666;
  --soft: #f7f7f4;
  --line: #d8d8d2;
  --line-dark: #111;
  --accent: #126a5c;
  --accent-strong: #0d4f45;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover { color: #444; }
img { display: block; max-width: 100%; height: auto; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.container-wide { width: min(1280px, calc(100% - 40px)); margin: 0 auto; }
.container-narrow { width: min(760px, calc(100% - 40px)); margin: 0 auto; }

.site-header { background: var(--surface); }
.masthead { position: relative; padding: 8px 0 6px; text-align: center; }
.masthead-meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.masthead-meta > span:first-of-type { justify-self: center; }
.masthead-meta > span:last-child { justify-self: end; }
.masthead-search { justify-self: start; position: relative; min-width: 210px; }
.site-search summary {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  list-style: none;
}
.site-search summary::-webkit-details-marker { display: none; }
.search-icon { display: block; width: 18px; height: 18px; }
.site-search-form {
  display: none;
  align-items: center;
  gap: 6px;
  position: absolute;
  z-index: 5;
  left: 34px;
  top: 0;
  width: min(320px, calc(100vw - 72px));
  padding: 2px;
  background: var(--surface);
  border: 1px solid var(--line-dark);
}
.site-search[open] .site-search-form { display: flex; }
.site-search-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 6px 7px;
  font: 0.82rem var(--sans);
  outline: none;
}
.site-search-form button {
  border: 1px solid var(--line-dark);
  background: var(--text);
  color: var(--surface);
  padding: 6px 9px;
  font: 700 0.72rem var(--sans);
  text-transform: uppercase;
  cursor: pointer;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.brand:hover, .footer-brand:hover { color: var(--text); text-decoration: none; }
.brand {
  display: inline-block;
  font-family: "UnifrakturCook", var(--serif);
  font-size: 5.4rem;
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}
.section-nav { border-top: 0; }
.section-nav-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 22px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  padding: 9px 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.section-nav-inner::-webkit-scrollbar { display: none; }
.section-nav a { text-decoration: none; }
.section-nav::after { content: ""; display: block; width: min(1180px, calc(100% - 40px)); height: 5px; margin: 4px auto 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.section-nav a:hover, .editorial-section-title a:hover, .site-footer nav a:hover { color: #555; text-decoration: none; }

.kicker, .eyebrow {
  color: var(--accent-strong);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.front-page { padding-top: 26px; }
.front-page-label,
.editorial-section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-top: 0;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  margin-bottom: 18px;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.front-page-label span:first-child,
.editorial-section-title h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
}
.editorial-section-title a { color: var(--muted); text-decoration: none; }
.lead-story {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 26px;
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 22px;
}
.lead-story h1 {
  margin: 8px 0 12px;
  font-family: var(--serif);
  font-size: 3.72rem;
  line-height: 0.96;
  letter-spacing: 0;
}
.lead-story h1 a, .secondary-story h2 a, .brief-item h3 a, .list-item h2 a, .card h3 a { color: inherit; text-decoration: none; transition: color 120ms ease; }
.lead-story h1 a:hover, .secondary-story h2 a:hover, .brief-item h3 a:hover, .list-item h2 a:hover, .card h3 a:hover { color: #555; text-decoration: none; }
.deck, .article-deck {
  margin: 0;
  color: #444;
  font-family: var(--serif);
  font-size: 1.16rem;
  line-height: 1.45;
}
.byline-row, .meta, .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.82rem;
}
.byline-row a, .meta a, .article-meta a { color: var(--text); }
.lead-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.front-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 0.85fr);
  gap: 22px;
  border-bottom: 1px solid var(--line-dark);
  padding: 22px 0;
}
.secondary-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
}
.secondary-story {
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
}
.secondary-story:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 22px; }
.secondary-story:nth-child(even) { padding-left: 0; }
.secondary-story img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 10px; }
.secondary-story h2 {
  margin: 5px 0 7px;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.08;
}
.secondary-story p, .list-item p, .card p { margin: 0; color: #555; font-family: var(--serif); line-height: 1.42; }
.briefs-column { border-left: 1px solid var(--line); padding-left: 22px; }
.briefs-column h2 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.brief-item { padding: 12px 0; border-top: 1px solid var(--line); }
.brief-item h3 { margin: 0 0 5px; font-family: var(--serif); font-size: 1.08rem; line-height: 1.18; }
.brief-item time { color: var(--muted); font-size: 0.78rem; }
.latest-section, .contributors-strip { padding-top: 28px; }
.latest-columns {
  column-count: 3;
  column-gap: 28px;
  column-rule: 1px solid var(--line);
}
.list-item {
  break-inside: avoid;
  padding: 0 0 16px;
  margin: 0 0 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.list-item h2 { margin: 0 0 6px; font-family: var(--serif); font-size: 1.22rem; line-height: 1.14; }
.card {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 10px 0 16px; }
.card h3 { margin: 0 0 7px; font-family: var(--serif); font-size: 1.28rem; line-height: 1.14; }
.contributors-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 28px;
}
.contributor {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 0.88rem;
  text-decoration: none;
}
.contributor img, .avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.article-shell { padding-top: 26px; }
.article-hero {
  width: min(900px, calc(100% - 40px));
  padding-bottom: 20px;
}
.article-hero h1 {
  margin: 8px 0 12px;
  font-family: var(--serif);
  font-size: 4.65rem;
  line-height: 0.98;
  letter-spacing: 0;
}
.article-meta {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.article-figure { margin-top: 4px; margin-bottom: 30px; }
.article-figure img {
  width: 100%;
  max-height: 640px;
  object-fit: cover;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.article-figure figcaption {
  margin: 7px 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.78rem;
  line-height: 1.35;
}
.article-figure figcaption span { text-transform: uppercase; letter-spacing: 0.05em; }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
  align-items: start;
  gap: 40px;
}
.article-layout.has-sidebar { grid-template-columns: minmax(0, 720px) minmax(250px, 320px); }
.article-main, .article-sidebar { min-width: 0; }
.article-main { align-self: start; }
.article-sidebar {
  align-self: start;
  position: sticky;
  top: 0;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.article-shell, .article-layout { overflow: visible; }
.article-body {
  width: 100%;
  margin: 0;
  font-family: var(--serif);
  font-size: 1.16rem;
  line-height: 1.72;
}
.article-body > *:first-child { margin-top: 0; }
.article-body p { margin: 0 0 1.15em; }
.article-body h2, .article-body h3 {
  margin: 1.75em 0 0.55em;
  font-family: var(--serif);
  line-height: 1.15;
}
.article-body h2 { font-size: 1.72rem; border-top: 1px solid var(--line); padding-top: 18px; }
.article-body h3 { font-size: 1.35rem; }
.article-body blockquote {
  margin: 1.4em 0;
  padding: 0.2em 0 0.2em 1em;
  border-left: 3px solid var(--line-dark);
  color: #333;
  font-size: 1.18rem;
}
.article-body ul, .article-body ol { padding-left: 1.25em; }
.article-body li { margin: 0.35em 0; }
.article-body table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.35;
}
.article-body th, .article-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.article-body th { background: var(--soft); font-weight: 700; }
.article-body img { margin: 1.2em auto; }
.article-body code { font-family: Consolas, Monaco, monospace; font-size: 0.9em; }
.article-author {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line);
  margin-top: 38px;
  padding: 18px 0;
}
.article-author h2 { margin: 2px 0 4px; font-family: var(--serif); font-size: 1.45rem; }
.article-author p { margin: 0.25rem 0; color: #555; }
.author-job { color: var(--accent-strong); font-family: var(--sans); font-weight: 700; }
.related-articles { padding-top: 30px; }
.article-sidebar-module {
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 18px;
}
.article-sidebar-module .editorial-section-title {
  border-top: 1px solid var(--line-dark);
  margin-bottom: 0;
}
.article-sidebar .related-grid {
  grid-template-columns: 1fr;
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.article-sidebar .related-grid::-webkit-scrollbar { display: none; }
.article-sidebar .related-grid .list-item {
  margin: 0;
  padding: 14px 0;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}
.article-sidebar .list-item h2 { font-size: 1.08rem; }
.article-sidebar .list-item p { font-size: 0.94rem; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.related-grid .list-item { border-top: 1px solid var(--line); padding-top: 12px; }

.term-header, .author-profile {
  display: grid;
  gap: 8px;
  margin: 26px auto 22px;
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 18px;
}
.term-header h1, .author-profile h1, .container > h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 3.4rem;
  line-height: 1;
}
.author-profile { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
.avatar-large { width: 128px; height: 128px; }
.author-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0 22px;
  border-top: 1px solid var(--line-dark);
}
.author-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.author-card h2 { margin: 0; font-family: var(--serif); font-size: 1.35rem; line-height: 1.12; }
.author-card p { margin: 0.35rem 0; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.list { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }

.site-footer {
  margin-top: 44px;
  border-top: 2px solid var(--line-dark);
  background: var(--soft);
  color: var(--text);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 28px;
  padding-top: 24px;
  padding-bottom: 20px;
}
.footer-brand {
  font-family: "UnifrakturCook", var(--serif);
  font-size: 2.2rem;
  line-height: 1;
  text-decoration: none;
}
.site-footer h2 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-footer p { margin: 8px 0 0; color: var(--muted); }
.site-footer nav { display: grid; gap: 6px; align-content: start; }
.site-footer nav a { color: var(--text); text-decoration: none; font-size: 0.92rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  padding-bottom: 16px;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .lead-story, .front-grid, .footer-grid { grid-template-columns: 1fr; }
  .briefs-column { border-left: 0; padding-left: 0; }
  .secondary-story:nth-child(odd) { border-right: 0; padding-right: 0; }
  .latest-columns { column-count: 2; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .article-layout.has-sidebar { grid-template-columns: 1fr; width: min(760px, calc(100% - 40px)); }
  .article-main { align-self: auto; }
  .article-sidebar { align-self: auto; position: static; max-height: none; display: block; min-height: 0; }
  .article-sidebar-module { max-height: none; overflow: visible; display: block; padding-top: 26px; padding-bottom: 0; }
  .article-sidebar .related-grid { overflow: visible; grid-template-columns: 1fr; max-height: none; }
}
@media (max-width: 720px) {
  .container, .container-wide, .container-narrow, .article-hero { width: calc(100% - 32px); }
  .masthead { padding-top: 10px; }
  .masthead-meta { grid-template-columns: 1fr; justify-items: center; gap: 4px; }
  .masthead-meta > span:last-child { justify-self: center; }
  .masthead-search { justify-self: center; min-width: 0; }
  .brand { font-size: 3.75rem; }
  .section-nav-inner { width: 100%; justify-content: flex-start; padding: 9px 16px; gap: 18px; }
  .front-page { padding-top: 18px; }
  .lead-story h1, .article-hero h1 { font-size: 2.45rem; }
  .secondary-column, .related-grid { grid-template-columns: 1fr; }
  .latest-columns { column-count: 1; }
  .article-body { font-size: 1.08rem; line-height: 1.68; }
  .article-author, .author-profile, .author-card { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
