:root {
  --bg: #f4efe4;
  --bg-2: #e8f0e6;
  --surface: #fffdf8;
  --surface-2: #f7f1e6;
  --text: #14241c;
  --muted: #4a5d52;
  --border: #d5cbb8;
  --accent: #0f6b56;
  --accent-2: #1a8a7a;
  --lagoon: #1b7c8a;
  --gold: #b8893a;
  --shadow: 0 18px 50px rgba(20, 36, 28, 0.12);
  --ring: #1a8a7a;
  --pill-cr: #9b1c1c;
  --pill-cr-bg: #fde8e8;
  --pill-en: #9a4a0a;
  --pill-en-bg: #fcecd6;
  --pill-ex: #4b5563;
  --pill-ex-bg: #e8eaed;
  --hero-scrim: linear-gradient(180deg, rgba(10, 22, 18, 0.15) 0%, rgba(10, 22, 18, 0.72) 100%);
  --header-bg: rgba(244, 239, 228, 0.88);
  --radius: 18px;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
}

html.dark {
  --bg: #0e1713;
  --bg-2: #12201a;
  --surface: #16241d;
  --surface-2: #1c2d25;
  --text: #e8f2ea;
  --muted: #a9c0b4;
  --border: #2c4439;
  --accent: #3dba96;
  --accent-2: #5ecfc4;
  --lagoon: #5ecfc4;
  --gold: #e0b45c;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --ring: #5ecfc4;
  --pill-cr: #fecaca;
  --pill-cr-bg: #5c1a1a;
  --pill-en: #fcd9a8;
  --pill-en-bg: #5a3410;
  --pill-ex: #d1d5db;
  --pill-ex-bg: #2b3338;
  --hero-scrim: linear-gradient(180deg, rgba(8, 16, 12, 0.25) 0%, rgba(8, 16, 12, 0.82) 100%);
  --header-bg: rgba(14, 23, 19, 0.86);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 10% -10%, var(--bg-2), transparent 55%),
    var(--bg);
  line-height: 1.65;
  min-height: 100vh;
}

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

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

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

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--accent);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  z-index: 100;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
  min-height: 44px;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--border);
}

.brand-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}

.nav-toggle,
.theme-toggle {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.nav-toggle {
  display: grid;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav {
  display: none;
  gap: 0.2rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  text-decoration: none;
  color: var(--text);
  border-radius: 999px;
  font-weight: 600;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--surface);
  color: var(--accent);
}

.nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  left: 0;
  right: 0;
  top: 72px;
  padding: 0.75rem 1rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

@media (min-width: 860px) {
  .nav-toggle {
    display: none;
  }

  .nav,
  .nav.is-open {
    display: flex;
    flex-direction: row;
    position: static;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
}

.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-radius: 0 0 32px 32px;
}

.hero img.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  background: var(--hero-scrim);
  color: #f6f8f4;
  padding: 4.5rem 0 2.6rem;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
}

.hero h1,
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0.35rem 0 0.7rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  max-width: 14ch;
  color: #fff;
}

.lede {
  max-width: 42rem;
  font-size: 1.12rem;
  color: #e4eee8;
}

.pronounce {
  margin: 0.9rem 0 1.4rem;
  font-family: var(--font-display);
  font-style: italic;
  color: #d7e6dc;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-primary {
  background: #e8c36a;
  color: #1b2418;
}

.btn-primary:hover {
  background: #f0d48a;
  color: #1b2418;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.btn-on-page {
  background: var(--accent);
  color: #fff;
}

.btn-on-page:hover {
  background: var(--accent-2);
  color: #fff;
}

.section {
  padding: 3.4rem 0;
}

.section h2,
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  margin: 0 0 0.8rem;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.icon-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.icon-title svg {
  width: 28px;
  height: 28px;
  flex: none;
  color: var(--accent);
}

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

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 700px) {
  .cards.four,
  .cards.facts,
  .cards.two {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .cards.four {
    grid-template-columns: repeat(4, 1fr);
  }

  .cards.facts {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

a.card:hover {
  transform: translateY(-3px);
  color: inherit;
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-body {
  padding: 1rem 1.05rem 1.15rem;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0.35rem 0 0.35rem;
  line-height: 1.25;
}

.sci {
  font-style: italic;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill-cr {
  background: var(--pill-cr-bg);
  color: var(--pill-cr);
}

.pill-en {
  background: var(--pill-en-bg);
  color: var(--pill-en);
}

.pill-ex {
  background: var(--pill-ex-bg);
  color: var(--pill-ex);
}

.pill-cites {
  background: #e4eef8;
  color: #1e4e7a;
}

html.dark .pill-cites {
  background: #1b3348;
  color: #c5def5;
}

.fact {
  padding: 1.1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.fact svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.fact strong {
  display: block;
  margin: 0.4rem 0 0.15rem;
  font-size: 0.95rem;
}

.band {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.split {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.photo-figure {
  margin: 0;
}

.photo-figure img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  max-height: 540px;
}

.photo-figure figcaption {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.page-hero {
  padding: 2.4rem 0 1.2rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.92rem;
  margin-bottom: 0.8rem;
  color: var(--muted);
}

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

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

.prose {
  max-width: 46rem;
}

.prose p,
.prose li {
  font-size: 1.05rem;
}

.prose ul {
  padding-left: 1.15rem;
}

.wide-table {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

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

th {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.2rem 1rem;
  margin-bottom: 0.7rem;
}

.faq summary {
  cursor: pointer;
  min-height: 52px;
  display: flex;
  align-items: center;
  font-weight: 700;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  margin-left: auto;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
}

.faq details[open] summary::after {
  transform: rotate(225deg);
}

.callout {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 14px;
  padding: 1rem 1.15rem;
}

.sources {
  font-size: 0.92rem;
}

.sources a {
  overflow-wrap: anywhere;
}

.site-footer {
  margin-top: 2rem;
  padding: 2rem 0 2.4rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer-grid {
  display: grid;
  gap: 1.2rem;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
}

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

.footer-links {
  display: grid;
  gap: 0.45rem;
}

.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
