@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Funnel Display";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("fonts/funnel-display-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Funnel Display";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("fonts/funnel-display-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;
  --font-body: Geist, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Funnel Display", Geist, system-ui, sans-serif;
  --background: #f5f1ee;
  --foreground: #0c1d31;
  --muted: #4c5d75;
  --border: rgb(12 29 49 / 12%);
  --ring: rgb(12 29 49 / 10%);
  --outline: rgb(12 29 49 / 20%);
  --surface: #ffffff;
  --raised: #ece3df;
  --lake: #1f75b0;
  --link: #17639a;
  --solid: #0c1d31;
  --on-solid: #e2d8d2;
  --arrow: rgb(226 216 210 / 10%);
  --chip: rgb(12 29 49 / 6%);
  --chip-hover: rgb(12 29 49 / 11%);
  --shadow: rgb(12 29 49 / 22%);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0c1d31;
    --foreground: #f4f9fd;
    --muted: #a1a9bd;
    --border: rgb(244 249 253 / 12%);
    --ring: rgb(244 249 253 / 10%);
    --outline: rgb(244 249 253 / 24%);
    --surface: #10243a;
    --raised: #153049;
    --lake: #8ed1f7;
    --link: #8ed1f7;
    --solid: #f4f9fd;
    --on-solid: #0c1d31;
    --arrow: rgb(12 29 49 / 10%);
    --chip: rgb(244 249 253 / 8%);
    --chip-hover: rgb(244 249 253 / 14%);
    --shadow: rgb(0 0 0 / 55%);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font: 16px/1.5 var(--font-body);
  color: var(--foreground);
  background: var(--background);
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--lake);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 16px; padding: 8px 12px; background: var(--surface); color: var(--foreground); z-index: 1; }

.wrap {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding-inline: 16px;
}

@media (min-width: 640px) {
  .wrap { padding-inline: 32px; }
}

.top { border-bottom: 1px solid var(--border); }

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font: 600 1.25rem/1 var(--font-display);
  letter-spacing: -0.025em;
  color: var(--foreground);
  text-decoration: none;
}

.brand img { border-radius: 7px; }
.brand span { color: var(--muted); font-weight: 500; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--foreground);
}

h1 {
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 56px 0 16px;
}

h2 { font-size: 1.375rem; letter-spacing: -0.02em; margin: 40px 0 14px; }

.lake { color: var(--lake); }

.lead { color: var(--muted); font-size: 1.125rem; margin: 0 0 28px; max-width: 40rem; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 6px 20px;
  border: 0;
  border-radius: 999px;
  font: 500 0.875rem/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.pill.solid { background: var(--solid); color: var(--on-solid); }
.pill.solid:has(.arrow) { padding-right: 6px; }
.pill.solid:hover { opacity: 0.92; }
.pill.solid:active { transform: scale(0.98); }

.pill.outline { color: var(--foreground); box-shadow: inset 0 0 0 1px var(--outline); }
.pill.outline:hover { background: var(--chip); }

.arrow {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--arrow);
}

.search { display: flex; gap: 8px; margin: 8px 0 16px; max-width: 44rem; }

.search input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  font: inherit;
  color: var(--foreground);
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--outline);
}

.search input::placeholder { color: var(--muted); opacity: 1; }
.search .pill { min-height: 48px; }

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 8px;
}

.chip {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
}

.chip:hover { background: var(--chip-hover); color: var(--foreground); }
.chip[aria-current="page"] { background: var(--solid); color: var(--on-solid); }

.status { color: var(--muted); min-height: 1.5em; margin: 12px 0; font-size: 0.875rem; }

.grid {
  list-style: none;
  padding: 0;
  margin: 0 0 64px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.card a {
  display: flex;
  gap: 16px;
  height: 100%;
  padding: 20px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--ring), 0 2rem 4rem -2rem var(--shadow);
  color: var(--foreground);
  text-decoration: none;
}

.card a:hover { background: var(--raised); }

.card img, .hero img, .install-page img { border-radius: 22.5%; flex: none; }

.card-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.card strong { font: 600 1.125rem/1.2 var(--font-display); letter-spacing: -0.015em; }
.desc { color: var(--muted); font-size: 0.9375rem; }
.cat, .tag { color: var(--link); font-size: 0.8125rem; font-weight: 500; margin-top: 4px; }

.empty { color: var(--muted); margin-bottom: 64px; }

.hero { --title: clamp(2.25rem, 5vw, 3.5rem); display: flex; gap: clamp(16px, 3vw, 24px); align-items: flex-start; margin-top: 48px; }
.hero > div { flex: 1; min-width: 0; }
.hero h1 { margin: 0; font-size: var(--title); }
.hero img { margin-top: calc(var(--title) * 0.16); }
.byline { color: var(--muted); margin: 8px 0 18px; }
.detail .lead { margin-top: 28px; }

.shots {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  overscroll-behavior-x: contain;
  padding: 2px 2px 12px;
  border-radius: 20px;
  scrollbar-width: thin;
}

.shots ul {
  list-style: none;
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.shots li { flex: 0 0 min(480px, 78%); scroll-snap-align: start; }

.shots a { display: block; border-radius: 16px; }

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--ring);
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
  margin: 32px 0 64px;
}

.facts section {
  padding: 4px 20px 16px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--ring);
}

.facts h2 { margin: 16px 0 10px; font-size: 1.0625rem; }
.facts ul { margin: 0; padding-left: 1.1em; }
.facts dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.facts .note { color: var(--muted); font-size: 0.875rem; margin: 10px 0 0; }

.install-page { text-align: center; max-width: 40rem; margin: 64px auto 96px; }
.install-page h1 { font-size: clamp(2rem, 5vw, 3rem); margin-top: 24px; }
.install-page p { color: var(--muted); }
.url code { padding: 4px 10px; border-radius: 8px; background: var(--chip); color: var(--foreground); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

.bottom { border-top: 1px solid var(--border); font-size: 0.875rem; color: var(--muted); }

.columns {
  display: grid;
  gap: 32px;
  padding-block: 48px;
}

@media (min-width: 640px) {
  .columns { grid-template-columns: 1fr auto auto; gap: 64px; }
}

.about p { margin: 12px 0 0; max-width: 22rem; }
.about .brand { margin: 0; }

.bottom h2 { font: 500 0.875rem/1.4 var(--font-body); letter-spacing: 0; margin: 0; }
.bottom ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.bottom ul a, .fine a { color: var(--muted); text-decoration: none; }
.bottom ul a:hover, .fine a:hover { color: var(--foreground); text-decoration: underline; }

.fine {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin: 0;
  padding-block: 20px 32px;
  border-top: 1px solid var(--border);
}

[hidden] { display: none !important; }

@media (prefers-reduced-motion: no-preference) {
  .card a, .chip, .pill { transition: background-color 150ms var(--ease), opacity 150ms var(--ease), transform 150ms var(--ease); }
}
