/* appsbyugra.fyi: one stylesheet for every page. No web fonts, no external requests. */
:root {
  color-scheme: light dark;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --border: #dfe2e8;
  --text: #15171a;
  --muted: #555b66;
  --accent: #2560d8;
  --accent-text: #ffffff;
  --cell-empty: #e4e7ec;
  --cell-filled: #2f6fe8;
  --radius: 16px;
  --max: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101114;
    --surface: #1c1e22;
    --border: #2f3238;
    --text: #eceef2;
    --muted: #a3a6ad;
    --accent: #7aa9ff;
    --accent-text: #0d1424;
    --cell-empty: #2a2c31;
    --cell-filled: #4c8dff;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--accent-text);
  border-radius: 8px;
  z-index: 10;
}
.skip-link:focus { top: 1rem; }

.site-header, main, .site-footer {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.brand svg { width: 28px; height: 28px; flex: none; }

.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); text-decoration: underline; }

main { padding-bottom: 3rem; }

h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); margin: 1.5rem 0 0.5rem; letter-spacing: -0.01em; }
h2 { font-size: 1.35rem; margin: 2.25rem 0 0.5rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.25rem; }

.lead { font-size: 1.2rem; color: var(--muted); margin-top: 0; }
.muted { color: var(--muted); }

.card {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  padding: 1.1rem;
  margin: 1rem 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
}
.card:hover { border-color: var(--accent); }
.card svg { width: 64px; height: 64px; flex: none; border-radius: 14px; }
.card h2, .card h3 { margin: 0; font-size: 1.2rem; }
.card p { margin: 0.2rem 0 0; color: var(--muted); }

.facts {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  display: grid;
  gap: 0.6rem;
}
.facts li {
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.steps { counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step) ". "; font-weight: 700; }

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.9rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}
.shots figure { margin: 0; }
.shots .placeholder {
  aspect-ratio: 9 / 16;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 0.5rem;
}
.shots figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.35rem; text-align: center; }

.summary {
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
}

.policy h2 { border-top: 1px solid var(--border); padding-top: 1.5rem; }
.policy ul { padding-left: 1.25rem; }
.policy li { margin: 0.3rem 0; }

.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  padding-bottom: 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer p { margin: 0.25rem 0; }

.logo .bg { fill: var(--surface); stroke: var(--border); }
.logo .e { fill: var(--cell-empty); }
.logo .f { fill: var(--cell-filled); }

@media (prefers-reduced-motion: no-preference) {
  .card { transition: border-color 0.15s ease; }
}
