/* p(doom) standalone form pages.
   Mirrors the design system in src/styles.css so the hand-rolled pages under
   public/ and the React site read as one site. If the tokens or the .button
   rules change in src/styles.css, change them here too. */

@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("/fonts/lora-pdoom-italic-400.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --black: #0b1015;
  --black-soft: #171d22;
  --white: #f0ece3;
  --off-white: #e5e0d6;
  --muted-white: #c9c5bc;
  --steel-dark: #506777;
  --ink: #0b1015;
  --horizon: #c9b19f;
  --signal: #b7361e;
  --rule: rgba(11, 16, 21, 0.14);
  --rule-strong: rgba(11, 16, 21, 0.28);
  --muted: rgba(11, 16, 21, 0.62);
  --pure-white: #ffffff;
  --announcement-height: 0px;
  --font-mono: "IBM Plex Mono", monospace;
  --nav-height: 80px;
  --gutter: 40px;
  --container: 1600px;
  letter-spacing: 0;
}
/* the site's own breakpoints for the bar and the gutters */
@media (max-width: 1180px) { :root { --gutter: 24px; } }
@media (max-width: 900px) { :root { --nav-height: 64px; --gutter: 20px; } }
@media (max-width: 680px) { :root { --nav-height: 56px; } }

:root:has(.site-announcement) { --announcement-height: 38px; }
@media (max-width: 680px) { :root:has(.site-announcement) { --announcement-height: 48px; } }
:root.paid-announcement-dismissed { --announcement-height: 0px; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

/* The site sets no -webkit-font-smoothing, so neither do we: it thins every
   glyph and was the reason this page's text did not match pdoom.org. */
body {
  margin: 0;
  padding-top: var(--announcement-height);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--ink);
  font-family: "Instrument Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
body.menu-locked { overflow: hidden; }

button, a, input, textarea, select { font: inherit; letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
.prose a,
.fine a,
.done a { border-bottom: 1px solid currentColor; }
.prose a:hover,
.fine a:hover,
.done a:hover { color: var(--signal); }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.shell { width: min(calc(100% - (2 * var(--gutter))), var(--container)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---- announcement bar: copied from src/styles.css. Only refer.html,
   refer-terms.html and partner_stats.html carry the markup. ---- */

.site-announcement {
  position: fixed;
  inset: 0 0 auto;
  z-index: 130;
  height: var(--announcement-height);
  color: var(--pure-white);
  background: var(--signal);
  border-bottom: 1px solid rgba(11, 16, 21, 0.28);
}
html.paid-announcement-dismissed .site-announcement { display: none; }

.site-announcement a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 calc(var(--gutter) + 38px);
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
  transition: background-color 160ms ease-out;
}
.site-announcement a:hover,
.site-announcement a:focus-visible {
  background: rgba(11, 16, 21, 0.1);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.site-announcement a:focus-visible { outline-color: var(--pure-white); outline-offset: -3px; }

.site-announcement strong { font-weight: 650; font-variant-numeric: tabular-nums; }

.site-announcement button {
  position: absolute;
  top: 50%;
  right: max(7px, calc((100vw - var(--container)) / 2));
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 150ms ease-out, background-color 150ms ease-out;
}
.site-announcement button:hover,
.site-announcement button:focus-visible {
  color: var(--pure-white);
  background: rgba(11, 16, 21, 0.15);
}
.site-announcement button:focus-visible { outline-color: var(--pure-white); outline-offset: -2px; }

@media (max-width: 680px) {
  .site-announcement a { padding-inline: 44px; font-size: 12px; }
}

/* ---- header: the site-header--light treatment from src/styles.css, sticky
   rather than fixed so these pages need no top padding to clear it. The nav
   list, the dropdowns and the drawer are built by pdoom-header.js. ---- */

.site-header {
  position: sticky;
  top: var(--announcement-height);
  z-index: 100;
  height: var(--nav-height);
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  padding: 0 var(--gutter);
  color: var(--ink);
  background: rgba(240, 236, 227, 0.96);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 7px 18px rgba(11, 16, 21, 0.08);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.header-brand { display: inline-flex; width: 154px; }

.pdoom-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  line-height: 1;
  white-space: nowrap;
}
.pdoom-brand > span {
  font-family: "Lora", Georgia, serif;
  font-size: 20px;
  font-style: italic;
  font-weight: 400;
}
.pdoom-brand img { width: 38px; height: 38px; object-fit: contain; filter: none; }

.desktop-nav { display: flex; align-items: center; justify-content: flex-end; min-width: 0; }
.nav-list { display: flex; align-items: center; gap: 27px; margin: 0; padding: 0; list-style: none; }
.nav-entry { position: relative; display: flex; align-items: center; }

.nav-entry > a,
.nav-trigger {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: 16px;
  white-space: nowrap;
  cursor: pointer;
}
.nav-entry > a:hover,
.nav-trigger:hover { opacity: 0.68; }
.nav-trigger svg { transition: transform 120ms ease; }
.nav-trigger[data-state="open"] svg { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 210px;
  padding: 7px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(11, 16, 21, 0.16);
  border-radius: 6px;
  box-shadow: 0 16px 36px rgba(11, 16, 21, 0.18);
}
/* bridges the 6px gap so the pointer can travel into the panel */
.nav-dropdown::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 7px;
}
.nav-dropdown ul { margin: 0; padding: 0; list-style: none; }
.nav-dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 14px;
  outline: none;
}
.nav-dropdown a:hover,
.nav-dropdown a:focus-visible { background: rgba(115, 135, 151, 0.12); }

.nav-dropdown--grouped { width: 324px; }
.nav-dropdown-group { padding: 4px 3px 5px; }
.nav-dropdown-group + .nav-dropdown-group {
  margin-top: 5px;
  padding-top: 10px;
  border-top: 1px solid rgba(11, 16, 21, 0.13);
}
/* src/styles.css asks for var(--font-mono) here and never defines it, so on
   the site the heading falls back to the body face. Mirrored as it renders. */
.nav-dropdown-heading {
  display: block;
  padding: 3px 10px 6px;
  color: rgba(11, 16, 21, 0.55);
  font-size: 10px;
  text-transform: uppercase;
}
.nav-dropdown--grouped a { min-height: 46px; display: flex; justify-content: initial; padding: 5px 10px; }
.nav-dropdown-copy { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.nav-dropdown-copy strong { font-size: 14px; font-weight: 500; line-height: 1.2; }
.nav-dropdown-copy small {
  overflow: hidden;
  color: rgba(11, 16, 21, 0.54);
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-actions { display: flex; align-items: center; }

.menu-toggle,
.icon-button {
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 4px;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.mobile-drawer {
  position: fixed;
  inset: var(--announcement-height) 0 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
  color: var(--off-white);
  background: var(--black);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms;
}
.mobile-drawer.is-open { visibility: visible; opacity: 1; transform: translateY(0); }

.drawer-top { display: flex; align-items: center; justify-content: space-between; }
.drawer-top .pdoom-brand img { width: 40px; height: 40px; filter: none; }
.icon-button.light { display: inline-flex; }

.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: 44px;
  padding-bottom: 24px;
}
.drawer-nav-section h2 {
  margin: 0 0 22px;
  color: var(--off-white);
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
}
.drawer-nav-group + .drawer-nav-group { margin-top: 26px; }
.drawer-nav-group > span {
  display: block;
  margin-bottom: 7px;
  color: rgba(229, 224, 214, 0.46);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
}
.mobile-drawer nav a {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(229, 224, 214, 0.16);
}
.mobile-drawer nav a > span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mobile-drawer nav a strong { font-size: 18px; font-weight: 400; line-height: 1.2; }
.mobile-drawer nav a small {
  overflow: hidden;
  color: rgba(229, 224, 214, 0.48);
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-drawer nav a > svg { flex: 0 0 auto; color: var(--signal); }

@media (max-width: 1380px) {
  .site-header { grid-template-columns: 170px minmax(0, 1fr) auto; gap: 18px; }
  .desktop-nav { gap: 17px; }
  .nav-entry > a,
  .nav-trigger { font-size: 14px; }
  .header-brand { width: 145px; }
}
@media (max-width: 1180px) {
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 900px) { .header-brand { width: 140px; } }
@media (max-width: 680px) { .header-brand { width: 125px; } }

/* ---- the button component, copied from src/styles.css ---- */

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.button svg { flex: 0 0 auto; transition: transform 200ms ease-out; }
.button:hover svg,
.button:focus-visible svg { transform: translateX(4px); }

/* On the site's light ground a primary button is ink, and hovers to signal.
   Matches .ready-card .button--primary and the careers apply CTA. */
.button--primary {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}
.button--primary:hover:not(:disabled),
.button--primary:focus-visible:not(:disabled) {
  background: var(--signal);
  border-color: var(--signal);
}
/* the arrow is signal at rest, then folds into the label colour on hover */
.button--primary svg { color: var(--signal); }
.button--primary:hover:not(:disabled) svg,
.button--primary:focus-visible:not(:disabled) svg { color: currentColor; }
.button:disabled { opacity: 0.5; cursor: default; }
.button:disabled svg { transform: none; }

/* ---- page body ---- */

main { flex: 1 0 auto; padding: clamp(44px, 5vw, 76px) 0 clamp(70px, 8vw, 110px); }

.layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; gap: 30px; } }

.kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--steel-dark);
  margin: 0 0 18px;
}
/* the site tracks every heading at 0 and sizes body copy the way
   .career-detail-prose does */
h1 {
  margin: 0;
  font-size: clamp(42px, 5.2vw, 76px);
  font-weight: 500;
  line-height: 0.95;
  text-wrap: balance;
}
/* h1 has margin:0 and line-height .95, so a lede set directly beneath it
   collided with the headline's descenders. The gap belongs here rather than on
   h1 itself, which is also used without a lede. */
h1 + .prose { margin-top: 18px; }

.prose p { font-size: clamp(18px, 1.25vw, 20px); line-height: 1.38; margin: 0; max-width: 60ch; }
.prose p + p { margin-top: 1.15em; }
.prose p.sub { color: var(--muted); }

.via {
  display: none;
  margin-top: 22px;
  padding: 12px 16px;
  border: 1px solid var(--rule);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  color: var(--muted);
}
.via b { color: var(--ink); font-weight: 500; }

/* ---- form ---- */

form { margin-top: clamp(34px, 4vw, 54px); display: flex; flex-direction: column; gap: 30px; max-width: 720px; }
/* a flex column stretches its children; the site's button is content-width */
form > .button { align-self: start; margin-top: 4px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.field .hint { font-size: 14px; color: var(--muted); margin: 0 0 12px; max-width: 58ch; }

input[type=text],
input[type=email],
textarea {
  width: 100%;
  padding: 12px 0;
  font-family: inherit;
  font-size: 17px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  border-radius: 0;
  transition: border-color 180ms ease;
}
input::placeholder, textarea::placeholder { color: rgba(11, 16, 21, 0.34); }
input:focus, textarea:focus { outline: none; border-bottom-color: var(--signal); }
input:focus-visible, textarea:focus-visible { outline: none; outline-offset: 0; }
textarea { min-height: 140px; resize: vertical; line-height: 1.5; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.err {
  display: none;
  margin-top: 26px;
  padding: 13px 16px;
  border: 1px solid var(--signal);
  border-radius: 5px;
  color: var(--signal);
  font-size: 15px;
  max-width: 720px;
}

.fine { margin-top: clamp(40px, 5vw, 64px); font-size: 14px; color: var(--muted); max-width: 62ch; }

.done { max-width: 640px; }
.done h2 {
  font-size: clamp(30px, 2.6vw, 42px);
  font-weight: 500;
  line-height: 1;
  margin: 0 0 18px;
}
.done p { font-size: clamp(18px, 1.25vw, 20px); line-height: 1.38; color: var(--muted); margin: 0 0 12px; max-width: 56ch; }

/* ---- footer: the site's own footer, copied from src/styles.css ---- */

.footer-canvas {
  flex: 0 0 auto;
  display: flow-root;
  background: var(--white);
}

.site-footer {
  position: relative;
  width: calc(100% - 64px);
  min-height: 800px;
  display: grid;
  grid-template-columns: 5fr 7fr;
  grid-template-rows: 1fr auto;
  margin: 0 32px 32px;
  overflow: hidden;
  border-radius: 4px;
  color: var(--white);
  background: var(--black);
  isolation: isolate;
}

.footer-backdrop {
  position: absolute;
  inset: -6%;
  z-index: -2;
  width: 112%;
  height: 112%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  opacity: 0.82;
  filter: grayscale(1) saturate(0) brightness(0.48) contrast(1.08);
  transform: translate3d(0, -36px, 0) scale(1.08);
  will-change: transform;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(11, 16, 21, 0.28);
}

.footer-wordmark {
  display: flex;
  align-items: flex-end;
  padding: 30px;
  border-right: 1px solid rgba(115, 135, 151, 0.5);
}
.footer-wordmark img { width: min(100%, 760px); }

.footer-wordmark .pdoom-brand {
  width: 100%;
  max-width: 680px;
  gap: clamp(16px, 1.5vw, 28px);
  align-items: center;
}
.footer-wordmark .pdoom-brand img { width: clamp(110px, 27%, 180px); height: auto; filter: none; }
.pdoom-brand--large > span { font-size: clamp(54px, 5.5vw, 90px); font-weight: 400; line-height: 0.86; }

.footer-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto auto minmax(86px, 1fr);
  align-content: start;
}

.footer-group,
.footer-legal {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-bottom: 1px solid rgba(115, 135, 151, 0.5);
  border-right: 1px solid rgba(115, 135, 151, 0.5);
}

.footer-group h3,
.footer-legal h3 { margin: 0 0 14px; font-size: 30px; font-weight: 400; line-height: 1.1; }

.footer-group a,
.footer-legal a,
.footer-bottom {
  color: rgba(229, 224, 214, 0.7);
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  line-height: 1.5;
  transition: color 200ms ease;
}
.footer-group a:hover,
.footer-legal a:hover { color: var(--horizon); }

.footer-legal { grid-column: 1 / -1; min-height: 220px; }
.footer-legal > div { display: flex; flex-direction: column; }

.footer-sprind { display: block; width: max-content; }
.footer-sprind:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.footer-sprind img {
  display: block;
  width: 104px;
  height: auto;
  opacity: 0.7;
  filter: invert(1);
  transition: opacity 180ms ease;
}
.footer-sprind:hover img { opacity: 1; }

.footer-backing {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  min-height: 86px;
  padding: 20px 28px;
  border-right: 1px solid rgba(115, 135, 151, 0.5);
}

.footer-bottom {
  grid-column: 1 / -1;
  min-height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 0 28px;
  border-top: 1px solid rgba(115, 135, 151, 0.5);
}
.footer-bottom > span:last-child { text-align: right; }

.social-links { display: flex; gap: 14px; }
.social-links a { color: rgba(229, 224, 214, 0.64); transition: color 180ms ease; }
.social-links a:hover,
.social-links a:focus-visible { color: var(--signal); }
.social-links svg { width: 17px; height: 17px; }
.social-links span { font-family: var(--font-mono); font-size: 11px; font-weight: 500; line-height: 1; }

@media (max-width: 1180px) {
  .site-footer { grid-template-columns: 1fr; }
  .footer-wordmark {
    min-height: 360px;
    border-right: 0;
    border-bottom: 1px solid rgba(115, 135, 151, 0.5);
  }
}

@media (max-width: 680px) {
  .site-footer { width: calc(100% - 24px); min-height: 0; margin: 0 12px 12px; }
  .footer-wordmark { min-height: 300px; padding: 20px; }
  .footer-wordmark .pdoom-brand { gap: 14px; }
  .footer-wordmark .pdoom-brand img { width: 76px; }
  .footer-wordmark .pdoom-brand--large > span { font-size: 46px; }
  .footer-groups { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .footer-group { min-height: 185px; padding: 20px; }
  .footer-group h3,
  .footer-legal h3 { font-size: 23px; }
  .footer-legal { padding: 20px; }
  .footer-sprind img { width: 104px; }
  .footer-backing { min-height: 100px; padding: 20px; }
  .footer-bottom {
    min-height: 130px;
    grid-template-columns: 1fr auto;
    align-content: center;
    padding: 20px;
  }
  .footer-bottom > span:last-child { grid-column: 1 / -1; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .footer-backdrop { transform: scale(1.08); }
}

/* ---- consent checkboxes: reconsent, refer_claim ---- */

.checks { display: flex; flex-direction: column; gap: 12px; }
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 62ch;
  font-size: 15.5px;
  line-height: 1.45;
  cursor: pointer;
}
.check input { margin-top: 4px; flex: 0 0 auto; accent-color: var(--signal); }

/* ---- stat tiles and tables: partner_stats ---- */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  margin: clamp(30px, 4vw, 44px) 0 0;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 5px;
  overflow: hidden;
}
.tile { padding: 18px 20px; background: var(--white); }
.tile .k { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.tile .v {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.tile.pay .v { color: var(--signal); }

.table-scroll { overflow-x: auto; }
table { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 15px; }
th {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-align: left;
}
td { padding: 13px 12px 13px 0; border-bottom: 1px solid var(--rule); }
td.num { text-align: right; font-variant-numeric: tabular-nums; }

.sect { margin-top: clamp(38px, 5vw, 60px); }
.sect h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
}
.sect p.note { margin: 0; max-width: 62ch; font-size: 14.5px; color: var(--muted); }

.linkbox {
  margin-top: 26px;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.5);
}
.linkbox code { font-family: "IBM Plex Mono", monospace; font-size: 14.5px; word-break: break-all; }

/* ---- long-form legal copy: refer-terms ---- */

.version {
  margin: 0 0 clamp(30px, 4vw, 48px);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  color: var(--muted);
}
.doc { max-width: 68ch; }
.doc h2 {
  margin: clamp(32px, 4vw, 44px) 0 12px;
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid var(--rule);
  font-size: clamp(19px, 1.6vw, 23px);
  font-weight: 500;
}
.doc h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.doc p { margin: 0 0 14px; font-size: 16.5px; }
.doc ul { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin: 0 0 8px; font-size: 16.5px; }
.doc strong { font-weight: 600; }
.doc a { border-bottom: 1px solid currentColor; }
.doc a:hover { color: var(--signal); }
.doc .note { font-size: 15px; color: var(--muted); }
.back { display: inline-block; margin-top: clamp(40px, 5vw, 60px); font-size: 15px; color: var(--muted); }
.back:hover { color: var(--signal); }

/* ---- 404 ---- */

main:has(> .notfound) { display: grid; place-items: center; }
.notfound { display: grid; justify-items: center; text-align: center; gap: 10px; }
.notfound h1 { font-size: clamp(46px, 7vw, 96px); }
.notfound p { max-width: 46ch; font-size: clamp(17px, 1.15vw, 19px); color: var(--muted); margin: 0; }
.notfound .button { margin-top: 16px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
