/* Northing — site styles
   No build step, no dependencies. Edit directly. */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --surface: rgba(9, 12, 20, 0.035);
  --surface-hover: rgba(9, 12, 20, 0.06);
  --border: rgba(9, 12, 20, 0.10);
  --border-strong: rgba(9, 12, 20, 0.18);
  --text: #14161a;
  --text-muted: #5c626d;
  --text-faint: #8a909b;
  --accent: #2C4AE0;
  --accent-soft: rgba(44, 74, 224, 0.10);
  --shadow: 0 1px 2px rgba(9, 12, 20, 0.06), 0 12px 32px rgba(9, 12, 20, 0.07);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1060px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d11;
    --bg-soft: #101319;
    --surface: rgba(255, 255, 255, 0.045);
    --surface-hover: rgba(255, 255, 255, 0.075);
    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.20);
    --text: #f1f3f6;
    --text-muted: #9aa1ad;
    --text-faint: #6f7684;
    --accent: #6A90FF;
    --accent-soft: rgba(106, 144, 255, 0.14);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.36);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 620;
  letter-spacing: -0.015em;
  font-size: 16px;
}

.brand .mark {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  color: var(--text-muted);
}

.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); }

/* ---------- Type ---------- */

h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.15; margin: 0; font-weight: 650; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.015em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.lede { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--text-muted); line-height: 1.55; }
.muted { color: var(--text-muted); }
.small { font-size: 0.92rem; }

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--text-faint);
  margin: 0 0 14px;
}

section { padding: 72px 0; }
section + section { border-top: 1px solid var(--border); }

.section-head { max-width: 620px; margin-bottom: 36px; }
.section-head p { color: var(--text-muted); margin-top: 12px; }

/* ---------- Hero ---------- */

.hero { padding: clamp(72px, 12vw, 128px) 0 clamp(56px, 8vw, 88px); }
.hero-inner { max-width: 760px; }
.hero h1 { margin-bottom: 22px; }
.hero .lede { max-width: 620px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 560;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }

.btn-ghost { border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface); }

/* ---------- App grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.card {
  display: block;
  position: relative;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

a.card:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }

.app-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  flex: none;
  object-fit: contain;
}

.app-icon.placeholder {
  display: grid;
  place-items: center;
  font-weight: 650;
  font-size: 20px;
  color: #fff;
  letter-spacing: -0.02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.icon-vela { background: linear-gradient(150deg, #2f7cf6, #6f4ff0); }
.icon-recall { background: linear-gradient(150deg, #17a06a, #0f7f8c); }

.card h3 { margin-bottom: 3px; }

.card p { color: var(--text-muted); font-size: 0.96rem; }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-faint);
}

.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  font-size: 0.74rem;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  white-space: nowrap;
}

.tag-accent { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: var(--accent-soft); }

/* ---------- Feature list ---------- */

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.cols h3 { margin-bottom: 8px; }
.cols p { color: var(--text-muted); font-size: 0.97rem; }

.rule-list { list-style: none; margin: 0; padding: 0; }
.rule-list li {
  padding: 16px 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 24px;
}
.rule-list li:last-child { border-bottom: 1px solid var(--border); }
.rule-list strong { font-weight: 600; }
.rule-list span { color: var(--text-muted); font-size: 0.97rem; }

@media (max-width: 640px) {
  .rule-list li { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- App page ---------- */

.app-hero { padding: clamp(52px, 8vw, 88px) 0 44px; }
.app-hero-inner { display: flex; align-items: flex-start; gap: 26px; flex-wrap: wrap; }
.app-hero .app-icon { width: 96px; height: 96px; border-radius: 22px; }
.app-hero .app-icon.placeholder { font-size: 36px; }
.app-hero-text { flex: 1 1 340px; }
.app-hero h1 { font-size: clamp(1.9rem, 4.4vw, 2.7rem); margin-bottom: 12px; }

.backlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.backlink:hover { color: var(--text); }

.note {
  border-left: 2px solid var(--accent);
  padding: 2px 0 2px 16px;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.spec {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec div { background: var(--bg); padding: 18px 20px; }
.spec dt { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); margin-bottom: 6px; }
.spec dd { margin: 0; font-size: 0.97rem; }

/* ---------- Timeline ---------- */

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.timeline li:last-child { border-bottom: 1px solid var(--border); }
.timeline .when { color: var(--text-faint); font-size: 0.88rem; font-variant-numeric: tabular-nums; padding-top: 2px; }
.timeline .what strong { font-weight: 600; }
.timeline .what p { color: var(--text-muted); font-size: 0.95rem; margin: 4px 0 0; }

@media (max-width: 640px) {
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 60px;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: baseline; }
.footer a { color: var(--text-muted); border-bottom: 1px solid transparent; }
.footer a:hover { color: var(--text); border-bottom-color: var(--border-strong); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Utility ---------- */

.stack-lg > * + * { margin-top: 40px; }
.center { text-align: center; }
.max-prose { max-width: 660px; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--surface); padding: 2px 6px; border-radius: 6px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
