:root {
  color-scheme: light;
  --paper: #fbf9f3;
  --ink: #222018;
  --muted: #5d594f;
  --line: #e6dfd3;
  --panel: #fffdf7;
  --horizon: #f9eed7;
  --accent: #71521d;
  --control: #fffdf8;
  --control-border: #c8c0b2;
  --selected: #f3e5c8;
  --placeholder: #eee8dc;
  --focus: #986009;
  --button: #29251e;
  --button-hover: #4a3a23;
  --button-text: #fff;
  --button-arrow: #f8ce79;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #111625;
  --ink: #f5f1e8;
  --muted: #c1c6d5;
  --line: #333c52;
  --panel: #161d2f;
  --horizon: #26314b;
  --accent: #f0c578;
  --control: #192136;
  --control-border: #4a5671;
  --selected: #38445e;
  --placeholder: #191f31;
  --focus: #f8ce79;
  --button: #f6d28b;
  --button-hover: #ffe1a6;
  --button-text: #241c10;
  --button-arrow: #66491d;
}
* { box-sizing: border-box; }
body { margin: 0; }
.deployment-banner {
  margin: 0;
  padding: 8px 16px;
  text-align: center;
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--selected);
  border-bottom: 1px solid var(--line);
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.masthead, .gallery, .roadmap, footer { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.masthead, footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.03rem; font-weight: 750; text-decoration: none; }
.nav-download, footer a { font-size: .9rem; text-underline-offset: 4px; }
.masthead-actions { display: flex; align-items: center; gap: 16px; }
.theme-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--control-border); border-radius: 100px; background: var(--control); }
.theme-switch[hidden] { display: none; }
.theme-switch button { border: 0; border-radius: 100px; padding: 6px 8px; min-height: 36px; font: inherit; font-size: .8rem; font-weight: 650; color: var(--muted); background: transparent; cursor: pointer; white-space: nowrap; }
.theme-switch button[aria-pressed="true"] { color: var(--ink); background: var(--selected); }
[data-theme="dark"] .brand img { filter: brightness(1.65); }
.hero { width: min(1360px, calc(100% - 48px)); margin-inline: auto; border: 1px solid var(--line); border-radius: 30px; overflow: hidden; background: var(--panel); }
.sky { display: block; width: 100%; height: auto; }
.sky-night, [data-theme="dark"] .sky-day { display: none; }
[data-theme="dark"] .sky-night { display: block; }
.intro { position: relative; text-align: center; padding: clamp(25px, 4vw, 52px) 20px clamp(33px, 5vw, 60px); background: linear-gradient(var(--horizon) 0%, var(--panel) 55%); }
.eyebrow { color: var(--accent); font-size: .71rem; font-weight: 750; text-transform: uppercase; letter-spacing: .15em; margin: 0 0 10px; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 6vw, 4.2rem); letter-spacing: -.065em; line-height: 1.02; margin-bottom: 14px; }
.lead { margin: 0 auto 22px; max-width: 40ch; color: var(--muted); font-size: clamp(.98rem, 2vw, 1.16rem); line-height: 1.5; }
.download { display: inline-flex; justify-content: center; align-items: center; gap: 14px; min-height: 48px; padding: 12px 20px; border-radius: 100px; color: var(--button-text); background: var(--button); text-decoration: none; font-weight: 650; }
.download:hover { background: var(--button-hover); }
.download span { color: var(--button-arrow); }
.gallery { padding-block: clamp(46px, 7vw, 86px); }
.gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.06; letter-spacing: -.05em; margin-bottom: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filters[hidden] { display: none; }
.filters label { display: grid; gap: 5px; width: 128px; font-size: .75rem; color: var(--muted); }
.select-field { position: relative; display: block; }
.select-field svg {
  position: absolute;
  inset-inline-end: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 8px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.filters select {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 34px 0 12px;
  font: inherit;
  font-size: .92rem;
  line-height: normal;
  color: var(--ink);
  background: var(--control);
  border: 1px solid var(--control-border);
  border-radius: 8px;
  cursor: pointer;
}
@media (forced-colors: active) {
  .filters select { -webkit-appearance: auto; appearance: auto; background: Canvas; padding-right: 12px; }
  .select-field svg { display: none; }
}
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 2vw, 22px); }
figure { margin: 0; min-width: 0; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 13px; background: var(--placeholder); }
figcaption { margin-top: 9px; font-size: .83rem; color: var(--muted); }
.shot-open { display: block; width: 100%; padding: 0; border: 0; border-radius: 13px; background: none; cursor: zoom-in; }
.shot-open:hover img { border-color: var(--control-border); }
html:has(.image-preview[open]) { overflow: hidden; }
.image-preview {
  width: max-content;
  max-width: calc(100% - 24px);
  max-height: calc(100% - 24px);
  margin: auto;
  padding: 10px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.image-preview::backdrop { background: rgb(9 12 20 / 85%); }
.image-preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 2px 8px; }
.image-preview-bar p { margin: 0; font-weight: 650; }
.image-preview-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink);
  background: var(--control);
  border: 1px solid var(--control-border);
  border-radius: 50%;
  cursor: pointer;
}
.image-preview-full {
  display: block;
  width: auto;
  height: auto;
  max-width: min(760px, calc(100vw - 48px));
  max-height: calc(100dvh - 100px);
  margin-inline: auto;
  border-radius: 9px;
}
.roadmap {
  margin-bottom: clamp(46px, 7vw, 86px);
  padding: clamp(20px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(150deg, var(--horizon), var(--panel) 75%);
}
.roadmap-intro { margin: 10px 0 22px; color: var(--muted); line-height: 1.5; }
.roadmap-devices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 18px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.roadmap-devices li { min-width: 0; padding: clamp(10px, 2vw, 20px); border: 1px solid var(--line); border-radius: 14px; background: var(--control); }
.roadmap-devices svg { display: block; width: 38px; height: 38px; margin-bottom: 10px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.roadmap-devices h3 { margin: 0; font-size: clamp(.95rem, 2vw, 1.12rem); }
.roadmap-devices p { margin: 5px 0 0; color: var(--muted); font-size: .8rem; }
footer { border-top: 1px solid var(--line); font-size: .86rem; }
@media (max-width: 650px) {
  .masthead, .gallery, .roadmap, footer { width: calc(100% - 36px); }
  .hero { width: calc(100% - 24px); border-radius: 20px; }
  .masthead { min-height: 62px; }
  .masthead .nav-download { display: none; }
  .sky { height: auto; }
  .gallery-heading { align-items: start; flex-direction: column; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .roadmap-devices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 350px) {
  .masthead { gap: 8px; }
  .brand { gap: 6px; font-size: .93rem; }
  .brand img { width: 31px; }
  .theme-switch button { padding-inline: 6px; }
}
