/* Shared site shell for the home-page concepts: tokens from DESIGN.md (The Reference Atlas). */
@font-face { font-family: "Smooch Sans"; src: url(fonts/smooch-sans-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Smooch Sans"; src: url(fonts/smooch-sans-latin-ext-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "Source Serif 4"; src: url(fonts/source-serif-4-latin-opsz-italic.woff2) format("woff2"); font-style: italic; font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(fonts/source-serif-4-latin-ext-opsz-italic.woff2) format("woff2"); font-style: italic; font-weight: 200 900; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }

:root {
  --paper: #eef4f6; --paper-hover: #e2edf1;
  --ink: #16273c; --ink-2: #3c4d61; --muted: #4f6585; --notes-ink: #2c3b4d;
  --rule: #23324a; --rule-light: #c9d4dc;
  --control-tint: #dfe8ee; --control-tint-hover: #d3dfe7; --control-edge: #8fa8b8;
  --country-dot: #5b82a8; --country-dot-pale: #8ea5bb;
  --rose: #d6336c; --rose-ink: #b8245a; --rose-cloud: #e58aa8;
  --chatgpt: #10a37f; --chatgpt-ink: #0b7f63;
  --claude: #d97757; --claude-ink: #b5532f;
  --gemini: #4285f4; --gemini-ink: #1a62d6;
  --sans: "Smooch Sans", "Arial Narrow", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --gutter: clamp(16px, 2.4vw, 40px);
  --col: 1720px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: var(--col); margin: 0 auto; padding-inline: var(--gutter); }

/* Header: a printed running head, ruled below */
.site-head { border-bottom: 3px solid var(--rule); }
.site-head .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-block: 18px 14px; flex-wrap: wrap; }
.mark { text-decoration: none; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.mark b { font-weight: 800; font-size: 26px; letter-spacing: 0.26em; }
.mark i { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink-2); }
.nav { display: flex; gap: clamp(14px, 2.2vw, 36px); flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 700; font-size: 16px; letter-spacing: 0.2em; padding-block: 4px; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--ink); }

/* Primary actions: square, ink; secondary: ruled outline */
.act { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; font-weight: 800; letter-spacing: 0.2em; font-size: 20px; padding: 16px 24px; border: 3px solid var(--rule); background: var(--ink); color: var(--paper); transition: background .2s, color .2s; }
.act:hover { background: var(--ink-2); }
.act.alt { background: transparent; color: var(--ink); }
.act.alt:hover { background: var(--paper-hover); }
.act svg { width: 22px; height: 22px; flex: none; }

/* Notes and colophon */
.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); border-top: 3px solid var(--rule); margin-top: 56px; }
.notes > div { padding: 28px 28px 28px 0; }
.notes > div + div { border-left: 1px solid var(--rule-light); padding-left: 28px; }
.notes h3 { margin: 0 0 10px; font-size: 20px; letter-spacing: 0.2em; font-weight: 700; }
.notes p { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(17px, 1.05vw, 19px); line-height: 1.5; color: var(--notes-ink); max-width: 62ch; }
.colophon { border-top: 1px solid var(--rule-light); }
.colophon .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: 22px 40px; font-size: 15px; letter-spacing: 0.16em; font-weight: 700; color: var(--ink-2); }
.colophon i { font-family: var(--serif); font-style: italic; letter-spacing: 0; font-weight: 400; font-size: 15px; }
.colophon nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: baseline; }

@media (max-width: 900px) {
  .site-head .wrap { flex-direction: column; gap: 10px; }
  .mark b { font-size: 22px; }
  .nav a { font-size: 14px; letter-spacing: 0.16em; }
  .notes > div, .notes > div + div { border-left: 0; padding: 22px 0; border-top: 1px solid var(--rule-light); }
  .act { font-size: 17px; padding: 14px 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
