:root {
  color-scheme: light;
  font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
  color: #172639;
  background: #071625;
  font-synthesis: none;
  --ink: #081a2b;
  --ink-soft: #344b62;
  --paper: #f8fafc;
  --paper-deep: #e8eef3;
  --line: #b8c7d3;
  --gold: #b97f25;
  --gold-bright: #f4ce72;
  --frost: #a8dbe6;
  --green: #286674;
  --red: #a65056;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 78% 5%, #5c9fbf2e 0, transparent 32rem),
    radial-gradient(circle at 12% 18%, #c7973e14 0, transparent 28rem),
    linear-gradient(180deg, #071625 0 52rem, #e8eef3 52rem 100%);
  line-height: 1.65;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  content: "";
  pointer-events: none;
}

a { color: #2d607e; text-underline-offset: .22em; }
a:hover { color: #163f5b; }
button, input, select { font: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -6rem;
  z-index: 100;
  padding: .75rem 1rem;
  color: #fff;
  background: var(--ink);
  border-radius: .35rem;
}
.skip-link:focus { top: 1rem; }

.preview-banner {
  display: flex;
  justify-content: center;
  gap: .75rem;
  padding: .55rem 1rem;
  color: #ffeac0;
  background: #182e43;
  border-bottom: 1px solid #ffffff2b;
  font-size: .82rem;
  letter-spacing: .02em;
}
.preview-banner strong { color: var(--gold-bright); text-transform: uppercase; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: .85rem clamp(1rem, 4vw, 4rem);
  color: #fff;
  background: #071725e8;
  border-bottom: 1px solid #d7edf225;
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: .72rem;
  color: #fff;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
}
.brand span {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  color: var(--ink);
  background: var(--gold-bright);
  border: 1px solid #fff4;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px #ffffff45, 0 0 1.5rem #f4ce7238;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: .82rem;
}

nav { display: flex; flex-wrap: wrap; gap: clamp(.7rem, 2vw, 1.2rem); }
nav a { color: #dce8ed; text-decoration: none; font-size: .92rem; }
nav a:hover, nav a[aria-current="page"] { color: var(--gold-bright); }

main { width: 100%; margin: 0 auto; }
.breadcrumbs { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding-top: 1.8rem; color: #adbecb; font-size: .86rem; }
.breadcrumbs span { color: #536b80; }

.hero {
  position: relative;
  overflow: hidden;
  color: #f7f6ee;
  isolation: isolate;
}

.hero-home {
  display: flex;
  align-items: center;
  min-height: min(900px, calc(100svh - 7rem));
  margin: 0;
  padding: clamp(4rem, 8vw, 8.5rem) max(2rem, calc((100vw - 1180px) / 2));
  background: #06111e;
  border-bottom: 1px solid #a9d6e829;
}

.hero-home::before,
.hero-home::after {
  position: absolute;
  content: "";
  pointer-events: none;
}
.hero-home::before {
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, #05111ef7 0%, #071725e8 30%, #07172598 48%, #07172524 68%, transparent 82%),
    linear-gradient(180deg, #06111e70 0%, transparent 45%, #06111ef2 100%);
}
.hero-home::after {
  inset: auto 0 0;
  z-index: 3;
  height: 8rem;
  background: linear-gradient(to bottom, transparent, #06111ef0 70%, #e8eef3 71%);
}

.hero-copy { position: relative; z-index: 4; }
.hero-home .hero-copy {
  width: min(44rem, 58vw);
  padding: 2rem 0 5.5rem;
}
.hero-home .hero-copy::before {
  position: absolute;
  top: -2.4rem;
  left: 0;
  width: 7.5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-bright), transparent);
  box-shadow: 0 -.42rem 0 -.35rem #fff2bd;
  content: "";
}

.hero-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: clamp(1rem, 3vw, 2.5rem) auto 0;
  padding: clamp(3.5rem, 8vw, 7rem) clamp(1.4rem, 5vw, 4rem);
  background:
    radial-gradient(circle at 86% 18%, #f2bd4f36 0 1.5rem, transparent 1.6rem),
    linear-gradient(135deg, #0d2337, #164355 66%, #1d5267);
  border: 1px solid #ffffff1f;
  border-radius: .8rem .8rem 3.6rem .8rem;
  box-shadow: 0 1.4rem 3.5rem #12253a22;
}

.hero-inner::before {
  position: absolute;
  right: -5rem;
  bottom: -9rem;
  width: 24rem;
  height: 24rem;
  border: 1px solid #ffffff25;
  border-radius: 50%;
  box-shadow: 0 0 0 2.5rem #ffffff0a, 0 0 0 5rem #ffffff0a;
  content: "";
  pointer-events: none;
}

.eyebrow, .result-kicker {
  margin: 0;
  color: var(--gold);
  font-family: "Courier New", monospace;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero .eyebrow { color: var(--gold-bright); }
h1, h2, h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  line-height: 1.04;
  text-wrap: balance;
}
h1 {
  max-width: 11ch;
  margin: .55rem 0 1.2rem;
  font-size: clamp(3.5rem, 7vw, 7.2rem);
  font-weight: 500;
  letter-spacing: -.058em;
}
.hero-home h1 {
  max-width: 9.5ch;
  color: #fffdf3;
  font-family: Baskerville, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(4rem, 7.2vw, 7.6rem);
  letter-spacing: -.045em;
  text-shadow: 0 .15rem .35rem #020916, 0 1.2rem 3.5rem #020914b8;
}
h2 { margin: .4rem 0 1.2rem; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 500; letter-spacing: -.035em; }
h3 { margin: .45rem 0 .75rem; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 500; }
.deck { position: relative; max-width: 700px; color: #d4e4e8; font-size: clamp(1.08rem, 2vw, 1.32rem); }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; margin-top: 2rem; }
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  min-width: 16.5rem;
  padding: .86rem 1rem;
  color: #0a2031;
  background: linear-gradient(135deg, #f7dda0, #e8b846);
  border: 1px solid #fff4c4;
  border-radius: .18rem 1.35rem .18rem 1.35rem;
  box-shadow: 0 1rem 2.8rem #0008, inset 0 1px #fff9, 0 0 0 5px #f4ce7210;
  font-weight: 850;
  text-decoration: none;
}
.hero-cta:hover { color: #071625; background: #ffe8ae; transform: translateY(-2px); }
.hero-secondary { color: #d9e8e8; font-size: .88rem; font-weight: 700; }
.hero-secondary:hover { color: var(--gold-bright); }

.hero-vista { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-vista::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 31%, transparent 0 14rem, #0717251c 30rem, transparent 47rem),
    linear-gradient(180deg, #06111e08 55%, #06111ea6 100%);
  content: "";
}
.hero-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.92) contrast(1.04) brightness(.88);
}
.hero-route-map {
  position: absolute;
  top: 11%;
  right: 3%;
  z-index: 2;
  width: min(46vw, 690px);
  height: 68%;
  opacity: .74;
  filter: drop-shadow(0 0 1.2rem #062035aa);
}
.route-coordinates { opacity: .2; stroke-width: 1; }
.route-nodes { filter: drop-shadow(0 0 .65rem #f5d477); }
.route-ticks path { fill: none; stroke: currentColor; stroke-width: 2; opacity: .6; }
.vista-label {
  position: absolute;
  right: max(3.5rem, calc((100vw - 1390px) / 2));
  bottom: 13%;
  z-index: 4;
  display: grid;
  min-width: 14rem;
  padding: .85rem 1rem;
  color: #e9f5f3;
  background: #061421b8;
  border: 1px solid #e4f6f047;
  border-left: 3px solid var(--gold-bright);
  box-shadow: 0 1rem 3rem #0007;
  backdrop-filter: blur(16px);
}
.vista-label span { color: #aac6cc; font-family: "Courier New", monospace; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }
.vista-label strong { font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: 1.08rem; font-weight: 500; }
.hero-facts, .facts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: .65rem;
  margin: 2rem 0 0;
}
.hero-home .hero-facts { max-width: 42rem; grid-template-columns: repeat(3, 1fr); }
.hero-facts div {
  padding: .9rem 1rem;
  border: 1px solid #d9edf12e;
  border-radius: .55rem;
  background: #0715228c;
  box-shadow: inset 0 1px #ffffff0e;
  backdrop-filter: blur(12px);
}
.facts div {
  padding: 1rem;
  border: 1px solid #b7c5d0;
  border-radius: .55rem;
  background: #ffffff9c;
}
dt { color: #62788c; font-family: "Courier New", monospace; font-size: .7rem; letter-spacing: .11em; text-transform: uppercase; }
.hero dt { color: #b7c9cf; }
dd { margin: .26rem 0 0; font-weight: 700; line-height: 1.35; }

.content { display: grid; width: min(1180px, calc(100% - 2rem)); gap: 1rem; margin: 0 auto; padding: 1rem 0 2rem; }
.content > section, .related {
  padding: clamp(1.6rem, 4vw, 3.6rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: .72rem;
  box-shadow: 0 .9rem 2.5rem #152b4112;
}
.content > section:not(.planner-shell) { border-left: .38rem solid #d8a23f; }
.content p, .content li { max-width: 76ch; color: #3d5368; }
.content li { margin-block: .55rem; }
.steps { padding-left: 1.4rem; }
.steps li::marker { color: var(--gold); font-weight: 800; }

.planner-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 1rem;
  padding: clamp(1rem, 3vw, 2rem) !important;
  color: #edf2f3;
  margin-top: -6.2rem;
  background: linear-gradient(145deg, #102a40, #0b2033) !important;
  border-color: #79b6bd45 !important;
  box-shadow: 0 2rem 5rem #04111d52 !important;
}
.planner-shell::before {
  position: absolute;
  inset: .7rem;
  border: 1px dashed #f2bd4f42;
  border-radius: .45rem;
  content: "";
  pointer-events: none;
}
.planner-intro { grid-column: 1 / -1; padding: .5rem .75rem 1rem; border-bottom: 1px solid #ffffff20; }
.planner-intro h2 { max-width: 16ch; margin-bottom: .65rem; color: #fff7e7; }
.planner-intro p { margin-bottom: 0; color: #bdccd1; }
.planner-form, .planner-result { position: relative; z-index: 1; padding: clamp(1rem, 2.6vw, 2rem); border-radius: .55rem; }
.planner-form { background: #0d2133; border: 1px solid #ffffff20; }
.planner-form > label, legend { display: block; margin: 0 0 .42rem; color: #dce7e9; font-size: .83rem; font-weight: 700; }
.planner-form select, .planner-form input[type="number"] {
  width: 100%;
  min-height: 3rem;
  margin: 0 0 1.1rem;
  padding: .65rem .8rem;
  color: #14283b;
  background: #f8fafc;
  border: 2px solid transparent;
  border-radius: .38rem;
}
.planner-form select:focus, .planner-form input:focus, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid #f2bd4f;
  outline-offset: 3px;
}
fieldset { min-width: 0; margin: .25rem 0 1.2rem; padding: 0; border: 0; }
.milestone-list { display: grid; max-height: 15.5rem; overflow: auto; border: 1px solid #ffffff1c; border-radius: .38rem; }
.check-row { position: relative; display: grid; grid-template-columns: 1.2rem 1fr; gap: .72rem; align-items: start; padding: .68rem .72rem; color: #bfccd2; border-bottom: 1px solid #ffffff14; cursor: pointer; font-size: .88rem; line-height: 1.35; }
.check-row:last-child { border-bottom: 0; }
.check-row:hover { background: #ffffff08; }
.check-row input { position: absolute; opacity: 0; pointer-events: none; }
.check-mark { display: grid; place-items: center; width: 1.1rem; height: 1.1rem; margin-top: .07rem; background: #f8fafc; border: 2px solid #8299aa; border-radius: .2rem; }
.check-row input:checked + .check-mark { background: var(--gold-bright); border-color: var(--gold-bright); }
.check-row input:checked + .check-mark::after { color: var(--ink); content: "✓"; font-size: .78rem; font-weight: 900; }
.check-row input:focus-visible + .check-mark { outline: 3px solid var(--gold-bright); outline-offset: 2px; }
.primary-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 3.2rem;
  padding: .75rem 1rem;
  color: var(--ink);
  background: var(--gold-bright);
  border: 0;
  border-radius: .38rem;
  box-shadow: 0 .5rem 1.4rem #0004;
  font-weight: 800;
  cursor: pointer;
}
.primary-action:hover { background: #ffd278; transform: translateY(-1px); }
.primary-action:disabled { opacity: .55; cursor: not-allowed; }

.planner-result { min-height: 26rem; color: #283b4d; background: #f8fafc; border: 1px solid #f2bd4f66; }
.planner-result > p { color: #506071; }
.route-status { display: inline-flex; align-items: center; gap: .5rem; margin: 1rem 0 .2rem; padding: .38rem .65rem; color: #86454c; background: #f3e0e2; border-radius: 100vw; font-size: .78rem; font-weight: 800; }
.route-status.is-complete { color: #245661; background: #dcebf0; }
.status-dot { width: .48rem; height: .48rem; background: currentColor; border-radius: 50%; }
.result-summary { margin-top: 0; }
.route-list { display: grid; gap: .58rem; padding: 0; list-style: none; }
.route-list li { display: grid; grid-template-columns: 2rem 1fr; gap: .7rem; align-items: start; margin: 0; padding: .72rem; border: 1px solid #c5d1db; border-radius: .42rem; background: #fff; }
.route-list strong { color: #1c2e40; }
.route-list p { margin: .15rem 0 0; color: #5a6978; font-size: .86rem; line-height: 1.45; }
.route-marker { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; color: #fff; background: var(--red); border-radius: 50%; font-family: "Courier New", monospace; font-size: .76rem; font-weight: 900; }
.route-list .is-done { opacity: .64; }
.route-list .is-done strong { text-decoration: line-through; }
.route-list .is-done .route-marker, .route-list .is-ready .route-marker { background: var(--green); }
.route-list .is-next { border-color: #d4951d; background: #fff8e7; }
.route-list .is-next .route-marker { color: var(--ink); background: var(--gold-bright); }
.optional-context { margin-top: .8rem; padding: .75rem .9rem; color: #455b70; background: #e5edf2; border-left: 3px solid #718797; }
.optional-context p { margin: .25rem 0 0; font-size: .86rem; }
.precision-note { padding-left: .8rem; border-left: 3px solid var(--red); font-size: .84rem; }
.evidence-strip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; margin-top: 1rem; padding-top: .8rem; color: #66798a; border-top: 1px solid #c5d1da; font-family: "Courier New", monospace; font-size: .7rem; }
.evidence-tier { color: var(--green); font-weight: 800; text-transform: uppercase; }
.result-actions { display: flex; flex-wrap: wrap; gap: .7rem 1rem; margin-top: .85rem; }
.text-action { color: #2d607e; font-size: .86rem; font-weight: 800; }

details { padding: 1rem 0; border-bottom: 1px solid #c5d1da; }
summary { color: #24374a; cursor: pointer; font-weight: 800; }
.sources { padding-left: 1.2rem; overflow-wrap: anywhere; }
.sources li { margin-block: .85rem; }
.related { width: min(1180px, calc(100% - 2rem)); margin: 0 auto 3rem; border-top: .35rem solid #4f7f91; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .8rem; }
.card { display: grid; gap: .5rem; min-height: 10rem; padding: 1.15rem; color: #162a3e; text-decoration: none; background: #fff; border: 1px solid #c1ced8; border-radius: .55rem; }
.card::before { color: var(--gold); content: "↗"; font-family: Georgia, serif; font-size: 1.2rem; }
.card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 .7rem 1.5rem #162b4014; }
.card strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; line-height: 1.18; }
.card span { color: #5b6977; font-size: .87rem; }

footer {
  display: grid;
  grid-template-columns: auto minmax(200px, 1fr) auto;
  gap: 1rem 2rem;
  align-items: center;
  padding: 2rem clamp(1rem, 4vw, 4rem);
  color: #bdc9cf;
  background: var(--ink);
  border-top: 4px solid var(--gold);
  font-size: .8rem;
}
footer a, .privacy-choices { color: var(--gold-bright); }
.privacy-choices { padding: 0; border: 0; background: transparent; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.not-found { min-height: 75vh; padding-block: 8rem; }

@media (max-width: 780px) {
  .preview-banner { align-items: flex-start; flex-direction: column; gap: .1rem; }
  .site-header { position: static; align-items: flex-start; flex-direction: column; gap: .65rem; }
  .site-header nav { overflow-x: auto; width: 100%; flex-wrap: nowrap; padding-bottom: .2rem; }
  .site-header nav a { white-space: nowrap; }
  .hero-home { min-height: auto; padding: 4.5rem 1.25rem 6rem; }
  .hero-home::before {
    background:
      linear-gradient(180deg, #05111ef8 0%, #061522ed 55%, #0615228f 67%, #0615221c 80%, #06111ec7 100%),
      linear-gradient(90deg, #05111ed9, transparent 86%);
  }
  .hero-home .hero-copy { width: 100%; padding: 1rem 0 17rem; }
  .hero-vista { inset: 0; background: #06111e; }
  .hero-vista::after { background: linear-gradient(180deg, #06111e 0 54%, transparent 72%, #06111e85 100%); }
  .hero-scene { inset: auto -46% 0 auto; width: 188%; height: auto; max-width: none; object-position: center; }
  .hero-route-map { top: auto; right: -8rem; bottom: 1.5rem; width: 34rem; height: 20rem; opacity: .52; }
  .vista-label { display: none; }
  .hero-inner { border-radius: .65rem .65rem 2.2rem .65rem; }
  h1 { font-size: clamp(2.8rem, 15vw, 5rem); }
  .hero-home .hero-facts { grid-template-columns: 1fr; }
  .planner-shell { grid-template-columns: 1fr; }
  .planner-intro { grid-column: auto; }
  .planner-form, .planner-result { padding: 1rem; }
  footer { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .content, .related { width: min(100% - 1rem, 1180px); }
  .content > section, .related { padding: 1.15rem; }
  .planner-shell { padding: .55rem !important; }
  .hero-inner { width: min(100% - 1rem, 1180px); padding: 2.6rem 1.25rem; }
  .hero-home { padding-inline: 1.25rem; }
  .hero-home .hero-copy { padding-bottom: 14rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-cta { min-width: 0; }
  .hero-home h1 { font-size: clamp(3.2rem, 16vw, 4.6rem); }
  .hero-facts, .facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .card, .primary-action, .hero-cta { transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease; }
  .hero-copy { animation: arrive .8s cubic-bezier(.2,.75,.25,1) both; }
  .hero-vista { animation: vista-arrive 1.1s .08s cubic-bezier(.2,.75,.25,1) both; }
  .route-line { animation: route-drift 18s linear infinite; }
}

@keyframes arrive { from { opacity: 0; transform: translateY(1.2rem); } to { opacity: 1; transform: translateY(0); } }
@keyframes vista-arrive { from { opacity: 0; transform: translate(2rem, 1rem) scale(.96); } to { opacity: 1; transform: translate(0, 0) scale(1); } }
@keyframes route-drift { to { stroke-dashoffset: -200; } }
