/* Shared styles for secondary pages (legal pages, 404). The home page has its own inline styles. */
:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #55607a;
  --border: #dde2ec;
  --brand: #4f46e5;
  --brand-2: #06b6d4;
  --brand-ink: #ffffff;
  --accent-soft: #eef0ff;
  --ph-bg: #fff4c2;
  --ph-text: #6b4e00;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0f1a;
    --surface: #121829;
    --text: #e7eaf3;
    --muted: #9aa4bd;
    --border: #263050;
    --brand: #818cf8;
    --brand-2: #22d3ee;
    --brand-ink: #0b0f1a;
    --accent-soft: #1d2246;
    --ph-bg: #4a3b00;
    --ph-text: #ffe58a;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0f1a;
  --surface: #121829;
  --text: #e7eaf3;
  --muted: #9aa4bd;
  --border: #263050;
  --brand: #818cf8;
  --brand-2: #22d3ee;
  --brand-ink: #0b0f1a;
  --accent-soft: #1d2246;
  --ph-bg: #4a3b00;
  --ph-text: #ffe58a;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
.wrap { max-width: 780px; margin: 0 auto; padding: 0 16px; }

header.top { border-bottom: 1px solid var(--border); background: var(--surface); }
header.top .wrap { max-width: 1120px; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; color: var(--text); }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px;
}
.back { font-weight: 600; font-size: 15px; text-decoration: none; }

main { padding: 48px 0 72px; }
h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 8px; }
.meta { color: var(--muted); margin: 0 0 32px; font-size: 15px; }
h2 { font-size: 22px; letter-spacing: -.01em; margin: 40px 0 8px; }
h3 { font-size: 17px; margin: 24px 0 4px; }
p, li { font-size: 16px; }
ul { padding-left: 22px; }
li { margin: 4px 0; }
.summary {
  background: var(--accent-soft); border-radius: 14px; padding: 18px 22px; margin: 0 0 32px;
}
.summary h2 { margin-top: 0; font-size: 18px; }
.summary ul { margin: 0; }
.draft {
  border: 1px dashed var(--ph-text); background: var(--ph-bg); color: var(--ph-text);
  border-radius: 12px; padding: 12px 16px; font-size: 14px; margin: 0 0 28px;
}
/* Placeholder values that must be replaced before launch. Search the code for class="ph". */
.ph { background: var(--ph-bg); color: var(--ph-text); padding: 0 4px; border-radius: 4px; font-weight: 600; }

footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 14px; }
footer .wrap { max-width: 1120px; display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

.center-page { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 72px; font-weight: 700; margin: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn {
  display: inline-block; padding: 12px 20px; border-radius: 12px; font-weight: 600; text-decoration: none;
  background: var(--brand); color: var(--brand-ink); margin: 6px;
}
.btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
