:root {
  color-scheme: dark;
  --bg: #0a0f0a;
  --panel: #0e1711;
  --fg: #c8d4c8;
  --dim: #788778;
  --accent: #77ad3c;
  --line: #263329;
  --error: #e36d65;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 14px/1.7 var(--mono);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--fg); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
button, select { font: inherit; }
.skip-link { position: fixed; top: -70px; left: 16px; z-index: 10; padding: 8px 12px; background: var(--accent); color: #081006; }
.skip-link:focus { top: 16px; }
.wrap { width: min(760px, calc(100% - 40px)); margin: 0 auto; padding: 36px 0 72px; }
.site-header { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.wordmark { color: var(--accent); font-size: 20px; font-weight: 700; letter-spacing: .14em; text-decoration: none; }
.site-header p { margin: 3px 0 22px; color: var(--dim); font-size: 12px; }
nav { display: flex; flex-wrap: wrap; gap: 12px 26px; }
nav a { color: var(--dim); font-size: 11px; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.intro { padding: 44px 0 36px; }
.path, .section-label { margin: 0 0 10px; color: var(--accent); font-size: 11px; letter-spacing: .08em; }
.cursor { display: inline-block; width: 7px; height: 12px; margin-left: 4px; background: var(--accent); vertical-align: -2px; animation: cursor-blink 1.1s steps(2, start) infinite; }
@keyframes cursor-blink { 50% { opacity: 0; } }
h1 { max-width: 650px; margin: 0 0 14px; font-size: clamp(28px, 6vw, 44px); line-height: 1.16; letter-spacing: -.035em; }
.intro > p:last-child { max-width: 620px; margin: 0; color: var(--dim); font-size: 15px; }
h2 { margin: 0 0 18px; font-size: 20px; line-height: 1.3; }
.firmware, .info-shell { padding: 28px; border: 1px solid var(--line); background: var(--panel); }
.firmware { margin-bottom: 20px; }
.status { margin: 0; padding: 0 0 28px; border-bottom: 1px solid var(--line); }
.text-section { margin: 0; padding: 28px 0 0; }
.text-section + .text-section { margin-top: 28px; border-top: 1px solid var(--line); }
.kv { margin: 0; }
.kv div, .firmware-meta div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 5px 0; }
dt { color: var(--dim); text-transform: uppercase; }
dd { margin: 0; overflow-wrap: anywhere; }
.ready { color: var(--accent); }
.failed { color: var(--error); }
.message { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--dim); }
.firmware-meta { margin: 0 0 24px; }
.release-pending { margin: 0 0 24px; color: var(--dim); }
#installer button, #installer button[slot="activate"] {
  width: 100%;
  border: 1px solid var(--accent);
  border-radius: 0;
  padding: 13px 18px;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}
#installer button:hover { background: var(--accent); color: #081006; }
#installer button:disabled { border-color: var(--line); color: var(--dim); cursor: not-allowed; }
#installer #unavailable-button { border-radius: 7px; }
#installer esp-web-install-button { display: block; --esp-tools-button-color: var(--accent); --esp-tools-button-text-color: #081006; --esp-tools-button-border-radius: 0; }
.unsupported { display: block; padding: 12px; border: 1px solid var(--error); color: var(--error); }
.note { margin: 14px 0 0; color: var(--dim); font-size: 12px; }
.text-section ol, .text-section ul { margin: 0 0 18px; padding-left: 22px; }
.text-section li { margin: 7px 0; }
.text-section p { margin: 0 0 16px; }
.text-section p:last-child { margin-bottom: 0; }
footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--dim); font-size: 11px; }
footer p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

@media (max-width: 600px) {
  .wrap { width: min(100% - 28px, 760px); padding-top: 22px; }
  .intro { padding: 34px 0 28px; }
  .firmware, .info-shell { padding: 21px; }
  .status { padding-bottom: 21px; }
  .text-section { padding-top: 21px; }
  .text-section + .text-section { margin-top: 21px; padding-top: 21px; }
  .kv div, .firmware-meta div { grid-template-columns: 110px minmax(0, 1fr); gap: 10px; }
  footer { flex-direction: column; }
}

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