/* ============================================================
   The Normative Foundations of Platforms — a custom subpage
   (README "Custom subpages"; owner in SUBPAGES.md).

   Hand-built, not from the site's templates. The site's fonts, icon and
   shield are reused from /assets/, not copied; the colour and type values
   below are the design system's (src/styles/ds/tokens/). Only the title
   face, Cormorant Garamond, is this page's own: it matches the title card
   on the home page. Latin subset, SIL Open Font License.
   ============================================================ */

@font-face { font-family: "General Sans"; font-weight: 400; font-display: swap; src: url("/assets/fonts/general-sans-400.woff2") format("woff2"); }
@font-face { font-family: "General Sans"; font-weight: 600; font-display: swap; src: url("/assets/fonts/general-sans-600.woff2") format("woff2"); }
@font-face { font-family: "General Sans"; font-weight: 700; font-display: swap; src: url("/assets/fonts/general-sans-700.woff2") format("woff2"); }
@font-face {
  font-family: "Geist Mono"; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/geist-mono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono"; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/geist-mono-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond"; font-weight: 500; font-display: swap;
  src: url("cormorant-garamond-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --cs-blue: #0000b2;
  --cs-magenta: #f280ff;
  --cs-ink: #121714;
  --cs-white: #ffffff;
  --cs-page: #fbfbfd;
  --font-sans: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-title: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
::selection { background: var(--cs-magenta); color: var(--cs-ink); }
body {
  margin: 0; background: var(--cs-page); color: var(--cs-ink);
  font: 400 18px/1.45 var(--font-sans); letter-spacing: -0.011em;
}
h1, h2, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cs-magenta); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 10; left: 16px; top: 12px; padding: 10px 14px; background: var(--cs-page); color: var(--cs-blue); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

/* Dark header band: the title card's look. Behind the text, a network grows
   and colonies of culture grow on it (colonies.js). */
.ws-hero { position: relative; overflow: hidden; background: #000; color: var(--cs-white); }
.ws-hero-sim { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.ws-hero-inner { position: relative; max-width: 1728px; margin: 0 auto; padding: 48px 64px 110px; }

.ws-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; margin-bottom: 64px; font-weight: 600; }
.ws-home { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.ws-home img { display: block; }
.ws-home:hover span, .ws-back:hover { text-decoration: underline; text-underline-offset: 4px; }

/* A shield behind the text column: black at 60%, feathered at the edges.
   Over the black band it is invisible; where colonies grow under the text
   it dims them so the text stays readable. */
.ws-hero-text { max-width: 900px; background: rgba(0, 0, 0, .6); box-shadow: 0 0 40px 28px rgba(0, 0, 0, .6); }
.ws-eyebrow { font: 500 20px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--cs-magenta); }
.ws-hero h1 { max-width: 15ch; margin-top: 22px; font: 500 104px/.98 var(--font-title); }

/* Labelled values: mono label in magenta, then the value. */
.ws-byline { display: flex; flex-wrap: wrap; gap: 20px 48px; margin: 40px 0 0; padding-top: 22px; border-top: 1px solid var(--cs-white); }
.ws-byline > div { display: grid; gap: 6px; }
.ws-byline dt, .ws-sec h2 { font: 700 13px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--cs-magenta); }
.ws-byline dd { margin: 0; font-size: 17px; line-height: 1.4; }
.ws-byline a { text-underline-offset: 4px; }

.ws-body { margin-top: 64px; max-width: 72ch; line-height: 1.65; }
.ws-body > * + * { margin-top: 36px; }

.ws-sec { margin-top: 72px; max-width: 900px; }
.ws-sec h2 { margin-bottom: 24px; padding-top: 22px; border-top: 1px solid var(--cs-ink); }
.ws-hero .ws-sec h2 { border-top-color: var(--cs-white); }
/* Magenta on the light ground misses the contrast minimum; blue meets it. */
.ws-page .ws-sec h2 { color: var(--cs-blue); }
.ws-prose { max-width: 72ch; line-height: 1.65; }

/* The listed sections, on the page ground: a name over a second line. */
.ws-page { max-width: 1728px; margin: 0 auto; padding: 72px 64px 140px; }
.ws-page > .ws-sec:first-child { margin-top: 0; }
.ws-people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 48px; }
.ws-people li { display: grid; gap: 4px; }
.ws-name { font-weight: 600; }
.ws-name a { color: var(--cs-blue); text-underline-offset: 4px; }
.ws-aff { font-size: 15px; line-height: 1.4; opacity: .75; }

/* The basic footer every custom subpage carries: the lab, and the way home. */
.ws-footer { background: var(--cs-ink); color: var(--cs-page); }
.ws-footer-inner { max-width: 1728px; margin: 0 auto; padding: 48px 64px; display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.ws-footer-brand { display: inline-flex; align-items: center; gap: 16px; font-weight: 600; font-size: 18px; line-height: 1.2; text-decoration: none; }
.ws-footer a:hover span, .ws-footer p a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  body { font-size: 16px; }
  .ws-hero-inner { padding: 28px 20px 64px; }
  .ws-hero-sim { opacity: .55; }
  .ws-top { margin-bottom: 44px; }
  .ws-hero h1 { font-size: 56px; }
  .ws-body { margin-top: 44px; }
  .ws-sec { margin-top: 52px; }
  .ws-page { padding: 44px 20px 90px; }
  .ws-people { grid-template-columns: 1fr; }
  .ws-footer-inner { padding: 40px 20px; }
}
