:root {
  --bg: #ede2ce;
  --bg-deep: #dbc3a0;
  --paper: rgba(255, 250, 240, 0.86);
  --paper-strong: #fff9f0;
  --ink: #17130f;
  --muted: #665a4c;
  --line: rgba(23, 19, 15, 0.09);
  --accent: #b66134;
  --accent-2: #184f60;
  --accent-soft: #f7dcc8;
  --shadow: 0 28px 80px rgba(59, 38, 22, 0.12);
  --display: "Cormorant Garamond", serif;
  --sans: "Plus Jakarta Sans", sans-serif;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(182, 97, 52, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(24, 79, 96, 0.15), transparent 36%),
    linear-gradient(180deg, #f3ead9 0%, var(--bg) 45%, #e4d3bb 100%);
  line-height: 1.75;
}

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

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

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.03;
}

p {
  margin: 0;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.site-main {
  padding: 28px 0 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.meta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--accent-2);
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
}

.button-primary {
  background: var(--ink);
  color: #fffaf0;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(23, 19, 15, 0.08);
}

.site-header {
  padding: 18px 0 0;
}

.header-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding-bottom: 14px;
}

.topline {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.topline-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.header-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 24px 28px;
}

.brand-title {
  display: inline-block;
  margin-bottom: 8px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  color: var(--ink);
}

.brand-copy {
  max-width: 62ch;
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
}

.site-nav a.is-active,
.site-nav a:hover {
  background: rgba(23, 19, 15, 0.07);
  color: var(--ink);
}

.hero,
.feature,
.split-grid,
.dual-panels,
.highlight-grid,
.article-grid,
.story-grid {
  display: grid;
  gap: 20px;
}

.hero {
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.8fr);
}

.hero-copy,
.hero-note,
.page-hero,
.list-panel,
.side-panel,
.highlight-card,
.prose,
.article-hero,
.site-footer {
  padding: 28px;
}

.hero-copy h1,
.page-hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(2.7rem, 5vw, 5rem);
}

.hero-copy p,
.page-hero p {
  max-width: 68ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-note h2,
.list-panel h2,
.section-head h2 {
  margin-top: 14px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.bullet-stack,
.link-stack {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bullet-stack li,
.compact-item {
  padding-top: 14px;
  border-top: 1px solid rgba(23, 19, 15, 0.08);
  color: var(--muted);
}

.feature {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  padding: 24px;
  align-items: center;
  margin-top: 24px;
}

.feature-copy h2 {
  margin: 14px 0 12px;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
}

.feature-copy p {
  color: var(--muted);
  max-width: 64ch;
}

.feature-media,
.story-media {
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(182, 97, 52, 0.14), rgba(24, 79, 96, 0.16));
}

.feature-media img,
.story-media img,
.article-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.split-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.8fr);
  margin-top: 28px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin-bottom: 18px;
}

.inline-link {
  color: var(--accent-2);
  font-weight: 700;
}

.story-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.story-grid-wide {
  margin-top: 24px;
}

.story-card {
  overflow: hidden;
}

.story-copy {
  padding: 18px;
}

.story-copy h3 {
  margin: 14px 0 10px;
  font-size: 1.38rem;
}

.story-copy p {
  color: var(--muted);
}

.sidebar-stack,
.article-sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
  align-items: start;
  grid-auto-rows: max-content;
}

.dual-panels,
.highlight-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 28px;
}

.topic-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.topic-card {
  padding: 24px;
}

.topic-card h3,
.topic-card h2 {
  margin: 14px 0 12px;
  font-size: 1.7rem;
}

.topic-card p {
  margin-bottom: 16px;
  color: var(--muted);
}

.language-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.language-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(23, 19, 15, 0.08);
  color: var(--muted);
  font-weight: 700;
}

.language-pill.is-active,
.language-pill:hover {
  background: var(--ink);
  color: #fffaf0;
}

.compact-list {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.compact-item h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
}

.page-hero,
.highlight-grid,
.article-shell,
.related-wrap {
  margin-top: 24px;
}

.highlight-card p {
  margin-top: 12px;
  color: var(--muted);
}

.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.85fr);
  gap: 24px;
  align-items: center;
}

.article-head h1 {
  margin: 16px 0 12px;
  font-size: clamp(2.6rem, 5vw, 4.7rem);
}

.article-head p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 64ch;
}

.article-grid {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  margin-top: 24px;
  align-items: start;
}

.article-sidebar,
.side-panel {
  align-self: start;
}

.prose {
  font-size: 1.06rem;
}

.prose h2,
.prose h3 {
  margin: 34px 0 14px;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote {
  margin: 0 0 18px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose blockquote {
  padding: 18px 20px;
  border-left: 3px solid rgba(182, 97, 52, 0.42);
  background: rgba(247, 220, 200, 0.42);
  border-radius: 0 16px 16px 0;
}

.prose a {
  color: var(--accent-2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 20px;
  margin: 36px auto 42px;
}

.not-found-hero {
  margin-top: 24px;
}

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

.footer-links {
  display: grid;
  gap: 8px;
  align-content: start;
}

.footer-links a {
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 980px) {
  .header-main,
  .hero,
  .feature,
  .split-grid,
  .article-hero,
  .article-grid,
  .site-footer {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 20px, var(--max));
  }

  .hero-copy,
  .hero-note,
  .page-hero,
  .list-panel,
  .side-panel,
  .highlight-card,
  .prose,
  .article-hero,
  .site-footer,
  .header-main {
    padding: 20px;
  }

  .header-top {
    flex-direction: column;
    align-items: flex-start;
  }
}
