:root {
  color-scheme: light;
  --ink: #17332b;
  --body: #374d43;
  --quiet: #53665b;
  --muted: #e9eee4;
  --line: #d9e1d5;
  --paper: #f8f9f3;
  --white: #fff;
  --forest: #16392f;
  --green: #195a42;
  --lime: #e9f65b;
  --font: "Instrument Sans", "Helvetica Neue", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.62 var(--font); }
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 0.21em; }
a:hover { color: #0a3626; text-decoration-thickness: 2px; }
a:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid #368555; outline-offset: 4px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { line-height: 1.09; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 6.3vw, 5.4rem); font-weight: 800; letter-spacing: -0.068em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.42rem); font-weight: 780; letter-spacing: -0.047em; }
h3 { font-size: 1.2rem; letter-spacing: -0.022em; }
strong { color: var(--ink); }
.shell { width: min(72rem, calc(100% - 5rem)); margin-inline: auto; }

.skip-link { position: absolute; z-index: 5; top: 0.75rem; left: 1rem; padding: 0.75rem 1rem; background: var(--lime); color: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.masthead { background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead-inner { min-height: 4.7rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; }
.wordmark { color: var(--ink); display: inline-flex; align-items: center; gap: 0.65rem; width: fit-content; text-decoration: none; font-size: 1.43rem; line-height: 1; font-weight: 830; letter-spacing: -0.076em; }
.wordmark img { border-radius: 0.65rem; }
.wordmark-bet { color: var(--green); }
.masthead nav { display: flex; align-items: center; gap: 0.6rem; }
.masthead nav a, .market-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0.45rem 0.8rem; font-size: 0.91rem; font-weight: 700; text-decoration: none; white-space: nowrap; border-radius: 0.7rem; }
.masthead nav a[aria-current], .masthead nav a:hover { background: var(--muted); color: var(--ink); }
.market-link { justify-self: end; gap: 0.45rem; border: 1px solid #bfcbbd; color: var(--ink); }
.market-link:hover { background: var(--muted); }
.market-link span { font-size: 1.05rem; line-height: 1; }

.hero { background: #eef2e9; border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(1.8rem, 5vw, 5rem); padding-block: clamp(2.4rem, 6vw, 5rem); }
.hero-home .hero-inner { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); min-height: 32rem; padding-block: clamp(2rem, 4vw, 3.4rem); }
.hero-copy { max-width: 46rem; }
.context { width: fit-content; padding-left: 12px; border-left: 3px solid #3c8b58; margin: 0 0 1.05rem; color: var(--green); font-size: 0.79rem; font-weight: 800; letter-spacing: 0.065em; text-transform: uppercase; }
.lead { max-width: 44rem; color: var(--body); font-size: clamp(1.05rem, 1.65vw, 1.22rem); line-height: 1.61; margin-block: 1.35rem 1rem; text-wrap: pretty; }
.dateline { font-size: 0.85rem; color: var(--quiet); }
.hero-jump { display: inline-flex; align-items: center; gap: 0.7rem; min-height: 44px; padding: 0.55rem 1rem; border-radius: 0.65rem; background: var(--lime); color: var(--ink); font-weight: 750; text-decoration: none; }
.hero-jump:hover { background: #dce955; text-decoration: underline; }
.hero-art { width: 100%; height: auto; aspect-ratio: 25/21; border-radius: 1.55rem; }
.hero-symbol { display: grid; place-items: center; width: clamp(7.5rem, 16vw, 12rem); aspect-ratio: 1; border-radius: 1.5rem; background: var(--forest); box-shadow: inset 0 0 0 1px #2b5143; }
.hero-symbol img { width: 64%; height: auto; }
.crumb { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; margin: 0 0 1.35rem; color: var(--quiet); font-size: 0.88rem; }
.crumb a { font-weight: 740; }

.home-content { padding-block: clamp(2.3rem, 5vw, 4.25rem); }
.task-overview > h2 { margin-bottom: 1.4rem; font-size: clamp(1.5rem, 3.2vw, 2.25rem); }
.task-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.task-card { padding: clamp(1.15rem, 2.5vw, 1.75rem); border: 1px solid var(--line); border-radius: 1.15rem; background: var(--white); }
.task-icon { border-radius: 0.78rem; margin-bottom: 1rem; }
.task-card h3 { margin-bottom: 0.75rem; }
.task-card p { color: var(--body); font-size: 0.97rem; }
.task-card a { font-weight: 710; }
.home-article { max-width: 54rem; padding-top: 3rem; }

.article-grid { display: grid; grid-template-columns: 14rem minmax(0, 1fr); align-items: start; gap: clamp(2rem, 6vw, 5.25rem); padding-block: clamp(1.9rem, 4.7vw, 3.75rem); }
.contents { position: sticky; top: 1.5rem; max-height: calc(100dvh - 3rem); overflow-y: auto; }
.contents nav { display: grid; gap: 0.12rem; padding: 1rem 1.1rem 1.1rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--white); }
.contents p { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 0.35rem; }
.contents a { display: flex; min-height: 44px; align-items: center; padding: 0.35rem 0.3rem; font-size: 0.9rem; font-weight: 680; }
.article-body { min-width: 0; max-width: 52rem; }
.route-guide { padding: 1.35rem 1.5rem; border-radius: 0.85rem; border: 1px solid var(--line); background: var(--white); color: var(--body); margin-bottom: clamp(2rem, 4vw, 3rem); }
.route-guide a { font-weight: 720; }
.chapter { color: var(--body); padding: 0 0 clamp(1.8rem, 3.6vw, 3rem); margin: 0 0 clamp(1.8rem, 3.6vw, 3rem); border-bottom: 1px solid var(--line); }
.chapter h2 { color: var(--ink); margin-bottom: 1.05rem; }
.chapter h3 { color: var(--ink); margin: 1.8rem 0 0.72rem; }
.chapter p, .article-body li, .home-article p { text-wrap: pretty; }
.chapter:target > h2, .chapter h3:target { text-decoration: underline #aab644 3px; text-underline-offset: 0.22em; }
.steps { display: grid; gap: 0.75rem; padding: 0 0 0 1.45rem; margin: 1.2rem 0 1.4rem; }
.steps li { padding-left: 0.3rem; }
.steps li::marker { color: var(--green); font-weight: 820; }
.steps li strong { font-weight: 800; }
.callout { background: #e9efe3; border-radius: 0.85rem; border-left: 4px solid #489b68; padding: 1.05rem 1.3rem; margin: 1.35rem 0; }
.callout h3 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }
.timeline { margin: 1.4rem 0; border: 1px solid var(--line); border-radius: 0.95rem; overflow: hidden; background: var(--white); }
.timeline div { display: grid; grid-template-columns: minmax(11rem, 0.85fr) 2fr; gap: 0.45rem 1.25rem; padding: 0.85rem 1.1rem; }
.timeline div + div { border-top: 1px solid var(--line); }
.timeline dt { font-weight: 780; color: var(--ink); }
.timeline dd { margin: 0; }
.market-note { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem; background: #e9efe3; border: 1px solid var(--line); border-radius: 0.95rem; margin-bottom: 2rem; }
.market-note img { flex: none; }
.market-note h2 { margin: 0 0 0.5rem; font-size: 1.35rem; }
.market-note p { color: var(--body); }

.table-scroll { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: 0.95rem; margin: 1.15rem 0 1.4rem; }
table { width: 100%; border-spacing: 0; font-size: 0.91rem; line-height: 1.55; }
caption { text-align: left; padding: 0.88rem 1rem; color: var(--ink); font-weight: 800; font-size: 0.93rem; }
th, td { text-align: left; vertical-align: top; padding: 0.8rem 0.95rem; }
thead th { background: var(--forest); color: var(--white); }
tbody th { width: 22%; color: var(--ink); }
tbody tr + tr > * { border-top: 1px solid var(--line); }
tbody tr:nth-of-type(even) { background: #f3f6ef; }
.sources { padding-top: 0.25rem; }
.sources h2 { font-size: 1.35rem; margin-bottom: 0.8rem; }
.sources ul { padding-left: 1.2rem; margin: 0; }
.sources li + li { margin-top: 0.55rem; }

.footer { background: var(--forest); color: #e3ebe1; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; padding-block: 2rem; }
.footer-brand, .footer-brand:hover { color: var(--white); }
.footer-brand .wordmark-bet { color: var(--lime); }
.footer p { margin-top: 0.8rem; max-width: 26rem; font-size: 0.89rem; }
.site-map { display: flex; flex-wrap: wrap; gap: 0.25rem 1.15rem; }
.site-map a { display: inline-flex; align-items: center; min-height: 44px; color: #e3ebe1; font-size: 0.9rem; }
.site-map a:hover, .site-map a[aria-current] { color: var(--lime); }
.missing { min-height: 60vh; padding-block: 5rem; }
.missing img { margin-bottom: 1.25rem; }
.missing h1 { margin-bottom: 1rem; }

@media (max-width: 900px) {
  .shell { width: min(72rem, calc(100% - 3rem)); }
  .hero-home .hero-inner { min-height: auto; }
  .article-grid { grid-template-columns: 12rem minmax(0, 1fr); gap: 1.75rem; }
}
@media (max-width: 720px) {
  .shell { width: min(72rem, calc(100% - 2.5rem)); }
  .masthead-inner { grid-template-columns: 1fr auto; padding-block: 0.72rem 0.32rem; gap: 0.3rem 0.7rem; }
  .masthead nav { grid-row: 2; grid-column: 1 / -1; gap: 0.3rem; }
  .masthead nav a { padding-inline: 0.6rem; }
  .hero-home .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 1.35rem; }
  .hero-home .hero-art { max-height: 17rem; object-fit: cover; object-position: center 48%; }
  .hero-inner { gap: 0.8rem; }
  .hero-symbol { align-self: start; width: 3.25rem; border-radius: 0.75rem; }
  .hero-symbol img { width: 76%; }
  .task-grid { grid-template-columns: minmax(0, 1fr); gap: 0.8rem; }
  .article-grid { grid-template-columns: minmax(0, 1fr); }
  .contents { position: static; max-height: none; }
  .contents nav { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0.75rem 0.8rem; column-gap: 0.5rem; }
  .contents p { grid-column: 1 / -1; }
  .contents a { font-size: 0.86rem; padding-inline: 0.1rem; }
  .timeline div { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  th, td { padding: 0.65rem 0.72rem; }
  .table-scroll table { min-width: 510px; }
}
@media (max-width: 390px) {
  .shell { width: calc(100% - 2rem); }
  h1 { font-size: clamp(2.37rem, 11.5vw, 2.8rem); }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-symbol { display: none; }
  .masthead nav a, .market-link { font-size: 0.86rem; }
}
