@font-face {
  font-family: "Chomsky";
  src: url("/fonts/Chomsky.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --ink: #111;
  --ink-soft: #2a2a2a;
  --muted: #6a6a6a;
  --muted-soft: #9a9a9a;
  --rule: #c9c4bc;
  --rule-strong: #1a1a1a;
  --paper: #faf7f1;
  --paper-shadow: #efeae0;
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --black-letter: "Chomsky", "Playfair Display", Georgia, serif;
  --serif: Georgia, "Times New Roman", serif;
}

html { background: var(--paper-shadow); }

body {
  font-family: var(--serif);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  max-width: 1200px;
  margin: 0 auto;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  min-height: 100vh;
}

a { color: inherit; }

/* ── Masthead ─────────────────────────────────────────── */

.masthead {
  text-align: center;
  padding: 0.5rem 1rem 0.6rem;
  position: relative;
}

.masthead-rule {
  height: 0;
  border-top: 1px solid var(--rule-strong);
  margin: 0 1.25rem;
}

.masthead-rule-top { margin-bottom: 1.25rem; }

.masthead-rule-bottom {
  margin-top: 0.75rem;
  border-top: 3px double var(--rule-strong);
}

.masthead-link {
  color: inherit;
  text-decoration: none;
  display: inline-block;
}

.masthead-name {
  font-family: var(--black-letter);
  font-weight: 400;
  font-size: clamp(4.5rem, 16vw, 10.5rem);
  line-height: 1;
  letter-spacing: 0;
  color: var(--ink);
}

.masthead-tagline {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.masthead-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: 1rem;
  padding: 0.55rem 0;
  font-family: var(--serif);
}

.meta-cell { text-align: left; }
.meta-center { text-align: center; }
.meta-right { text-align: right; margin-left: auto; }

/* ── Layout ───────────────────────────────────────────── */

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main.container {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* ── Lead / featured article ──────────────────────────── */

.lead {
  text-align: center;
  max-width: 880px;
  margin: 0 auto 2.5rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--rule);
}

.lead-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.lead-headline {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.5rem, 5.8vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.lead-headline a { color: inherit; text-decoration: none; }
.lead-headline a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

.lead-subhead {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.15rem, 2.1vw, 1.45rem);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 38em;
  margin: 0 auto 1.4rem;
}

.lead-subhead p { margin: 0; }

.lead-readmore {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead-readmore a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.lead-readmore a:hover { color: var(--ink); }

/* ── Section divider ──────────────────────────────────── */

.section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--rule);
}

/* ── Homepage article grid ────────────────────────────── */

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
}

.article-teaser {
  padding: 1.75rem 1.5rem 2rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  container-type: inline-size;
  position: relative;
}

.article-teaser + .article-teaser {
  border-left: 1px solid var(--rule);
}

@media (max-width: 760px) {
  .article-teaser + .article-teaser { border-left: none; }
}

.teaser-date {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.article-teaser h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 4.5cqi, 2.4rem);
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

.article-teaser h2 a {
  color: inherit;
  text-decoration: none;
}

.article-teaser h2 a:hover { text-decoration: underline; }

.teaser-subhead {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(0.98rem, 1.6cqi, 1.1rem);
  line-height: 1.45;
  color: var(--ink-soft);
}

.teaser-subhead p { margin: 0; }

/* ── Article page ─────────────────────────────────────── */

.article-back {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  display: block;
  text-align: center;
  margin-bottom: 2rem;
}

.article-back:hover { color: var(--ink); }

.article-content {
  max-width: 760px;
  margin: 0 auto;
}

.article-header {
  margin: 0 0 2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--rule);
  text-align: center;
}

.article-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #a4392f;
  margin-bottom: 0.9rem;
  font-weight: 700;
}

.article-header h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin-bottom: 0.9rem;
}

.article-subhead {
  font-family: var(--display);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.45;
  max-width: 36em;
  margin: 0 auto 1.2rem;
}

.article-subhead p { margin: 0; }

.article-byline {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.byline-name { color: var(--ink); font-weight: 700; }
.byline-sep { color: var(--muted-soft); }

.article-body {
  max-width: 660px;
  margin: 0 auto;
  font-size: 1.075rem;
  line-height: 1.8;
}

.article-body > p:first-of-type::first-letter {
  font-family: var(--display);
  font-weight: 900;
  float: left;
  font-size: 4.4rem;
  line-height: 0.88;
  padding: 0.32rem 0.55rem 0 0;
  color: var(--ink);
}

.article-body p { margin-bottom: 1.15em; }

.article-body h2 {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2em 0 0.5em;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.25em;
}

.article-body h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.6em 0 0.4em;
}

.article-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--muted-soft);
  text-underline-offset: 2px;
}

.article-body a:hover { text-decoration-color: var(--ink); }

.article-body blockquote {
  border-left: 3px solid var(--ink);
  margin: 1.6em 0;
  padding: 0.2em 1.4em;
  font-style: italic;
  color: var(--ink-soft);
}

.article-body ul,
.article-body ol {
  padding-left: 1.6em;
  margin-bottom: 1.2em;
}

.article-body li { margin-bottom: 0.3em; }

.article-endmark {
  text-align: center;
  margin: 2.5rem 0 1rem;
  color: var(--muted);
  font-size: 1.4rem;
  letter-spacing: 0.4em;
}

/* ── Footer ───────────────────────────────────────────── */

footer {
  margin-top: 0rem;
  padding: 2rem 1.25rem 2.5rem;
  border-top: 3px double var(--rule-strong);
  text-align: center;
  color: var(--muted);
}

.footer-mark {
  font-family: var(--black-letter);
  font-weight: 400;
  font-size: 2rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
  line-height: 1;
}

.footer-line {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── Empty state ──────────────────────────────────────── */

.no-articles {
  padding: 4rem 1rem;
  text-align: center;
  color: var(--muted);
  font-style: italic;
  font-family: var(--display);
  font-size: 1.2rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

/* ── Responsive ───────────────────────────────────────── */

@media (max-width: 600px) {
  .masthead-meta {
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
  }
  .meta-cell, .meta-center, .meta-right { text-align: center; margin-left: 0; }

  .article-body > p:first-of-type::first-letter {
    font-size: 3.5rem;
    padding-right: 0.4rem;
  }
}
