:root {
  color-scheme: dark;
  --bg: #080d1b;
  --surface: #121d32;
  --elevated: #1b2a44;
  --line: #32435e;
  --text: #f3f7ff;
  --muted: #a6b7cd;
  --mint: #8af0cb;
  --violet: #a89bff;
  --nav-bg: #0d1629;
  --action-bg: #8af0cb;
  --action-text: #0b1828;
  --danger-bg: #3a2539;
  --danger-text: #ffd3db;
  --danger-line: #a8627c;
  --focus: #a89bff;
  --violet-glow: rgba(168, 155, 255, 0.1);
  --mint-glow: rgba(138, 240, 203, 0.06);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f6fc;
  --surface: #ffffff;
  --elevated: #e9eef8;
  --line: #c7d3e3;
  --text: #192941;
  --muted: #4c607a;
  --mint: #0d725b;
  --violet: #55439c;
  --nav-bg: #ffffff;
  --action-bg: #126b56;
  --action-text: #ffffff;
  --danger-bg: #fff0f2;
  --danger-text: #8a2643;
  --danger-line: #b65671;
  --focus: #55439c;
  --violet-glow: rgba(85, 67, 156, 0.07);
  --mint-glow: rgba(13, 114, 91, 0.05);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at 86% 7%, var(--violet-glow), transparent 32rem),
    radial-gradient(circle at 7% 26%, var(--mint-glow), transparent 30rem), var(--bg);
  font-size: 1rem;
  line-height: 1.7;
}
a { color: var(--mint); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.6; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
::selection { color: #0b1828; background: #8af0cb; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 {
  max-width: 16ch;
  margin-bottom: 1.35rem;
  font-size: clamp(2.6rem, 5.5vw, 5.1rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.07;
}
h2 { margin-bottom: 1rem; font-size: clamp(1.5rem, 2.7vw, 2rem); letter-spacing: -0.04em; line-height: 1.2; }
h3 { margin-bottom: 0.65rem; font-size: 1.2rem; line-height: 1.35; }
p:last-child, ul:last-child, dl:last-child { margin-bottom: 0; }
ul { padding-left: 1.35rem; }
li + li { margin-top: 0.7rem; }
code { overflow-wrap: anywhere; font-size: 0.9em; }
.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.7rem;
  left: 0.7rem;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: 0.65rem;
  color: #0b1828;
  background: #8af0cb;
  font-weight: 800;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }
.topbar { border-bottom: 1px solid var(--line); background: var(--nav-bg); }
.topbar-inner, .footer-inner, main { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 82px; padding-block: 0.9rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; min-height: 44px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-mark {
  display: grid;
  flex: 0 0 42px;
  grid-template-columns: repeat(2, 7px);
  gap: 4px;
  place-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--mint);
  border-radius: 12px;
  background: var(--mint);
}
.brand-mark span { width: 7px; height: 7px; border-radius: 2px; background: var(--nav-bg); }
.brand-name { max-width: 20ch; overflow-wrap: anywhere; font-size: 1.4rem; font-weight: 850; letter-spacing: -0.055em; line-height: 1.08; }
.brand-note { display: block; margin-top: 0.25rem; color: var(--muted); font-size: 0.6rem; font-weight: 750; letter-spacing: 0.15em; text-transform: uppercase; }
.primary-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; }
.primary-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}
.primary-nav a:hover { border-color: var(--line); color: var(--text); background: var(--elevated); }
.primary-nav a[aria-current="page"] { border-color: var(--line); color: var(--mint); background: var(--surface); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(3.25rem, 6.5vw, 5.25rem) 0 clamp(2.5rem, 4vw, 3.5rem);
}
.hero > * { min-width: 0; }
.eyebrow, .section-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.15em; line-height: 1.4; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; color: var(--violet); }
.eyebrow::before { width: 1.6rem; height: 2px; flex: 0 0 auto; content: ""; background: currentColor; }
.lede { max-width: 58ch; margin-bottom: 1.7rem; color: var(--muted); font-size: clamp(1.08rem, 1.8vw, 1.2rem); line-height: 1.65; }
.hero-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-top: 3px solid var(--violet);
  border-radius: 1.2rem;
  background: var(--elevated);
  box-shadow: 0 18px 48px rgba(3, 9, 22, 0.14);
}
.hero-card p { position: relative; margin-block: 1rem 1.4rem; color: var(--muted); }
.hero-number { display: block; margin-bottom: 0.35rem; color: var(--mint); font-size: clamp(4.5rem, 8vw, 6.2rem); font-weight: 800; line-height: 1; letter-spacing: -0.08em; }
.hero-label { display: block; font-size: 1.28rem; font-weight: 800; letter-spacing: -0.035em; line-height: 1.3; }
.tag { display: inline-block; max-width: 100%; padding: 0.35rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; color: var(--violet); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.03em; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 48px;
  max-width: 100%;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--action-bg);
  border-radius: 0.7rem;
  color: var(--action-text);
  background: var(--action-bg);
  font-size: 0.93rem;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.button:hover:not(:disabled) { color: var(--action-text); filter: brightness(1.06); transform: translateY(-2px); }
.button--secondary { border-color: var(--line); color: var(--text); background: var(--elevated); }
.button--secondary:hover:not(:disabled) { color: var(--text); }
.button--clear { border-color: var(--danger-line); color: var(--danger-text); background: var(--danger-bg); }
.button--clear:hover:not(:disabled) { color: var(--danger-text); }
.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.panel { min-width: 0; padding: clamp(1.4rem, 3.5vw, 2.2rem); border: 1px solid var(--line); border-radius: 1.15rem; background: var(--surface); }
.panel p, .panel li { overflow-wrap: anywhere; }
.panel p { max-width: 75ch; }
.panel--wide { grid-column: 1 / -1; }
.panel--accent { border-top: 3px solid var(--violet); }
.section-label { margin-bottom: 0.85rem; color: var(--violet); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; margin-top: 1.5rem; }
.facts div { min-width: 0; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 0.82rem; font-weight: 700; }
.facts dd { margin: 0.25rem 0 0; overflow-wrap: anywhere; font-weight: 750; }
.muted, .small-note { color: var(--muted); }
.small-note { font-size: 0.9rem; }
.storage-list { margin-block: 1.35rem; }
.storage-list li { padding-left: 0.25rem; }
.storage-list li + li { margin-top: 1.15rem; }
.storage-list strong { display: block; margin-bottom: 0.15rem; color: var(--text); }
.clear-confirmation { margin-top: 1.4rem; padding: clamp(1rem, 3vw, 1.5rem); border: 1px solid var(--danger-line); border-radius: 0.85rem; background: var(--elevated); }
.clear-confirmation h3:focus { border-radius: 0.3rem; outline: 3px solid var(--focus); outline-offset: 4px; }
.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.1rem; }
.status { margin: 1.35rem 0 0; padding: 0.9rem 1rem; border-left: 3px solid var(--line); border-radius: 0.25rem 0.6rem 0.6rem 0.25rem; color: var(--muted); background: var(--elevated); font-size: 0.9rem; }
.status[data-state="success"] { border-color: var(--mint); color: var(--text); }
.status[data-state="error"] { border-color: var(--danger-line); color: var(--text); }
.contact-link { margin-block: 0.5rem 1.25rem; }
.next-stop { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.25rem; padding: 1.5rem 0 3.5rem; }
.next-stop p { margin: 0; font-size: 1.1rem; font-weight: 750; }
.site-footer { border-top: 1px solid var(--line); background: var(--nav-bg); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem 1.5rem; padding-block: 1.25rem; }
.footer-inner p { margin: 0; color: var(--muted); font-size: 0.82rem; }
.footer-inner strong { color: var(--text); }
.footer-inner a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.88rem; font-weight: 750; }

@media (max-width: 760px) {
  .topbar-inner { flex-direction: column; align-items: stretch; gap: 0.8rem; }
  .brand { align-self: flex-start; }
  .primary-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.15rem; }
  .primary-nav a { padding-inline: 0.2rem; font-size: 0.8rem; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .hero-card { max-width: 34rem; }
  .content-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 400px) {
  .topbar-inner, .footer-inner, main { width: calc(100% - 2rem); }
  .primary-nav a { font-size: 0.75rem; }
  .hero { padding-top: 2.75rem; }
  .panel { padding: 1.25rem; }
  .button-row { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .button:hover:not(:disabled) { transform: none; }
}
