:root {
  --ink: #102326;
  --muted: #5a6f73;
  --line: #d7e0df;
  --paper: #fbfaf5;
  --soft: #eef4f1;
  --teal: #1d5960;
  --teal-dark: #143b42;
  --red: #b4453d;
  --gold: #c99a42;
  --white: #ffffff;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(251, 250, 245, 0.92);
  border-bottom: 1px solid rgba(16, 35, 38, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  color: var(--white);
  background: var(--teal-dark);
  font-size: 12px;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 56px));
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(10, 27, 31, 0.84) 0%, rgba(10, 27, 31, 0.68) 38%, rgba(10, 27, 31, 0.16) 72%),
    linear-gradient(0deg, rgba(10, 27, 31, 0.25), rgba(10, 27, 31, 0.05));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 86px);
  padding: 72px 0 116px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(46px, 8vw, 94px);
  line-height: 0.95;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 7px;
  font-weight: 760;
  border: 1px solid transparent;
}

.button.primary {
  color: var(--white);
  background: var(--red);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-band div {
  padding: 24px clamp(18px, 4vw, 54px);
  background: var(--white);
}

.stat-value,
.stat-label {
  display: block;
}

.stat-value {
  color: var(--teal-dark);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 820;
}

.stat-label {
  margin-top: 4px;
  color: var(--muted);
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 4vw, 54px);
}

.section.muted {
  background: var(--soft);
}

.section-header {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-header.compact {
  max-width: 520px;
  margin-bottom: 0;
}

.section h2 {
  max-width: 860px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.02;
}

.section-header p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.cost-grid,
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.info-card,
.route,
.calculator,
.guide-link,
.guide-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.info-card {
  min-height: 230px;
  padding: 24px;
}

.card-kicker {
  color: var(--red);
  font-size: 13px;
  font-weight: 780;
  text-transform: uppercase;
}

.info-card h3,
.route h3 {
  margin: 12px 0 10px;
  font-size: 24px;
  line-height: 1.15;
}

.info-card p,
.route p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.8fr);
  align-items: start;
  gap: clamp(28px, 6vw, 80px);
}

.calculator {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 22px;
  box-shadow: 0 18px 45px rgba(22, 59, 67, 0.12);
}

.calculator label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
}

.calculator input,
.calculator select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.result {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  margin-top: 4px;
  padding: 22px;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal-dark);
}

.result-label,
.result-note {
  color: rgba(255, 255, 255, 0.72);
}

.result strong {
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1;
}

.route-list {
  display: grid;
  gap: 12px;
}

.route {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding: 22px 24px;
}

.route span {
  color: var(--red);
  font-size: 13px;
  font-weight: 780;
  text-transform: uppercase;
}

.guide-link {
  min-height: 92px;
  display: flex;
  align-items: center;
  padding: 20px;
  color: var(--teal-dark);
  font-size: 18px;
  font-weight: 760;
}

.guide-link:hover {
  border-color: var(--teal);
}

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

.visual-guides {
  align-items: stretch;
}

.guide-card {
  display: grid;
  align-content: start;
  overflow: hidden;
  min-height: 100%;
}

.guide-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.guide-card span {
  margin: 18px 18px 0;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.guide-card strong {
  margin: 8px 18px 0;
  color: var(--teal-dark);
  font-size: 21px;
  line-height: 1.18;
}

.guide-card p {
  margin: 10px 18px 20px;
  color: var(--muted);
  line-height: 1.55;
}

.guide-card:hover {
  border-color: var(--teal);
}

.guide-card.upcoming {
  padding-top: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.guide-card.upcoming strong {
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 4vw, 54px);
  color: rgba(255, 255, 255, 0.76);
  background: var(--teal-dark);
}

.site-footer p {
  margin: 0;
}

.article-main {
  background: var(--paper);
}

.article-hero {
  padding: clamp(52px, 8vw, 96px) clamp(18px, 4vw, 54px) 36px;
  background: var(--teal-dark);
  color: var(--white);
}

.article-hero .eyebrow {
  color: var(--gold);
}

.article-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.76);
}

.article-featured-image {
  width: min(920px, calc(100% - 36px));
  margin: 28px auto 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
  overflow: hidden;
  background: var(--white);
}

.article-featured-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(42px, 6vw, 78px) clamp(18px, 4vw, 54px);
}

.article-content {
  max-width: 820px;
}

.article-content h2 {
  margin: 38px 0 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}

.article-content h3 {
  margin: 28px 0 10px;
  font-size: 24px;
}

.article-content p,
.article-content li {
  color: #31484c;
  font-size: 18px;
  line-height: 1.72;
}

.article-content a {
  color: var(--teal);
  font-weight: 760;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content table {
  width: 100%;
  margin: 20px 0 30px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

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

.article-content th {
  color: var(--teal-dark);
  background: var(--soft);
}

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

.note-box,
.article-toc {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.note-box {
  margin: 24px 0;
  padding: 18px 20px;
}

.note-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--teal-dark);
}

.article-toc {
  position: sticky;
  top: 84px;
  align-self: start;
  padding: 18px;
}

.article-toc strong {
  display: block;
  margin-bottom: 10px;
}

.article-toc a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 14px;
}

.article-toc a:hover {
  color: var(--ink);
}

.article-cta {
  margin-top: 42px;
  padding: 24px;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal-dark);
}

.article-cta p {
  margin: 8px 0 18px;
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(10, 27, 31, 0.88), rgba(10, 27, 31, 0.34));
  }

  .stats-band,
  .cost-grid,
  .guide-grid,
  .split,
  .route {
    grid-template-columns: 1fr;
  }

  .section-header.compact {
    margin-bottom: 24px;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-toc {
    position: static;
    order: -1;
  }
}

@media (max-width: 560px) {
  .hero-content {
    width: calc(100% - 32px);
    margin-left: 16px;
    padding-bottom: 86px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .calculator {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}
