/* Forward's pages, in the design system approved on Nov 14, 2026 (docs/design-system-2026-11-14):
   a white page, near-black ink, one Mayo blue for links and buttons, and a pale blue tint for labels.
   Two typefaces: Newsreader at 300 and 600 stands in for Mayo Clinic Serif Display, Public Sans for
   Mayo Clinic Sans, both from /fonts. Stages show by shape, never by colour. Nothing here moves on its
   own. Trimmed on Nov 17, 2026 to the design system's own parts, when the first version's pages were
   archived; their styles are in the folder's history (the tag ptv-first-version). */
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  /* Colour: what each one is for */
  --page: #FFFFFF;          /* every page, and every card */
  --ink: #080808;           /* all text that matters */
  --quiet: #686868;         /* notes, dates, credits */
  --line: #D6D6D6;          /* hairlines and card edges */
  --fill: #F4F4F4;          /* the Invented data bar */
  --fill-strong: #EBEBEB;
  --link: #0057B8;          /* Mayo blue: links, outlined buttons, where an idea is now */
  --button: #0057B8;        /* Mayo blue as a fill: at most one filled button on a screen */
  --button-press: #004494;
  --on-button: #FFFFFF;
  --tint: #E1F0FF;          /* labels that say where a sheet stands: Not binding, With Legal */
  --on-tint: #080808;
  --tint-line: #8CC5FF;
  --foot: #012D61;
  --on-foot: #FFFFFF;
  --focus: #0057B8;

  /* Type: two faces. Swap the first name in each stack when Mayo's own may be used. */
  --display: "Newsreader", "Mayo Clinic Serif Display", Georgia, serif;
  --sans: "Public Sans", "Mayo Clinic Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-heading: 700 1.25rem/1.4 var(--sans);

  /* Shape */
  --r: 8px;                 /* cards and panels */
  --r-pill: 999px;          /* buttons, labels and the one-line box */
  color-scheme: light;
}

/* Dark: Mayo's midnight. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0D0D33; --ink: #EEF0F7; --quiet: #A9AECB; --line: #2E2E66;
    --fill: #16164A; --fill-strong: #20205A;
    --link: #8CC5FF; --button: #0057B8; --button-press: #0A63CC; --on-button: #FFFFFF;
    --tint: #1B2B5E; --on-tint: #EEF0F7; --tint-line: #3B5BA0;
    --foot: #07071F; --on-foot: #EEF0F7; --focus: #8CC5FF;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #0D0D33; --ink: #EEF0F7; --quiet: #A9AECB; --line: #2E2E66;
  --fill: #16164A; --fill-strong: #20205A;
  --link: #8CC5FF; --button: #0057B8; --button-press: #0A63CC; --on-button: #FFFFFF;
  --tint: #1B2B5E; --on-tint: #EEF0F7; --tint-line: #3B5BA0;
  --foot: #07071F; --on-foot: #EEF0F7; --focus: #8CC5FF;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  font-variant-numeric: lining-nums tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}
a { color: var(--link); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

/* Every page says its data is invented. */
.invented { margin: 0; padding: 8px 24px; background: var(--fill); border-bottom: 1px solid var(--line); color: var(--quiet); font-size: 0.8rem; }
.invented strong { color: var(--ink); font-weight: 600; }

/* ---- Buttons: pill shaped. The one that moves the page on is filled Mayo blue, at most one on a
   screen; the rest are outlined in blue. ---- */
.go, .plain {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 60px; padding: 0 28px; white-space: nowrap; cursor: pointer;
  font: 600 1.05rem/1 var(--sans); border-radius: var(--r-pill);
}
.go { color: var(--on-button); background: var(--button); border: 1.5px solid var(--button); }
.go:hover { background: var(--button-press); border-color: var(--button-press); }
.plain { color: var(--link); background: transparent; border: 1.5px solid var(--link); }
.plain:hover { background: color-mix(in srgb, var(--link) 8%, transparent); }
.go:disabled, .plain:disabled { cursor: default; background: transparent; color: var(--quiet); border-color: var(--line); }
/* A press that only shows more, or leaves things as they are, reads as a link. */
.textlike { padding: 8px 4px; cursor: pointer; font: 400 1rem var(--sans); color: var(--link); background: none; border: 0; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.textlike:hover { text-decoration-thickness: 2px; }
a.plain, a.go { text-decoration: none; }

/* Labels: the pale blue tint, pill shaped. */
.label { display: inline-block; width: fit-content; max-width: 100%; padding: 4px 14px; border-radius: 1.2em; background: var(--tint); color: var(--on-tint); font: 600 0.95rem/1.45 var(--sans); }

/* Cards are white with a hairline edge and 8 px corners, never a shadow. */
.card { padding: 24px; background: var(--page); border: 1px solid var(--line); border-radius: var(--r); }

/* Forward's own header: its name, and where it sits. */
.site-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.site-name { font: 600 1.35rem/1.2 var(--display); color: var(--ink); text-decoration: none; }
.site-where { color: var(--quiet); font-size: 0.95rem; }

.page { width: min(1040px, 100% - 48px); margin: 0 auto; padding: 96px 0; }
.hero { margin: 0; font: 300 clamp(2.6rem, 1.4rem + 3.8vw, 4.25rem)/1.05 var(--display); letter-spacing: -0.012em; text-wrap: balance; }
.lead { margin: 24px 0 0; max-width: 62ch; font: 400 1.25rem/1.5 var(--sans); }

@media (max-width: 820px) {
  .page { padding: 48px 0 64px; }
  .go { width: 100%; }
}
