:root {
  --ink: #121212;
  --muted: #64615e;
  --line: #e6e3df;
  --paper: #ffffff;
  --soft: #f6f2ee;
  --accent: #c01544;
  --gold: #a87c2b;
  --sage: #8a9b82;
  --shadow: 0 18px 45px rgba(18, 18, 18, 0.08);
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 18, 18, 0.028) 1px, transparent 1px) 50% 0 / min(92vw, 1180px) 100%,
    linear-gradient(#fff, #fbfaf8 58%, #fff);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--soft);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.top-nav {
  display: flex;
  justify-content: flex-start;
  gap: 32px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  font: 12px/1.2 Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0;
}

.top-nav a,
.plain-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  transition: color 160ms ease;
}

.top-nav a:hover,
.plain-button:hover {
  color: var(--ink);
}

.brand-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 22px;
}

.wordmark {
  justify-self: start;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  font-size: clamp(31px, 4.2vw, 54px);
  line-height: 0.96;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.wordmark strong {
  font-weight: 400;
}

.wordmark span {
  display: inline-block;
  flex: 0 0 auto;
  margin-left: 0;
  font-size: 0.72em;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.wordmark strong {
  flex: 0 0 auto;
}

.menu-button,
.search-icon {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.menu-button:hover,
.search-icon:hover {
  border-color: var(--ink);
  box-shadow: 0 8px 22px rgba(18, 18, 18, 0.08);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  place-items: center;
  gap: 4px;
  padding: 9px;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--ink);
}

.search-icon {
  position: relative;
  border-radius: 50%;
  justify-self: end;
}

.search-icon::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  left: 10px;
  top: 9px;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 2px;
  background: var(--ink);
  transform: rotate(45deg);
  left: 22px;
  top: 23px;
}

.mobile-nav,
.search-panel {
  display: none;
}

.mobile-nav.is-open,
.search-panel.is-open {
  display: block;
}

.mobile-nav {
  border-top: 1px solid var(--line);
  padding: 10px 20px 18px;
  text-align: center;
}

.mobile-nav a {
  display: block;
  padding: 10px;
  font: 13px Arial, sans-serif;
  text-transform: uppercase;
}

.search-panel {
  border-top: 1px solid var(--line);
  padding: 18px 20px 24px;
}

.search-panel form {
  max-width: 680px;
  margin: 0 auto;
}

.search-panel label {
  display: block;
  margin-bottom: 8px;
  font: 12px Arial, sans-serif;
  color: var(--muted);
  text-transform: uppercase;
}

.search-panel div {
  display: flex;
}

.search-panel input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  padding: 13px 14px;
  font: 15px Arial, sans-serif;
}

.search-panel button {
  border: 0;
  background: var(--ink);
  color: #fff;
  padding: 0 20px;
  font: 12px Arial, sans-serif;
  text-transform: uppercase;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 20px 76px;
}

.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  gap: 30px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 42px;
}

.lead-story,
.story-card {
  position: relative;
}

.lead-story img {
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow);
}

.category-pill {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font: 700 12px Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.meta-row,
.byline,
.article-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 13px;
  color: var(--muted);
  font: 11px Arial, sans-serif;
  text-transform: uppercase;
}

.meta-row span + span::before,
.byline span + span::before,
.article-meta span + span::before {
  content: "/";
  margin-right: 12px;
  color: var(--line);
}

h1,
h2 {
  margin: 10px 0;
  line-height: 1.04;
  letter-spacing: 0;
}

.lead-story h1 {
  max-width: 760px;
  font-size: clamp(38px, 5.6vw, 72px);
}

.lead-story h1 a,
.lead-story p,
.story-card h2 a,
.story-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.lead-story h1 a,
.story-card h2 a {
  -webkit-line-clamp: 2;
}

p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
}

.lead-story p {
  max-width: 720px;
  font-size: 18px;
  min-height: 58px;
  -webkit-line-clamp: 2;
}

.side-stack {
  display: grid;
  gap: 18px;
}

.story-card {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  transition: transform 160ms ease;
}

.story-card:hover {
  transform: translateY(-2px);
}

.story-card .image-link {
  display: block;
}

.story-card img {
  aspect-ratio: 4 / 3;
  filter: saturate(0.96) contrast(1.02);
  transition: filter 180ms ease, transform 180ms ease;
}

.story-card .image-link {
  overflow: hidden;
  background: var(--soft);
}

.story-card:hover img {
  filter: saturate(1.05) contrast(1.04);
  transform: scale(1.018);
}

.story-card h2 {
  font-size: 24px;
  line-height: 1.08;
  min-height: 52px;
}

.story-card p {
  min-height: 78px;
  -webkit-line-clamp: 3;
}

.story-card.compact {
  display: grid;
  grid-template-columns: 118px 1fr;
  column-gap: 16px;
  padding-top: 14px;
}

.story-card.compact .category-pill,
.story-card.compact .meta-row,
.story-card.compact h2,
.story-card.compact p,
.story-card.compact .byline {
  grid-column: 2;
}

.story-card.compact .image-link {
  grid-column: 1;
  grid-row: 1 / span 5;
}

.story-card.compact img {
  aspect-ratio: 1;
}

.story-card.compact h2 {
  font-size: 18px;
  min-height: 39px;
}

.story-card.compact p {
  display: none;
}

.content-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 46px;
  margin-top: 48px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--ink);
}

.section-title h2 {
  font-size: 38px;
}

.section-title span {
  padding-bottom: 12px;
  font: 12px Arial, sans-serif;
  color: var(--muted);
  text-transform: uppercase;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 24px;
}

.rail {
  display: grid;
  gap: 28px;
  align-content: start;
}

.rail section,
.article-rail {
  border: 1px solid var(--line);
  background: #fff;
  padding: 24px;
  box-shadow: var(--shadow);
}

.rail h2,
.article-rail h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.rail a,
.article-rail a,
.category-list a {
  display: block;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.35;
  transition: color 160ms ease;
}

.rail a:hover,
.article-rail a:hover,
.category-list a:hover,
.story-card h2 a:hover,
.lead-story h1 a:hover {
  color: var(--accent);
}

.rail a span {
  display: inline-block;
  width: 34px;
  color: var(--gold);
  font: 700 12px Arial, sans-serif;
}

.category-list a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.category-list span {
  white-space: nowrap;
}

.category-list strong {
  flex: 0 0 auto;
  color: var(--accent);
  font-family: Arial, sans-serif;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 42px;
  font: 14px Arial, sans-serif;
}

.pagination a,
.pagination span,
.pagination strong {
  min-width: 34px;
  padding: 9px 11px;
  text-align: center;
  border: 1px solid var(--line);
  background: #fff;
}

.pagination strong {
  background: var(--ink);
  color: #fff;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 300px;
  gap: 44px;
  align-items: start;
}

.article-page h1 {
  font-size: clamp(42px, 6.6vw, 82px);
}

.dek {
  max-width: 700px;
  font-size: 21px;
  color: var(--ink);
}

.article-page figure {
  margin: 28px 0;
}

.article-page figure img {
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow);
}

figcaption {
  margin-top: 9px;
  color: var(--muted);
  font: 12px Arial, sans-serif;
}

.article-content p {
  color: #2f2b28;
  font-size: 19px;
  line-height: 1.72;
}

.article-content p:first-child::first-letter {
  float: left;
  margin: 7px 9px 0 0;
  color: var(--accent);
  font-size: 58px;
  line-height: 0.78;
}

.category-page header,
.simple-page {
  max-width: 820px;
}

.category-page header {
  margin-bottom: 28px;
}

.category-page header span {
  color: var(--accent);
  font: 700 12px Arial, sans-serif;
  text-transform: uppercase;
}

.category-page h1,
.simple-page h1 {
  font-size: clamp(46px, 7vw, 88px);
}

.simple-page {
  min-height: 52vh;
}

.simple-page a {
  color: var(--accent);
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 38px 20px;
  text-align: center;
  background: #121212;
  color: #fff;
}

.footer-logo {
  display: inline-block;
  font-size: 34px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 20px 0 10px;
  font: 12px Arial, sans-serif;
  text-transform: uppercase;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.76);
}

.site-footer .wordmark {
  color: #fff;
}

.is-hidden {
  display: none;
}

@media (max-width: 920px) {
  .top-nav {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .brand-row {
    padding: 18px 16px;
  }

  main {
    padding-inline: 16px;
  }

  .lead-grid,
  .content-shell,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rail,
  .article-rail {
    display: none;
  }
}

@media (max-width: 620px) {
  .wordmark {
    gap: 7px;
    font-size: 30px;
  }

  .lead-story h1 {
    font-size: 36px;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-card.compact {
    grid-template-columns: 96px 1fr;
  }

  .story-card h2 {
    font-size: 23px;
  }

  .search-panel div,
  .meta-row,
  .byline,
  .article-meta {
    flex-wrap: wrap;
  }
}
