:root {
  color-scheme: light dark;
  --paper: #f6f4ef;
  --ink: #111315;
  --muted: #5b5e62;
  --line: rgba(17, 19, 21, 0.14);
  --soft: rgba(17, 19, 21, 0.05);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111315;
    --ink: #f6f4ef;
    --muted: #a7a9ac;
    --line: rgba(246, 244, 239, 0.16);
    --soft: rgba(246, 244, 239, 0.06);
  }
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.wrap {
  width: min(1040px, calc(100% - 48px));
  margin: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 16px;
  border-radius: 10px;
  z-index: 10;
}
.skip:focus { left: 16px; top: 16px; }

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  font-size: 14px;
}

.back {
  color: var(--muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

nav.site {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
}

nav.site a {
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.brand {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
  padding: 56px 0 92px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}

h1 {
  font-size: clamp(54px, 8vw, 94px);
  line-height: 0.92;
  letter-spacing: -0.055em;
  font-weight: 600;
  margin: 0;
}

.lede {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
  max-width: 34ch;
  margin: 26px 0 30px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--line);
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn.primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn.ghost { color: var(--ink); }

.meta {
  font-size: 12px;
  color: var(--muted);
  margin: 20px 0 0;
}

.visual {
  min-width: 0;
}

.icon {
  display: block;
  width: 100%;
  max-width: 380px;
  margin-left: auto;
  border-radius: 22.5%;
  border: 1px solid var(--line);
}

.visual figcaption {
  max-width: 380px;
  margin: 16px 0 0 auto;
  font-size: 12px;
  color: var(--muted);
  text-align: left;
}

.section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.section h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin: 0 0 14px;
  font-weight: 600;
}

.section .sub {
  color: var(--muted);
  max-width: 58ch;
  margin: 0 0 34px;
  font-size: 15px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card .tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 16px;
}

.freq {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.freq th,
.freq td {
  border-bottom: 1px solid var(--line);
  padding: 13px 10px;
  text-align: center;
}

.freq thead th {
  color: var(--muted);
  font-weight: 500;
}

.freq th:first-child,
.freq td:first-child {
  text-align: left;
  border-right: 1px solid var(--line);
  color: var(--muted);
}

.freq tbody td { font-weight: 600; }

.bounds {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
}

.bounds li {
  color: var(--muted);
  font-size: 14px;
  padding-left: 18px;
  position: relative;
}

.bounds li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--ink);
}

.note {
  background: var(--soft);
  border-radius: 16px;
  padding: 20px 22px;
  font-size: 14px;
  color: var(--muted);
}

.note a {
  color: var(--ink);
  text-underline-offset: 3px;
}

footer.site {
  border-top: 1px solid var(--line);
  padding: 28px 0 44px;
  font-size: 12px;
  color: var(--muted);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
}

footer.site a {
  text-decoration: none;
  color: var(--muted);
}

footer.site a:hover { color: var(--ink); }

/* Privacy document */
.doc {
  max-width: 720px;
  padding: 42px 0 88px;
}

.doc h1 {
  font-size: clamp(40px, 6vw, 58px);
  line-height: 1;
  margin: 0 0 12px;
}

.updated {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 40px;
}

.doc h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 38px 0 10px;
  font-weight: 600;
}

.doc p,
.doc li {
  font-size: 15px;
  color: var(--muted);
}

.doc p { margin: 0 0 14px; }

.doc ul {
  padding-left: 20px;
  margin: 0 0 16px;
}

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

.doc strong { color: var(--ink); font-weight: 600; }

.doc a {
  color: var(--ink);
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .wrap { width: min(100% - 36px, 1040px); }
  .hero {
    grid-template-columns: 1fr;
    padding: 28px 0 66px;
    gap: 34px;
  }
  .visual { order: -1; max-width: 220px; margin: 0 auto; }
  .icon { margin: 0 auto; max-width: 220px; }
  .visual figcaption { margin-left: 0; text-align: center; max-width: 100%; }
  .grid,
  .bounds { grid-template-columns: 1fr; }
  .section { padding: 42px 0; }
  nav.site { gap: 16px; font-size: 13px; }
  header.site { padding: 18px 0; }
  .freq { font-size: 12px; }
  .freq th, .freq td { padding: 10px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .btn:hover { transform: none; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
