:root {
  --bg: #0e1116;
  --surface: #161b22;
  --surface-2: #1c2330;
  --border: #2a3342;
  --text: #e8edf3;
  --muted: #a7b1bf;
  --accent: #7cc4ff;
  --accent-ink: #06121f;
  --planned: #f2c46d;
  --radius: 14px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

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

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 16px; z-index: 10; }

.site-header { border-bottom: 1px solid var(--border); position: sticky; top: 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; text-decoration: none; letter-spacing: 0.01em; }
.mark { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--accent), #b39dff); }
nav { display: flex; gap: 4px; }
nav a { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: 15px; }
nav a:hover { color: var(--text); background: var(--surface); }

.hero { padding: clamp(56px, 10vw, 112px) 0 clamp(40px, 6vw, 72px); }
.eyebrow { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 5.5vw, 56px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 20px; max-width: 18ch; text-wrap: balance; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 60ch; margin: 0 0 28px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; }
.button:hover { background: var(--surface-2); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.button.primary:hover { filter: brightness(1.08); }

.section { padding: 40px 0; border-top: 1px solid var(--border); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
h2 { font-size: 24px; margin: 0; letter-spacing: -0.01em; }
.section-head p { margin: 0; color: var(--muted); max-width: 56ch; }
code { font-size: 0.92em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }

.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card.empty { background: transparent; border-style: dashed; }
.card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 8px; }
.card h3 { font-size: 18px; margin: 0; }
.card h3 a { color: var(--text); }
.card p { margin: 0 0 10px; color: var(--muted); }
.card .meta { font-size: 14px; margin: 0; }
.badge { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.badge.planned { color: var(--planned); border-color: color-mix(in srgb, var(--planned) 45%, transparent); }

.principles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.principles li { color: var(--muted); }
.principles strong { display: block; color: var(--text); margin-bottom: 4px; }

.contact p { color: var(--muted); margin: 8px 0 20px; }

.site-footer { border-top: 1px solid var(--border); padding: 24px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer p { margin: 0; }

@media (max-width: 520px) {
  nav a { padding: 8px 6px; font-size: 14px; }
  .brand { font-size: 15px; }
}
