/* SuplexDriver Bold, SIL Open Font License 1.1. Served unmodified; see /fonts/SuplexDriver-LICENSE.txt */
@font-face {
  font-family: "SuplexDriver";
  src: url("/fonts/SuplexDriverBold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --cream: #E8E3CD;
  --green: #33AD66;
  --pink: #FF7AA0;
  --red: #FF375D;
  --purple: #4724F6;

  --bg: var(--cream);
  --surface: #F4F1E4;
  --ink: #1D1633;
  --muted: #4E4864;
  --line: rgba(29, 22, 51, 0.14);
  --link: var(--purple);
  --accent-ink: var(--purple);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15102B;
    --surface: #211A40;
    --ink: #F3EFDD;
    --muted: #BEB8D2;
    --line: rgba(232, 227, 205, 0.16);
    --link: var(--pink);
    --accent-ink: var(--pink);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}

a { color: var(--link); text-underline-offset: 0.18em; }
a:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.display {
  font-family: "SuplexDriver", system-ui, sans-serif;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.01em;
}

/* Header */
.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 26px; }
.brand svg { width: 30px; height: 30px; flex: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 44px; font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.site-footer a:hover { text-decoration: underline; }

/* Legal pages */
.legal { padding: 24px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(40px, 7vw, 64px); margin: 10px 0 8px; }
.legal .updated { color: var(--muted); margin: 0 0 28px; }
.legal h2 { font-size: 23px; margin: 40px 0 10px; }
.legal h3 { font-size: 18px; margin: 24px 0 6px; }
.legal p, .legal li { max-width: 68ch; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 600; }
.table-scroll { overflow-x: auto; }

.note {
  background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--green);
  border-radius: 14px; padding: 16px 18px; margin: 20px 0;
}
.todo {
  background: rgba(255, 55, 93, 0.12); color: inherit;
  border: 1px dashed var(--red); border-radius: 6px; padding: 1px 6px;
  font-weight: 600;
}
