:root {
  --bg: #faf8f3;
  --surface: #ffffff;
  --text: #1c2b23;
  --muted: #5d6b63;
  --accent: #2c6a4c;
  --accent-dark: #1d4a35;
  --accent-soft: #e9f1eb;
  --leaf: #8db27a;
  --cream: #f1ece0;
  --line: #e4e1d6;
  --shadow: 0 1px 2px rgba(28, 43, 35, 0.04), 0 8px 24px rgba(28, 43, 35, 0.06);
  --radius: 20px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --max: 720px;
  --wide: 1120px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 20px;
}

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

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 248, 243, 0.88);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.logo svg {
  flex: none;
  width: 34px;
  height: 34px;
}

.logo span {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.logo:hover {
  color: var(--text);
}

.site-nav {
  display: flex;
  gap: 4px;
  font-size: 15px;
  font-weight: 500;
}

.site-nav a {
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.site-nav a[aria-current="page"] {
  background: var(--accent);
  color: #fff;
}

/* type */
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(36px, 5.2vw, 58px);
  font-weight: 500;
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

h2 {
  margin: 52px 0 14px;
  font-size: clamp(26px, 3vw, 32px);
}

h3 {
  margin: 30px 0 8px;
  font-size: 22px;
}

p,
ul,
ol {
  margin: 0 0 20px;
}

li {
  margin-bottom: 8px;
}

li::marker {
  color: var(--accent);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--leaf);
}

.lead {
  font-size: 20px;
  line-height: 1.65;
  color: var(--muted);
}

/* hero */
.hero {
  padding: 72px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero .lead {
  max-width: 560px;
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-badge {
  position: absolute;
  left: -24px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 14px;
  line-height: 1.35;
}

.hero-badge strong {
  display: block;
  font-size: 15px;
}

.hero-badge span {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.page-hero {
  padding: 64px 0 40px;
}

.banner {
  margin: 0 0 8px;
}

.banner img {
  width: 100%;
  height: clamp(200px, 32vw, 360px);
  object-fit: cover;
  border-radius: var(--radius);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.button:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

.button.ghost {
  background: transparent;
  color: var(--accent-dark);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.button.ghost:hover {
  background: var(--surface);
  color: var(--accent-dark);
}

/* sections */
.section {
  padding: 64px 0;
}

.section-tint {
  background: var(--cream);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split h2:first-child {
  margin-top: 0;
}

.split img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  margin: 0;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.facts strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
}

.facts span {
  font-size: 15px;
  color: var(--muted);
}

.icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.icon svg {
  width: 22px;
  height: 22px;
}

/* article cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  color: inherit;
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(28, 43, 35, 0.05), 0 16px 36px rgba(28, 43, 35, 0.1);
}

.card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-img {
  transform: scale(1.03);
}

.card-body {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 24px 24px;
  background: var(--surface);
}

.card h2,
.card h3 {
  margin: 8px 0 10px;
  font-size: 22px;
}

.card p {
  flex: 1;
  font-size: 16px;
  color: var(--muted);
}

.card .more {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

.card .meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* article page */
.article {
  padding: 56px 0 24px;
}

.article h1 {
  font-size: clamp(34px, 4.6vw, 50px);
}

.article-meta {
  margin: 0 0 28px;
  font-size: 15px;
  color: var(--muted);
}

.article-hero {
  margin: 0 0 36px;
}

.article-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}

figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb {
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

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

.callout {
  margin: 32px 0;
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--accent-soft);
}

.callout p:last-child {
  margin-bottom: 0;
}

.note {
  font-size: 15px;
  color: var(--muted);
}

.sources {
  margin-top: 48px;
  padding: 24px 28px;
  border-radius: 16px;
  background: var(--cream);
  font-size: 15px;
  color: var(--muted);
}

.sources h2 {
  margin-top: 0;
  font-size: 20px;
}

.sources ol,
.sources ul {
  margin-bottom: 0;
}

.related {
  margin-top: 40px;
  padding: 56px 0 72px;
  background: var(--cream);
}

.table-scroll {
  overflow-x: auto;
  margin: 0 0 24px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

tr:last-child td {
  border-bottom: 0;
}

th {
  background: var(--accent-soft);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

/* footer */
.site-footer {
  padding: 56px 0 40px;
  background: var(--accent-dark);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
}

.related + .site-footer,
main + .site-footer {
  margin-top: 0;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

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

.site-footer .logo em {
  color: #b9d6a8;
}

.site-footer p {
  max-width: 420px;
  margin: 14px 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-small {
  padding-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 900px) {
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-media img {
    aspect-ratio: 16 / 11;
  }

  .hero-badge {
    left: 16px;
    bottom: 16px;
  }

  .facts,
  .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 17px;
  }

  .site-header .wrap {
    min-height: 62px;
  }

  .wrap {
    padding: 0 16px;
  }

  .logo {
    gap: 8px;
  }

  .logo svg {
    width: 28px;
    height: 28px;
  }

  .logo span {
    font-size: 18px;
    white-space: nowrap;
  }

  .site-nav {
    gap: 0;
    font-size: 14px;
  }

  .site-nav a {
    padding: 6px 9px;
  }

  .hero {
    padding: 44px 0 48px;
  }

  .lead {
    font-size: 18px;
  }
}
