/* Shared foundation, container, navigation, and footer for every public page. */
:root {
  color-scheme: light dark;
  --site-width: 1480px;
  --site-gutter: clamp(20px, 4vw, 48px);
  --article-width: 76ch;
  --bg: #fff;
  --surface: #f5f5f5;
  --ink: #050505;
  --muted: #666;
  --line: #d9d9d9;
  --accent: #2962ff;
  --footer: #050505;
  --footer-ink: #fff;
  --footer-muted: #999;
  --focus: rgba(41, 98, 255, .3);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #080808;
    --surface: #141414;
    --ink: #f5f5f5;
    --muted: #b0b0b0;
    --line: #303030;
    --accent: #7b9cff;
    --footer: #030303;
    --footer-muted: #b0b0b0;
    --focus: rgba(77, 120, 255, .35);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); font-family: Inter, Helvetica, Arial, sans-serif; scroll-behavior: smooth; scrollbar-gutter: stable; }
body, h1, h2, p { margin: 0; }
body { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
section[id], article[id] { scroll-margin-top: 1rem; }
.site-container {
  width: 100%;
  max-width: var(--site-width);
  margin-inline: auto;
  padding-inline: var(--site-gutter);
}
main.site-container { flex: 1; padding-block: 64px 80px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--accent); color: white; padding: .8rem; z-index: 10; }
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  padding-block: 24px;
  gap: 24px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .55rem; font-size: 1.55rem; font-weight: 650; letter-spacing: -.04em; }
.mark { display: inline-block; width: 12px; height: 21px; background: var(--accent); transform: skew(-10deg); }
.nav { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 13px; font-weight: 700; line-height: 1.5; text-transform: uppercase; letter-spacing: .02em; }
.nav a { padding-block: 6px; }
.footer { background: var(--footer); color: var(--footer-ink); padding-block: 40px; }
.footer-inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start; }
.footer-inner > div { min-width: 0; }
.footer h2 { display: flex; align-items: center; gap: 8px; min-height: 26px; margin: 0 0 18px; font-size: 13px; line-height: 1.4; }
.footer-brand h2 { font-size: 20px; letter-spacing: -.04em; }
.footer .mark { width: 10px; height: 18px; flex-shrink: 0; }
.footer p, .footer li { color: var(--footer-muted); font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li + li { margin-top: 4px; }
.footer-quote { display: inline-flex; margin-top: 16px; padding: 9px 14px; border: 1px solid #555; color: var(--footer-ink); font-size: 14px; line-height: 1.5; }
.footer-quote:hover { color: var(--footer-ink); border-color: var(--footer-muted); background: #1a1a1a; }
.footer-bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; border-top: 1px solid #303030; padding-top: 20px; }
.footer-bottom p { font-size: 13px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--footer-muted); font-size: 14px; line-height: 1.6; }
.footer .behind-name { margin-top: 16px; max-width: 38ch; }
.footer .behind-name summary { width: fit-content; cursor: pointer; color: var(--footer-ink); font-size: 14px; line-height: 1.6; }
.footer .behind-name summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer .behind-name summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.footer .behind-name p { margin-top: 12px; font-size: 15px; line-height: 1.7; color: #bdbdbd; }
@media (max-width: 760px) {
  main.site-container { padding-block: 40px 56px; }
  .header { min-height: 0; flex-direction: column; align-items: flex-start; gap: 16px; }
  .nav { gap: 6px 18px; font-size: 12px; }
  .footer { padding-block: 32px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
