:root {
  --pine: #153128;
  --pine-deep: #0d211b;
  --pine-soft: #29483d;
  --orange: #ef7b3a;
  --orange-dark: #a84a1d;
  --linen: #f4efe6;
  --paper: #fffdf8;
  --ink: #18231f;
  --muted: #68726d;
  --line: #d9d3c8;
  --display: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --body: "Avenir Next", "Helvetica Neue", sans-serif;
  --shadow: 0 22px 55px rgba(20, 36, 30, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input { font: inherit; }

.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 4px;
  z-index: 100;
  background: transparent;
}
.progress span { display: block; width: 0; height: 100%; background: var(--orange); }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1260px;
  margin: 0 auto;
  padding: 22px 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 26px;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  font-size: 10px;
}
.nav-actions { display: flex; gap: 18px; align-items: center; }
.nav-actions a, .nav-actions button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.home-hero, .guide-hero {
  position: relative;
  overflow: hidden;
  background: var(--pine);
  color: #fff;
}
.home-hero::after, .guide-hero::after {
  content: "";
  position: absolute;
  width: 540px;
  height: 540px;
  right: -170px;
  top: -260px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(255,255,255,.025), 0 0 0 160px rgba(255,255,255,.02);
  pointer-events: none;
}
.home-hero-inner {
  max-width: 1260px;
  min-height: 540px;
  margin: 0 auto;
  padding: 90px 32px 100px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
  align-items: end;
  gap: 70px;
}
.eyebrow, .kicker {
  margin: 0 0 16px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.04; }
.home-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(54px, 7vw, 96px);
  letter-spacing: -.045em;
}
.hero-intro { max-width: 710px; margin: 26px 0 0; color: rgba(255,255,255,.72); font-size: 19px; }
.hero-index {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
  background: var(--orange);
  color: var(--pine-deep);
  box-shadow: 18px 18px 0 rgba(0,0,0,.12);
}
.hero-index strong { font-family: var(--display); font-size: 70px; font-weight: 500; line-height: 1; }
.hero-index span { margin-top: 18px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.home-main { max-width: 1260px; margin: 0 auto; padding: 90px 32px 110px; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: end; margin-bottom: 45px; }
.section-head h2 { margin: 0; font-size: clamp(38px, 5vw, 62px); letter-spacing: -.03em; }
.section-head p { margin: 0; max-width: 540px; color: var(--muted); }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.guide-card {
  position: relative;
  min-height: 340px;
  padding: 36px;
  background: var(--paper);
  border: 1px solid var(--line);
  text-decoration: none;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.guide-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); border-color: var(--orange); }
.guide-card-number { display: block; color: var(--orange); font-family: var(--display); font-size: 56px; line-height: 1; }
.guide-card h3 { margin: 54px 0 12px; font-size: 38px; letter-spacing: -.02em; }
.guide-card p { max-width: 470px; margin: 0; color: var(--muted); }
.guide-card-meta { position: absolute; left: 36px; right: 36px; bottom: 30px; display: flex; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.guide-card-arrow { color: var(--orange); font-size: 22px; line-height: .7; }

.pathway { margin-top: 90px; padding: 50px; background: var(--pine); color: #fff; }
.pathway h2 { margin: 0 0 38px; font-size: 42px; }
.pathway ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.pathway li { position: relative; padding: 0 30px 0 0; color: rgba(255,255,255,.72); font-size: 14px; }
.pathway li:not(:last-child)::after { content: "→"; position: absolute; right: 12px; top: 2px; color: var(--orange); }
.pathway strong { display: block; margin-bottom: 8px; color: #fff; font-family: var(--display); font-size: 23px; font-weight: 500; }

.guide-hero .site-nav { position: relative; z-index: 1; }
.guide-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1260px;
  margin: 0 auto;
  padding: 70px 32px 84px;
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 60px;
  align-items: end;
}
.guide-hero h1 { margin: 0; font-size: clamp(52px, 7vw, 88px); letter-spacing: -.045em; }
.guide-dek { max-width: 740px; margin: 24px 0 0; color: rgba(255,255,255,.75); font-size: 18px; }
.guide-meta { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 26px; color: rgba(255,255,255,.55); font-size: 12px; }
.result-card { padding: 30px; background: var(--orange); color: var(--pine-deep); }
.result-card span { font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.result-card p { margin: 13px 0 0; font-family: var(--display); font-size: 25px; line-height: 1.18; }

.guide-shell {
  max-width: 1260px;
  margin: 0 auto;
  padding: 72px 32px 120px;
  display: grid;
  grid-template-columns: 230px minmax(0, 830px);
  gap: 70px;
  align-items: start;
}
.toc { position: sticky; top: 32px; }
.toc-label { margin: 0 0 16px; color: var(--orange-dark); font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.toc ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 12px 0; color: var(--muted); font-size: 12px; text-decoration: none; transition: color .2s ease; }
.toc a:hover, .toc a.active { color: var(--orange-dark); }
.toc-note { margin-top: 24px; padding: 16px; background: var(--paper); border-left: 3px solid var(--orange); color: var(--muted); font-size: 12px; }

.intro-panel { padding: 36px 40px; background: #e9e4db; }
.intro-panel h2 { margin: 0 0 12px; font-size: 40px; }
.intro-panel p:last-child { margin-bottom: 0; color: #4e5b56; }
.step { padding: 70px 0 10px; scroll-margin-top: 30px; }
.step-head { display: grid; grid-template-columns: 75px 1fr; gap: 16px; align-items: start; margin-bottom: 22px; }
.step-number { color: var(--orange); font-family: var(--display); font-size: 54px; line-height: .9; }
.step h2 { margin: 0; font-size: clamp(36px, 5vw, 52px); letter-spacing: -.025em; }
.step p { margin: 0 0 18px; }
.step ul { margin: 18px 0; padding-left: 22px; }
.step li { margin: 7px 0; }
.callout { margin: 22px 0 26px; padding: 16px 18px; background: #fff6ef; border: 1px solid #efcbb6; border-left: 4px solid var(--orange); font-size: 14px; }
.figure { margin: 28px 0 36px; }
.figure button { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.figure img { display: block; width: 100%; height: auto; background: #fff; box-shadow: 0 14px 36px rgba(23, 38, 32, .13); }
.figure figcaption { margin-top: 10px; color: var(--muted); font-size: 12px; font-style: italic; }
.checklist { margin-top: 70px; padding: 38px 42px 42px; background: var(--pine); border-top: 5px solid var(--orange); color: #fff; }
.checklist h2 { margin: 0 0 25px; font-size: 40px; }
.checklist label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.83); font-size: 14px; }
.checklist input { margin-top: 5px; accent-color: var(--orange); }

footer { display: flex; justify-content: space-between; gap: 24px; padding: 30px max(32px, calc((100vw - 1196px)/2)); background: var(--pine-deep); color: rgba(255,255,255,.5); font-size: 11px; }

dialog { width: min(94vw, 1400px); padding: 0; border: 0; background: transparent; color: #fff; }
dialog::backdrop { background: rgba(5, 15, 12, .92); backdrop-filter: blur(8px); }
dialog img { display: block; max-width: 100%; max-height: 80vh; margin: auto; box-shadow: 0 20px 80px #000; }
dialog p { margin: 14px auto 0; max-width: 900px; text-align: center; }
.dialog-close { position: fixed; top: 22px; right: 28px; border: 0; background: transparent; color: #fff; font-size: 36px; cursor: pointer; }

@media (max-width: 900px) {
  .home-hero-inner, .guide-hero-inner { grid-template-columns: 1fr; }
  .home-hero-inner { padding-top: 65px; }
  .hero-index { min-height: 220px; max-width: 420px; }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .guide-grid { grid-template-columns: 1fr; }
  .pathway ol { grid-template-columns: 1fr 1fr; gap: 28px 10px; }
  .guide-shell { grid-template-columns: 1fr; gap: 40px; }
  .toc { position: static; }
  .toc ol { display: grid; grid-template-columns: 1fr 1fr; }
  .toc li:nth-child(odd) { padding-right: 16px; }
}

@media (max-width: 580px) {
  body { font-size: 15px; }
  .site-nav { padding: 18px 20px; }
  .nav-actions .home-label { display: none; }
  .home-hero-inner, .guide-hero-inner, .home-main, .guide-shell { padding-left: 20px; padding-right: 20px; }
  .home-hero-inner { min-height: auto; padding-top: 55px; padding-bottom: 70px; }
  .home-hero h1, .guide-hero h1 { font-size: 50px; }
  .hero-intro, .guide-dek { font-size: 16px; }
  .hero-index { min-height: 190px; padding: 25px; }
  .guide-card { min-height: 320px; padding: 27px; }
  .guide-card-meta { left: 27px; right: 27px; }
  .pathway { margin-top: 60px; padding: 30px 25px; }
  .pathway ol { grid-template-columns: 1fr; }
  .pathway li:not(:last-child)::after { display: none; }
  .guide-hero-inner { padding-top: 42px; padding-bottom: 60px; }
  .result-card { padding: 24px; }
  .guide-shell { padding-top: 45px; }
  .toc ol { grid-template-columns: 1fr; }
  .intro-panel { padding: 28px 24px; }
  .intro-panel h2 { font-size: 34px; }
  .step { padding-top: 55px; }
  .step-head { grid-template-columns: 48px 1fr; }
  .step-number { font-size: 39px; }
  .step h2 { font-size: 35px; }
  .checklist { padding: 30px 24px; }
  footer { flex-direction: column; padding: 28px 20px; }
}

@media print {
  body { background: #fff; }
  .progress, .nav-actions, .toc { display: none !important; }
  .home-hero, .guide-hero { background: #fff; color: #000; }
  .guide-dek, .guide-meta { color: #444; }
  .guide-shell { display: block; padding-top: 30px; }
  .step { break-inside: avoid; }
  .figure img { box-shadow: none; border: 1px solid #ddd; }
  footer { background: #fff; color: #555; }
}
