:root {
  --paper: #f7f0df;
  --paper-strong: #efe2c4;
  --ink: #24170c;
  --accent: #9f2f1f;
  --accent-soft: #d6a15f;
  --line: rgba(36, 23, 12, 0.16);
  --muted: rgba(36, 23, 12, 0.72);
  --shadow: 0 28px 60px rgba(62, 33, 12, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(214, 161, 95, 0.32), transparent 32%),
    radial-gradient(circle at top right, rgba(159, 47, 31, 0.14), transparent 28%),
    linear-gradient(180deg, #fcf7ea 0%, #f4ead0 100%);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 20px auto;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255, 252, 244, 0.92), rgba(247, 240, 223, 0.96));
  border: 1px solid rgba(36, 23, 12, 0.12);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.topbar-meta,
.topbar-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.topbar-meta {
  align-items: center;
}

.topbar-logo {
  width: 54px;
  height: auto;
  display: block;
  flex: 0 0 auto;
}

.topbar-nav a {
  color: inherit;
  text-decoration: none;
}

.masthead,
.hero,
.articles-section,
.headline-strip,
.horoscope-section,
.formats-section,
.dictionary-section,
.letters-section,
.cat-section,
.rambla-section,
.site-footer {
  border-bottom: 1px solid var(--line);
}

.masthead {
  padding: 28px 0 24px;
}

.eyebrow,
.story-kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  color: var(--accent);
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  margin: 0;
  line-height: 0.94;
}

h1 {
  font-size: clamp(3.8rem, 10vw, 7.2rem);
  max-width: 10ch;
}

.tagline {
  margin: 14px 0 0;
  font-size: clamp(1.2rem, 3vw, 1.9rem);
  font-weight: 600;
  max-width: 28ch;
}

.section-heading {
  max-width: 54rem;
  margin-bottom: 18px;
}

.section-heading::after {
  content: "❦";
  display: inline-block;
  margin-top: 16px;
  color: var(--accent-soft);
  font-size: 1.1rem;
  line-height: 1;
}

.section-heading h2 {
  font-size: clamp(2.1rem, 3.5vw, 3.2rem);
  margin-bottom: 10px;
  max-width: 18ch;
  text-wrap: balance;
}

.section-heading > p:last-child {
  max-width: 42rem;
  margin-bottom: 0;
}

.section-heading p,
.lead-story p,
.side-card p,
.headline-card span,
.horoscope-card p,
.format-card p,
.reader-card p,
.cat-profile p,
.story-card p,
.rambla-feature p,
.site-footer p {
  line-height: 1.7;
  color: var(--muted);
}

.cat-section .section-heading h2 {
  max-width: 14ch;
}

.cat-section .section-heading > p:last-child {
  max-width: 34rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.9fr);
  gap: 20px;
  padding: 28px 0;
}

.lead-story,
.hero-side,
.article-card,
.horoscope-card,
.format-card,
.reader-card,
.cat-profile,
.story-card,
.rambla-feature {
  background: rgba(255, 252, 245, 0.9);
  border: 1px solid var(--line);
}

.lead-story,
.hero-side,
.horoscope-card,
.format-card,
.reader-card,
.cat-profile,
.story-card,
.rambla-feature {
  padding: 22px;
}

.story-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.lead-story h2 {
  font-size: clamp(2.7rem, 6vw, 4.4rem);
  margin-bottom: 16px;
}

.hero-side {
  display: grid;
  gap: 16px;
  background: transparent;
  border: none;
  padding: 0;
}

.side-card {
  padding: 20px;
  background: rgba(255, 252, 245, 0.9);
  border: 1px solid var(--line);
}

.side-card h3,
.format-card h3,
.reader-card h2,
.cat-profile h3,
.story-card h3,
.rambla-feature h3 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}

.headline-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 24px 0;
}

.headline-card {
  padding: 18px 16px;
  background: rgba(159, 47, 31, 0.05);
  border-top: 3px solid var(--accent);
}

.headline-card p {
  margin: 0 0 10px;
  font-weight: 700;
}

.articles-section,
.horoscope-section,
.formats-section,
.dictionary-section,
.letters-section,
.cat-section,
.rambla-section {
  padding: 28px 0;
}

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

.article-card {
  padding: 22px;
}

.article-card h3 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 12px;
}

.article-card a,
.lead-story a,
.side-card a {
  color: inherit;
  text-decoration: none;
}

.read-more,
.section-link {
  margin-top: 18px;
}

.read-more a,
.section-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.horoscope-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.horoscope-card h3 {
  font-size: 1.7rem;
  margin-bottom: 10px;
}

.formats-grid,
.dictionary-grid,
.letters-grid,
.cat-grid,
.rambla-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.obituary-card {
  background:
    linear-gradient(180deg, rgba(159, 47, 31, 0.06), rgba(255, 252, 245, 0.9)),
    rgba(255, 252, 245, 0.9);
}

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

.dictionary-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.dictionary-feature,
.dictionary-card,
.lemma-entry {
  background: rgba(255, 252, 245, 0.9);
  border: 1px solid var(--line);
}

.dictionary-feature,
.dictionary-card,
.lemma-entry {
  padding: 22px;
}

.dictionary-stack {
  display: grid;
  gap: 16px;
}

.dictionary-feature h3,
.dictionary-card h3,
.lemma-entry h2 {
  font-size: clamp(2rem, 3.3vw, 2.8rem);
  margin-bottom: 10px;
}

.dictionary-feature a,
.dictionary-card a,
.lemma-links a {
  color: inherit;
  text-decoration: none;
}

.lemma-inline,
.lemma-origin,
.lemma-example,
.lemma-links,
.lemma-entry p,
.dictionary-feature p,
.dictionary-card p {
  color: var(--muted);
}

.lemma-inline {
  margin: 0 0 8px;
  font-size: 0.98rem;
}

.lemma-inline span {
  font-family: "IBM Plex Sans", sans-serif;
}

.lemma-origin {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-style: italic;
}

.dictionary-feature .translation-line {
  margin-top: 14px;
}

.dictionary-layout {
  padding: 30px 0 6px;
}

.dictionary-list {
  display: grid;
  gap: 18px;
}

.lemma-entry {
  scroll-margin-top: 24px;
}

.lemma-head {
  margin-bottom: 14px;
}

.lemma-sense-list {
  margin: 0;
  padding-left: 1.3rem;
}

.lemma-sense-list li + li {
  margin-top: 14px;
}

.lemma-sense-list p {
  margin: 0;
  line-height: 1.8;
}

.lemma-example {
  margin-top: 6px;
  font-style: italic;
}

.lemma-links {
  margin-top: 14px;
  font-size: 0.96rem;
}

.lemma-links a {
  border-bottom: 1px solid var(--line);
}

.letter-item + .letter-item,
.classified-list p + p {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.classified-list p {
  margin: 0;
}

.cat-grid,
.rambla-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

.story-stack,
.rambla-stack {
  display: grid;
  gap: 16px;
}

.translation-line {
  color: var(--muted);
}

.rambla-feature {
  background:
    linear-gradient(180deg, rgba(159, 47, 31, 0.06), rgba(255, 252, 245, 0.9)),
    rgba(255, 252, 245, 0.9);
}

.site-footer {
  padding: 24px 0 4px;
  border-bottom: none;
}

.site-footer p {
  margin: 0;
  font-size: 0.95rem;
}

.article-layout {
  padding: 30px 0 6px;
}

.article-header {
  max-width: 1060px;
  margin-bottom: 8px;
}

.article-title {
  font-size: clamp(2.5rem, 4.8vw, 3.9rem);
  margin-bottom: 26px;
  max-width: 20ch;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--muted);
}

.article-dateline {
  margin: 0 0 30px;
  font-size: 1rem;
  font-style: italic;
  color: var(--muted);
}

.article-body {
  max-width: 760px;
}

.article-body > p:first-child::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 4.8rem;
  line-height: 0.72;
  color: var(--accent);
}

.article-body p {
  margin: 0 0 18px;
  line-height: 1.9;
  color: var(--muted);
  font-size: 1.04rem;
}

.article-body p:last-child {
  margin-top: 30px;
}

.pull-quote {
  max-width: 34rem;
  margin: 30px auto;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-style: italic;
  line-height: 1.25;
  color: var(--ink);
  text-align: center;
}

.article-end {
  max-width: 760px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.newsletter-card {
  padding: 20px 22px;
  background: rgba(159, 47, 31, 0.05);
  border: 1px solid var(--line);
  margin-bottom: 22px;
}

.newsletter-card h2,
.related-block h2 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  margin-bottom: 10px;
}

.newsletter-card p,
.related-block p,
.related-links a {
  color: var(--muted);
}

.related-links {
  display: grid;
  gap: 10px;
  margin: 14px 0 22px;
}

.related-links a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

@media (max-width: 980px) {
  .hero,
  .articles-grid,
  .headline-strip,
  .horoscope-grid,
  .formats-grid,
  .dictionary-grid,
  .letters-grid,
  .cat-grid,
  .rambla-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 16px, 1000px);
    margin: 8px auto;
    padding: 16px;
  }

  .topbar,
  .topbar-meta,
  .topbar-nav {
    gap: 8px;
  }

  .lead-story h2 {
    font-size: 2.5rem;
  }
}
