@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/chakra-petch/ChakraPetch-SemiBold.ttf?v=37604e0b") format("truetype");
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/chakra-petch/ChakraPetch-Bold.ttf?v=37604e0b") format("truetype");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/fonts/manrope/Manrope-wght.ttf?v=37604e0b") format("truetype-variations");
}

:root {
  --bg: #e6ede0;
  --fg: #172a1f;
  --muted: #4f6657;
  --line: rgba(23, 42, 31, .16);
  --green: #3f7f57;
  --logo-shadow: drop-shadow(0 4px 10px rgba(23, 42, 31, .22));
  --panel: rgba(255, 255, 255, .34);
  --hud: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(20px, 5.5vw, 80px);
  --cut: 24px;
  --lift: 14px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0d1712;
  --fg: #e9efe3;
  --muted: #9fb3a6;
  --line: rgba(233, 239, 227, .14);
  --green: #6fb989;
  --logo-shadow: drop-shadow(0 0 18px rgba(233, 182, 74, .35));
  --panel: rgba(255, 255, 255, .04);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font-family: var(--sans); font-synthesis: none; font-weight: 400; line-height: 1.5; margin: 0; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
a:hover { color: var(--green); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.skip-link { background: var(--fg); color: var(--bg); font-family: var(--hud); font-weight: 700; left: 1rem; letter-spacing: .08em; padding: .7rem 1rem; position: fixed; text-transform: uppercase; top: -5rem; z-index: 50; }
.skip-link:focus { top: 1rem; }

.wrap { margin-inline: auto; width: min(calc(100% - 2 * var(--gutter)), 1120px); }
.site-header { align-items: center; display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; min-height: 114px; padding-block: 16px; }
.brand { align-items: center; display: inline-flex; gap: 20px; text-decoration: none; }
.brand:hover { color: inherit; }
.brand img { flex: 0 0 auto; filter: var(--logo-shadow); height: 70px; image-rendering: pixelated; width: 104px; }
.brand span { font-family: var(--hud); font-size: 22px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.header-right { align-items: center; display: flex; gap: 32px; }
.site-nav { align-items: center; display: flex; flex-wrap: wrap; gap: 28px; justify-content: flex-end; }
.site-nav a { align-items: center; color: var(--muted); display: inline-flex; font-family: var(--hud); font-size: 14px; font-weight: 600; letter-spacing: .14em; min-height: 44px; text-decoration: none; text-transform: uppercase; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--fg); }
.theme-toggle { border: 1px solid var(--line); display: flex; flex: 0 0 auto; gap: 2px; padding: 3px; }
.theme-toggle button { align-items: center; background: transparent; border: 0; color: var(--muted); cursor: pointer; display: flex; height: 30px; justify-content: center; padding: 0; width: 30px; }
.theme-toggle button:hover { color: var(--fg); }
.theme-toggle button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

.hero { align-items: flex-start; display: flex; flex-direction: column; gap: 24px; padding-top: 56px; }
.eyebrow { color: var(--green); font-family: var(--hud); font-size: 12px; font-weight: 700; letter-spacing: .18em; margin: 0; text-transform: uppercase; }
h1, h2 { font-family: var(--hud); font-weight: 700; margin: 0; text-transform: uppercase; }
h1 { font-size: clamp(2.4rem, 6vw, 5.25rem); letter-spacing: -.01em; line-height: .95; max-width: 980px; text-wrap: balance; }
h2 { font-size: 28px; letter-spacing: .02em; line-height: 1.05; }
.lede { color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.25rem); margin: 0; max-width: 40rem; }
.spawn { margin: 48px 0 0; padding: 0 var(--lift) var(--lift) 0; position: relative; }
.spawn::before { background: var(--green); clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); content: ""; inset: var(--lift) 0 0 var(--lift); position: absolute; }
.spawn picture, .spawn img { display: block; }
.spawn img { clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); height: auto; position: relative; width: 100%; }

.sections { display: flex; flex-direction: column; margin-top: 40px; }
.section { align-items: start; border-top: 1px solid var(--line); display: grid; gap: 20px 64px; grid-template-columns: 220px minmax(0, 1fr); padding-block: 56px; scroll-margin-top: 24px; }
.section:first-child { border-top: 0; }
.section .body { align-items: flex-start; display: flex; flex-direction: column; gap: 22px; }
.section p { color: var(--muted); font-size: 1.1rem; margin: 0; max-width: 36rem; }
.section .fact { color: var(--fg); font-family: var(--hud); font-size: 1.32rem; font-weight: 600; }
.text-link { border-bottom: 1px solid currentColor; font-family: var(--hud); font-size: 14px; font-weight: 600; letter-spacing: .12em; min-height: 32px; padding-bottom: 2px; text-decoration: none; text-transform: uppercase; }
.button { align-items: center; background: var(--fg); color: var(--bg); display: inline-flex; font-family: var(--hud); font-size: 14px; font-weight: 700; letter-spacing: .12em; min-height: 44px; padding: 10px 18px; text-decoration: none; text-transform: uppercase; }
.button:hover { background: var(--green); color: var(--bg); }

.page-main { min-height: 52vh; padding-top: 54px; }
.page-intro { align-items: flex-start; display: flex; flex-direction: column; gap: 22px; max-width: 900px; }
.page-intro h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); }
.narrow-page { max-width: 920px; }
.compact-facts, .status-board { border-top: 1px solid var(--line); margin-top: 54px; }
.compact-facts article { border-bottom: 1px solid var(--line); padding-block: 34px; }
.compact-facts h2 { margin: 8px 0 12px; }
.compact-facts p { color: var(--muted); margin: 0; }
.status-board { margin-bottom: 0; }
.status-row { border-bottom: 1px solid var(--line); display: grid; gap: 20px; grid-template-columns: minmax(180px, .7fr) minmax(0, 1.3fr); padding-block: 20px; }
.status-row dt { font-family: var(--hud); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.status-row dd { color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.page-link, .page-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 20px; margin-top: 34px; }

.map-page { padding-top: 32px; }
.map-toolbar { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin: 28px 0 12px; }
.map-title { color: var(--green); font-size: 12px; letter-spacing: .18em; line-height: 1.4; }
.map-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.map-controls button { background: var(--panel); border: 1px solid var(--line); color: var(--fg); cursor: pointer; font-family: var(--hud); font-size: 13px; font-weight: 700; min-height: 44px; min-width: 44px; padding: 8px 14px; text-transform: uppercase; }
.map-controls button:hover { border-color: var(--green); color: var(--green); }
.map-viewport { background: #081b19; border: 1px solid var(--line); height: min(68vh, 760px); min-height: 440px; overflow: hidden; position: relative; touch-action: none; user-select: none; }
.map-canvas { height: 100%; position: absolute; transform-origin: center center; width: 100%; will-change: transform; }
.map-canvas img { height: 100%; object-fit: contain; pointer-events: none; width: 100%; }
.map-note { color: var(--muted); font-size: .9rem; margin: 12px 0 0; }
.map-fullscreen-page .wrap { width: min(calc(100% - 40px), 1600px); }
.map-fullscreen-page .site-header { min-height: 92px; }
.map-fullscreen-page .map-page { padding-top: 6px; }
.map-fullscreen-page .map-viewport { height: calc(100vh - 182px); min-height: 420px; }

.site-footer { align-items: center; border-top: 1px solid var(--line); color: var(--muted); display: flex; flex-wrap: wrap; font-size: 13px; gap: 12px 24px; justify-content: space-between; margin-top: 88px; min-height: 84px; padding-block: 20px; }
.wordmark { color: var(--fg); font-family: var(--hud); font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer nav a { font-family: var(--hud); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }

@media (max-width: 760px) {
  :root { --cut: 16px; --lift: 8px; }
  .wrap { width: min(calc(100% - 40px), 1120px); }
  .site-header { min-height: 0; padding-block: 14px; }
  .brand { gap: 14px; }
  .brand span { font-size: 18px; }
  .header-right { gap: 14px; justify-content: space-between; width: 100%; }
  .site-nav { gap: 0 16px; justify-content: flex-start; }
  .site-nav a { font-size: 12px; }
  .hero, .page-main { padding-top: 32px; }
  .spawn { margin-top: 32px; }
  .sections { margin-top: 24px; }
  .section { gap: 14px; grid-template-columns: 1fr; padding-block: 36px; }
  .status-row { gap: 7px; grid-template-columns: 1fr; }
  .map-viewport { height: 58vh; min-height: 390px; }
  .map-fullscreen-page .map-viewport { height: calc(100vh - 220px); }
  .site-footer { align-items: flex-start; flex-direction: column; margin-top: 56px; }
}

@media (max-width: 430px) {
  .site-nav { gap: 0 14px; }
  .site-nav a { font-size: 11px; letter-spacing: .07em; }
  .map-toolbar { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
