/* Inkbraid site styles — builds on tokens.css */

* { margin: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.15; }
a { color: var(--brand); }
img { max-width: 100%; height: auto; }

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

/* --- header ------------------------------------------------------------ */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 14px;
}
.site-header .logo img { height: 34px; width: auto; display: block; }
.site-nav { display: flex; gap: 28px; }
.site-nav a {
  color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.95rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brand); }

/* --- hero -------------------------------------------------------------- */
.hero { padding: 72px 0 40px; text-align: center; }
.hero .mark { max-width: 640px; margin: 0 auto 40px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.hero p.lede {
  color: var(--text-muted); font-size: 1.15rem;
  max-width: 46ch; margin: 16px auto 0;
}
.cta-row { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--brand-600); color: #fff; }
.btn-primary:hover { background: var(--brand-800); }
.btn-secondary { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }

/* --- cards ------------------------------------------------------------- */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; padding: 40px 0 80px;
}
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-l); padding: 28px 30px;
}
.card h2 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.97rem; }

/* --- coming soon / 404 ------------------------------------------------- */
.splash {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 64px 24px;
}
.splash img.icon { width: 120px; margin-bottom: 28px; }
.splash h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.splash p { color: var(--text-muted); max-width: 44ch; margin-top: 14px; }
.splash .btn { margin-top: 32px; }

/* --- footer ------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); margin-top: auto; }
.site-footer .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 22px; gap: 16px; flex-wrap: wrap;
}
.site-footer, .site-footer a { color: var(--text-muted); font-size: 0.88rem; }

/* Theme-aware logo swap: both variants are in the DOM, one is shown */
.theme-dark-only { display: none; }
[data-theme="dark"] .theme-dark-only { display: block; }
[data-theme="dark"] .theme-light-only { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-dark-only { display: block; }
  :root:not([data-theme="light"]) .theme-light-only { display: none; }
}
