:root {
  --sea-950: #07131c;
  --sea-900: #0c2230;
  --sea-800: #123247;
  --sea-600: #1c5c70;
  --paper: #f2e2ba;
  --paper-light: #fff3d0;
  --copper: #c57936;
  --copper-dark: #81451f;
  --foam: #a9d6d1;
  --ink: #1a2730;
  --muted: #6f604a;
  --line: rgba(74, 54, 33, .28);
  --white: #fffaf0;
  --shadow: rgba(0, 0, 0, .28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at 20% 12%, rgba(169, 214, 209, .18), transparent 28rem),
    linear-gradient(135deg, var(--sea-950), var(--sea-800) 46%, #25180f);
  min-height: 100vh;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 54px);
  color: var(--white);
  background: rgba(7, 19, 28, .9);
  border-bottom: 1px solid rgba(255, 243, 208, .18);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--paper-light);
  font-weight: 900;
  letter-spacing: 0;
  background: linear-gradient(145deg, var(--copper), var(--copper-dark));
  border: 2px solid rgba(255, 243, 208, .55);
  clip-path: polygon(50% 0, 95% 28%, 95% 74%, 50% 100%, 5% 74%, 5% 28%);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--foam);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a,
.nav-toggle {
  min-height: 40px;
  padding: 9px 13px;
  color: var(--white);
  font: inherit;
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
}

.site-nav a:hover,
.site-nav a.active,
.nav-toggle:hover {
  color: var(--paper-light);
  border-color: rgba(255, 243, 208, .35);
  background: rgba(255, 243, 208, .08);
}

.nav-toggle {
  display: none;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr);
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
  min-height: calc(100vh - 92px);
  padding: 48px 0 26px;
}

.hero-copy {
  color: var(--white);
}

.kicker {
  margin: 0 0 10px;
  color: var(--foam);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 86px);
}

h2 {
  font-size: clamp(26px, 4vw, 42px);
}

h3 {
  font-size: 22px;
}

.lead {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(255, 250, 240, .86);
  font-size: clamp(18px, 2vw, 22px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  font-weight: 800;
  text-decoration: none;
  border-radius: 4px;
}

.button.primary {
  color: #1f1208;
  background: var(--paper-light);
  border: 1px solid var(--paper);
}

.button.secondary {
  color: var(--paper-light);
  border: 1px solid rgba(255, 243, 208, .45);
}

.hero-art {
  position: relative;
  margin: 0;
  padding: 12px;
  background: linear-gradient(145deg, rgba(255, 243, 208, .25), rgba(255, 243, 208, .05));
  border: 1px solid rgba(255, 243, 208, .32);
  box-shadow: 0 28px 60px var(--shadow);
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 22px -14px -14px 22px;
  z-index: -1;
  border: 1px solid rgba(197, 121, 54, .8);
}

.hero-art img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

figcaption {
  padding-top: 8px;
  color: rgba(255, 250, 240, .72);
  font-size: 12px;
}

.route-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 24px;
  border: 1px solid rgba(255, 243, 208, .22);
  background: rgba(7, 19, 28, .5);
}

.route-strip a {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 76px;
  padding: 16px;
  color: var(--white);
  text-decoration: none;
  border-right: 1px solid rgba(255, 243, 208, .16);
}

.route-strip a:last-child {
  border-right: 0;
}

.route-strip span {
  color: var(--copper);
  font-weight: 900;
}

.content-band,
.two-column,
.sources-panel,
.article {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px var(--shadow);
}

.content-band,
.two-column,
.sources-panel {
  margin: 24px 0;
  padding: clamp(22px, 4vw, 38px);
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading .kicker,
.two-column .kicker,
.article .kicker {
  color: var(--copper-dark);
}

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

.guide-card {
  min-height: 190px;
  padding: 18px;
  background: rgba(255, 250, 240, .72);
  border: 1px solid var(--line);
}

.guide-card a {
  text-decoration-color: rgba(129, 69, 31, .55);
}

.card-label {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--copper-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.guide-card p,
.facts dd,
.article p,
.article li {
  color: var(--muted);
}

.two-column {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 32px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
}

.facts div {
  padding: 14px;
  background: rgba(255, 250, 240, .66);
  border: 1px solid var(--line);
}

.facts dt {
  font-weight: 900;
}

.facts dd {
  margin: 4px 0 0;
}

.sources-panel ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.sources-panel a {
  color: #194f66;
  font-weight: 750;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding: 22px 0 34px;
  color: rgba(255, 250, 240, .72);
}

.article-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  padding: 36px 0;
}

.toc {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 18px;
  color: var(--white);
  background: rgba(7, 19, 28, .62);
  border: 1px solid rgba(255, 243, 208, .2);
}

.toc strong,
.toc a {
  display: block;
}

.toc strong {
  margin-bottom: 12px;
  color: var(--paper-light);
}

.toc a {
  padding: 8px 0;
  color: rgba(255, 250, 240, .78);
  text-decoration: none;
  border-top: 1px solid rgba(255, 243, 208, .13);
}

.article {
  padding: clamp(24px, 5vw, 58px);
}

.article h1 {
  color: var(--ink);
  font-size: clamp(38px, 5vw, 64px);
}

.article section {
  margin-top: 32px;
}

.article h2 {
  margin-bottom: 12px;
  font-size: clamp(24px, 3vw, 34px);
}

.steps,
.check-list {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.note-grid > div,
.answer-box,
details {
  padding: 16px;
  background: rgba(255, 250, 240, .72);
  border: 1px solid var(--line);
}

details + details {
  margin-top: 10px;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

.answer-box p {
  font-size: 20px;
}

.article-image {
  margin: 22px 0 0;
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, .72);
}

.article-image img {
  width: 100%;
}

.compact {
  box-shadow: none;
}

@media (max-width: 880px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: rgba(7, 19, 28, .98);
    border: 1px solid rgba(255, 243, 208, .22);
  }

  .site-nav.open {
    display: flex;
  }

  .hero,
  .two-column,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 32px;
  }

  .hero-art {
    order: -1;
  }

  .route-strip,
  .guide-grid,
  .facts,
  .note-grid {
    grid-template-columns: 1fr;
  }

  .route-strip a {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 243, 208, .16);
  }

  .toc {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
