/* ===== Tokens ===== */
:root {
  --ink: #0F1B2D;
  --ink-deep: #0A1220;
  --ink-raised: #16253B;
  --paper-dim: #E2DBC9;
  --paper: #EDE7D9;
  --brass: #C08A2E;
  --brass-bright: #E0A83D;
  --slate: #8CA0B8;
  --ink-text: #1B2836;
  --line-on-ink: rgba(237,231,217,0.14);
  --line-bright: rgba(192,138,46,0.55);
  --line-on-paper: rgba(15,27,45,0.14);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass-bright); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--brass);
  color: var(--ink-deep);
  padding: 8px 14px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15,27,45,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-on-ink);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--paper);
  white-space: nowrap;
}
.logo-mark { color: var(--brass); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--slate);
  transition: color 0.15s ease;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--paper); }
.nav a[aria-current="page"] { border-bottom: 1px solid var(--brass); padding-bottom: 2px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 1.5px; background: var(--paper); display: block; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 13px 26px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--brass); color: var(--ink-deep); }
.btn-primary:hover { background: var(--brass-bright); }
.btn-ghost { color: var(--paper); border: 1px solid var(--line-on-ink); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-bright); }
.btn-small { padding: 9px 18px; font-size: 0.88rem; }

/* ===== Footer ===== */
.site-footer { background: var(--ink-deep); color: var(--slate); font-size: 0.9rem; }
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line-on-ink);
}
.footer-brand p { margin: 12px 0 0; max-width: 34ch; }
.footer-founder { font-size: 0.88rem; }
.footer-founder a { color: var(--brass-bright); text-decoration: none; }
.footer-founder a:hover { text-decoration: underline; }
.footer-col h3 { font-size: 0.95rem; color: var(--paper); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--paper); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: 0.85rem; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 28px 28px;
    border-bottom: 1px solid var(--line-on-ink);
    display: none;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: flex; }
}
@media (max-width: 720px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
}