:root { --bg: #05070a; --card: #141b24; --ink: #fff; --muted: #8a96a8; --line: #232c38;
          --accent: #22a7f0; --accent-strong: #1478c8; --soft: #c7d0dc; --code: #0c1118; }
  * { box-sizing: border-box; }
  body { margin: 0; background: var(--bg); color: var(--ink);
         font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
  a { color: var(--accent); }
  main { max-width: 980px; margin: 0 auto; padding: 0 22px 60px; }

  .top { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; }
  .top a { color: var(--soft); text-decoration: none; font-size: 15px; }
  .top select { background: var(--card); color: var(--soft); border: 1px solid var(--line);
                border-radius: 20px; padding: 6px 12px; font: inherit; font-size: 14px; }

  /* hero: the face, the name, the one line */
  .hero { text-align: center; padding: 34px 0 10px; }
  .hero img { width: 92px; height: 92px; }
  h1 { font-weight: 300; letter-spacing: .3em; font-size: 42px; margin: 10px 0 0; }
  h1 small { display: block; letter-spacing: .55em; font-size: 15px; color: var(--muted); margin-top: 6px; }
  .tag { color: var(--soft); margin: 18px auto 26px; font-size: 21px; line-height: 1.45; max-width: 700px; }

  /* the one line, with a copy button */
  .cmd { display: flex; align-items: center; gap: 10px; max-width: 640px; margin: 0 auto;
         background: var(--code); border: 1px solid var(--line); border-radius: 14px; padding: 10px 10px 10px 18px; }
  .cmd code { flex: 1; text-align: left; font: 16px/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
              color: #fff; overflow-x: auto; white-space: nowrap; }
  .cmd code .p { color: var(--muted); user-select: none; }
  .cmd button { background: var(--accent); color: #fff; border: 0; border-radius: 30px; padding: 9px 18px;
                font: inherit; font-size: 15px; cursor: pointer; white-space: nowrap; }
  .cmd button:hover { background: var(--accent-strong); }
  .note { color: var(--muted); font-size: 14px; margin: 14px auto 0; max-width: 640px; }
  /* "no curl?": folded away under the line */
  .prereq { max-width: 640px; margin: 10px auto 0; text-align: left; font-size: 14px; color: var(--soft); }
  .prereq summary { cursor: pointer; color: var(--muted); text-align: center; list-style-position: inside; }
  .prereq[open] { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px 6px; }
  .prereq table { width: 100%; border-collapse: collapse; margin: 6px 0; }
  .prereq td { padding: 6px 8px 6px 0; border-top: 1px solid var(--line); vertical-align: top; }
  .prereq td:first-child { color: var(--muted); width: 38%; }
  .prereq code { font: 13px/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: #fff; word-break: break-all; user-select: all; }
  .prereq .small { font-size: 13px; color: var(--muted); }

  h2 { font-weight: 500; font-size: 24px; margin: 48px 0 12px; }
  .lead { color: var(--soft); margin: 0 0 16px; }
  .card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; }
  .cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
  @media (max-width: 640px) {
    .cards { grid-template-columns: 1fr; }
    /* on a phone the line wraps and the button goes under it – no scrollbar */
    .cmd { flex-direction: column; align-items: stretch; padding: 14px; }
    .cmd code { white-space: normal; word-break: break-all; font-size: 14px; }
  }
  .cards .card { padding: 16px 20px; }
  .cards h3 { margin: 0 0 6px; font-size: 17px; }
  .cards p { margin: 0; color: var(--soft); font-size: 15px; }
  .cards .icon { font-size: 26px; line-height: 1; margin-bottom: 8px; }
  .say { color: #fff; font-style: italic; }
  ol, ul { padding-left: 22px; }
  li { margin: 8px 0; }
  code.inline { font: 15px ui-monospace, Menlo, Consolas, monospace; background: var(--code);
                border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: #fff; }
  /* the Linux families, as small tiles with a tick */
  .distros { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
  .distro { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 10px 38px;
            position: relative; }
  .distro::before { content: "✓"; position: absolute; left: 14px; top: 10px; color: #3ccf8e; font-weight: 700; }
  .distro b { display: block; font-weight: 600; font-size: 15px; }
  .distro span { color: var(--muted); font-size: 13px; }
  .note.left { margin: 12px 0 0; max-width: none; }
  /* the emkay-home command and the line's options: command | what it does */
  table.cli { width: 100%; border-collapse: collapse; }
  table.cli td { padding: 10px 0; border-top: 1px solid var(--line); vertical-align: top; color: var(--soft); font-size: 15px; }
  table.cli tr:first-child td { border-top: 0; }
  table.cli td:first-child { white-space: nowrap; padding-right: 18px; width: 1%; }
  @media (max-width: 640px) { table.cli td { display: block; padding: 4px 0; border: 0; }
                              table.cli tr { display: block; padding: 8px 0; border-top: 1px solid var(--line); } }
  /* the recording of the installer (asciinema-player) */
  #rec { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #000; }
  h3.sub { font-weight: 500; font-size: 19px; margin: 26px 0 10px; }
  footer { color: var(--muted); font-size: 14px; text-align: center; margin-top: 56px; }

  /* the ways in, as equal cards that lead to their own page */
  .ways { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
  .ways a.card { display: block; color: inherit; text-decoration: none; padding: 18px 20px; transition: border-color .15s; }
  .ways a.card:hover { border-color: var(--accent); }
  .ways h3 { margin: 0 0 6px; font-size: 17px; }
  .ways p { margin: 0 0 10px; color: var(--soft); font-size: 15px; }
  .ways .more { color: var(--accent); font-size: 15px; }
  .ways .icon { font-size: 28px; line-height: 1; margin-bottom: 10px; }
  /* a guide page: its steps numbered big */
  ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
  ol.steps > li { counter-increment: step; position: relative; padding: 14px 0 14px 48px; margin: 0; border-top: 1px solid var(--line); color: var(--soft); }
  ol.steps > li:first-child { border-top: 0; }
  ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: 12px; width: 32px; height: 32px; border-radius: 50%;
                          background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 15px; }
  .card.pad { padding: 6px 22px; }
  .hero.small { padding-top: 22px; }
  .hero.small img { width: 64px; height: 64px; }
  .hero.small h1 { font-size: 30px; letter-spacing: .12em; font-weight: 400; }
  .os { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
  .os .card { padding: 14px 20px; }
  .os h3 { margin: 0 0 6px; font-size: 17px; }
  .os p { margin: 0 0 8px; color: var(--soft); font-size: 15px; }
  .btn { display: inline-block; background: var(--accent); color: #fff; border-radius: 30px; padding: 11px 24px;
         text-decoration: none; font-size: 16px; }
  .btn:hover { background: var(--accent-strong); }
