/* Crystal theme, from packages/ui tokens. No framework, no scripts, no tracking. */
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/BricolageGrotesque-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/Figtree-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/Figtree-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #0E1A2B;
  --accent: #8FDCF5;
  --yellow: #FFE9A8;
  --bg: #EAF4FB;
  --mint: #D3F1EC;
  --muted: #4D6177;
  --surface: #FFFFFF;
  --edge: #9FC4DC;
  --radius: 24px;
  --shadow: 0 6px 20px rgba(14, 26, 43, 0.08);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 500 17px/1.6 "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-inline: max(16px, env(safe-area-inset-left));
}
h1, h2, h3 { font-family: "Bricolage Grotesque", "Figtree", system-ui, sans-serif; font-weight: 700; line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); }
h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); margin-top: 40px; }
h3 { font-size: 1.15rem; margin-top: 24px; }
p, ul, ol { margin: 0 0 14px; }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--accent); }
a:hover { text-decoration-color: var(--ink); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { max-width: 760px; margin: 0 auto; padding-block: 18px 48px; }
header.top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 1.4rem; }
.brand img { width: 40px; height: 40px; display: block; }
nav ul { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }
nav a { text-decoration: none; font-weight: 700; padding: 8px 2px; display: inline-block; }
nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
.hero { padding-block: 28px 8px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.card { background: var(--surface); border: 1.5px solid var(--edge); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; margin-block: 16px; }
.card.soon { background: var(--yellow); border-color: var(--ink); }
.card.soon p:last-child { margin-bottom: 0; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid .card { margin: 0; }
.grid h3 { margin-top: 0; }
.button { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 22px; border-radius: 999px; border: 1.5px solid var(--ink); box-shadow: 0 3px 0 rgba(14, 26, 43, 0.25); }
.button:hover { background: #1b2d47; }
.badge { display: inline-block; background: var(--accent); border: 1.5px solid var(--ink); border-radius: 999px; padding: 2px 12px; font-weight: 700; font-size: 0.85rem; margin-bottom: 10px; }
.note { color: var(--muted); font-size: 0.95rem; }
.draft { background: var(--yellow); border: 1.5px solid var(--ink); border-radius: 16px; padding: 12px 16px; font-weight: 700; margin-block: 14px; }
.todo { background: var(--yellow); border: 1px dashed var(--ink); border-radius: 6px; padding: 0 6px; font-weight: 700; }
details { background: var(--surface); border: 1.5px solid var(--edge); border-radius: 18px; padding: 4px 18px; margin-block: 10px; }
summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
details[open] summary { margin-bottom: 4px; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1.5px solid var(--edge); }
th { font-weight: 700; }
.scroll { overflow-x: auto; background: var(--surface); border: 1.5px solid var(--edge); border-radius: 18px; }
footer.bottom { border-top: 1.5px solid var(--edge); margin-top: 40px; padding-top: 20px; color: var(--muted); font-size: 0.95rem; }
footer.bottom ul { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
@media (prefers-reduced-motion: no-preference) { a, .button { transition: background-color 0.15s, text-decoration-color 0.15s; } }
@media print { body { background: #fff; } .card, details { box-shadow: none; } }
