/* The landing pages only (/, /privacy/, /404.html). Theme tokens, fonts, the cursor and the
   consent banner are in base.css, shared with the blog. Base rules follow Landing.dc.html (from
   1100 px wide); up to 1099 px the columns fold into one; up to 640 px LandingMobile.dc.html. */

:root {
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --head: "Martian Mono", ui-monospace, monospace;
  /* Side padding: 96 px at 1440 px (content 1248 px), easing to 48 px at 1100 px. */
  --gutter: clamp(48px, calc(14.12vw - 107.3px), 96px);
  /* Content never wider than 1248 px, centred; backgrounds and rules stay full width. */
  --pad-x: max(var(--gutter), calc((100% - 1248px) / 2));
}

/* ---- Base ---------------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
}

a {
  color: inherit;
}

a:hover {
  color: var(--ink);
}

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

code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--code);
  color: var(--fg);
}

.site-header,
.hero,
.points,
.labs,
.join,
.site-footer,
.policy,
.notfound {
  padding-inline: var(--pad-x);
}

.accent {
  color: var(--ink);
}

.dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fill);
}

.dot-ok {
  background: var(--ok);
}

.dot-bad {
  background: var(--bad);
}

.button-fill,
.button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}

.button-fill {
  background: var(--fill);
  color: var(--on-fill);
  font-weight: 600;
}

.button-fill:hover {
  color: var(--on-fill);
}

.button-outline {
  border: 1px solid var(--line3);
  color: var(--fg);
  font-weight: 500;
}

/* ---- Header -------------------------------------------------------------------------------- */

.site-header {
  flex-shrink: 0;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--fg);
  font-family: var(--head);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

.logo:hover {
  color: var(--fg);
}

.logo-cursor {
  display: inline-block;
  width: 10px;
  height: 20px;
  background: var(--fill);
}

.theme-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.theme-toggle:hover {
  color: var(--ink);
}

/* The icon shows what a click switches to; the same three selectors as the tokens in base.css. */
.theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun {
    display: block;
  }

  :root:not([data-theme="light"]) .theme-toggle .icon-moon {
    display: none;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 15px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
}

.site-nav .nav-join {
  height: 44px;
  padding: 0 18px;
  color: var(--fg);
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-join-short {
  display: none;
}

/* ---- Hero ---------------------------------------------------------------------------------- */

.hero {
  display: grid;
  /* 584 px beside 600 px of text at 1440 px; never under 528 px, the terminal's longest line. */
  grid-template-columns: minmax(0, 1fr) minmax(528px, 46.8%);
  gap: 64px;
  align-items: center;
  padding-block: 88px 96px;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 24px 24px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-title {
  margin: 0;
  font-family: var(--head);
  /* 54 px at 1440 px, 42 px at 1100 px: "Your terminal." has to fit the text column. */
  font-size: clamp(42px, calc(3.53vw + 3.2px), 54px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero-lede {
  margin: 0;
  max-width: 540px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 8px;
}

.hero-cta .button-fill {
  height: 52px;
  padding: 0 24px;
  font-size: 16px;
}

.hero-note {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.incident {
  position: relative;
  z-index: 2;
  width: 340px;
  margin: 0 0 -22px -40px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line3);
  border-radius: 12px;
  box-shadow: 0 20px 50px var(--shadow);
}

.incident-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.incident-state {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
}

.incident-time {
  color: var(--muted);
}

.incident-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

.incident-meta {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

/* ---- Terminal: dark in both themes --------------------------------------------------------- */

.terminal {
  align-self: stretch;
  margin: 0;
  border: 1px solid var(--tborder);
  border-radius: 12px;
  background: #0a0b09;
  box-shadow: 0 30px 80px var(--shadow);
  overflow: hidden;
}

.terminal-bar {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid #1f201d;
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border: 1px solid #3a3b36;
  border-radius: 50%;
}

.terminal-title {
  margin-left: auto;
  color: #8a877e;
  font-family: var(--mono);
  font-size: 12px;
}

.term {
  display: flex;
  flex-direction: column;
  color: #ece9e1;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 24px;
}

.term > div {
  min-height: 24px;
  white-space: pre;
}

.terminal .term {
  padding: 20px 24px 24px;
}

.t-prompt {
  color: #8a877e;
}

.t-out {
  color: #a29f95;
}

.t-ok {
  color: #7ddc8f;
}

.t-bad {
  color: #ff6b5b;
}

.t-warn {
  color: #ffb02e;
}

.term-cursor {
  display: inline-block;
  width: 9px;
  height: 18px;
  vertical-align: -3px;
  background: #ece9e1;
}

/* ---- Alert ticker (aria-hidden; the list is in the markup twice for a seamless loop) -------- */

@keyframes fmp-tick {
  to {
    transform: translateX(-50%);
  }
}

.ticker {
  height: 48px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg2);
}

.ticker-track {
  flex: none;
  display: flex;
  gap: 56px;
  padding-right: 56px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: fmp-tick 70s linear infinite;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ticker-state {
  color: var(--fg);
}

/* ---- Three points -------------------------------------------------------------------------- */

.points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  padding-block: 88px 24px;
}

.point {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.point-num {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
}

.point h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.point p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

/* ---- Labs ---------------------------------------------------------------------------------- */

.labs {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-block: 72px 104px;
}

.section-title {
  margin: 0;
  font-family: var(--head);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.lab {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line2);
  border-radius: 12px;
  background: var(--panel);
}

.lab-tags {
  display: flex;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tag {
  padding: 4px 8px;
  border: 1px solid var(--line3);
  border-radius: 6px;
  color: var(--fg);
}

.tag-muted {
  color: var(--muted);
}

.lab h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.lab-text {
  flex-grow: 1;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.lab-learn {
  margin: 0;
  padding-top: 16px;
  border-top: 1px dashed var(--line2);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
}

/* ---- Waitlist ------------------------------------------------------------------------------ */

.join {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 560px;
  gap: 96px;
  align-items: start;
  padding-block: 104px;
  border-top: 1px solid var(--line);
}

.join-intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 8px;
}

.join-title {
  margin: 0;
  font-family: var(--head);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.join-lede {
  margin: 0;
  max-width: 440px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}

.join-form {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.waitlist,
.waitlist-sent {
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: 14px;
}

.waitlist {
  --form-gap: 20px;
  display: flex;
  flex-direction: column;
  gap: var(--form-gap);
  padding: 32px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 14px;
  font-weight: 600;
}

.field-label-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.control {
  width: 100%;
  margin: 0;
  border: 1px solid var(--line3);
  border-radius: 8px;
  background: var(--input);
  color: var(--fg);
  font: 16px var(--sans);
}

input.control,
select.control {
  height: 48px;
  padding: 0 14px;
}

select.control {
  padding-right: 40px;
  appearance: none;
  -webkit-appearance: none;
}

textarea.control {
  display: block;
  padding: 12px 14px;
  line-height: 1.5;
  resize: vertical;
}

.control[aria-invalid="true"] {
  border-color: var(--bad);
}

.select-wrap {
  position: relative;
}

.select-chevron {
  position: absolute;
  top: 16px;
  right: 14px;
  color: var(--muted);
  pointer-events: none;
}

.counter {
  align-self: flex-end;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 12px;
}

.consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  cursor: pointer;
}

.consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--fill);
}

.consent input[aria-invalid="true"] {
  outline: 2px solid var(--bad);
  outline-offset: 1px;
}

/* Focus still reads as focus on a checkbox that carries the red error outline. */
.consent input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.consent a {
  color: var(--fg);
}

.consent a:hover {
  color: var(--ink);
}

.field-error {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--bad);
  font-size: 14px;
}

.field-error svg {
  flex-shrink: 0;
}

/* Under the checkbox the message lines up with the label text, without the icon. */
.field-error-consent {
  display: block;
  margin-left: 32px;
  line-height: 1.5;
}

/* Reserves the widget's 300 x 65 so the button does not jump when Turnstile draws. */
.cf-turnstile {
  min-height: 65px;
}

.submit {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  background: var(--fill);
  color: var(--on-fill);
  font: 600 16px var(--sans);
  cursor: pointer;
}

/* Disabled until waitlist.js runs: without JavaScript the form cannot send. */
.submit:disabled {
  cursor: default;
  opacity: 0.6;
}

.waitlist[aria-busy="true"] .field,
.waitlist[aria-busy="true"] .cf-turnstile {
  opacity: 0.6;
}

.waitlist[aria-busy="true"] .cf-turnstile {
  pointer-events: none;
}

.waitlist[aria-busy="true"] .submit {
  opacity: 0.75;
  cursor: wait;
}

@keyframes fmp-spin {
  to {
    transform: rotate(360deg);
  }
}

.fmp-spin {
  animation: fmp-spin 0.8s linear infinite;
}

.status {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* The <noscript> fallback has no icon beside it, so it renders as one paragraph, not flex columns. */
noscript .status {
  display: block;
}

/* Kept in the page (a live region must exist before it speaks) but takes no room when empty. */
.status:empty {
  margin-top: calc(-1 * var(--form-gap));
}

.status-error {
  color: var(--bad);
}

.status svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.status a {
  color: var(--fg);
}

.status a:hover {
  color: var(--ink);
}

.waitlist-sent {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 40px 32px;
}

.waitlist-sent:focus {
  outline: none;
}

.sent-icon {
  color: var(--ok);
}

.sent-title {
  margin: 0;
  font-family: var(--head);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sent-text {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.sent-exit {
  margin: 6px 0 0;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.sent-ok {
  color: var(--ok);
}

/* ---- Footer -------------------------------------------------------------------------------- */

.site-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  /* The board's 40/56 px less the extra height of the 44 px link targets. */
  padding-block: 28px 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--fg);
  font-family: var(--head);
  font-size: 14px;
  font-weight: 600;
}

.footer-logo-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--fill);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 24px;
}

.footer-nav a,
.footer-nav button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.footer-nav a:hover,
.footer-nav button:hover {
  color: var(--ink);
}

/* ---- Privacy policy ------------------------------------------------------------------------ */

.policy {
  display: grid;
  grid-template-columns: 240px minmax(0, 720px);
  grid-template-areas:
    "toc head"
    "toc body";
  column-gap: 96px;
  /* The board's 22 px under the version line plus its 18 px gap. */
  row-gap: 40px;
  align-items: start;
  padding-block: 72px 104px;
}

.policy-head {
  grid-area: head;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.policy-title {
  margin: 0;
  font-family: var(--head);
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.policy-version {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}

.toc {
  grid-area: toc;
  padding-top: 128px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--mono);
  font-size: 13px;
}

.toc a {
  padding: 6px 0 6px 14px;
  border-left: 2px solid var(--line2);
  color: var(--muted);
  text-decoration: none;
}

.toc a:hover {
  color: var(--ink);
}

/* The current section, marked as on the board: the first on arrival, then the last one jumped to.
   Browsers without :has() drop this rule and show no marker. */
.policy:not(:has(:target)) .toc a[href="#who"],
.policy:has(#who:target) .toc a[href="#who"],
.policy:has(#collect:target) .toc a[href="#collect"],
.policy:has(#cookies:target) .toc a[href="#cookies"],
.policy:has(#why:target) .toc a[href="#why"],
.policy:has(#processors:target) .toc a[href="#processors"],
.policy:has(#retention:target) .toc a[href="#retention"],
.policy:has(#rights:target) .toc a[href="#rights"],
.policy:has(#changes:target) .toc a[href="#changes"] {
  border-left-color: var(--fill);
  color: var(--fg);
}

.policy-body {
  grid-area: body;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 17px;
  line-height: 1.7;
}

.policy-body h2 {
  margin: 26px 0 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.policy-body p {
  margin: 0;
}

.policy-body a {
  color: var(--ink);
}

.policy-body code {
  font-size: 0.85em;
  padding: 1px 5px;
}

.policy-body ul {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.policy-body strong {
  font-weight: 600;
}

.cookie-table-wrap {
  border: 1px solid var(--line2);
  border-radius: 10px;
  overflow: hidden;
}

.cookie-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

.cookie-table th {
  padding: 12px 16px;
  background: var(--bg2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.cookie-table td {
  padding: 12px 16px;
  border-top: 1px solid var(--line2);
  vertical-align: top;
}

.cookie-table .col-name {
  width: 170px;
}

.cookie-table .col-kept {
  width: 150px;
}

.cookie-name {
  font-family: var(--mono);
  font-size: 14px;
}

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

.notfound {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding-block: 64px;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 24px 24px;
}

.notfound-eyebrow {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.notfound-title {
  margin: 0;
  font-family: var(--head);
  font-size: 54px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.notfound-term {
  width: 720px;
  max-width: 100%;
  padding: 18px 22px;
  border: 1px solid var(--tborder);
  border-radius: 12px;
  background: #0a0b09;
}

/* The requested path can be up to 60 characters: wrap rather than overflow the box. */
.notfound-term > div {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.notfound-actions a {
  height: 48px;
  padding: 0 22px;
  font-size: 15px;
}

/* ---- Between the boards: 641-1099 px, the columns fold into one ---------------------------- */

@media (max-width: 1099px) {
  :root {
    --gutter: 32px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
    padding-block: 72px 80px;
  }

  .hero-title {
    font-size: 54px;
  }

  /* Room on the left for the incident card to hang off the terminal, as on the wide board. */
  .hero-visual {
    max-width: 624px;
    padding-left: 40px;
  }

  .points {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .point {
    max-width: 640px;
  }

  .lab-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .join {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-block: 88px;
  }

  .join-form {
    max-width: 560px;
  }

  .site-footer {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .policy {
    grid-template-columns: minmax(0, 720px);
    grid-template-areas:
      "head"
      "toc"
      "body";
    row-gap: 32px;
    padding-block: 56px 88px;
  }

  .toc {
    padding-top: 0;
  }
}

/* ---- Narrow: LandingMobile.dc.html (390 px board), down to 360 px -------------------------- */

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  code {
    padding: 1px 5px;
  }

  .dot {
    width: 7px;
    height: 7px;
  }

  .site-header {
    height: 64px;
  }

  .brand {
    gap: 4px;
  }

  .logo {
    gap: 3px;
    font-size: 15px;
  }

  .logo-cursor {
    width: 8px;
    height: 17px;
  }

  .site-nav {
    gap: 12px;
  }

  .site-nav a {
    padding: 0 4px;
  }

  .site-nav .nav-labs,
  .nav-join-long {
    display: none;
  }

  .nav-join-short {
    display: inline;
  }

  .site-nav .nav-join {
    padding: 0 16px;
  }

  .hero {
    gap: 36px;
    padding-block: 36px 44px;
    background-size: 20px 20px;
  }

  .hero-copy {
    gap: 22px;
  }

  .hero-title {
    font-size: 32px;
    line-height: 1.15;
  }

  .hero-lede {
    font-size: 17px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 0;
  }

  .hero-note {
    font-size: 12px;
    text-align: center;
  }

  .hero-visual {
    max-width: none;
    padding-left: 0;
  }

  .incident {
    width: 300px;
    margin: 0 0 -16px;
    padding: 14px 16px;
    gap: 6px;
    box-shadow: 0 16px 40px var(--shadow);
  }

  .incident-head {
    font-size: 11px;
  }

  .incident-title {
    font-size: 15px;
  }

  .incident-meta {
    font-size: 11px;
  }

  .terminal {
    box-shadow: 0 24px 60px var(--shadow);
  }

  .terminal-bar {
    height: 34px;
    gap: 6px;
    padding: 0 12px;
  }

  .terminal-dot {
    width: 9px;
    height: 9px;
  }

  .terminal-title {
    font-size: 11px;
  }

  .term {
    font-size: 11px;
    line-height: 18px;
  }

  .term > div {
    min-height: 18px;
    white-space: pre-wrap;
  }

  .terminal .term {
    padding: 22px 14px 16px;
  }

  .term-cursor {
    width: 7px;
    height: 14px;
    vertical-align: -2px;
  }

  .ticker {
    height: 40px;
  }

  .ticker-track {
    gap: 40px;
    padding-right: 40px;
    font-size: 11px;
    animation-duration: 60s;
  }

  .ticker-item {
    gap: 8px;
  }

  /* The narrow board drops one alert and shortens three. */
  .ticker-wide {
    display: none;
  }

  .points {
    gap: 36px;
    padding-block: 56px 16px;
  }

  .point {
    gap: 10px;
  }

  .point-num {
    font-size: 12px;
  }

  .point h2 {
    font-size: 19px;
  }

  .point p {
    font-size: 15px;
  }

  .labs {
    gap: 24px;
    padding-block: 56px 64px;
  }

  .section-title {
    font-size: 22px;
  }

  .lab {
    gap: 12px;
    padding: 22px;
  }

  .lab-tags {
    font-size: 11px;
  }

  .tag {
    padding: 3px 7px;
  }

  .lab h3 {
    font-size: 19px;
  }

  .lab-text {
    font-size: 15px;
  }

  .lab-learn {
    padding-top: 14px;
    font-size: 12px;
  }

  .join {
    gap: 24px;
    padding-block: 56px 64px;
  }

  .join-intro {
    gap: 12px;
    padding-top: 0;
  }

  .join-title {
    font-size: 28px;
  }

  .join-lede {
    font-size: 17px;
  }

  .waitlist {
    --form-gap: 18px;
    padding: 20px;
  }

  .waitlist-sent {
    padding: 32px 20px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-block: 32px 48px;
  }

  .footer-brand {
    gap: 14px;
  }

  .footer-nav {
    gap: 0 20px;
  }

  .footer-mail {
    order: 1;
  }

  .policy {
    row-gap: 28px;
    padding-block: 40px 64px;
  }

  .policy-title {
    font-size: 32px;
  }

  .policy-body {
    font-size: 16px;
  }

  .policy-body h2 {
    font-size: 20px;
  }

  .cookie-table th,
  .cookie-table td {
    padding: 10px 12px;
  }

  .cookie-table .col-name {
    width: 100px;
  }

  .cookie-table .col-kept {
    width: 92px;
  }

  .notfound {
    gap: 24px;
    padding-block: 48px;
    background-size: 20px 20px;
  }

  .notfound-title {
    font-size: 32px;
    line-height: 1.15;
  }

  .notfound-term {
    padding: 16px 14px;
  }
}

/* At 360-379 px the form's own padding shrinks so Turnstile's 300 px widget still fits. */
@media (max-width: 379px) {
  .waitlist {
    padding: 20px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track,
  .fmp-spin {
    animation: none;
  }
}
