/* Shared site chrome for pages outside index.html.
   Tokens match index.html so the header and footer stay the same. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #FAFAFA;
  --surface:   #FFFFFF;
  --muted:     #F3F3F3;
  --ink:       #111111;
  --ink-soft:  #5C5C5C;
  --border:    rgba(17, 17, 17, 0.1);
  --accent:    #2563EB;
  --mono:      'Fragment Mono', ui-monospace, monospace;
  --sans:      'Inter', system-ui, sans-serif;
  --serif:     'Newsreader', Georgia, serif;
  --max:       1120px;
  --radius:    12px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: rgba(37, 99, 235, 0.15); }

.container {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.nav-logo:hover { opacity: 0.7; }
.logo-mark { width: 28px; height: 28px; flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 150ms;
}

.nav-links a:hover { color: var(--ink); }

.nav-links a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: opacity 150ms, background 150ms;
  white-space: nowrap;
}

.btn:hover { opacity: 0.88; }

.btn-primary { background: var(--ink); color: #ffffff; }
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover { color: #ffffff; }
.btn-sm { padding: 8px 14px; font-size: 12px; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 36px;
}

.footer-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--ink);
  justify-self: start;
}

.footer-brand:hover { opacity: 0.7; }

.footer-legal {
  justify-self: center;
  text-align: center;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 22rem;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  justify-self: end;
}

.footer-social a {
  display: flex;
  color: var(--ink);
  opacity: 0.85;
  transition: opacity 150ms;
}

.footer-social a:hover { opacity: 0.45; }
.footer-social svg { width: 20px; height: 20px; }

.page-main { padding: 48px 0 72px; }

.page-intro { margin-bottom: 32px; max-width: 640px; }
.page-intro .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
}
.page-intro h1 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 10px;
}
.page-intro p { color: var(--ink-soft); font-size: 15px; }

@media (max-width: 900px) {
  .nav-links .hide-mobile { display: none; }
}
@media (max-width: 768px) {
  .footer-bar { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-brand, .footer-social { justify-self: center; }
}
@media (max-width: 600px) {
  .container { width: min(100% - 32px, var(--max)); }
  .nav-inner { flex-wrap: wrap; }
}
