/* PLS-QCA Studio — shared tokens. Minimal: one ink, one cobalt-to-violet accent from the logo, quiet neutrals.
   White by default; dark only via the toggle. */
:root {
  --bg: #ffffff; --surface: #ffffff; --sunken: #f4f5f8; --ink: #0f1a33; --ink-2: #384152; --muted: #687083;
  --line: #e6e8ee; --line-2: #d3d7e0;
  --accent: #2563eb; --accent-2: #7a4cf0; --accent-ink: #ffffff; --accent-soft: #eef3fe; --accent-line: #c9d8fb;
  --grad: linear-gradient(90deg, #2f6df6 0%, #5a5cf3 55%, #7b4cf0 100%);
  --good: #1d7649; --good-soft: #e8f3ec; --warn: #8f5e06; --warn-soft: #faf2e0; --bad: #b2353a; --bad-soft: #fbeceb;
  --f-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r: 10px; --r-lg: 14px;
  --ring: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0d1017; --surface: #151924; --sunken: #1b2030; --ink: #eceef4; --ink-2: #c6cad4; --muted: #979db0;
  --line: #262b3a; --line-2: #343a4c;
  --accent: #7ea4ff; --accent-2: #a68bff; --accent-ink: #0b0e18; --accent-soft: #1a2142; --accent-line: #334179;
  --good: #6fcf9b; --good-soft: #12261b; --warn: #e5b75e; --warn-soft: #2b2312; --bad: #f08b8b; --bad-soft: #321819;
  color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 var(--f-sans); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
code, kbd, .mono { font-family: var(--f-mono); font-size: .9em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
@media (max-width: 480px) { .wrap { padding-inline: 16px; } }
.eyebrow { font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 500 14px/1 var(--f-sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 9px; padding: 10px 15px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: border-color .15s, background .15s; }
.btn:hover { border-color: var(--ink-2); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn.accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.accent:hover { filter: brightness(1.08); }
.btn.outline { background: var(--surface); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--sunken); }
.btn.lg { padding: 13px 20px; font-size: 15px; border-radius: 10px; }
.btn.sm { padding: 7px 11px; font-size: 13px; border-radius: 8px; }
.btn.xs { padding: 5px 9px; font-size: 12px; border-radius: 7px; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
.icon-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 9px; cursor: pointer; }
.icon-btn:hover { border-color: var(--line-2); color: var(--ink); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn .moon { display: none; }
:root[data-theme="dark"] .icon-btn .sun { display: none; }
:root[data-theme="dark"] .icon-btn .moon { display: block; }

/* brand: logo mark + two-tone wordmark */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -0.02em; font-size: 17px; white-space: nowrap; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand .word-2 { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; }

/* site header / footer */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; }
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.site-nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: 14px; padding: 8px 11px; border-radius: 8px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); background: var(--sunken); }
.head-tools { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .site-nav { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none; margin: 0; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; }
  .menu-btn { display: inline-grid; }
  .head-tools { margin-left: auto; }
}
@media (max-width: 520px) { .head-tools .btn { display: none; } }
.site-foot { border-top: 1px solid var(--line); padding-block: 48px 36px; margin-top: 40px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.foot-grid h4 { font-size: 13px; font-weight: 600; margin-bottom: 12px; letter-spacing: 0; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--ink); }
.foot-base { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--muted); font-size: 13px; }
.foot-base a { color: var(--ink-2); }
.creator { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.creator a { color: var(--ink); font-weight: 600; text-decoration: none; }
.creator a:hover { color: var(--accent); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
