:root {
  color-scheme: light dark;
  --surface: #f2f5f1;
  --surface-elevated: rgb(255 255 255 / 0.74);
  --text: #142019;
  --muted: #5a685f;
  --line: rgb(20 32 25 / 0.14);
  --accent: #276846;
  --accent-soft: rgb(39 104 70 / 0.1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--surface);
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(135deg, transparent 0 68%, var(--accent-soft) 68% 100%),
    var(--surface);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 48px));
  min-height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header {
  min-height: 72px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-size: 0.95rem;
  font-weight: 720;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark:hover,
.wordmark:focus-visible {
  color: var(--accent);
}

.wordmark:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 4px;
}

.header-note,
.site-footer {
  color: var(--muted);
  font-size: 0.82rem;
}

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  align-items: center;
  gap: clamp(48px, 8vw, 112px);
  padding: clamp(64px, 10vh, 112px) 0;
}

.intro {
  max-width: 720px;
}

.kicker {
  margin: 0 0 28px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

h1 {
  margin: 0;
  font-size: clamp(4rem, 9vw, 7rem);
  font-weight: 760;
  letter-spacing: -0.075em;
  line-height: 0.92;
}

h1 span {
  color: var(--accent);
}

.lede {
  max-width: 31rem;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.75;
}

.status-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-elevated);
  box-shadow: 0 24px 70px rgb(20 32 25 / 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.status-panel h2 {
  margin: 0 0 22px;
  font-size: 0.92rem;
  font-weight: 720;
}

.status-panel dl {
  margin: 0;
}

.status-panel dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.status-panel dt,
.status-panel dd {
  margin: 0;
  font-size: 0.88rem;
}

.status-panel dt {
  color: var(--muted);
}

.status-panel dd {
  font-weight: 680;
}

.status-panel dd.ready {
  color: var(--accent);
}

.panel-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.site-footer {
  min-height: 72px;
  border-top: 1px solid var(--line);
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #101612;
    --surface-elevated: rgb(28 38 31 / 0.78);
    --text: #edf3ee;
    --muted: #a2afa6;
    --line: rgb(237 243 238 / 0.14);
    --accent: #78c39b;
    --accent-soft: rgb(120 195 155 / 0.08);
  }

  .status-panel {
    box-shadow: 0 24px 70px rgb(0 0 0 / 0.22);
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 32px, 620px);
  }

  .hero {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 48px;
    padding: 56px 0;
  }

  h1 {
    font-size: clamp(3.5rem, 18vw, 5.5rem);
  }

  .lede {
    margin-top: 26px;
  }

  .status-panel {
    padding: 24px;
  }
}

@media (max-width: 460px) {
  .header-note,
  .site-footer span:last-child {
    display: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .status-panel {
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: currentColor;
  }
}
