:root {
  --bg: #f4efe6;
  --paper: #fbf8f2;
  --paper-strong: #fffdf8;
  --ink: #171311;
  --muted: #6f655c;
  --line: rgba(48, 34, 23, 0.12);
  --gold: #9b7b42;
  --gold-soft: rgba(155, 123, 66, 0.12);
  --forest: #24352c;
  --shadow: 0 18px 42px rgba(64, 45, 28, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top right, rgba(155, 123, 66, 0.08), transparent 22%),
    linear-gradient(180deg, #efe7dc 0%, #f7f2e9 42%, #f1eadf 100%);
}

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

button,
input {
  font: inherit;
}

.site-shell,
.article-shell {
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 18px 16px 52px;
}

.site-header,
.hero-feature,
.curation-panel,
.search-section,
.split-card,
.story-card,
.essay-card,
.site-footer,
.article-body {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(251, 248, 242, 0.92);
  box-shadow: var(--shadow);
}

.meta-row,
.masthead,
.main-nav,
.site-footer {
  padding-left: 18px;
  padding-right: 18px;
}

.site-header {
  overflow: hidden;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.34);
}

.meta-row p,
.meta-row a,
.kicker,
.eyebrow,
.story-tag,
.footer-mark,
.search-results,
.article-meta {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.meta-row p,
.meta-row a,
.search-results,
.article-meta {
  color: var(--muted);
}

.kicker,
.eyebrow,
.story-tag,
.footer-mark {
  color: var(--gold);
  font-weight: 700;
}

.masthead {
  padding-top: 26px;
  padding-bottom: 22px;
}

.masthead h1,
.hero-feature h2,
.search-copy h2,
.split-card h3,
.story-card h3,
.essay-card h2,
.article-header h1 {
  margin: 0;
  line-height: 1;
}

.masthead h1 {
  font-size: clamp(2.5rem, 10vw, 5.4rem);
}

.standfirst,
.hero-lead,
.search-copy p,
.split-card p,
.story-card p,
.essay-card p,
.footer-copy,
.article-lead,
.article-body p {
  color: var(--muted);
  line-height: 1.7;
  font-family: Arial, Helvetica, sans-serif;
}

.standfirst {
  max-width: 44rem;
  margin: 12px 0 0;
  font-size: 1rem;
}

.main-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-top: 12px;
  padding-bottom: 14px;
  border-top: 1px solid var(--line);
  background: rgba(248, 243, 235, 0.96);
}

.main-nav a {
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-layout,
.editorial-split,
.essay-band {
  display: grid;
  gap: 16px;
}

.hero-layout {
  margin-top: 18px;
}

.hero-feature,
.curation-panel,
.search-section,
.split-card,
.story-card,
.essay-card,
.article-body {
  padding: 22px 18px;
}

.hero-feature {
  min-height: 420px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.1)),
    linear-gradient(135deg, rgba(155, 123, 66, 0.08), rgba(36, 53, 44, 0.06)),
    var(--paper);
}

.hero-feature h2 {
  max-width: 11ch;
  margin-top: 10px;
  font-size: clamp(2rem, 8vw, 4.8rem);
}

.hero-lead {
  max-width: 40rem;
  margin: 16px 0 0;
  font-size: 1.04rem;
}

.primary-link,
.story-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--forest);
  color: #f8f2e8;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}

.curation-panel {
  background:
    linear-gradient(180deg, rgba(155, 123, 66, 0.04), rgba(155, 123, 66, 0)),
    var(--paper-strong);
}

.curation-item + .curation-item {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.curation-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.curation-item a,
.split-card a,
.essay-card a,
.article-back {
  color: var(--forest);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.search-section {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.search-copy h2,
.essay-card h2 {
  font-size: clamp(1.7rem, 6vw, 3rem);
}

.search-tools {
  display: grid;
  gap: 14px;
}

.search-field {
  display: grid;
  gap: 8px;
}

.search-field span {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
}

.search-field input {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
}

.search-field input:focus {
  outline: 2px solid rgba(155, 123, 66, 0.12);
  border-color: rgba(155, 123, 66, 0.4);
}

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-chip {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.filter-chip.is-active {
  background: var(--gold-soft);
  border-color: rgba(155, 123, 66, 0.32);
  color: var(--ink);
}

.editorial-split {
  margin-top: 18px;
}

.split-card h3,
.story-card h3 {
  font-size: 1.62rem;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}

.story-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.12)),
    var(--paper-strong);
}

.story-card[hidden] {
  display: none;
}

.story-link {
  display: block;
}

.story-tag {
  margin-bottom: 12px;
}

.story-action {
  align-self: flex-start;
  margin-top: 18px;
}

.essay-band {
  margin-top: 18px;
}

.essay-card {
  background:
    radial-gradient(circle at top right, rgba(155, 123, 66, 0.08), transparent 28%),
    var(--paper);
}

.site-footer {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.footer-copy {
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--forest);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.article-header {
  padding: 22px 2px 20px;
}

.article-meta {
  margin-bottom: 12px;
}

.article-header h1 {
  font-size: clamp(2rem, 8vw, 4.5rem);
}

.article-lead {
  margin: 16px 0 0;
  font-size: 1.08rem;
}

.article-body p {
  margin: 0 0 18px;
}

.article-back {
  display: inline-block;
  margin-bottom: 18px;
}

.primary-link:hover,
.story-action:hover,
.main-nav a:hover,
.curation-item a:hover,
.split-card a:hover,
.essay-card a:hover,
.footer-links a:hover,
.meta-row a:hover,
.article-back:hover {
  transform: translateY(-1px);
}

@media (min-width: 760px) {
  .site-shell,
  .article-shell {
    padding: 24px 24px 60px;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.75fr);
  }

  .search-section,
  .editorial-split,
  .essay-band,
  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 1060px) {
  .story-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
