:root {
  color-scheme: light dark;
  --paper: #f7f7f4;
  --surface: #ffffff;
  --ink: #171a1f;
  --muted: #5d6470;
  --line: #d9dce1;
  --brand: #e5571f;
  --brand-dark: #a83812;
  --focus: #1769aa;
}

* { box-sizing: border-box; }

html { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
}

a { color: var(--brand-dark); }
a:hover { color: var(--brand); }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.nav,
.content,
.footer-inner {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
}

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

.brand {
  color: var(--ink);
  font-size: 21px;
  font-weight: 800;
  text-decoration: none;
}

.nav-links { display: flex; gap: 18px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; }

.content { padding: 68px 0 80px; }
.app-icon {
  width: 82px;
  height: 82px;
  display: block;
  margin-bottom: 22px;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgb(0 0 0 / 16%);
}
.eyebrow { color: var(--brand-dark); font-size: 13px; font-weight: 800; text-transform: uppercase; }
h1 { margin: 6px 0 14px; font-size: clamp(38px, 8vw, 60px); line-height: 1.05; }
h2 { margin: 42px 0 10px; font-size: 24px; line-height: 1.25; }
h3 { margin: 26px 0 8px; font-size: 18px; }
p, li { color: var(--muted); }
.lede { max-width: 630px; font-size: 19px; }
.updated { color: var(--muted); font-size: 14px; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 44px; }
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: var(--surface);
  font-weight: 750;
  text-decoration: none;
}
.button.secondary { background: transparent; color: var(--ink); }

.section { padding-top: 4px; border-top: 1px solid var(--line); }
code { overflow-wrap: anywhere; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; padding: 28px 0; }
.footer-inner p { margin: 0; font-size: 13px; }

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121416;
    --surface: #191c20;
    --ink: #f4f4f1;
    --muted: #b6bac2;
    --line: #343941;
    --brand: #ff8553;
    --brand-dark: #ff9a71;
    --focus: #69b7f0;
  }
}

@media (max-width: 560px) {
  .nav { align-items: flex-start; flex-direction: column; padding: 15px 0; }
  .nav-links { width: 100%; justify-content: space-between; }
  .content { padding-top: 48px; }
  .footer-inner { flex-direction: column; }
}
