:root {
  color-scheme: light;
  --moss: #164b35;
  --moss-deep: #102f24;
  --paper: #f4f4ed;
  --cream: #ecede3;
  --ink: #24342c;
  --muted: #657169;
  --gold: #b88e3b;
  --line: #d5d9cf;
  --topic-title: clamp(1.7rem, 3.2vw, 3.05rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Inter Tight", Arial, sans-serif; font-size: 17px; line-height: 1.55; }
main { margin-right: 76px; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.content { width: min(100% - 64px, 1120px); margin-inline: auto; }
.hero { position: relative; isolation: isolate; min-height: min(760px, 100svh); display: grid; align-items: end; overflow: clip; background: var(--moss-deep); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(9 31 22 / .86), rgb(9 31 22 / .35) 55%, rgb(9 31 22 / .08)); }
.hero img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; animation: reveal 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.hero-copy { width: min(100% - 96px, 1120px); margin: 0 auto; padding: 80px 0 92px; color: white; animation: rise .65s .18s cubic-bezier(.2, .8, .2, 1) both; }
.hero-copy p, .sources > p { margin: 0 0 15px; color: #d3d9d0; font-size: 13px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.hero h1 { max-width: 850px; margin: 0; font-size: clamp(3.2rem, 8vw, 7.5rem); font-weight: 800; letter-spacing: -.075em; line-height: .88; }
.hero-copy span { display: block; margin-top: 25px; color: #dce5da; font-size: clamp(1rem, 1.6vw, 1.28rem); font-weight: 500; }

.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 60px; padding: 96px 0; align-items: center; }
.intro h2 { margin: 0 0 26px; color: var(--moss); font-size: clamp(2.2rem, 4.5vw, 4.3rem); font-weight: 800; letter-spacing: -.06em; line-height: .98; }
.intro-copy > p { margin: 0 0 26px; font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.4; }
.intro > img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.intro-copy .important { margin-bottom: 0; font-size: 1rem; }

.topic, .checklist { scroll-margin-top: 22px; padding: 0 0 96px; }
.topic-head { width: min(100% - 64px, 1120px); min-height: 126px; margin: 0 auto 44px; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 25px 36px; background: var(--moss); color: white; }
.topic-head > span { color: #f0d091; font-size: var(--topic-title); line-height: 1; }
.topic-head small { display: block; margin-bottom: 8px; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-align: center; }
.topic-head h2 { margin: 0; color: white; font-size: var(--topic-title); font-weight: 800; letter-spacing: -.055em; line-height: .95; }
.topic-head a { text-decoration: none; }
.topic-head a:hover h2 { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 7px; }
.topic-head p { margin: 6px 0 0; color: #d5e1d3; font-size: .95rem; }
.topic-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .42fr); gap: 54px; align-items: start; }
.topic-content.compact { grid-template-columns: minmax(0, 1fr) minmax(280px, .5fr); }
.topic p { margin: 0 0 18px; }
.topic h3 { margin: 32px 0 12px; color: var(--moss); font-size: 1.25rem; letter-spacing: -.02em; }
.topic ul { display: grid; gap: 10px; margin: 0; padding-left: 22px; }
.topic li::marker { color: var(--gold); }
.important { margin: 0 0 25px; padding: 15px 18px; border-left: 4px solid var(--gold); background: var(--cream); color: var(--moss-deep); font-weight: 700; line-height: 1.4; }
figure { margin: 0; position: sticky; top: 28px; }
figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.88); transition: filter .28s ease, transform .28s ease; }
figure:hover img { filter: saturate(1.08); transform: scale(1.015); }
figcaption { margin-top: 9px; color: var(--muted); font-size: .88rem; line-height: 1.25; }

.table-wrap { margin: 28px 0; overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th { background: var(--moss); color: white; font-weight: 700; text-align: left; }
th, td { padding: 12px 14px; border: 1px solid var(--line); vertical-align: top; }
td:first-child { width: 64px; color: var(--gold); font-weight: 800; text-align: center; }
tbody tr:nth-child(even) { background: #eef0ea; }
.important p { margin: 13px 0 0; font-size: .96rem; font-weight: 400; line-height: 1.38; }

.checklist { padding-bottom: 110px; }
.checklist h3 { margin: 0 0 20px; color: var(--moss); font-size: 1.5rem; letter-spacing: -.02em; }
.checklist-controls { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; max-width: 850px; margin-bottom: 18px; }
.checklist-controls p { margin: 0; color: var(--muted); }
.checklist-controls button { padding: 10px 14px; border: 1px solid var(--moss); background: transparent; color: var(--moss); font: inherit; font-size: .9rem; cursor: pointer; }
.checklist-controls button:disabled { opacity: .5; cursor: default; }
#storage-notice { max-width: 850px; color: var(--muted); }
.checklist ul { display: grid; max-width: 850px; margin: 0; padding: 0; list-style: none; }
.checklist li { border-bottom: 1px solid var(--paper); background: var(--cream); }
.checklist label { display: grid; grid-template-columns: 38px 1fr; gap: 18px; align-items: center; min-height: 72px; padding: 14px 20px; cursor: pointer; }
.checklist input { appearance: none; display: grid; width: 38px; height: 38px; margin: 0; place-items: center; border: 2px solid var(--gold); border-radius: 4px; background: var(--paper); color: white; cursor: pointer; }
.checklist input:checked { background: var(--moss); border-color: var(--moss); }
.checklist input:checked::after { content: "✓"; font-size: 1.5rem; font-weight: 800; }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; }
.sources { padding: 50px 0 82px; border-top: 1px solid var(--line); color: var(--muted); font-size: .93rem; }
.sources > p { color: var(--moss); }
.sources ol { margin: 0; padding-left: 20px; }
.sources li + li { margin-top: 12px; }
.sources a { color: var(--moss); text-underline-offset: 3px; overflow-wrap: anywhere; }

.section-menu { position: fixed; z-index: 5; top: 50%; right: 24px; display: grid; gap: 7px; transform: translateY(-50%); transition: opacity .24s ease, transform .24s ease; }
.section-menu a { position: relative; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgb(255 255 255 / .4); border-radius: 50%; background: rgb(16 47 36 / .9); box-shadow: 0 4px 15px rgb(0 0 0 / .12); font-size: 1.05rem; text-decoration: none; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.section-menu a:hover, .section-menu a[aria-current="location"] { border-color: var(--gold); background: var(--moss); transform: translateX(-4px); }
.section-menu a::after { content: attr(data-label); position: absolute; right: 52px; width: max-content; max-width: 180px; padding: 5px 9px; border-radius: 3px; background: var(--moss-deep); color: white; font-size: .78rem; font-weight: 700; line-height: 1.2; opacity: 0; pointer-events: none; transform: translateX(7px); transition: opacity .18s ease, transform .18s ease; }
.section-menu a:hover::after, .section-menu a:focus-visible::after { opacity: 1; transform: none; }
.menu-toggle { position: fixed; z-index: 6; top: 24px; right: 24px; display: grid; gap: 4px; width: 44px; height: 44px; place-content: center; border: 0; border-radius: 50%; background: var(--moss-deep); box-shadow: 0 4px 15px rgb(0 0 0 / .14); cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: white; transition: transform .2s ease, opacity .2s ease; }
body.menu-hidden .section-menu { opacity: 0; pointer-events: none; transform: translate(18px, -50%); }
body:not(.menu-hidden) .menu-toggle span:first-child { transform: translateY(6px) rotate(45deg); }
body:not(.menu-hidden) .menu-toggle span:nth-child(2) { opacity: 0; }
body:not(.menu-hidden) .menu-toggle span:last-child { transform: translateY(-6px) rotate(-45deg); }

@keyframes reveal { from { opacity: 0; transform: scale(1.04); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@media (max-width: 760px) {
  body { font-size: 16px; }
  main { margin-right: 60px; }
  .content, .topic-head { width: min(100% - 36px, 1120px); }
  .hero { min-height: 620px; }
  .hero-copy { width: calc(100% - 48px); padding: 64px 0 70px; }
  .hero h1 { font-size: clamp(3rem, 14vw, 5.2rem); }
  .intro, .topic-content, .topic-content.compact { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-top: 76px; padding-bottom: 76px; }
  .intro > img { max-height: 340px; }
  .topic { padding-bottom: 58px; }
  .topic-head { min-height: 102px; margin-bottom: 0; padding: 20px; }
  figure { position: static; order: -1; }
  .topic-content figure { margin-bottom: 4px; }
  .section-menu { right: 12px; gap: 4px; }
  .section-menu a { width: 35px; height: 35px; font-size: .88rem; }
  .section-menu a::after { display: none; }
  .menu-toggle { top: 12px; right: 12px; width: 40px; height: 40px; }
  .checklist label { grid-template-columns: 32px 1fr; gap: 16px; padding: 12px; }
  .checklist input { width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
