:root {
  --bg: #f6f2eb;
  --paper: #fbf8f3;
  --paper-strong: #fffdf9;
  --ink: #241f1a;
  --muted: #6c6258;
  --line: rgba(36, 31, 26, 0.13);
  --line-strong: rgba(36, 31, 26, 0.22);
  --accent: #b66b45;
  --accent-soft: #ead7ca;
  --shadow: 0 22px 48px rgba(50, 34, 22, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --container-narrow: 760px;
  --font-display: "Bodoni 72", "Didot", "Bodoni MT", "Times New Roman", serif;
  --font-text: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-text);
  line-height: 1.7;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    linear-gradient(135deg, #f7f4ee 0%, #f1ebe2 100%);
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-color: rgba(182, 107, 69, 0.45);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.container-wide {
  width: min(calc(100% - 2rem), 1240px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(36, 31, 26, 0.08);
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 82px;
}

.brand-mark {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
}

.brand-kicker {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-main {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 0.92;
  letter-spacing: 0.03em;
}

.primary-nav ul,
.footer-links,
.side-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav ul {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}

.primary-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.98rem;
}

.primary-nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  margin: 6px 0;
  background: var(--ink);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: 0 0 0.8rem;
}

h1 {
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.94;
  max-width: 12ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.08;
}

p {
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.14rem;
  max-width: 64ch;
  color: var(--muted);
}

.home-hero,
.simple-hero,
.article-hero {
  padding: 4rem 0 2rem;
}

.home-hero-grid,
.split-simple,
.article-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.home-hero-media img,
.simple-figure img,
.feature-figure img,
.article-card-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(36, 31, 26, 0.08);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e9e0d7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.button-link,
.newsletter-form button,
.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--ink);
  color: var(--paper-strong);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button-link:hover,
.newsletter-form button:hover,
.contact-form button:hover {
  transform: translateY(-1px);
  color: var(--paper-strong);
}

.text-link {
  color: var(--accent);
  text-decoration: none;
}

.section {
  padding: 2.5rem 0;
}

.section-alt {
  background: rgba(255, 252, 248, 0.65);
  border-top: 1px solid rgba(36, 31, 26, 0.06);
  border-bottom: 1px solid rgba(36, 31, 26, 0.06);
}

.section-heading {
  margin-bottom: 1.5rem;
}

.featured-panel,
.newsletter-panel,
.side-card,
.topic-card,
.article-card,
.featured-panel-links,
.contact-form,
.newsletter-form,
.about-strip {
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.featured-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  padding: 1.8rem;
}

.featured-panel h2,
.newsletter-panel h2,
.about-strip h2 {
  max-width: 12ch;
}

.featured-panel-links,
.side-card {
  padding: 1.4rem;
}

.footer-label,
.side-label,
.article-card-category {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.side-links li,
.footer-links li {
  border-top: 1px solid rgba(36, 31, 26, 0.08);
}

.side-links li:first-child,
.footer-links li:first-child {
  border-top: 0;
}

.side-links a,
.footer-links a {
  display: block;
  padding: 0.72rem 0;
  text-decoration: none;
}

.article-grid,
.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

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

.article-card {
  overflow: hidden;
}

.article-card-body {
  padding: 1.15rem 1.15rem 1.3rem;
}

.article-card h3 {
  margin-bottom: 0.65rem;
}

.article-card h3 a,
.article-card-meta a {
  text-decoration: none;
}

.article-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 1rem;
}

.topic-card {
  padding: 1.4rem;
}

.about-strip,
.newsletter-panel {
  padding: 1.8rem;
  display: grid;
  grid-template-columns: 1fr 0.9fr 0.4fr;
  gap: 1.5rem;
  align-items: start;
}

.newsletter-form,
.contact-form {
  padding: 1.4rem;
}

.newsletter-form label,
.contact-form label {
  display: block;
  margin-bottom: 1rem;
}

.newsletter-form span,
.contact-form span {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
  color: var(--muted);
}

.newsletter-form input,
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.88rem 0.95rem;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font: inherit;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumbs a {
  text-decoration: none;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
}

.article-layout {
  padding: 1rem 0 2.5rem;
}

.article-shell,
.prose-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 2rem;
}

.contact-grid {
  grid-template-columns: minmax(0, 1fr) 420px;
}

.prose-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.article-body {
  max-width: var(--container-narrow);
}

.article-body p,
.article-body li {
  font-size: 1.04rem;
}

.article-intro {
  font-size: 1.18rem;
  color: var(--ink);
}

.article-body--page h1,
.article-body--page h2 {
  max-width: none;
}

.feature-figure {
  margin: 0;
}

.simple-hero--compact h1 {
  max-width: none;
}

.site-footer {
  border-top: 1px solid rgba(36, 31, 26, 0.08);
  margin-top: 2rem;
  padding: 2rem 0 1rem;
  background: rgba(250, 246, 240, 0.9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr 1fr;
  gap: 1.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.footer-copy,
.footer-meta {
  color: var(--muted);
}

.footer-meta {
  border-top: 1px solid rgba(36, 31, 26, 0.08);
  margin-top: 1rem;
  padding-top: 1rem;
  font-size: 0.92rem;
}

@media (max-width: 1040px) {
  .article-grid,
  .topics-grid,
  .footer-grid,
  .about-strip,
  .newsletter-panel,
  .contact-grid,
  .article-grid--related,
  .featured-panel,
  .home-hero-grid,
  .split-simple,
  .article-hero-grid,
  .article-shell,
  .prose-grid {
    grid-template-columns: 1fr;
  }

  .article-side {
    order: 2;
  }

  .article-body {
    max-width: none;
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    inset: 82px 0 auto 0;
    background: rgba(251, 248, 243, 0.98);
    padding: 0 1rem 1rem;
    border-bottom: 1px solid rgba(36, 31, 26, 0.08);
    display: none;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .primary-nav a {
    display: block;
    padding: 0.75rem 0;
  }

  h1 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .container,
  .container-wide {
    width: min(calc(100% - 1.25rem), var(--container));
  }
}