:root {
  color-scheme: light dark;
  --ink: #171826;
  --muted: #5f6376;
  --paper: #ffffff;
  --canvas: #f6f7fb;
  --line: #dfe1ea;
  --purple: #6253dc;
  --purple-soft: #ece9ff;
  --green: #16845f;
  --green-soft: #e5f5ee;
  --gold: #ffc83d;
}

* { box-sizing: border-box; }

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

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

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  position: sticky;
  top: 0;
  z-index: 2;
}

.nav {
  width: min(100% - 32px, 920px);
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav-links { margin-left: auto; display: flex; gap: 18px; }
.nav-links a { color: var(--muted); font-weight: 650; text-decoration: none; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--purple); }

main { width: min(100% - 32px, 760px); margin: 0 auto; padding: 56px 0 80px; }

.hero { padding: 10px 0 34px; }
.hero img { width: 88px; height: 88px; border-radius: 8px; box-shadow: 0 14px 36px rgba(61, 50, 145, 0.18); }
.eyebrow { color: var(--purple); font-size: 0.8rem; font-weight: 800; text-transform: uppercase; }
h1 { margin: 12px 0 14px; font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.08; letter-spacing: 0; }
h2 { margin: 36px 0 8px; font-size: 1.25rem; letter-spacing: 0; }
p { margin: 0 0 14px; }
.lede { color: var(--muted); font-size: 1.15rem; max-width: 650px; }
.effective { color: var(--muted); font-weight: 650; }

.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.link-card {
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}
.link-card strong { display: block; margin-bottom: 6px; }
.link-card span { color: var(--muted); font-size: 0.94rem; }
.link-card:hover, .link-card:focus-visible { border-color: var(--purple); box-shadow: 0 8px 24px rgba(23, 24, 38, 0.08); }

.trust-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 24px 0;
}
.pill { border-radius: 8px; padding: 7px 10px; font-size: 0.88rem; font-weight: 750; }
.pill.private { color: var(--green); background: var(--green-soft); }
.pill.local { color: var(--purple); background: var(--purple-soft); }
.pill.play { color: #5d4300; background: #fff2c2; }

.document { padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.document ul { padding-left: 22px; }
.note { padding: 16px; border-left: 4px solid var(--purple); background: var(--purple-soft); }

footer { width: min(100% - 32px, 920px); margin: 0 auto; padding: 26px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }

@media (max-width: 680px) {
  .nav { align-items: flex-start; flex-direction: column; gap: 8px; padding: 12px 0; }
  .nav-links { margin-left: 0; width: 100%; overflow-x: auto; padding-bottom: 4px; }
  main { padding-top: 36px; }
  .link-grid { grid-template-columns: 1fr; }
  .document { padding: 20px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f4f3fb;
    --muted: #b8b7c8;
    --paper: #20212d;
    --canvas: #161720;
    --line: #353747;
    --purple: #b8adff;
    --purple-soft: #2d2947;
    --green: #76d6b1;
    --green-soft: #183c31;
  }
  .site-header { background: rgba(22, 23, 32, 0.96); }
  .pill.play { color: #ffe394; background: #4a3a13; }
}
