/*
 * Hand-written, no framework and no CDN — which is what lets the server send a
 * `default-src 'none'` content security policy. A stylesheet from elsewhere, or
 * a `style` attribute in the markup, would each require loosening it.
 *
 * Colour is never the only signal anywhere on this page: the verdict names in
 * the copy carry their meaning as words. That is the same accessibility rule the
 * app follows (spec §41), and it is easier to keep than to retrofit.
 */

:root {
  --bg: #0b0e14;
  --panel: #131823;
  --line: #232b3b;
  --text: #e6e9f0;
  --dim: #9aa4b8;
  --accent: #7dd3c0;
  --focus: #ffd479;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  /* System stack: nothing to download, so no layout shift and no third-party
     origin to allow through the CSP. */
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans Devanagari", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

header { padding-top: 4.5rem; }

.mark {
  margin: 0 0 1.25rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
}

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.1rem, 7vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0;
  max-width: 34rem;
  color: var(--dim);
  font-size: 1.08rem;
}

main { padding: 3.5rem 0 1rem; }

section + section { margin-top: 3.5rem; }

h2 {
  margin: 0 0 1.5rem;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
  color: var(--accent);
}

.claim {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 0;
  margin-bottom: 1.5rem;
}

.claim p { margin: 0; color: var(--dim); }

.claim em { color: var(--text); font-style: normal; font-weight: 600; }

/* --- download cards ------------------------------------------------------ */

.cards {
  display: grid;
  gap: 0.9rem;
  /* Single column on a phone, two once there is room. auto-fit collapses the
     empty track, so one lone card does not sit in a half-width column. */
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover, .card:focus-visible { border-color: var(--accent); }
.card:active { transform: translateY(1px); }

.card .platform {
  display: block;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.card .detail {
  display: block;
  color: var(--dim);
  font-size: 0.88rem;
}

.note {
  margin: 1.5rem 0 0;
  color: var(--dim);
  font-size: 0.92rem;
}

/* --- footer -------------------------------------------------------------- */

footer {
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  padding: 1.75rem 1.25rem 4rem;
  color: var(--dim);
  font-size: 0.92rem;
}

footer p { margin: 0 0 0.4rem; }

.small { font-size: 0.85rem; opacity: 0.75; }

a { color: var(--accent); }

/* A button that reads as a link, but stays a button so that it is announced as
   one and reachable by keyboard. */
.linkish {
  background: none;
  border: 0;
  padding: 0;
  margin: 0 0 0 0.35rem;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

/* Never remove the focus ring — restyle it. Keyboard users lose the page
   otherwise, and it costs sighted mouse users nothing. */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* The palette is already dark. This keeps it legible if the OS asks for light,
   rather than shipping a half-finished second theme. */
@media (prefers-contrast: more) {
  :root { --dim: #c3cad8; --line: #3a465e; }
}
