/* institution.css: the site house style (design/styles/institution/meta.md, decision #799, 2026-08-28).
   Load AFTER /lab2/styles.css on any page whose <body> carries class "inst". Owns the tokens, the
   Inter faces, the header/footer skin (markup stays the site's; verify-ia check 4 keeps the nav
   byte-identical), and the shared compositions (hero, proof strip, section head, ruled rows, notes,
   system cards, about strip). Page-specific composition stays in each page's own <style>.
   Extracted from index.html the day /work became the second consumer (second copy = extraction point).
   Two lab2 bleeds are reset here on purpose: `.hero h1` (Barlow Condensed uppercase) and `.btn`
   (mono, radius, offset shadow, hover transform). Any page on this module inherits both resets. */

/* Inter is on disk but lab2/styles.css does not declare it.
   DUPLICATED-IN: /writing/playbook.css (house-style section) */
@font-face { font-family: "Inter"; src: url("/lab/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/lab/assets/fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/lab/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/lab/assets/fonts/inter-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- institution tokens (design/styles/institution/meta.md) ---------- */
body.inst {
  --bg: #f4f1ea;
  --paper: #fbfaf7;
  --ink: #14202b;
  --ink-2: #35434e;
  --ink-3: #53616b;
  --muted: #5e6973;          /* corrected from the mockup's #66717b: 5.0:1 on --bg */
  --line: #cfd4d8;
  --accent: #315f7d;
  --soft: #e8eef2;
  --white: #ffffff;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shell: 1180px;           /* header, page, and footer share one width */
  --edge: 28px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}
body.inst :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 0; }

/* ---------- site header and footer, skinned to the register (markup untouched) ---------- */
body.inst .site-header { background: rgba(244, 241, 234, .94); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid var(--line); }
body.inst .site-header .bar { min-height: 0; padding-block: 22px; }
body.inst .wordmark { font-size: 15px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
body.inst .site-nav { gap: 26px; }
body.inst .site-nav a { font-family: var(--sans); font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); padding: 6px 0; }
body.inst .site-nav a:hover { color: var(--ink); }
body.inst .site-nav a[aria-current="page"] { color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
body.inst footer { border-top: 1px solid var(--line); padding: 26px 0 calc(38px + env(safe-area-inset-bottom, 0px)); color: var(--muted); }
body.inst .footer-brand strong { font-size: 13px; font-weight: 700; color: var(--ink); }
body.inst .footer-brand span { font-size: 12px; color: var(--muted); }
body.inst .footer-nav a { font-size: 13px; color: var(--muted); }
body.inst .footer-nav a:hover { color: var(--ink); text-decoration: none; }
body.inst .fine-print { font-size: 12px; color: var(--muted); }

/* ---------- page frame ---------- */
.inst { max-width: var(--shell); margin-inline: auto; padding-inline: var(--edge); }
.inst h1, .inst h2, .inst h3 { margin: 0; font-family: var(--sans); font-weight: 700; text-transform: none; color: var(--ink); }
.inst p { margin: 0; }
.inst a { color: inherit; }
.inst a:hover { text-decoration: none; }
.inst [id] { scroll-margin-top: 80px; }
.inst .kicker { margin: 0 0 18px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--accent); }
.inst .section-no { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); padding-top: 8px; }
.inst .figure-label { display: flex; justify-content: space-between; gap: 20px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.inst .ord { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.inst .result { margin-top: 30px; padding-top: 17px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; line-height: 1.5; color: var(--accent); }
.inst .read { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: none; }
.inst .read:hover { text-decoration: underline; text-underline-offset: 3px; }
.inst .read .icon-arrow { width: 14px; height: 14px; flex: none; }
.inst .btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.inst .btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 12px 16px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--white); text-decoration: none;
  font-family: var(--sans); font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: 0; text-transform: none;
  border-radius: 0; box-shadow: none; transform: none; transition: none;
}
.inst .btn:hover, .inst .btn:active { transform: none; box-shadow: none; }
.inst .btn.alt { background: transparent; color: var(--ink); }
.inst .btn.alt:hover { background: var(--soft); }
.inst .btn .icon-arrow { width: 16px; height: 16px; flex: none; }

/* ---------- hero: typography left, ruled side note right ---------- */
.inst .hero { display: grid; grid-template-columns: 1.35fr .65fr; gap: 56px; padding: 86px 0 56px; }
.inst .hero > * { min-width: 0; }
.inst h1 { max-width: 820px; font-size: clamp(48px, 7vw, 90px); line-height: .96; letter-spacing: -.055em; }
.inst .hero-deck { margin-top: 28px; max-width: 730px; font-size: 20px; line-height: 1.55; color: var(--ink-2); }
.inst .hero-deck + .hero-deck { margin-top: 14px; }
.inst .hero-side { align-self: end; margin-bottom: 8px; }
.inst .inquiry { border-left: 1px solid var(--line); padding-left: 24px; }
.inst .note-label { display: block; margin-bottom: 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.inst .inquiry .q { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.inst .inquiry .a { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* ---------- proof strip: four figures on hairlines ---------- */
.inst .proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0 0 92px; padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.inst .proof li { min-width: 0; }
.inst .proof li + li { border-left: 1px solid var(--line); }
.inst .proof a { display: flex; flex-direction: column; gap: 5px; height: 100%; min-height: 112px; padding: 24px 22px 24px 0; text-decoration: none; }
.inst .proof li + li a { padding-left: 22px; }
.inst .proof .fig { font-size: 29px; font-weight: 700; letter-spacing: -.035em; line-height: 1.15; color: var(--ink); }
.inst .proof .cap { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; line-height: 1.4; color: var(--muted); }
.inst .proof .cap b { font-weight: 700; color: var(--ink); }
.inst .proof a:hover .fig { color: var(--accent); }

/* ---------- sections ---------- */
.inst .section { padding: 0 0 94px; }
.inst .section-head { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 38px; align-items: start; margin-bottom: 28px; }
.inst .section-head h2 { max-width: 700px; font-size: 38px; line-height: 1.05; letter-spacing: -.04em; }
.inst .section-head .deck-line { grid-column: 2; max-width: 640px; margin-top: 14px; font-size: 16px; color: var(--ink-3); }

/* theses: ruled rows, mono ordinal */
.inst .theses { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.inst .thesis { display: grid; grid-template-columns: 90px minmax(0, 1fr) 170px; gap: 30px; align-items: start; padding: 29px 0; border-bottom: 1px solid var(--line); }
.inst .thesis .section-no { padding-top: 4px; font-family: var(--mono); font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--accent); }
.inst .thesis h3 { margin-bottom: 8px; font-size: 25px; line-height: 1.15; letter-spacing: -.025em; }
.inst .thesis p { max-width: 720px; color: var(--ink-3); }
.inst .thesis .read { justify-self: end; margin-top: -12px; text-align: right; }

/* field notes: feature note beside a two-note stack */
.inst .notes-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 20px; }
.inst .board, .inst .plate { display: flex; flex-direction: column; justify-content: space-between; background: var(--paper); border: 1px solid var(--line); text-decoration: none; }
.inst .board:hover, .inst .plate:hover { border-color: var(--ink); }
.inst .board { min-height: 420px; padding: 34px; }
.inst .board h3 { margin: 48px 0 16px; max-width: 720px; font-size: 43px; line-height: 1.02; letter-spacing: -.045em; }
.inst .board p { max-width: 680px; font-size: 16px; color: var(--ink-3); }
.inst .board-foot { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }
.inst .board-foot .source { color: var(--ink-3); }
.inst .note-stack { display: grid; gap: 20px; }
.inst .plate { min-height: 200px; padding: 26px; }
.inst .plate h3 { margin-top: 26px; font-size: 24px; line-height: 1.1; letter-spacing: -.03em; }
.inst .plate p { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-3); }
.inst .plate .read { margin-top: 18px; }
.inst .all-notes { margin-top: 28px; }

/* systems: paper cards with a 3px ink top rule */
.inst .systems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.inst .system { display: flex; flex-direction: column; justify-content: space-between; min-height: 330px; padding: 24px; border-top: 3px solid var(--ink); background: var(--paper); }
.inst .system h3 { margin: 20px 0 10px; font-size: 28px; line-height: 1.1; letter-spacing: -.035em; }
.inst .system p { color: var(--ink-3); }
.inst .system .read { margin-top: 10px; }
.inst .fleet-aside { max-width: 690px; margin-top: 36px; font-size: 15px; color: var(--ink-3); }
.inst .fleet-aside a, .inst .about-strip a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.inst .fleet-aside a:hover, .inst .about-strip a:hover { text-decoration: underline; text-decoration-color: var(--accent); }

/* about strip */
.inst .about-strip { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; padding: 44px 0 70px; border-top: 1px solid var(--line); }
.inst .about-strip h2 { font-size: 34px; line-height: 1.1; letter-spacing: -.04em; }
.inst .about-strip p { max-width: 580px; font-size: 16px; color: var(--ink-3); }
.inst .about-strip p + p { margin-top: 16px; }

@media (prefers-reduced-motion: reduce) {
  html:has(body.inst) { scroll-behavior: auto; }
}

/* ---------- breakpoints ---------- */
@media (max-width: 900px) {
  .inst .hero, .inst .notes-grid, .inst .about-strip, .inst .systems { grid-template-columns: minmax(0, 1fr); }
  .inst .hero { gap: 40px; }
  .inst .hero-side { margin-bottom: 0; }
  .inst .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inst .proof li:nth-child(3) { border-left: 0; }
  .inst .proof li:nth-child(3) a { padding-left: 0; }
  .inst .proof li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .inst .section-head { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .inst .section-head .deck-line { grid-column: auto; }
  .inst .section-no { padding-top: 0; }
  .inst .thesis { grid-template-columns: 76px minmax(0, 1fr); gap: 20px; }
  .inst .thesis .read { grid-column: 2; justify-self: start; margin-top: 0; text-align: left; }
  .inst .board { min-height: 0; }
  .inst .about-strip { gap: 28px; }
}
@media (max-width: 640px) {
  body.inst { --edge: 18px; }
  .inst .hero { padding-top: 58px; }
  .inst h1 { font-size: 48px; }
  .inst .hero-deck { font-size: 17px; }
  .inst .proof { grid-template-columns: minmax(0, 1fr); }
  .inst .proof li, .inst .proof li + li, .inst .proof li:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .inst .proof li:first-child { border-top: 0; }
  .inst .proof li a, .inst .proof li + li a { padding-left: 0; }
  .inst .section { padding-bottom: 72px; }
  .inst .board { padding: 26px 22px; }
  .inst .board h3 { font-size: 34px; }
  .inst .system { min-height: 0; }
}
