:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #0b1930;
  color: #f3f8ff;
  --accent: #60ddff;
  --muted: #becfe6;
  --line: #344c6c;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  max-width: 57rem;
  margin: 0 auto;
  zoom: 1.5;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.shell { width: min(100% - 2rem, 55rem); margin-inline: auto; }
header, footer { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; padding-block: 1.15rem; }
header { justify-content: space-between; }
.brand { display: flex; align-items: center; font-weight: 750; text-decoration: none; }
.brand img { margin-right: .55rem; border-radius: .55rem; }
.brand span, .catalog span { color: var(--accent); }
.site-link, footer { color: var(--muted); font-size: .9rem; }
.hero {
  background: linear-gradient(135deg, #172f52, #10243e);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  padding: clamp(1.25rem, 5vw, 3.2rem);
}
h1 { margin: 0; font-size: clamp(2.15rem, 8vw, 4.25rem); line-height: 1.02; letter-spacing: -.055em; }
h2 { margin: 0 0 .65rem; font-size: 1.15rem; }
p { color: var(--muted); line-height: 1.55; }
form { margin-top: 1.45rem; }
label { display: block; font-weight: 650; margin-bottom: .45rem; }
.search { display: flex; flex-wrap: wrap; gap: .55rem; }
input, button { font: inherit; min-height: 2.85rem; border-radius: .65rem; padding: .65rem .85rem; }
input { flex: 1 1 13rem; min-width: 0; background: #0b1930; border: 1px solid #6680a2; color: inherit; }
input::placeholder { color: var(--muted); }
button { border: 0; background: var(--accent); color: #092039; font-weight: 750; cursor: pointer; }
.catalog { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .65rem; margin-block: 1rem; }
.catalog a { display: flex; justify-content: space-between; gap: .5rem; padding: .85rem; border: 1px solid var(--line); border-radius: .7rem; background: #10243e; font-weight: 650; text-decoration: none; }
.catalog a:hover { border-color: var(--accent); }
.install { border-top: 1px solid var(--line); padding-block: 1rem .5rem; }
.install button { margin-bottom: .75rem; }
summary { color: var(--muted); cursor: pointer; padding-block: .3rem; }
footer { gap: 1.25rem; padding-bottom: max(1.2rem, env(safe-area-inset-bottom)); }

/* Fit narrow screens at normal scale and let the content wrap. */
@media (max-width: 700px) {
  body { zoom: 1; }
  .shell { width: calc(100% - 1rem); }
  .hero { padding: clamp(.85rem, 4vw, 1.25rem); }
  h1 { font-size: clamp(1.75rem, 8vw, 3rem); }
}

@media (max-width: 420px) {
  .search { flex-direction: column; }
  .search input, .search button { flex: auto; width: 100%; }
  .catalog { grid-template-columns: minmax(0, 1fr); }
}
