@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/Inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/Inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('fonts/InterTight-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('fonts/InterTight-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Light palette — the default, and the forced choice when [data-theme="light"]. */
:root {
  color-scheme: light;
  --bg: #FFFEFA;
  --surface: #F7F6F2;
  --ink: #302D3E;
  --muted: #6E6B76;
  --faint: #78747E;
  --line: rgba(48, 45, 62, 0.10);
  --accent: #0099FF;
  --link: #0077CC;
  --accent-soft: rgba(0, 153, 255, 0.16);
  --shadow: 0 1px 2px rgba(48, 45, 62, 0.04), 0 8px 24px rgba(48, 45, 62, 0.06);
  --radius-lg: 20px;
  --radius-md: 14px;
}

/* Dark palette — explicitly picked with the toggle. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141415;
  --surface: #2E2C37;
  --ink: #FFFEFA;
  --muted: #BFBCC2;
  --faint: #918D96;
  --line: rgba(255, 254, 250, 0.10);
  --accent: #4DB8FF;
  --link: #4DB8FF;
  --accent-soft: rgba(77, 184, 255, 0.22);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.30), 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Dark palette — inherited from the OS, unless light was explicitly picked. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #141415;
    --surface: #2E2C37;
    --ink: #FFFEFA;
    --muted: #BFBCC2;
    --faint: #918D96;
    --line: rgba(255, 254, 250, 0.10);
    --accent: #4DB8FF;
    --link: #4DB8FF;
    --accent-soft: rgba(77, 184, 255, 0.22);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.30), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0 24px;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.28px;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: 88px 0 64px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.theme-toggle {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  margin: -6px -4px -6px 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.theme-toggle:hover {
  background: var(--surface);
  border-color: var(--link);
  color: var(--link);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Show the icon of the theme the button will switch *to*. */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter Tight", "Inter", sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.32px;
  color: var(--ink);
  text-decoration: none;
}

.brand .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.brand.back .dot { display: none; }

.brand.back::before {
  content: "←";
  color: var(--faint);
  transition: color 0.15s ease, transform 0.15s ease;
}

.brand.back:hover::before { color: var(--link); transform: translateX(-2px); }

h1 {
  margin: 56px 0 0;
  font-family: "Inter Tight", "Inter", sans-serif;
  font-weight: 700;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -2px;
}

.lede {
  margin: 20px 0 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 17px;
  letter-spacing: -0.32px;
}

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

.lede a, .contact a, footer a, .doc a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
  transition: border-color 0.15s ease;
}

.lede a:hover, .contact a:hover, footer a:hover, .doc a:hover { border-color: var(--link); }

.eyebrow {
  margin: 56px 0 18px;
  font-family: "Inter Tight", "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--faint);
}

.apps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px;
  margin: 0 -16px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: background 0.18s ease, transform 0.18s ease;
}

.app:hover {
  background: var(--surface);
  transform: translateY(-1px);
}

.app img {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.app .meta { display: block; min-width: 0; flex: 1; }

.app .name {
  display: block;
  font-family: "Inter Tight", "Inter", sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.44px;
  line-height: 1.35;
}

.app .tag {
  display: block;
  color: var(--muted);
  font-size: 14.5px;
  letter-spacing: -0.28px;
  line-height: 1.45;
}

.app .arrow {
  flex: 0 0 auto;
  color: var(--faint);
  font-size: 18px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.app:hover .arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--link);
}

.app:focus-visible, .brand:focus-visible, a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
  border-radius: 6px;
}

.contact {
  margin: 56px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 16px;
}

footer {
  margin-top: 48px;
  color: var(--faint);
  font-size: 13.5px;
  letter-spacing: -0.14px;
}

footer .legal {
  margin: 0 0 6px;
}

footer .legal a {
  color: var(--faint);
  border-bottom-color: var(--line);
}

footer .legal a:hover { color: var(--link); border-bottom-color: var(--link); }

footer .sep { opacity: 0.5; margin: 0 6px; }

.pagehead {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 48px 0 0;
}

.pagehead img {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.pagehead h1 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -1.2px;
}

.pagehead .kicker {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--faint);
  line-height: 1.4;
}

.updated {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--faint);
}

.doc {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.doc h2 {
  margin: 36px 0 8px;
  font-family: "Inter Tight", "Inter", sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.48px;
  line-height: 1.35;
}

.doc h2:first-child { margin-top: 0; }

.doc p {
  margin: 0 0 14px;
  color: var(--muted);
  letter-spacing: -0.28px;
}

.doc ul {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--muted);
}

.doc li { margin-bottom: 6px; }

.doc .intro { color: var(--ink); }

@media (max-width: 520px) {
  .wrap { padding: 56px 0 48px; }
  h1 { font-size: 34px; letter-spacing: -1.2px; }
  .lede { font-size: 16px; }
  .app { gap: 14px; padding: 14px 12px; margin: 0 -12px; }
  .app img { width: 48px; height: 48px; flex-basis: 48px; }
  .app .arrow { display: none; }
  .pagehead { gap: 14px; }
  .pagehead img { width: 40px; height: 40px; flex-basis: 40px; }
  .pagehead h1 { font-size: 26px; letter-spacing: -0.8px; }
}

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

@media print {
  body { padding: 0; color: #000; background: #fff; }
  .topbar, .brand, .theme-toggle, footer { display: none; }
  .doc p, .doc ul { color: #222; }
}
