:root {
  --paper: #f4f1ea;
  --card: #fbf9f4;
  --ink: #1c1a17;
  --muted: #69645a;
  --line: #e2ddd2;
  --island: #121214;
  --island-ink: #f5f1e8;
  --island-muted: #a8a397;
  --red: #b02a27;
  --stage: #f6f5f2;
  --shadow: 0 1px 2px rgba(28, 26, 23, 0.06), 0 18px 48px rgba(28, 26, 23, 0.12);
  --spring: cubic-bezier(0.2, 0.9, 0.25, 1.15);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121214;
    --card: #1a1a1d;
    --ink: #f1ede4;
    --muted: #a29d92;
    --line: #2b2b2f;
    --island: #000000;
    --red: #e0605a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 48px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
kbd {
  font: 600 0.82em/1 "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  display: inline-block;
  padding: 0.28em 0.5em 0.32em;
  border-radius: 7px;
  border: 1px solid var(--line);
  border-bottom-width: 3px;
  background: var(--card);
  white-space: nowrap;
}
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* The menu is the product's own pill, hanging from the top edge of the window. */
.island {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 50;
  transform: translateX(-50%);
  width: 196px;
  background: var(--island);
  color: var(--island-ink);
  border-radius: 0 0 22px 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transition: width 0.42s var(--spring), border-radius 0.42s var(--spring);
}
.island-pill {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  font: 650 16px/1 "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  letter-spacing: -0.01em;
}
.island-pill img { width: 24px; height: 24px; }
.island-pill:focus-visible { outline: 2px solid var(--island-ink); outline-offset: -4px; border-radius: 0 0 20px 20px; }
.island-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 0 12px;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.42s var(--spring), opacity 0.2s ease, padding 0.42s var(--spring);
}
.island-links a {
  color: var(--island-muted);
  text-decoration: none;
  font-size: 15px;
  padding: 7px 12px;
  border-radius: 999px;
}
.island-links a:hover, .island-links a:focus-visible { color: var(--island-ink); background: rgba(255, 255, 255, 0.1); outline: none; }
.island[data-open="true"] { width: min(560px, 100vw - 24px); border-radius: 0 0 26px 26px; }
.island[data-open="true"] .island-links { max-height: 120px; opacity: 1; padding: 0 12px 12px; }
@media (hover: hover) {
  .island:hover, .island:focus-within { width: min(560px, 100vw - 24px); border-radius: 0 0 26px 26px; }
  .island:hover .island-links, .island:focus-within .island-links { max-height: 120px; opacity: 1; padding: 0 12px 12px; }
}

/* Hero */
.hero { text-align: center; padding: 150px 0 40px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 80px); line-height: 1.02; letter-spacing: -0.025em; margin: 0 auto 22px; max-width: 13ch; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 34em; margin: 0 auto 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  transition: transform 0.25s var(--spring), box-shadow 0.25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn.primary { background: var(--island); color: var(--island-ink); border-color: var(--island); }
.btn svg { width: 18px; height: 18px; }
.fine { color: var(--muted); font-size: 15px; margin: 18px 0 0; }

/* A screen: footage sits under a top edge, like the monitor it was filmed on. */
.screen {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--stage);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.screen video, .screen img { width: 100%; height: auto; }
.hero .screen { margin: 56px auto 0; max-width: 1000px; border-top: 10px solid var(--island); }

/* Sections */
section { padding: 96px 0 0; }
.section-head { text-align: center; max-width: 40em; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 14px; }
.section-head p { color: var(--muted); margin: 0; font-size: 19px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.item { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 20px 18px; }
.item h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; margin: 0 0 6px; }
.item h3 svg { width: 22px; height: 22px; flex: none; color: var(--red); }
.item p { margin: 0; color: var(--muted); font-size: 16px; }

.row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; margin-top: 72px; }
.row.flip { grid-template-columns: 1.25fr 1fr; }
.row.flip .row-text { order: 2; }
.row-text h3 { font-size: clamp(26px, 3vw, 34px); line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 12px; }
.row-text p { margin: 0 0 12px; color: var(--muted); }
.row-text .keys { margin-top: 16px; color: var(--ink); font-size: 16px; }
.row .screen { max-width: 640px; justify-self: center; width: 100%; }
.also { text-align: center; color: var(--muted); max-width: 42em; margin: 72px auto 0; }

.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.trust .item { padding: 26px 24px; }
.center-link { text-align: center; margin-top: 28px; }
.center-link a { font-weight: 600; }

.keys-table { max-width: 640px; margin: 0 auto; border-collapse: collapse; width: 100%; }
.keys-table td { padding: 14px 6px; border-bottom: 1px solid var(--line); }
.keys-table td:last-child { text-align: right; color: var(--muted); }
.keys-note { text-align: center; color: var(--muted); font-size: 16px; margin-top: 18px; }

.get { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.get .item { display: flex; flex-direction: column; gap: 10px; }
.get .item .btn { align-self: flex-start; margin-top: auto; font-size: 16px; padding: 10px 18px; }

.support { text-align: center; padding-bottom: 24px; }
.support .cta { margin-top: 8px; }

footer { margin-top: 110px; border-top: 1px solid var(--line); padding: 30px 0 44px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
footer .mark { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 650; text-decoration: none; }
footer .mark img { width: 26px; height: 26px; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer nav a { text-decoration: none; }
footer nav a:hover { color: var(--ink); }

/* The privacy policy */
.doc { width: min(720px, 100% - 32px); margin: 0 auto; padding-top: 140px; }
.doc h1 { font-size: clamp(38px, 5vw, 56px); letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 8px; text-align: center; }
.doc .date { text-align: center; color: var(--muted); margin: 0 0 40px; }
.doc h2 { font-size: 24px; margin: 44px 0 10px; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc code { font-size: 0.9em; background: var(--card); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.short { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 26px; }
.short ul { margin: 0; }

/* Releases */
.mono { font-family: "Cascadia Mono", Consolas, ui-monospace, monospace; font-size: 0.86em; }
.rel { padding-top: 140px; }
.rel-head { text-align: center; max-width: 40em; margin: 0 auto 44px; }
.eyebrow { color: var(--red); font-weight: 600; font-size: 15px; margin: 0 0 10px; }
.rel-head h1 { font-size: clamp(42px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.025em; margin: 0 0 16px; }
.rel-head .lede { margin-bottom: 14px; }
.rel-totals { color: var(--muted); margin: 0; }
.rel-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; color: var(--muted); }
.rel-badge {
  font: 600 12px/1 "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0.02em;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.store-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 28px 34px;
  text-align: center;
  background: var(--island);
  color: var(--island-ink);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.store-card .rel-meta { justify-content: center; color: var(--island-muted); }
.store-card .rel-badge { border-color: transparent; background: #b02a27; color: #fff; }
.store-card h2 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.02em; margin: 14px 0 8px; }
.store-card > p:not(.rel-meta) { color: var(--island-muted); max-width: 30em; margin: 0 auto 26px; }
.store-btn { background: var(--island-ink); color: var(--island); border-color: var(--island-ink); font-size: 18px; padding: 15px 26px; margin-bottom: 20px; }
.rel-alt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 760px; margin: 14px auto 0; padding: 0; }
.rel-alt .item { display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.rel-alt .item h3 { margin: 0; font-size: 22px; }
.rel-alt .item .btn { align-self: flex-start; font-size: 15px; padding: 10px 16px; word-break: break-all; }
.rel-note { font-size: 15px; }
.rel-note code, .cmd code { font-family: "Cascadia Mono", Consolas, ui-monospace, monospace; }
.cmd { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 12px; background: var(--island); color: var(--island-ink); }
.cmd code { flex: 1; min-width: 0; font-size: 14px; overflow-x: auto; white-space: nowrap; }
.cmd button {
  font: 600 13px/1 "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--island-ink);
  cursor: pointer;
}
.cmd button:hover, .cmd button:focus-visible { background: rgba(255, 255, 255, 0.22); outline: none; }
.rel-history { max-width: 760px; margin: 0 auto; padding-top: 72px; }
.rel-history h2 { text-align: center; font-size: 26px; margin: 0 0 18px; }
.rel-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rel-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.rel-list .rel-date { color: var(--muted); margin-left: auto; }
.rel-list .rel-count { color: var(--muted); }

@media (max-width: 860px) {
  body { font-size: 17px; }
  .rel { padding-top: 120px; }
  .rel-alt { grid-template-columns: minmax(0, 1fr); }
  .rel-alt .item { padding: 20px; }
  .rel-list .rel-date { margin-left: 0; }
  .hero { padding-top: 124px; }
  .row, .row.flip { grid-template-columns: 1fr; gap: 24px; margin-top: 56px; }
  .row.flip .row-text { order: 0; }
  .row-text { text-align: center; }
  .trust, .get { grid-template-columns: 1fr; }
  footer .wrap { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .island, .island-links, .btn { transition: none; }
}
