/* The site's kit, loaded before every page's own stylesheet: the only file that names a colour. */

:root {
  color-scheme: light dark;
  --page: #ebebeb;
  --block: #ffffff;
  --warm: #d8d2cf;
  --ink: #141414;
  --muted: #5c5c5c;
  --line: #e2e2e2;
  --gold: #c8a24a;
  --gold-text: #8a6d24;
  --nav-h: 72px;
  --gutter: 24px;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0f0f0f;
    --block: #1c1c1c;
    --warm: #2a2725;
    --ink: #f2f2f2;
    --muted: #a3a3a3;
    --line: #2c2c2c;
    --gold: #d6b25a;
    --gold-text: #e2c47a;
  }
}

* { box-sizing: border-box; }
/* anchors land below the sticky nav */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px; border-radius: 26px; border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--block); font-size: 17px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.pill:hover { opacity: 0.88; }
.pill.ghost { min-height: 48px; padding: 0 24px; background: none; color: var(--ink); font-size: 16px; font-weight: 400; }
.pill.ghost:hover { opacity: 1; background: var(--surface, var(--page)); }
.pill.sm { min-height: 44px; padding: 0 22px; font-size: 16px; }

nav.top { position: sticky; top: 0; z-index: 10; background: var(--block); border-bottom: 1px solid var(--line); }
nav.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; min-height: var(--nav-h); padding-top: 14px; padding-bottom: 14px; }
.brand { font-size: 24px; font-weight: 500; letter-spacing: -0.5px; color: var(--ink); text-decoration: none; }
nav.top .links { display: flex; flex-wrap: wrap; gap: 8px 28px; flex-grow: 1; font-size: 16px; }
nav.top .links a { color: var(--ink); text-decoration: none; }
nav.top .links a:hover, nav.top .links a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
nav.top .right { margin-left: auto; display: flex; gap: 20px; align-items: center; }
.lang { display: flex; align-items: center; gap: 4px; font-size: 15px; color: var(--muted); }
.lang a { display: inline-grid; place-items: center; min-width: 28px; min-height: 36px; color: inherit; text-decoration: none; }
.lang a:hover, .lang a[aria-current] { color: var(--ink); }

footer { border-top: 1px solid var(--line); }
footer .wrap {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 28px;
  padding-top: 40px; padding-bottom: 48px; font-size: 15px; color: var(--muted);
}
footer .col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
footer .brand { font-size: 20px; }
footer a { color: inherit; text-decoration: none; }
footer a:hover, footer a[aria-current="page"] { color: var(--ink); }

/* phones: the links take their own row under the brand, and the bar scrolls away */
@media (max-width: 720px) {
  :root { --nav-h: 0px; --gutter: 16px; }
  nav.top { position: static; }
  nav.top .wrap { gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; }
  nav.top .links { order: 3; flex-basis: 100%; gap: 4px 16px; font-size: 15px; }
  nav.top .links a { padding: 6px 0; }
  nav.top .right { gap: 12px; }
}
