/* ==========================================================================
   Prova design system. See website/DESIGN.md.

   A warm paper page. Everything is built from four tonal steps of the same
   cream — paper, raised, slab, deep — so contrast comes from the stack itself
   rather than from an inverted section. Cards have no border and no shadow;
   they are a fill. Controls are solid ink. Carmine is the one accent and it is
   spent on the thing that should be looked at.
   ========================================================================== */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/instrument-sans-var-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: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/instrument-sans-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-400-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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-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;
}

/* --- Tokens ---------------------------------------------------------------
   Four tonal steps of one warm cream. Every surface on the site is one of
   them; nothing invents a fifth. This is where the contrast lives now that
   there are no inverted sections. */

:root {
  color-scheme: light;

  --paper: #ffffff;
  --raised: #f8f9fa;
  --slab: #f1f3f4;
  --deep: #e8eaed;

  --ink: #1f1f1f;
  --ink-2: #444746;
  --ink-3: #5f6368;

  --hair: rgba(31, 31, 31, 0.13);
  --hair-strong: rgba(31, 31, 31, 0.26);

  /* Carmine. The only brand colour, and it is spent deliberately: the wordmark
     dot, one hand-drawn underline, the price, one call to action, the focus
     ring, and the line in a log that went wrong. Nowhere else. */
  --accent: #a6112e;
  --accent-deep: #7d0d22;
  --accent-tint: #fce8ec;
  --accent-line: #f1b6c1;

  /* Semantic. A text colour and the tint it sits on, always used as a pair and
     always with a word beside it — never a colour on its own. Every tint is
     mixed warm so it belongs on cream rather than on white. */
  --ok: #137333;
  --ok-tint: #e6f4ea;
  --warn: #b06000;
  --warn-tint: #fef7e0;
  --bad: #c5221f;
  --bad-tint: #fce8e6;
  --info: #0b57d0;
  --info-tint: #e8f0fe;

  --font-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --t-hero: clamp(2.875rem, 1.1rem + 6.6vw, 5.75rem);
  --t-display: clamp(2.125rem, 1.3rem + 3.4vw, 3.5rem);
  --t-h2: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --t-h3: 1.125rem;
  --t-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --t-body: 1rem;
  --t-sm: 0.9375rem;
  --t-fine: 0.8125rem;
  --t-label: 0.6875rem;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Small radii, one family. Nothing on this site is a lozenge except a tag. */
  --r-pill: 999px;
  --r-btn: 9px;
  --r-input: 9px;
  --r-media: 10px;
  --r-card: 12px;
  --r-slab: 18px;

  --measure: 1200px;
  --measure-text: 760px;
  --gutter: 20px;

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --dur-1: 130ms;
  --dur-2: 220ms;
  --dur-3: 420ms;
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }
}

/* --- Reset ---------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.55;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
p,
figure,
ul,
ol,
dl,
blockquote,
table {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}

img,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--r-media);
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-btn);
}
::selection {
  background: var(--accent);
  color: #fff;
}

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--ink);
  color: var(--paper);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-btn);
  z-index: 100;
}
.skip-link:focus {
  left: var(--s-4);
  top: var(--s-4);
}

/* --- Layout --------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-text {
  max-width: var(--measure-text);
}
.wrap-wide {
  max-width: 1320px;
}

.section {
  padding-block: var(--s-9);
}
.section-sm {
  padding-block: var(--s-8);
}
.section-top {
  padding-block: var(--s-7) var(--s-9);
}
/* A section that continues the one above it rather than starting a new beat. */
.section-follow {
  padding-block: 0 var(--s-8);
}

/* The four surfaces. `raised` and `deep` are full-bleed bands; `slab` is a
   panel that floats on whichever band it is in. */
.band-raised {
  background: var(--raised);
}
.band-deep {
  background: var(--deep);
}
.band-slab {
  background: var(--slab);
}
.band-rule {
  border-top: 1px solid var(--hair);
}
.band-rule-bottom {
  border-bottom: 1px solid var(--hair);
}

.slab {
  background: var(--slab);
  border-radius: var(--r-slab);
  padding: var(--s-8) var(--s-5);
}
@media (min-width: 768px) {
  .slab {
    padding: var(--s-9) var(--s-8);
  }
}
.slab-deep {
  background: var(--deep);
}
.slab-tint {
  background: var(--accent-tint);
}
/* A panel on a band already at slab tone has to step down, not sideways. */
.band-slab .slab,
.band-deep .slab {
  background: var(--paper);
}

.stack > * + * {
  margin-top: var(--s-4);
}
.stack-lg > * + * {
  margin-top: var(--s-6);
}

.grid {
  display: grid;
  gap: var(--s-4);
}
/* Grid and flex children default to min-width:auto, so a child holding a
   pre-formatted block widens its track instead of scrolling inside it. */
.grid > *,
.split > *,
.journal > *,
.docs > *,
.docs-body,
.dash > *,
.panel-foot > *,
.steps > li,
.step-body,
.card,
.split-panel,
.split-media,
.media,
.card-media,
.code,
.table-wrap {
  min-width: 0;
}
@media (min-width: 700px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* --- Type ----------------------------------------------------------------- */

.hero-title {
  font-size: var(--t-hero);
  line-height: 0.94;
  letter-spacing: -0.045em;
  font-weight: 600;
  text-wrap: balance;
}
.display {
  font-size: var(--t-display);
  line-height: 1.02;
  letter-spacing: -0.036em;
  font-weight: 600;
  text-wrap: balance;
}
.h2 {
  font-size: var(--t-h2);
  line-height: 1.12;
  letter-spacing: -0.026em;
  font-weight: 600;
  text-wrap: balance;
}
.h3 {
  font-size: var(--t-h3);
  line-height: 1.3;
  letter-spacing: -0.018em;
  font-weight: 600;
}
.h4 {
  font-size: var(--t-body);
  line-height: 1.4;
  letter-spacing: -0.012em;
  font-weight: 600;
}

.lead {
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34rem;
}
.sm {
  font-size: var(--t-sm);
  color: var(--ink-2);
}
.fine {
  font-size: var(--t-fine);
  line-height: 1.5;
  color: var(--ink-3);
}
.dim {
  color: var(--ink-3);
}
.accent {
  color: var(--accent);
}
.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  letter-spacing: 0;
}

/* An eyebrow is set in full ink, not grey. It is a label, and a label you can
   read is worth more than one that recedes. */
.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: var(--s-4);
}
.eyebrow-accent {
  color: var(--accent);
}

.centred {
  text-align: center;
}
.centred .lead,
.lead-centre {
  margin-inline: auto;
}

/* A word with a hand-drawn carmine stroke under it. The stroke is an SVG so it
   wobbles the way a pen does; a border-bottom would not. */
.marked {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.marked > svg {
  position: absolute;
  left: -2%;
  bottom: -0.2em;
  width: 104%;
  height: 0.3em;
  color: var(--accent);
  overflow: visible;
}

/* --- Controls -------------------------------------------------------------
   A solid ink rectangle with a small radius. On a cream page a black control
   is the loudest thing available, which is exactly what a control should be. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  height: 46px;
  padding-inline: var(--s-5);
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color var(--dur-1) var(--ease),
    border-color var(--dur-1) var(--ease),
    color var(--dur-1) var(--ease);
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: #3c4043;
}
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--accent-deep);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--hair-strong);
}
.btn-secondary:hover {
  border-color: var(--ink);
  background: rgba(31, 31, 31, 0.04);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
}
.btn-ghost:hover {
  color: var(--ink);
  background: rgba(31, 31, 31, 0.06);
}
.btn-danger {
  background: var(--bad-tint);
  color: var(--bad);
}
.btn-danger:hover {
  background: var(--bad);
  color: #fff;
}
.btn-sm {
  height: 34px;
  padding-inline: var(--s-4);
  font-size: var(--t-fine);
  border-radius: 8px;
}
.btn-lg {
  height: 54px;
  padding-inline: var(--s-6);
  font-size: var(--t-body);
}
.btn-block {
  width: 100%;
}
.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.4;
  pointer-events: none;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}
.btn-row-centre {
  justify-content: center;
}
/* A text field sharing a row with a button shrinks; a fixed measure would
   otherwise push the row wider than a phone. */
.btn-row .input {
  flex: 1 1 12rem;
  min-width: 0;
}
/* On a card at slab tone a secondary control needs its own ground back. */
.card .btn-secondary,
.slab .btn-secondary,
.band-slab .btn-secondary,
.band-deep .btn-secondary {
  background: var(--paper);
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink);
}
.arrow-link .arrow {
  transition: transform var(--dur-2) var(--ease);
}
.arrow-link:hover .arrow {
  transform: translateX(3px);
}
.arrow-link-accent {
  color: var(--accent);
}

.link {
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--dur-1) var(--ease);
}
.link:hover {
  text-decoration-color: var(--accent);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  height: 34px;
  padding-inline: var(--s-4);
  border-radius: 8px;
  background: var(--slab);
  font-size: var(--t-fine);
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}
.chip svg {
  color: var(--ink-3);
}
.chip-on {
  background: var(--ink);
  color: var(--paper);
}
.chip-on svg {
  color: var(--paper);
}
.chip-off {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--hair);
  color: var(--ink-3);
}
.card .chip,
.slab .chip,
.band-slab .chip,
.band-deep .chip {
  background: var(--paper);
}

/* A segmented control: two or three options, one current. */
.seg {
  display: inline-flex;
  padding: 4px;
  border-radius: 12px;
  background: var(--slab);
  gap: 2px;
}
/* Six or seven options do not fit a phone, so the control scrolls inside its
   own width rather than widening the page. `max-width: 100%` is the part that
   matters: an inline-flex box will otherwise size to its contents. */
.seg-scroll {
  display: flex;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.seg-scroll::-webkit-scrollbar {
  display: none;
}
.seg-scroll > * {
  flex: none;
}
.seg > * {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding-inline: var(--s-4);
  border-radius: 8px;
  font-size: var(--t-fine);
  font-weight: 500;
  color: var(--ink-3);
}
.seg > .seg-on {
  background: var(--paper);
  color: var(--ink);
}

/* --- Cards ----------------------------------------------------------------
   A card is a fill and nothing else. No border, no shadow, no outline: on a
   tonal page the step in value is the edge. */

.card {
  background: var(--slab);
  border-radius: var(--r-card);
  padding: var(--s-5);
}
.card-slab {
  background: var(--slab);
}
.card-deep {
  background: var(--deep);
}
.card-paper {
  background: var(--paper);
}
.card-tint {
  background: var(--accent-tint);
}
.card-lg {
  padding: var(--s-6);
}
.card-flush {
  padding: 0;
  overflow: hidden;
}
.card-body {
  padding: var(--s-5);
}
/* A picture or a piece of Studio output inside a card. It keeps its own space:
   the panel below used to be flush against the paragraph above it, which read
   as a rendering fault rather than a layout. */
.card-media {
  margin-top: var(--s-5);
}
.card-media > img {
  width: 100%;
  border-radius: var(--r-media);
}
.card-lg .card-media {
  margin-top: var(--s-6);
}
/* When a picture really should bleed to the card's edge, ask for it. */
.card-media-bleed {
  margin: var(--s-5) calc(var(--s-5) * -1) calc(var(--s-5) * -1);
  border-radius: 0 0 var(--r-card) var(--r-card);
  overflow: hidden;
}
.card-lg .card-media-bleed {
  margin: var(--s-6) calc(var(--s-6) * -1) calc(var(--s-6) * -1);
}

/* A numbered marker, or an icon in a rounded square. */
.card-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: var(--t-label);
  color: var(--ink);
  margin-bottom: var(--s-4);
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  margin-bottom: var(--s-4);
}
.card-icon-accent {
  background: var(--accent);
  color: #fff;
}
/* On paper it needs the opposite: a fill that is darker, not lighter. */
.card-paper .card-icon,
.band-raised > .wrap > .grid .card-icon {
  background: var(--slab);
}

/* --- Media ---------------------------------------------------------------- */

.media {
  border-radius: var(--r-media);
  overflow: hidden;
  background: var(--slab);
}
/* The frame clips the picture, so this changes nothing on screen — but the
   picture now carries the corner itself, which is what the audit checks and
   what a picture pulled out of its frame should still have. */
.media > img {
  border-radius: inherit;
  width: 100%;
}
.media-lg {
  border-radius: var(--r-card);
}
.media-ui {
  background: var(--slab);
  padding: var(--s-5);
  text-align: left;
}
@media (min-width: 768px) {
  .media-ui {
    padding: var(--s-6);
  }
}
.media-caption {
  margin-top: var(--s-3);
  font-size: var(--t-fine);
  color: var(--ink-3);
}
.media-empty {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--s-2);
  text-align: center;
  width: 100%;
  min-height: 300px;
  padding: var(--s-6);
  border-radius: var(--r-card);
  background: var(--slab);
  color: var(--ink-3);
}
/* The one picture that carries a whole section. The placeholder stands in at
   roughly the shape a wide screenshot will be, so the page does not jump when
   the real picture arrives. */
.media-empty-tall {
  min-height: 300px;
  aspect-ratio: 5 / 2;
}
.band-slab .media,
.band-deep .media,
.card .media,
.slab .media,
.band-slab .media-empty,
.card .media-empty,
.slab .media-empty {
  background: var(--paper);
}

/* --- Code and output ------------------------------------------------------
   Studio output and configuration, on paper. Never on black: the page has no
   inverted surfaces, and a light panel is also the one that prints. */

/* A panel is always one tonal step away from whatever it sits on, so it reads
   as a panel and not as a gap. */
.code {
  border-radius: var(--r-media);
  background: var(--slab);
  overflow: hidden;
}
.card .code,
.slab .code,
.split-panel .code,
.media-ui .code,
.band-slab .code,
.band-deep .code {
  background: var(--paper);
}
.card-paper .code,
.card-deep .code {
  background: var(--slab);
}
.code-head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--hair);
}
.code-dots {
  display: inline-flex;
  gap: 5px;
}
.code-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hair-strong);
}
.code-title {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
/* Studio prints a fixed-width column. It scrolls inside its own panel and
   never widens the page, and the lines are given room to breathe. */
.code-body {
  padding: var(--s-4) var(--s-5);
  font-family: var(--font-mono);
  font-size: var(--t-fine);
  line-height: 2;
  color: var(--ink-2);
  overflow-x: auto;
}
.code-body p {
  white-space: pre;
}
.code-body p + p {
  margin-top: 0;
}
.code-body b {
  color: var(--ink);
  font-weight: 500;
}
.code-key {
  color: var(--ink-3);
}
.code-bad {
  color: var(--accent);
}
.code-ok {
  color: var(--ok);
}

/* --- Split ---------------------------------------------------------------- */

.split {
  display: grid;
  gap: var(--s-4);
}
@media (min-width: 860px) {
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split-wide {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
  .split-narrow {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}
.split-panel {
  background: var(--slab);
  border-radius: var(--r-card);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  min-height: 320px;
}
.split-panel-deep {
  background: var(--deep);
}
.split-panel-tint {
  background: var(--accent-tint);
}
.band-slab .split-panel,
.band-deep .split-panel {
  background: var(--paper);
}
.split-foot {
  margin-top: auto;
  padding-top: var(--s-6);
}
.split-media {
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--slab);
  min-height: 320px;
  display: grid;
  align-content: center;
  padding: var(--s-5);
}
.band-slab .split-media,
.band-deep .split-media {
  background: var(--paper);
}
.split-media-flush {
  padding: 0;
  align-content: stretch;
}
.split-media-flush > img {
  border-radius: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Figures --------------------------------------------------------------
   Four numbers across a rule. Used where a paragraph would have said the same
   thing in forty words. */

.figures {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ink);
}
@media (min-width: 700px) {
  .figures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 980px) {
  .figures {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.figure-cell {
  padding: var(--s-5) var(--s-5) var(--s-6) 0;
  border-bottom: 1px solid var(--hair);
}
@media (min-width: 700px) {
  .figure-cell {
    border-bottom: 0;
    padding-right: var(--s-6);
  }
}
.figure-value {
  display: block;
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 600;
  margin-bottom: var(--s-3);
}
.figure-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: var(--s-2);
}
.figure-note {
  display: block;
  font-size: var(--t-fine);
  color: var(--ink-3);
  max-width: 22ch;
}

/* --- Journal --------------------------------------------------------------- */

.journal {
  display: grid;
  gap: var(--s-7);
}
@media (min-width: 900px) {
  .journal {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--s-8);
  }
}
.journal-rows > * {
  border-bottom: 1px solid var(--hair);
}
.journal-rows > *:first-child {
  border-top: 1px solid var(--hair);
}
.journal-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: var(--s-4);
  align-items: center;
  padding-block: var(--s-4);
  transition: padding-left var(--dur-2) var(--ease);
}
.journal-row:hover {
  padding-left: var(--s-2);
}
.journal-thumb {
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--slab);
  display: grid;
  place-content: center;
  color: var(--ink);
}
.band-slab .journal-thumb,
.band-deep .journal-thumb {
  background: var(--paper);
}
.journal-meta {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: 2px;
}

.overlay {
  position: relative;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding-inline: 10px;
  border-radius: 7px;
  background: var(--slab);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.pill-mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pill-accent {
  background: var(--accent);
  color: #fff;
}
.pill-over {
  position: absolute;
  z-index: 2;
}
/* Only a pill needs a fill of its own over a picture. A tag already carries its
   own tint, and painting paper behind it framed the green in white. */
.pill.pill-over {
  background: var(--paper);
}
.pill-over.pill-accent {
  background: var(--accent);
}
.pill-bl {
  bottom: var(--s-3);
  left: var(--s-3);
}
.pill-br {
  bottom: var(--s-3);
  right: var(--s-3);
}

/* --- Status: a tag with an icon and a word. No lone coloured dots. -------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding-inline: 10px;
  border-radius: 7px;
  font-size: var(--t-fine);
  font-weight: 500;
  white-space: nowrap;
  background: var(--slab);
  color: var(--ink-2);
}
.tag-ok {
  background: var(--ok-tint);
  color: var(--ok);
}
.tag-warn {
  background: var(--warn-tint);
  color: #7a4100;
}
.tag-warn svg {
  color: var(--warn);
}
.tag-bad {
  background: var(--bad-tint);
  color: var(--bad);
}
.tag-info {
  background: var(--info-tint);
  color: var(--info);
}
.tag-quiet {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--hair-strong);
  color: var(--ink-3);
}

.slots {
  display: flex;
  gap: 4px;
}
.slot {
  width: 26px;
  height: 6px;
  border-radius: 2px;
  background: var(--deep);
}
.slot-used {
  background: var(--ink);
}
.slot-hold {
  background: var(--accent-line);
}
.card .slot,
.slab .slot {
  background: var(--paper);
}
.card .slot-used,
.slab .slot-used {
  background: var(--ink);
}
.card .slot-hold,
.slab .slot-hold {
  background: var(--accent-line);
}

/* --- Tables --------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-sm);
}
.table thead th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0 var(--s-4) var(--s-3) 0;
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
}
.table tbody td {
  padding: var(--s-4) var(--s-4) var(--s-4) 0;
  border-bottom: 1px solid var(--hair);
  vertical-align: top;
  color: var(--ink-2);
}
.table tbody tr:last-child td {
  border-bottom: 0;
}
.table td:last-child,
.table th:last-child {
  padding-right: 0;
}
.table .td-strong {
  color: var(--ink);
  font-weight: 600;
}
.table .td-mono {
  font-family: var(--font-mono);
  font-size: var(--t-fine);
  color: var(--ink);
  white-space: nowrap;
}
.table .td-right {
  text-align: right;
}
.table .td-fit {
  width: 1%;
  white-space: nowrap;
}

/* --- Rows and lists ------------------------------------------------------- */

.rows > * + * {
  border-top: 1px solid var(--hair);
}
.row {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr);
  gap: var(--s-4);
  align-items: baseline;
  padding-block: var(--s-4);
}
.row dt,
.row .row-key {
  font-size: var(--t-fine);
  color: var(--ink-3);
}
.row dd,
.row .row-val {
  margin: 0;
  font-size: var(--t-sm);
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
}
.row-split {
  grid-template-columns: minmax(0, 1fr) auto;
}
.rows-stack .row {
  grid-template-columns: 1fr;
  gap: var(--s-1);
}
.rows-narrow .row {
  grid-template-columns: 2.5rem minmax(0, 1fr);
}
/* Mono uppercase key in full ink, value hard right, a hairline between each —
   the way a document of record sets a field out. */
.rows-record {
  border-top: 1px solid var(--hair);
}
.rows-record .row {
  grid-template-columns: minmax(0, 1fr) auto;
  padding-block: var(--s-3);
  align-items: center;
  border-top: 0;
}
.rows-record > * + * {
  border-top: 1px solid var(--hair);
}
.rows-record .row .row-key {
  font-family: var(--font-mono);
  font-size: var(--t-fine);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.rows-record .row .row-val {
  text-align: right;
  font-size: var(--t-sm);
  color: var(--ink-2);
}
@media (max-width: 599px) {
  .row {
    grid-template-columns: 1fr;
    gap: var(--s-1);
  }
  .row-split,
  .rows-record .row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--s-4);
  }
}

.list > * + * {
  border-top: 1px solid var(--hair);
}
.list-item {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-4);
  align-items: center;
  justify-content: space-between;
  padding-block: var(--s-4);
}
.list-main {
  min-width: 0;
}

/* A list of ticks, for what is included. */
.ticks li {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  padding-block: var(--s-2);
  font-size: var(--t-sm);
  color: var(--ink-2);
}
.ticks svg {
  flex: none;
  margin-top: 3px;
  color: var(--ink);
}

/* --- Notes ---------------------------------------------------------------- */

.note {
  display: flex;
  gap: var(--s-4);
  border-radius: var(--r-card);
  background: var(--slab);
  padding: var(--s-5);
  font-size: var(--t-sm);
  color: var(--ink-2);
}
.note strong {
  color: var(--ink);
  font-weight: 600;
}
.note > svg {
  flex: none;
  margin-top: 2px;
  color: var(--ink);
}
.note-accent {
  background: var(--accent-tint);
}
.note-accent > svg {
  color: var(--accent);
}
.note-accent strong {
  color: var(--accent-deep);
}
.note-warn {
  background: var(--warn-tint);
  color: #7a4100;
}
.note-warn > svg {
  color: var(--warn);
}
/* --warn itself is 4.34:1 on its tint, under AA for text. Words take the
   darker tone the note's body already uses; only the icon keeps --warn. */
.note-warn strong {
  color: #7a4100;
}
.note-info {
  background: var(--info-tint);
  color: #0842a0;
}
.note-info > svg,
.note-info strong {
  color: var(--info);
}
.note-bad {
  background: var(--bad-tint);
  color: #8c1d18;
}
.note-bad > svg,
.note-bad strong {
  color: var(--bad);
}

.keybox {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4);
  border-radius: var(--r-media);
  background: var(--accent-tint);
}
.keybox code {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 500;
  overflow-wrap: anywhere;
  flex: 1 1 18rem;
}

/* --- Forms ---------------------------------------------------------------- */

.field-label {
  display: block;
  font-size: var(--t-sm);
  font-weight: 500;
  margin-bottom: var(--s-2);
}
.input {
  width: 100%;
  height: 46px;
  padding-inline: var(--s-4);
  border: 1px solid var(--hair-strong);
  border-radius: var(--r-input);
  background: var(--paper);
  font-size: var(--t-sm);
}
.input:focus {
  outline: none;
  border-color: var(--ink);
}
.input-area {
  height: auto;
  padding-block: var(--s-3);
  line-height: 1.5;
  resize: vertical;
}
input[type='file'].input {
  padding-block: 10px;
  line-height: 1.4;
}
input[type='checkbox'] {
  width: 16px;
  height: 16px;
  accent-color: var(--ink);
  flex: none;
}

/* --- The welcome banner ---------------------------------------------------
   A headshot with the customer's initial underneath it. The picture is proxied
   through this Worker, so it can fail — a new account has none, and an outage
   is an outage. The initial is what is left when it does, which is why it is a
   layer under the image rather than an onerror handler. */

.welcome {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}
.avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  background: var(--slab);
  overflow: hidden;
}
.avatar-initial {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink-2);
}
.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* --- The chrome ----------------------------------------------------------
   The banner and the navigation are one sticky block, not two. Two sticky
   elements both pinned to the top would slide over each other; one wrapper
   keeps them stacked in the order they are written and pinned together, which
   is what "above every header, and still there when you scroll" means. */

.chrome {
  position: sticky;
  top: 0;
  z-index: 60;
}

/* --- The notice banner ---------------------------------------------------
   Ink, because it is the darkest colour the palette has and this is the one
   element whose whole job is to be read first. */

.notice {
  background: var(--ink);
  color: var(--paper);
}
.notice-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--s-2) var(--s-3);
  padding-block: 11px;
  font-size: var(--t-fine);
  line-height: 1.45;
}
.notice-face {
  position: relative;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}
.notice-initial {
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}
.notice-face img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
/* Attribution sits back; the message is at full strength. The other way round
   would make the banner about who is talking rather than what they said. */
.notice-who {
  flex: none;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.58);
  white-space: nowrap;
}
.notice-text {
  color: var(--paper);
  min-width: 0;
}
@media (max-width: 599px) {
  .notice-who {
    display: none;
  }
}

/* --- Navigation ----------------------------------------------------------- */

.nav {
  padding-block: var(--s-3);
}
.nav-wrap {
  max-width: 1040px;
}
.nav-island {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  height: 58px;
  padding-left: var(--s-5);
  padding-right: var(--s-2);
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 1px var(--hair);
  backdrop-filter: saturate(180%) blur(12px);
  transition: box-shadow var(--dur-2) var(--ease);
}
.nav-scrolled .nav-island {
  box-shadow: inset 0 0 0 1px var(--hair-strong);
}
/* The navigation floats on the page, so once the banner is above it the strip
   behind it has to be opaque or the page shows through between them. */
.notice + .nav {
  background: var(--paper);
}
.nav-links {
  display: none;
  align-items: center;
  gap: var(--s-5);
  margin-inline: auto;
}
.nav-links a {
  font-size: var(--t-sm);
  color: var(--ink-2);
  transition: color var(--dur-1) var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--ink);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-left: auto;
}
@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
  .nav-actions {
    margin-left: 0;
  }
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
/* The logo. Sized in em so it scales with the name wherever the wordmark is
   used. It is the owner's image, already carmine. */

.wordmark-mark {
  display: block;
  width: 1.45em;
  height: 1.45em;
  flex: none;
  object-fit: contain;
}

/* --- Footer ---------------------------------------------------------------
   A full-width band at the deepest tone, opening with a statement rather than
   a sitemap. The links are hairline rows, the same pattern as an index
   anywhere else on the site, and the wordmark is drawn once across the bottom
   at low contrast. */

.footer {
  background: var(--deep);
  border-top: 1px solid var(--hair);
  padding-block: var(--s-9) var(--s-5);
  overflow: hidden;
}
.footer-top {
  display: grid;
  gap: var(--s-6);
  padding-bottom: var(--s-8);
}
@media (min-width: 860px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: var(--s-8);
  }
}
.footer-lead {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 600;
  max-width: 15ch;
  text-wrap: balance;
}
.footer-grid {
  display: grid;
  gap: var(--s-7);
  padding-top: var(--s-7);
  border-top: 1px solid var(--hair-strong);
}
@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 980px) {
  .footer-grid {
    grid-template-columns: 1.15fr repeat(3, minmax(0, 1fr));
    gap: var(--s-6);
  }
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: var(--s-3);
  margin-bottom: 0;
  border-bottom: 1px solid var(--hair-strong);
}
/* Hairline rows, not a bulleted stack. Bigger than a footer usually sets its
   links, because these are the ones a customer actually needs. */
.footer-grid li {
  border-bottom: 1px solid var(--hair);
}
.footer-grid li a {
  display: block;
  padding-block: var(--s-3);
  font-size: 1.0625rem;
  letter-spacing: -0.016em;
  color: var(--ink-2);
  transition:
    color var(--dur-1) var(--ease),
    padding-left var(--dur-2) var(--ease);
}
.footer-grid li a:hover {
  color: var(--ink);
  padding-left: var(--s-2);
}
.footer-say {
  font-size: var(--t-sm);
  color: var(--ink-2);
  max-width: 26ch;
  margin-top: var(--s-4);
}
.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-6);
  justify-content: space-between;
  align-items: baseline;
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid var(--hair-strong);
  font-size: var(--t-sm);
  letter-spacing: -0.012em;
  color: var(--ink-2);
}
/* The line of record. The first item is the one that is a claim rather than a
   note, so it is the one set in ink. */
.footer-base > :first-child {
  font-weight: 600;
  color: var(--ink);
}
/* The wordmark, once, along the bottom. The SVG stretches the spacing between
   the letters to fill the width, never the letters themselves — `spacing`
   rather than `spacingAndGlyphs`, so the shapes stay the ones the type
   designer drew. */
.footer-mark {
  display: block;
  width: 100%;
  margin-top: var(--s-6);
  color: rgba(31, 31, 31, 0.085);
}
.footer-mark svg {
  display: block;
  width: 100%;
  height: auto;
}

/* --- Prose ---------------------------------------------------------------- */

.prose {
  max-width: 40rem;
}
.prose h2 {
  font-size: var(--t-h3);
  line-height: 1.3;
  letter-spacing: -0.018em;
  font-weight: 600;
  margin-top: var(--s-8);
  margin-bottom: var(--s-3);
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  font-size: var(--t-body);
  font-weight: 600;
  margin-top: var(--s-6);
  margin-bottom: var(--s-2);
}
.prose p,
.prose ul,
.prose ol {
  margin-bottom: var(--s-4);
  color: var(--ink-2);
  font-size: var(--t-sm);
}
.prose strong {
  color: var(--ink);
  font-weight: 600;
}
.prose li {
  position: relative;
  padding-left: var(--s-5);
  margin-bottom: var(--s-2);
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.66em;
  width: 6px;
  height: 1px;
  background: var(--accent);
}
.prose ol {
  counter-reset: p;
}
.prose ol li {
  counter-increment: p;
}
.prose ol li::before {
  content: counter(p) '.';
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-size: var(--t-fine);
  color: var(--accent);
}

/* --- Documentation --------------------------------------------------------
   A sidebar of everything there is, and one column of instructions. The
   sidebar is a plain list on a phone and sticks alongside from 980px. */

.docs {
  display: grid;
  gap: var(--s-7);
  align-items: start;
}
@media (min-width: 980px) {
  .docs {
    grid-template-columns: 232px minmax(0, 1fr);
    gap: var(--s-9);
  }
}
.docs-side {
  position: static;
}
@media (min-width: 980px) {
  .docs-side {
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
}
.docs-group + .docs-group {
  margin-top: var(--s-6);
}
.docs-group h2 {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--hair-strong);
  margin-bottom: var(--s-2);
}
.docs-group a {
  display: block;
  padding-block: 7px;
  font-size: var(--t-sm);
  color: var(--ink-2);
  transition: color var(--dur-1) var(--ease);
}
.docs-group a:hover {
  color: var(--ink);
}
.docs-group a[aria-current='page'] {
  color: var(--ink);
  font-weight: 600;
}
.docs-body {
  max-width: 46rem;
}
/* A numbered step: the number in the margin, the instruction beside it. */
.steps {
  counter-reset: step;
}
.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: var(--s-4);
  padding-block: var(--s-6);
  border-top: 1px solid var(--hair);
}
.steps > li:first-child {
  border-top: 1px solid var(--ink);
}
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: 0.08em;
  color: var(--accent);
  padding-top: 0.35em;
}
.step-title {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  margin-bottom: var(--s-3);
}
.step-body > * + * {
  margin-top: var(--s-4);
}
.step-body p {
  font-size: var(--t-sm);
  color: var(--ink-2);
}
.step-body strong {
  color: var(--ink);
  font-weight: 600;
}
/* Click-by-click inside a step. Small numbers, so they never compete with the
   step's own number in the margin. */
.clicks {
  counter-reset: click;
  display: grid;
  gap: var(--s-2);
}
.clicks > li {
  counter-increment: click;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: var(--s-2);
  font-size: var(--t-sm);
  color: var(--ink-2);
}
.clicks > li::before {
  content: counter(click) '.';
  font-family: var(--font-mono);
  font-size: var(--t-fine);
  color: var(--ink);
  padding-top: 0.2em;
}
/* Where in Studio to click. A trail, not a sentence. */
.trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--t-fine);
  color: var(--ink);
}
.trail i {
  font-style: normal;
  color: var(--ink-3);
}
.trail span {
  background: var(--slab);
  border-radius: 6px;
  padding: 3px 8px;
}
.card .trail span,
.slab .trail span,
.band-slab .trail span,
.band-deep .trail span {
  background: var(--paper);
}

/* --- Dashboard ------------------------------------------------------------ */

.dash {
  display: grid;
  gap: var(--s-4);
  align-items: start;
}
@media (min-width: 980px) {
  .dash {
    grid-template-columns: minmax(0, 1fr) 330px;
  }
}
.dash-head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--s-6);
}
.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3) var(--s-4);
  margin-bottom: var(--s-4);
}
.panel-head > * {
  min-width: 0;
}
.panel-foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  align-items: center;
  justify-content: space-between;
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--hair);
}
.dash-help {
  border-radius: var(--r-card);
  padding: var(--s-6);
  background: var(--deep);
}

.empty {
  padding: var(--s-8) var(--s-5);
  text-align: center;
  border-radius: var(--r-media);
  background: var(--paper);
  color: var(--ink-3);
  font-size: var(--t-sm);
}
/* A copyable value: label above, value and a copy button below. */
.copyline {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-input);
  background: var(--paper);
}
.card .copyline,
.slab .copyline {
  background: var(--paper);
}
.copyline code {
  font-family: var(--font-mono);
  font-size: var(--t-fine);
  flex: 1;
  overflow-wrap: anywhere;
}

/* --- Hand-drawn marks -----------------------------------------------------
   Doodles are decoration and never carry meaning, so they are hidden from a
   screen reader and are never the only way something is said.

   They live in the page's outer margin — the strip either side of the 1200px
   column — and nowhere else. That is why they are gated at 1400px: below that
   the margin is narrower than a drawing, and a mark laid over a heading reads
   as a rendering fault rather than as a drawing. Every stage is a <section>,
   so "left" and "right" mean the same thing on every page. */

.doodle {
  position: absolute;
  z-index: 0;
  color: var(--ink-3);
  pointer-events: none;
  display: none;
}
.doodle-accent {
  color: var(--accent);
}
@media (min-width: 1400px) {
  .doodle {
    display: block;
  }
}
.doodle-stage {
  position: relative;
  z-index: 0;
}
/* Everything that is not a doodle sits above them, so a drawing can never end
   up on top of a heading or an icon. */
.doodle-stage > *:not(.doodle) {
  position: relative;
  z-index: 1;
}

/* --- Utility --------------------------------------------------------------
   The CSP is `style-src 'self'`, so a page cannot write an inline style. Every
   gap comes from here, which also stops anyone inventing 41px. */

.mt-1 { margin-top: var(--s-1); }
.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }
.mt-8 { margin-top: var(--s-8); }
.mb-2 { margin-bottom: var(--s-2); }
.mb-3 { margin-bottom: var(--s-3); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-5 { margin-bottom: var(--s-5); }
.mb-6 { margin-bottom: var(--s-6); }
.mb-7 { margin-bottom: var(--s-7); }
.m-0 { margin: 0; }
.mt-hair { margin-top: 2px; }
.pt-2 { padding-top: var(--s-2); }
.band { margin-block: var(--s-5) var(--s-7); }
.band-tight { margin-block: var(--s-6); }

.measure-22 { max-width: 22rem; }
.measure-28 { max-width: 28rem; }
.measure-32 { max-width: 32rem; }
.measure-34 { max-width: 34rem; }
.measure-38 { max-width: 38rem; }
.measure-42 { max-width: 42rem; }
.measure-48 { max-width: 48rem; }
.center-block { margin-inline: auto; }

.gap-2 { gap: var(--s-2); }
.gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); }
.gap-5 { gap: var(--s-5); }
.wrap-flex { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-between { justify-content: space-between; }
.block { display: block; }
.flex { display: flex; }
.inline {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* --- Motion ---------------------------------------------------------------
   One entrance: a 10px rise and a fade, once, when a block first comes into
   view. Driven by an IntersectionObserver in prova.js — with JavaScript off
   the `js` class is never added and everything is simply visible. */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(10px);
  }
  .js .reveal-in {
    opacity: 1;
    transform: none;
    transition:
      opacity var(--dur-3) var(--ease),
      transform var(--dur-3) var(--ease);
  }
  .js .reveal-2 { transition-delay: 70ms; }
  .js .reveal-3 { transition-delay: 140ms; }
  .js .reveal-4 { transition-delay: 210ms; }
}

/* --- Doodle slots ----------------------------------------------------------
   Named positions rather than arbitrary ones, so a drawing cannot be dropped
   anywhere and every placement is reviewable in one place. Left and right are
   measured from the section edge and stay inside the outer margin; top and
   bottom are chosen to sit beside a block of text rather than across it. */

/* Home hero */
.d-hero-key    { top: 96px;  left: 12px;  transform: rotate(-13deg); }
.d-hero-arrow  { top: 150px; right: 12px; transform: rotate(6deg); }
.d-hero-spark  { top: 74px;  right: 44px; transform: rotate(10deg); }
.d-hero-dashes { top: 240px; left: 24px;  transform: rotate(-6deg); }
.d-hero-wave   { top: 300px; right: 18px; transform: rotate(-3deg); }

/* "One key. Six experiences." */
.d-tally       { top: 72px;  right: 14px; transform: rotate(7deg); }

/* "It stops when the licence does." */
.d-stop        { top: 96px;  right: 16px; transform: rotate(-9deg); }

/* "Your server asks. Roblox answers." */
.d-cloud       { top: 88px;  right: 12px; transform: rotate(4deg); }
.d-arrow-back  { top: 220px; left: 14px;  transform: rotate(-4deg); }

/* Catalogue and product pages */
.d-pan         { top: 96px;  right: 12px; transform: rotate(-6deg); }
.d-ring        { top: 150px; left: 14px;  transform: rotate(-5deg); }

/* Documentation */
.d-checkbox    { top: 96px;  right: 12px; transform: rotate(6deg); }

/* Closing sections and the dashboard */
.d-speech      { top: 96px;  left: 12px;  transform: rotate(-7deg); }
.d-close-spark { top: 80px;  right: 34px; transform: rotate(-12deg); }
