/* YellowstoneNationalPark.net — independent visitor guide */

:root {
  --night: #12201d;
  --night-2: #1d332e;
  --paper: #f3f6f4;
  --paper-2: #e3ebe8;
  --ink: #16221f;
  --muted: #4f5f5a;
  --line: #c9d5d1;
  --vermilion: #b3461b;
  --vermilion-dk: #8c3512;
  --river: #17787a;
  --gold: #e3b93c;
  --s1: #1f8fb8;
  --s2: #3fa66b;
  --s3: #e3b93c;
  --s4: #d9622b;
  --wrap: 1120px;
  --head: "Instrument Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --display: "Young Serif", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--vermilion); text-underline-offset: 3px; }
a:hover { color: var(--vermilion-dk); }
:focus-visible { outline: 3px solid var(--river); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.5rem, 6.4vw, 4.8rem); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.005em; }
p { margin: 0 0 1.1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.prose { max-width: 40rem; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tint { background: var(--paper-2); }
.lede { font-size: 1.28rem; line-height: 1.55; color: #323a46; }

.skip {
  position: absolute; left: -999px; top: 0; background: #fff; color: var(--ink);
  padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: .5rem; top: .5rem; }

/* ---------- top notice + header ---------- */
.notice {
  background: var(--night);
  color: #d9dee6;
  font-family: var(--head);
  font-size: .84rem;
  line-height: 1.4;
  padding: .5rem 0;
}
.notice a { color: #f3d9a4; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand svg, .brand img { width: 40px; height: 40px; flex: none; }
.brand-name { font-family: var(--head); font-weight: 700; font-size: 1.12rem; line-height: 1.1; display: block; }
.brand-sub { font-family: var(--head); font-size: .8rem; color: var(--muted); display: block; }
.nav-toggle {
  display: none; font: inherit; font-family: var(--head); font-weight: 600;
  background: none; border: 1.5px solid var(--ink); border-radius: 4px; padding: .4rem .8rem; cursor: pointer; color: var(--ink);
}
.nav { display: flex; align-items: center; gap: 1.5rem; font-family: var(--head); font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--s2); }
.nav a[aria-current="page"] { border-bottom-color: var(--vermilion); }
.nav .btn { color: #fff; border-bottom: 0; padding: .55rem 1rem; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.2rem; border-bottom: 1px solid var(--line); z-index: 20; }
  .nav.is-open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: .8rem; text-align: center; }
  .site-header { position: relative; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--head); font-weight: 600; font-size: 1.02rem; line-height: 1.2;
  background: var(--vermilion); color: #fff; text-decoration: none;
  padding: .85rem 1.35rem; border-radius: 4px; border: 2px solid var(--vermilion); cursor: pointer;
}
.btn:hover { background: var(--vermilion-dk); border-color: var(--vermilion-dk); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn--ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--night); }
.btn--gold:hover { background: #e4b252; border-color: #e4b252; color: var(--night); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- strata band (page-load draws once) ---------- */
.strata { display: flex; flex-direction: column; }
.strata i { display: block; height: 5px; transform-origin: left; animation: draw .9s cubic-bezier(.2,.7,.2,1) both; }
.strata i:nth-child(1) { background: var(--s1); animation-delay: .05s; }
.strata i:nth-child(2) { background: var(--s2); animation-delay: .2s; }
.strata i:nth-child(3) { background: var(--s3); animation-delay: .35s; }
.strata i:nth-child(4) { background: var(--s4); animation-delay: .5s; }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.strata--static i { animation: none; }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; background: var(--night); min-height: min(82vh, 780px); display: flex; align-items: flex-end; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(27,36,48,.28) 0%, rgba(27,36,48,.12) 35%, rgba(27,36,48,.82) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding: 6rem 0 3.2rem; }
.hero h1 { max-width: 16ch; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero p { max-width: 36rem; font-size: 1.25rem; color: #f1ece4; text-shadow: 0 1px 12px rgba(0,0,0,.4); }

.page-head { position: relative; color: #fff; background: var(--night); overflow: hidden; }
.page-head > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(27,36,48,.82) 0%, rgba(27,36,48,.45) 60%, rgba(27,36,48,.2) 100%); }
.page-head .wrap { position: relative; z-index: 2; padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem); }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); max-width: 20ch; margin-bottom: .4em; }
.page-head p { max-width: 38rem; font-size: 1.2rem; margin: 0; color: #f1ece4; }

/* ---------- quick facts ---------- */
.facts { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.facts dl { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.facts div { padding: 1.4rem 1.2rem 1.4rem 0; }
.facts div + div { padding-left: 1.4rem; border-left: 1px solid var(--line); }
.facts dt { font-family: var(--head); font-weight: 700; font-size: 1.55rem; line-height: 1.1; letter-spacing: -0.01em; }
.facts dd { margin: .3rem 0 0; font-size: .98rem; line-height: 1.4; color: var(--muted); }
@media (max-width: 760px) {
  .facts dl { grid-template-columns: 1fr 1fr; }
  .facts div { padding: 1rem .8rem 1rem 0; }
  .facts div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- cards ---------- */
.grid { display: grid; gap: 1.6rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card { position: relative; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-2); }
.card-body { padding: 1.15rem 1.2rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .4em; }
.card-body p { font-size: 1rem; line-height: 1.55; margin-bottom: .9em; }
.card-body > :last-child { margin-bottom: 0; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card h3 a:hover { color: var(--vermilion); }
.card:focus-within { outline: 3px solid var(--river); outline-offset: 2px; }
.card h3 a:focus-visible { outline: none; }

/* ---------- trail plates ---------- */
.plate {
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem;
  margin: 0 0 1rem; padding: .85rem 1rem; background: var(--night); color: #f4eadc;
  border-radius: 2px; outline: 1px solid rgba(244,234,220,.35); outline-offset: -5px;
}
.plate div { min-width: 0; }
.plate dt { font-family: var(--head); font-size: .78rem; color: #b9c2cf; line-height: 1.3; }
.plate dd { margin: 0; font-family: var(--head); font-weight: 700; font-size: 1.1rem; line-height: 1.25; color: #fff; }

/* ---------- editorial blocks ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center; }
.split--flip > :first-child { order: 2; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } .split--flip > :first-child { order: 0; } }

.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.points li { padding-left: 1.2rem; border-left: 4px solid var(--s3); }
.points strong { font-family: var(--head); font-size: 1.15rem; display: block; margin-bottom: .15rem; }

.facts-list { margin: 0 0 1.2em; padding: 0; list-style: none; font-size: 1rem; }
.facts-list li { padding: .45rem 0; border-top: 1px solid var(--line); }
.facts-list li:last-child { border-bottom: 1px solid var(--line); }
.facts-list b { font-family: var(--head); }

.callout { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--gold); padding: 1.1rem 1.3rem; margin: 2rem 0; font-size: 1.02rem; }
.callout strong { font-family: var(--head); }
.callout > :last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; min-width: 640px; }
th, td { text-align: left; padding: .8rem 1rem; vertical-align: top; border-bottom: 1px solid var(--line); }
th { font-family: var(--head); font-weight: 600; background: var(--paper-2); }
tr:last-child td { border-bottom: 0; }

.cta { background: var(--night); color: #fff; }
.cta h2 { color: #fff; max-width: 22ch; }
.cta p { color: #d4dae3; max-width: 38rem; }

details { border-top: 1px solid var(--line); padding: 1rem 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { font-family: var(--head); font-weight: 600; font-size: 1.15rem; cursor: pointer; }
details p { margin: .7rem 0 0; font-size: 1.05rem; max-width: 40rem; }

/* ---------- form ---------- */
.form-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; } }
.lead-form { background: #fff; border: 1px solid var(--line); padding: clamp(1.2rem, 3vw, 2rem); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.15rem; }
.field label, .field legend { display: block; font-family: var(--head); font-weight: 600; font-size: 1rem; margin-bottom: .35rem; padding: 0; }
.field .hint { font-size: .92rem; color: var(--muted); font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid #8b8f97; border-radius: 4px; padding: .7rem .8rem; min-height: 3.1rem;
}
.field textarea { min-height: 8rem; }
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--river); outline-offset: 1px; border-color: var(--river); }
.field .error { display: none; color: #a12a16; font-family: var(--head); font-size: .95rem; margin-top: .35rem; }
.field.has-error .error { display: block; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #a12a16; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .98rem; line-height: 1.5; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: .25rem; flex: none; accent-color: var(--vermilion); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1rem; font-family: var(--head); font-weight: 600; }
.form-status.is-error { color: #a12a16; }
.lead-form .btn { width: 100%; font-size: 1.1rem; padding: 1rem; }
.lead-form .btn[disabled] { opacity: .65; cursor: progress; }
.fine { font-size: .92rem; color: var(--muted); line-height: 1.5; margin-top: .9rem; }

.steps { list-style: none; counter-reset: step; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.1rem; }
.steps li { counter-increment: step; padding-left: 3rem; position: relative; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: .05rem; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--night); color: #fff; font-family: var(--head); font-weight: 700; display: grid; place-items: center;
}
.steps strong { font-family: var(--head); display: block; }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: #cfd6e0; font-size: 1rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; padding: 3rem 0 2.2rem; }
@media (max-width: 800px) { .site-footer .wrap { grid-template-columns: 1fr; gap: 1.8rem; } }
.site-footer h2 { font-size: 1.05rem; color: #fff; margin-bottom: .7em; letter-spacing: 0; }
.site-footer a { color: #f3d9a4; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: .2rem 0; }
.site-footer p { font-size: .96rem; line-height: 1.6; }
.legal { border-top: 1px solid rgba(255,255,255,.15); padding: 1.2rem 0 2rem; font-size: .88rem; color: #aeb7c4; }
.legal .wrap { display: block; padding: 0; }
.legal p { margin: 0 0 .5em; }

.center-page { text-align: left; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .strata i { animation: none; }
}
@media print {
  .notice, .nav, .nav-toggle, .cta, .site-footer .wrap { display: none; }
}

/* ---------- Yellowstone identity overrides ---------- */
body { line-height: 1.6; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; }
h1 { letter-spacing: -0.02em; line-height: 1.04; }
.brand-name { font-family: var(--display); font-weight: 400; font-size: 1.12rem; }
.facts dt { font-family: var(--display); font-weight: 400; font-size: 1.5rem; }
.plate dd { font-family: var(--head); }
.strata i { height: 6px; }
.card > img { aspect-ratio: 3 / 2; }
.hero .wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: 2.5rem; align-items: end; }
.hero h1 { max-width: 15ch; }
.hero-panel { background: rgba(18, 32, 29, .78); border: 1px solid rgba(255,255,255,.22); border-left: 6px solid var(--gold); padding: 1.1rem 1.3rem 1.2rem; font-size: 1rem; }
.hero-panel h2 { font-size: 1.25rem; color: #fff; margin: 0 0 .6rem; }
.hero-panel ul { list-style: none; margin: 0; padding: 0; }
.hero-panel li { padding: .5rem 0; border-top: 1px solid rgba(255,255,255,.18); line-height: 1.45; color: #e8efec; }
.hero-panel li b { color: #fff; }
.hero-panel a { color: #f3d9a4; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 1.6rem; } }
.rule-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 860px) { .rule-cards { grid-template-columns: 1fr; } }
.rule { background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--s4); padding: 1.1rem 1.2rem 1.3rem; }
.rule:nth-child(2) { border-top-color: var(--s1); }
.rule:nth-child(3) { border-top-color: var(--s3); }
.rule h3 { font-size: 1.25rem; margin-bottom: .4em; }
.rule p { font-size: 1rem; margin: 0; line-height: 1.55; }
.points + p { margin-top: 1.6rem; }
