:root {
  --bg: #f3efe7;
  --bg-muted: #ebe5da;
  --surface: rgba(255,255,255,0.52);
  --surface-strong: rgba(255,255,255,0.72);
  --text: #171512;
  --text-soft: #5e574e;
  --line: rgba(23, 21, 18, 0.12);
  --line-strong: rgba(23, 21, 18, 0.22);
  --accent: #8f6f3e;
  --accent-strong: #6f5126;
  --shadow: 0 12px 40px rgba(23,21,18,0.08);
  --radius: 22px;
  --container: 1280px;
  --narrow: 760px;
  --article: 860px;
}

html[data-theme-accent="ink"] {
  --accent: #23313d;
  --accent-strong: #18232d;
}

html[data-theme-accent="ember"] {
  --accent: #8e4b37;
  --accent-strong: #673425;
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(143,111,62,0.12), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.18), transparent 40%),
    var(--bg);
  line-height: 1.68;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--text); }
img { max-width: 100%; display: block; }

.container { width: min(calc(100% - 2rem), var(--container)); margin: 0 auto; }
.container.narrow { width: min(calc(100% - 2rem), var(--narrow)); }
.section { padding: 4rem 0; }
.section-muted {
  background: rgba(255,255,255,0.16);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.surface-card,
.story-panel {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.48);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 1.35rem;
}
.story-panel {
  box-shadow: none;
  background: rgba(255,255,255,0.28);
  border-color: var(--line);
}
.eyebrow,
.meta-label,
.footer-title,
.post-card-tag,
.note-label,
.story-panel-label,
.byline,
.masthead-kicker,
.times-logo-kicker,
.header-smallline {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
}
.eyebrow,
.story-panel-label,
.masthead-kicker { margin: 0 0 1rem; }
h1, h2, h3, h4, h5, h6 {
  font-family: "Instrument Serif", Georgia, serif;
  line-height: 0.98;
  font-weight: 400;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(3rem, 6vw, 5.8rem); }
h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1rem; color: var(--text-soft); }
.lead, .hero-subcopy, .article-excerpt { font-size: 1.15rem; }
.small-note { font-size: 0.92rem; color: var(--text-soft); }
code {
  background: rgba(23,21,18,0.06);
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
  font-size: 0.92em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(243,239,231,0.92);
  border-bottom: 1px solid var(--line);
}
.header-bar-top,
.header-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.header-bar-top {
  min-height: 34px;
  border-bottom: 1px solid var(--line);
}
.header-brand-row {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}
.times-logo {
  display: grid;
  gap: 0.35rem;
  text-align: center;
}
.times-logo-kicker {
  color: var(--text);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  text-transform: none;
}
.times-logo-sub {
  color: var(--text-soft);
  font-size: 0.92rem;
}
.header-nav-row { min-height: 56px; }
.site-nav .nav {
  display: flex;
  gap: 1.2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-nav a { color: var(--text-soft); }
.site-nav .nav-current a,
.site-nav a:hover,
.header-cta:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-cta {
  font-size: 0.92rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
}
.nav-toggle { display: none; background: none; border: 0; padding: 0; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; }

.times-masthead {
  padding-top: 2rem;
  padding-bottom: 1.5rem;
}
.masthead-frame {
  border-top: 2px solid var(--line-strong);
  border-bottom: 2px solid var(--line-strong);
  padding: 1rem 0 1.25rem;
}
.masthead-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.masthead-name,
.masthead-strap,
.masthead-kicker,
.masthead-date { text-align: center; }
.masthead-name { margin: 0.2rem 0 0.45rem; font-size: clamp(3rem, 8vw, 7rem); }
.masthead-strap {
  max-width: 56rem;
  margin: 0 auto;
  font-size: 1.06rem;
  color: var(--text-soft);
}
.masthead-date {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}
.masthead-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.masthead-meta-grid > div { text-align: center; }
.masthead-meta-grid strong { display: block; font-size: 0.98rem; }
.compact-masthead { max-width: 980px; }

.front-page-grid,
.archive-grid,
.about-grid,
.about-layout,
.special-editions-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.62fr);
  gap: 2rem;
  align-items: start;
}
.front-columns,
.paper-sections-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 1.75rem;
}
.paper-sections-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.front-page-rail {
  display: grid;
  gap: 1.75rem;
}
.front-page-rail > .story-panel {
  padding: 1.5rem;
}
.front-page-section {
  padding-top: 3rem;
  padding-bottom: 5.75rem;
}
.paper-sections-section {
  padding-top: 5.75rem;
}

.front-page-main {
  display: grid;
  gap: 1.75rem;
}
.front-lead {
  overflow: hidden;
  padding: 0;
}
.front-lead-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  align-items: stretch;
}
.front-lead-media {
  display: block;
  min-height: 100%;
}
.front-lead-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.front-lead-copy {
  padding: 1.6rem 1.6rem 1.7rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.front-lead h2 { font-size: clamp(2.4rem, 4vw, 4rem); max-width: 14ch; }
.front-lead .lead { max-width: 32rem; }

.section-rule-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}
.section-rule-heading-compact {
  margin-bottom: 1.15rem;
}
.stacked-list,
.rail-list { display: grid; gap: 1rem; }
.news-brief,
.section-story,
.rail-item {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.news-brief:last-child,
.section-story:last-child,
.rail-item:last-child { border-bottom: 0; padding-bottom: 0; }
.news-brief h3,
.section-story h3 { max-width: 18ch; }
.editor-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 1rem;
}
.rail-lead { margin-bottom: 1rem; }
.section-directory { display: grid; gap: 0.5rem; }
.directory-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}
.directory-name { color: var(--text); }
.directory-arrow { color: var(--text-soft); }

.page-hero { padding-top: 2rem; padding-bottom: 1.5rem; }
.archive-list,
.editions-list {
  display: grid;
  gap: 0;
}
.post-card {
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.archive-post-grid {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
}
.archive-post-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
}
.post-card-content { padding: 0; }
.post-card-topline,
.article-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.post-card-meta,
.article-meta {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  color: var(--text-soft);
  font-size: 0.9rem;
}
.post-card-meta span:not(:last-child)::after,
.article-meta span:not(:last-child)::after {
  content: "•";
  margin-left: 0.9rem;
  opacity: 0.45;
}
.archive-post-content h3 {
  font-size: clamp(1.8rem, 2.5vw, 2.45rem);
  max-width: 16ch;
}
.byline { margin-top: 1rem; color: var(--text-soft); }

.article-wrap { padding: 2.5rem 0 5rem; }
.journal-header {
  width: min(calc(100% - 2rem), 1120px);
  margin: 0 auto 2.6rem;
}
.newspaper-article-header h1 { max-width: 12ch; }
.journal-kicker-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 1rem;
}
.article-excerpt {
  max-width: 48rem;
  margin-top: 1rem;
  font-size: 1.2rem;
  color: var(--text-soft);
}
.article-image { margin-top: 2rem; }
.article-image img { border-radius: 24px; box-shadow: var(--shadow); }
.article-image-hero img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}
.journal-post-shell {
  width: min(calc(100% - 2rem), 1140px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px minmax(0, var(--article));
  gap: 2rem;
  align-items: start;
}
.article-side-notes {
  position: sticky;
  top: 150px;
}
.side-note-panel { border-radius: 18px; }
.journal-body {
  font-size: 1.1rem;
  line-height: 1.84;
  color: var(--text);
}
.journal-body > * + * { margin-top: 1.35rem; }
.journal-body > p:first-of-type::first-letter {
  float: left;
  font-family: "Instrument Serif", serif;
  font-size: 4.6rem;
  line-height: 0.86;
  padding-right: 0.5rem;
  padding-top: 0.1rem;
  color: var(--accent);
}
.journal-body h2,
.journal-body h3,
.journal-body h4 { margin-top: 2.8rem; }
.journal-body h2 { font-size: clamp(2rem, 3.3vw, 2.8rem); }
.journal-body h3 { font-size: clamp(1.45rem, 2.2vw, 1.9rem); }
.journal-body blockquote {
  margin: 2.6rem 0;
  padding: 0.35rem 0 0.35rem 1.25rem;
  border-left: 3px solid var(--accent);
  color: var(--text);
  font-family: "Instrument Serif", serif;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  line-height: 1.35;
}
.journal-body pre {
  overflow-x: auto;
  padding: 1.2rem;
  border-radius: 18px;
  background: #11100f;
  color: #f3efe7;
}
.journal-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.75rem 0;
}
.journal-body ul,
.journal-body ol { padding-left: 1.35rem; }
.journal-body li + li { margin-top: 0.5rem; }
.journal-body figcaption,
.article-image figcaption {
  margin-top: 0.8rem;
  color: var(--text-soft);
  font-size: 0.92rem;
  text-align: center;
}
.article-tags {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin: 0;
}
.article-tags a {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
}
.journal-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.personal-cta { margin-top: 1rem; }

.page-content-shell,
.about-body,
.page-body {
  font-size: 1.08rem;
  line-height: 1.8;
}
.page-body > * + * { margin-top: 1.2rem; }
.page-image img { border-radius: 20px; box-shadow: var(--shadow); }
.about-quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.about-quick-facts strong { display: block; }
.about-side-panel,
.about-notes-panel,
.editions-help-panel { border-radius: 18px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--line);
  transition: 0.2s ease;
}
.button-primary {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.button-primary:hover,
.button-secondary:hover { transform: translateY(-1px); }
.button-secondary { background: rgba(255,255,255,0.3); }
.text-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(23,21,18,0.28);
  text-underline-offset: 0.2em;
}
.section-heading { max-width: 760px; margin-bottom: 2rem; }
.split-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  max-width: none;
}
.split-heading-lined {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.clean-list { margin: 0; padding-left: 1.2rem; color: var(--text-soft); }
.clean-list li + li { margin-top: 0.6rem; }
.compact-list li + li { margin-top: 0.45rem; }

.kg-width-wide {
  width: min(100vw - 2rem, 1120px);
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}
.kg-width-full {
  width: 100vw;
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}
.kg-card img { width: 100%; border-radius: 18px; }
.kg-callout-card,
.kg-bookmark-card,
.kg-file-card,
.kg-toggle-card {
  background: rgba(255,255,255,0.34);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1.2rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3.5rem;
}
.footer-newsline {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: start;
}
.footer-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}
.pagination a, .pagination span {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
}

@media (max-width: 1080px) {
  .masthead-meta-grid,
  .front-page-grid,
  .archive-grid,
  .about-grid,
  .about-layout,
  .special-editions-layout,
  .paper-sections-grid,
  .front-columns,
  .footer-newsline,
  .journal-post-shell,
  .about-quick-facts,
  .front-lead-split {
    grid-template-columns: 1fr;
  }

  .journal-header,
  .journal-post-shell {
    width: min(calc(100% - 2rem), 980px);
  }

  .article-side-notes { position: static; }
}

@media (max-width: 760px) {
  .site-nav {
    position: absolute;
    inset: 140px 0 auto 0;
    display: none;
    padding: 1rem;
    background: rgba(243,239,231,0.98);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: block; }
  .site-nav .nav { flex-direction: column; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .masthead-topline,
  .journal-kicker-row,
  .post-card-topline,
  .section-rule-heading,
  .footer-newsline {
    flex-direction: column;
    align-items: start;
  }
  .archive-post-grid { grid-template-columns: 1fr; }
  .times-logo-kicker { font-size: clamp(1.7rem, 9vw, 2.4rem); }
  .masthead-name { font-size: clamp(2.4rem, 13vw, 4.4rem); }
  .kg-width-wide,
  .kg-width-full {
    width: 100%;
    margin-left: 0;
    transform: none;
  }
}


@media (max-width: 760px) {
  .front-page-section {
    padding-top: 2rem;
  }
  .front-lead-copy {
    padding: 1.25rem;
  }
}
.newspaper-footer {
  margin-top: 0;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.22);
}
.footer-newsline {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 2rem;
  padding: 2.5rem 0 3rem;
  align-items: start;
}
.footer-newsline p:last-child { margin-bottom: 0; }
.footer-brandline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.footer-brandline h3 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}
.footer-edition {
  color: var(--text-soft);
  font-size: 0.92rem;
}
.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.footer-column-title {
  margin: 0 0 0.7rem;
  color: var(--text);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.footer-links, .footer-meta-list {
  display: grid;
  gap: 0.5rem;
}
.footer-links a, .footer-meta-list span, .footer-links address {
  color: var(--text-soft);
  font-style: normal;
}
.footer-links a:hover { color: var(--text); }
.footer-actions {
  display: grid;
  gap: 1.5rem;
}
.footer-note-card {
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.22);
}
.footer-note-card p:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .footer-newsline,
  .footer-columns {
    grid-template-columns: 1fr;
  }
}
