/* stratanaut.com: the catalog's own chrome stays quiet. Each tile takes its colours and type
   from its app's theme in themes.css, which build.py generates from apps.json. */
:root {
  color-scheme: light dark;
  --bg: #f3f2ef;
  --ink: #16181b;
  --muted: #5d6168;
  --accent: #b83f12;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b0c0e; --ink: #ecebe6; --muted: #9ba1aa; --accent: #f08a4b; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px 64px; }
@media (min-width: 720px) { .wrap { padding: 0 32px 96px; } }

header { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: .875rem; letter-spacing: .2em; text-transform: uppercase;
}
.brand img { display: block; width: 28px; height: 28px; }
.lang {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px;
  color: var(--muted); text-decoration: none; font-size: .9375rem;
}
.lang:hover { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

h1 {
  margin: 40px 0 0;
  font-size: clamp(1.875rem, 5vw, 3rem); line-height: 1.08; letter-spacing: -.02em; font-weight: 700;
}
@media (min-width: 720px) { h1 { margin-top: 64px; } }
section { margin-top: 44px; }
h2 {
  margin: 0 0 16px; color: var(--muted);
  font-size: .8125rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}

.tiles {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
}
.tile {
  display: flex; flex-direction: column; min-height: 272px; padding: 24px; border-radius: 26px;
  color: var(--t-ink); font-family: var(--t-text);
  background:
    radial-gradient(90% 75% at 100% 0%, rgb(var(--t-acc-rgb) / .2), transparent 70%),
    radial-gradient(70% 60% at 0% 100%, rgb(var(--t-acc2-rgb) / .12), transparent 70%),
    linear-gradient(160deg, var(--t-bg2), var(--t-bg) 65%);
  box-shadow: inset 0 0 0 1px var(--t-line), 0 20px 44px -28px rgb(0 0 0 / .55);
}
.tile .head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tile .icon {
  flex: none; width: 84px; height: 84px; border-radius: 20px;
  box-shadow: 0 14px 34px -12px rgb(var(--t-acc-rgb) / .6), 0 0 0 1px rgb(var(--t-ink-rgb) / .08);
}
.tile .cat {
  margin: 0; padding-top: 4px; text-align: right; color: var(--t-muted);
  font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.tile h3 {
  margin: 22px 0 0; font-family: var(--t-display); font-weight: var(--t-weight);
  font-size: 1.75rem; line-height: 1.1; letter-spacing: -.01em;
}
.tile .tag { margin: 6px 0 0; color: rgb(var(--t-ink-rgb) / .82); font-size: 1.0625rem; line-height: 1.45; }
.tile .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 24px; }
.tile a:focus-visible { outline-color: var(--t-acc); }

.btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--t-acc); color: var(--t-on); text-decoration: none;
  font: 600 .9375rem/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost {
  background: rgb(var(--t-ink-rgb) / .05); color: var(--t-ink);
  box-shadow: inset 0 0 0 1px rgb(var(--t-ink-rgb) / .22);
}
.btn.ghost:hover { filter: none; background: rgb(var(--t-ink-rgb) / .1); }
.badge {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 999px;
  background: rgb(var(--t-acc-rgb) / .14); color: var(--t-acc);
  box-shadow: inset 0 0 0 1px rgb(var(--t-acc-rgb) / .35);
  font: 600 .8125rem/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (max-width: 420px) {
  .tile { min-height: 0; padding: 20px; }
  .tile .icon { width: 72px; height: 72px; border-radius: 17px; }
  .btn { padding: 0 15px; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .lang { transition: filter .15s, color .15s, background-color .15s; }
}
