@font-face {
  font-family: Plex;
  src: url("./fonts/sans.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
.firmware-label {
  display: block;
  font-size: 13px;
  margin-bottom: 7px;
}
#firmware-choice {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
#firmware-choice:focus-visible {
  outline: 3px solid var(--good);
  outline-offset: 4px;
}
.footer-links {
  display: flex;
  gap: 20px;
}
footer {
  flex-wrap: wrap;
  gap: 20px;
}
@font-face {
  font-family: Baskerville;
  src: url("./fonts/serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #faf9f6;
  --surface: #fffefa;
  --ink: #242722;
  --muted: #62665e;
  --line: #d8dbd0;
  --soft: #efeee7;
  --accent: #d9f080;
  --accent-ink: #233016;
  --good: #496318;
  --error: #9f342b;
  --shadow: 0 16px 42px #28301808;
  font-family: Plex, system-ui, sans-serif;
  font-synthesis: none;
}
:root.dark {
  color-scheme: dark;
  --bg: #191c18;
  --surface: #22261f;
  --ink: #f0f0e7;
  --muted: #adb2a4;
  --line: #41473a;
  --soft: #2b3027;
  --accent: #d9f080;
  --accent-ink: #233016;
  --good: #d9f080;
  --error: #ffa79d;
  --shadow: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
a {
  color: inherit;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--good);
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid var(--good);
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
.site-header,
main,
footer {
  width: min(1120px, calc(100% - 80px));
  margin-inline: auto;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
}
.brand img {
  display: block;
  width: 168px;
  height: auto;
}
.dark .brand img {
  filter: invert(1);
}
.theme-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  padding: 7px 14px;
}
.theme-toggle:hover {
  background: var(--soft);
  color: var(--ink);
}
.intro {
  padding: 64px 0 42px;
  max-width: 740px;
}
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 16px;
  color: var(--muted);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: Baskerville, Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.18;
}
h1 {
  font-size: clamp(44px, 5.5vw, 68px);
  margin-bottom: 20px;
}
.lede {
  font-size: 19px;
  line-height: 1.65;
  max-width: 620px;
  color: var(--muted);
  margin: 0;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.install-panel {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.panel-top .eyebrow {
  margin: 0;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  white-space: nowrap;
  color: var(--muted);
}
.status-pill::before {
  content: "";
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: currentColor;
}
[data-state="ready"] .status-pill {
  color: var(--good);
}
[data-state="error"] .status-pill {
  color: var(--error);
}
h2 {
  font-size: 30px;
  margin-bottom: 14px;
}
.build-description {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 22px;
}
.build-description strong {
  font-weight: 600;
  color: var(--ink);
}
.build-facts {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.6fr;
  gap: 12px;
  border-block: 1px solid var(--line);
  padding: 17px 0;
  margin: 0 0 16px;
}
.build-facts div {
  min-width: 0;
}
dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}
dd {
  font-size: 12px;
  margin: 0;
  overflow-wrap: anywhere;
}
.status-message {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
[data-state="error"] .status-message {
  color: var(--error);
}
.environment-note {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  background: var(--soft);
}
.confirmation {
  margin: 22px 0;
}
.confirmation label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 13px;
  line-height: 1.65;
  cursor: pointer;
}
.confirmation input {
  flex: none;
  margin: 5px 0 0;
  width: 17px;
  height: 17px;
  accent-color: var(--good);
}
.confirmation p {
  padding-left: 28px;
  margin: 9px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
esp-web-install-button {
  display: block;
}
.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  min-height: 52px;
  padding: 12px 20px;
  background: var(--accent);
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--accent-ink);
  font-size: 15px;
}
.primary-button:not(:disabled):hover {
  filter: brightness(0.96);
}
.primary-button:disabled {
  color: var(--muted);
  background: var(--soft);
  border-color: var(--line);
}
.primary-button span {
  font-size: 20px;
  line-height: 1;
}
.action-note {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin: 11px 0 0;
}
.text-button {
  display: block;
  margin: 12px auto 0;
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--ink);
  font-size: 13px;
}
.download-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 23px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.verified {
  color: var(--good);
}
.instructions {
  padding-top: 15px;
}
.instructions h2 {
  font-size: 31px;
  margin-bottom: 29px;
}
.instructions ol {
  padding: 0;
  list-style: none;
  margin: 0 0 28px;
}
.instructions li {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}
.step-number {
  font-size: 12px;
  color: var(--muted);
  padding-top: 3px;
}
.instructions h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}
.instructions li p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.8;
}
details {
  border-top: 1px solid var(--line);
  font-size: 13px;
  padding: 15px 0;
}
summary {
  cursor: pointer;
  font-size: 14px;
}
details p {
  color: var(--muted);
  margin: 12px 0 8px;
  line-height: 1.8;
}
details a {
  font-size: 12px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 70px;
  padding: 25px 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
@media (max-width: 800px) {
  .site-header,
  main,
  footer {
    width: calc(100% - 40px);
  }
  .site-header {
    padding: 23px 0;
  }
  .intro {
    padding: 44px 0 30px;
  }
  .workspace {
    grid-template-columns: 1fr;
    gap: 38px;
    max-width: 560px;
  }
  .install-panel {
    padding: 25px;
  }
  .instructions {
    padding: 0 3px;
  }
  footer {
    margin-top: 45px;
  }
  .lede {
    font-size: 17px;
  }
}
@media (max-width: 380px) {
  .site-header,
  main,
  footer {
    width: calc(100% - 28px);
  }
  .install-panel {
    padding: 20px;
  }
  .panel-top {
    gap: 7px;
  }
  .panel-top .eyebrow {
    font-size: 10px;
  }
  .build-facts {
    grid-template-columns: 1fr 1fr;
  }
  .build-facts div:first-child {
    grid-column: 1/-1;
  }
  footer {
    flex-direction: column;
    gap: 8px;
  }
}
