:root {
  color-scheme: light dark;
  --background: light-dark(#f6f5ed, #1b1e19);
  --surface: light-dark(#fffef8, #242822);
  --text: light-dark(#222721, #f0f1e6);
  --muted: light-dark(#535c50, #b1bbab);
  --line: light-dark(#d8dccd, #40483c);
  --accent: light-dark(#254d39, #d6e9bf);
  --on-accent: light-dark(#fffef8, #203328);
  --tint: light-dark(#e8efdf, #333e30);
  font: 16px/1.55 Inter, system-ui, sans-serif;
  background: var(--background);
  color: var(--text);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .16em; }
a:focus-visible, button:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
header, footer { background: var(--surface); }
header { border-bottom: 1px solid var(--line); }
footer { border-top: 1px solid var(--line); color: var(--muted); }
.shell { width: min(100% - 2rem, 62rem); margin-inline: auto; }
.masthead { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .7rem 1rem; min-height: 4rem; padding-block: .8rem; }
.masthead > a:first-child { font-weight: 680; text-decoration: none; }
footer nav { display: flex; gap: .4rem 1rem; flex-wrap: wrap; }
footer .details { font-size: .83rem; color: var(--muted); }
main { padding-block: clamp(1.75rem, 5vw, 3.5rem); }
h1, h2, p { margin: 0 0 .5em; }
h1 { font-size: clamp(2.15rem, 7vw, 3.8rem); line-height: 1.05; letter-spacing: -.055em; overflow-wrap: anywhere; }
h2 { font-size: 1.2rem; line-height: 1.25; }
section + section { margin-top: 1.6rem; }
.lede { color: var(--muted); margin-bottom: 1.45rem; }
.toolbar { display: flex; align-items: center; gap: .6rem 1rem; flex-wrap: wrap; justify-content: space-between; margin-bottom: 1rem; }
.toolbar > div { display: flex; gap: .4rem; flex-wrap: wrap; }
button, select, .action { font: inherit; color: inherit; background: var(--surface); padding: .45rem .75rem; border: 1px solid var(--line); border-radius: .45rem; }
button, select { min-height: 2.65rem; }
button, .action { cursor: pointer; }
button[aria-pressed="true"], .action { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.catalog, .columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.columns section + section { margin-top: 0; }
.card, .releases { background: var(--surface); border: 1px solid var(--line); border-radius: .7rem; }
.card:hover { border-color: var(--accent); }
.card a { display: flex; align-items: flex-start; color: inherit; text-decoration: none; gap: .85rem; padding: 1rem; height: 100%; }
.card p, small { color: var(--muted); }
.card h2, .card p { margin-bottom: .25rem; }
.app-icon { width: 3.25rem; height: 3.25rem; border-radius: .65rem; flex: none; object-fit: contain; background: var(--tint); color: var(--accent); display: grid; place-items: center; font-size: 1.2rem; font-weight: 650; }
.app-title { display: flex; align-items: flex-start; gap: 1rem; margin-top: 1.3rem; }
.action { display: inline-block; text-decoration: none; text-align: center; }
.releases { list-style: none; margin: 0; padding: 0; }
.releases li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .8rem; }
.releases li + li { border-top: 1px solid var(--line); }
.releases small { display: block; }
.releases code { overflow-wrap: anywhere; }
.releases li > div { min-width: 0; }
.screenshots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.screenshots img { display: block; max-width: 100%; }
.columns + section { margin-top: 1.65rem; }
dt { font-weight: 600; }
dd { margin: 0 0 .6rem; overflow-wrap: anywhere; }
@media (max-width: 42rem) { .catalog, .columns { grid-template-columns: minmax(0, 1fr); } }
