/* SpacePenguin's site: flat colours, hairline rules, nothing that glows. */

:root {
  --bg: #ffffff;
  --text: #16181d;
  --muted: #5d6474;
  --rule: #e4e7ec;
  --soft: #f5f6f8;
  --accent: #2f5fe0;
  --accent-text: #ffffff;
  --wrap: 1040px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121317;
    --text: #e8eaf0;
    --muted: #9aa1b2;
    --rule: #2a2d35;
    --soft: #1a1c22;
    --accent: #82a0ff;
    --accent-text: #10142a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 64px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; }

code {
  font: 0.9em ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  background: var(--soft);
  border: 1px solid var(--rule);
  padding: 0 0.35em;
  border-radius: 5px;
  overflow-wrap: anywhere;
}

img { max-width: 100%; height: auto; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--bg); padding: 8px 14px; border: 1px solid var(--rule); border-radius: 8px; }

/* ---- Header ------------------------------------------------------------- */

.site-header { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--rule); }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; flex-wrap: wrap; }

.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); text-decoration: none; }

.nav ul { display: flex; flex-wrap: wrap; gap: 2px 18px; list-style: none; margin: 0; padding: 6px 0; }
.nav li a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav li a:hover { color: var(--text); }

/* ---- Hero --------------------------------------------------------------- */

.hero { padding-top: 72px; }
.hero-icon { width: 72px; height: 72px; display: block; }

h1 { font-size: clamp(34px, 5.5vw, 54px); line-height: 1.08; letter-spacing: -0.025em; margin: 22px 0 16px; font-weight: 750; max-width: 14em; }

.lede { max-width: 620px; margin: 0; font-size: clamp(17px, 2vw, 19px); color: var(--muted); }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 28px 0 0; }

.button {
  display: inline-block; padding: 10px 22px; border-radius: 8px;
  background: var(--accent); color: var(--accent-text); font-weight: 600;
  text-decoration: none; border: 1px solid var(--accent);
}
.button:hover { opacity: 0.9; }
.button.ghost { background: transparent; color: var(--text); border-color: var(--rule); }
.button.ghost:hover { background: var(--soft); opacity: 1; }

.fineprint { color: var(--muted); font-size: 14px; }

.shot { display: block; margin: 56px 0 0; }
.shot img { display: block; width: 100%; border: 1px solid var(--rule); border-radius: 12px; }

/* ---- Sections ----------------------------------------------------------- */

.section { padding-top: 72px; padding-bottom: 72px; border-top: 1px solid var(--rule); }
.hero + .section { border-top: 0; }

h2 { font-size: clamp(26px, 3.2vw, 32px); letter-spacing: -0.02em; margin: 0 0 12px; line-height: 1.2; font-weight: 700; }
h3 { font-size: 17px; margin: 0 0 6px; }
.section-lede { color: var(--muted); max-width: 680px; margin: 0 0 8px; }

/* A grid of plain items, each under a hairline. */
.list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 0 40px; margin-top: 28px; }
.list > * { min-width: 0; border-top: 1px solid var(--rule); padding: 20px 0 24px; }
.list p { color: var(--muted); margin: 0; }

/* Downloads: one row per platform. */
.rows { margin-top: 28px; border-bottom: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: 200px 1fr auto; gap: 8px 28px; align-items: center; border-top: 1px solid var(--rule); padding: 20px 0; }
.row > * { min-width: 0; }
.row h3 { margin: 0; }
.row p { margin: 0; color: var(--muted); }
.row > div > * + * { margin-top: 10px; }
.row .meta { display: block; font-size: 14px; font-weight: 400; color: var(--muted); }

.more { margin-top: 24px; }
.more summary { cursor: pointer; font-weight: 600; }
.more ul { color: var(--muted); padding-left: 20px; }
.more li { margin: 8px 0; }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 32px 56px; align-items: start; }
/* Grid items may shrink below their content, so long code lines wrap instead of
   widening the page. */
.split > * { min-width: 0; }

.steps { padding-left: 22px; color: var(--muted); }
.steps li { margin: 10px 0; }
.steps strong, .checks strong { color: var(--text); }

.note { color: var(--muted); font-size: 15px; margin-top: 22px; }

.checks { list-style: none; padding: 0; color: var(--muted); }
.checks li { position: relative; padding-left: 26px; margin: 14px 0; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.aside { background: var(--soft); border: 1px solid var(--rule); border-radius: 12px; padding: 22px 24px; }
.aside ul { color: var(--muted); padding-left: 20px; }
.aside p { color: var(--muted); }

pre.code {
  background: var(--soft); color: var(--text); border: 1px solid var(--rule); border-radius: 12px;
  padding: 18px 20px; font-size: 14px; line-height: 1.7; margin: 0;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
pre.code code { background: none; border: 0; padding: 0; font-size: inherit; }
pre.code .c { color: var(--muted); }

/* ---- Footer ------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--rule); padding: 28px 0; color: var(--muted); font-size: 15px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-inner p { margin: 0; display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 640px) {
  .nav { padding-top: 6px; }
  .hero { padding-top: 44px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .row { grid-template-columns: 1fr; }
  .row .button { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
