/* amendion's vocabulary — paper, ink and one gold line: its values for the
   grammar's keys under html[data-site="amendion"], light and dark, and its
   drawings: the mark, the label's ring, the ledger's markers
   (docs/2026-11-14-website-version-1-spec.md §4). The
   display face is Fraunces, self-hosted (fonts/, OFL), at weight 500 and
   optical size 144, its italic for the one amended word, and its 72pt cut
   for the wordmark; the body stays the system's. */

/* The display face in two files: basic Latin, the German letters, the quotes
   and dashes, the ellipsis, the middle dot, the euro and the no-break space;
   and apart, the Slovene letters with Ć and Đ. Each range is exactly what its
   file holds, by the README's recipes; test/assets.test.js holds the copy to
   the two. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/fraunces-500-latin.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0, U+00AB, U+00B7, U+00BB, U+00C4, U+00D6, U+00DC, U+00DF, U+00E4, U+00F6, U+00FC, U+2013-2014, U+2018-201A, U+201C-201E, U+2026, U+20AC;
}

/* The háčeks keep a file of their own: FreeType's auto-hinter (Chromium on
   Linux) measures a face by reference letters in the same file, which this one
   lacks — in one file with them, č š ž draw differently. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/fraunces-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0106-0107, U+010C-010D, U+0110-0111, U+0160-0161, U+017D-017E;
}

/* The written-in hand: Fraunces 144pt Italic at 400, fetched only where it is
   drawn. Its range is the one amended word and the space, which keeps it the
   word's first available font and so its line's metrics; the file also holds
   the auto-hinter's reference letters, which no page draws and without which
   the word draws differently. */
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/fraunces-144pt-400-italic-amend.woff2") format("woff2");
  unicode-range: U+0020, U+0061, U+0064-0065, U+006D-006E;
}

/* The wordmark's cut: Fraunces 72pt at 500, the name's letters alone — at
   the masthead's size the 144pt hairlines break, these hold. */
@font-face {
  font-family: "Fraunces Wordmark";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/fraunces-72pt-500-wordmark.woff2") format("woff2");
}

/* Tokens */

html[data-site="amendion"] {
  /* Warm paper, ink, and gold for lines and marks; accent text is the deeper
     ochre, which holds 4.5:1 on the paper, and the muted ink is just deep
     enough to hold it where the paper is at its deepest shade. */
  --canvas: #f7f3ea;
  --canvas-glow: rgba(255, 254, 250, 0.96);
  --canvas-shade: rgba(110, 88, 56, 0.11);
  --surface: #fffcf4;
  --ink: #1b1814;
  --ink-secondary: #3b342b;
  --ink-muted: #685f54;
  --accent: #b08a1e;
  --accent-end: #d9b24a;
  --accent-ink: #7a5c07;
  --on-accent: #1b1814;
  --border: rgba(27, 24, 20, 0.12);
  --border-strong: rgba(27, 24, 20, 0.24);
  --glow: rgba(176, 138, 30, 0.2);
  --selection: rgba(217, 178, 74, 0.32);

  /* A link's underline in the deeper ochre, which holds 3:1 where the paper
     is at its deepest shade; at night the ochre is the gold. */
  --link-ink: currentColor;
  --link-line: var(--accent-ink);

  /* An atelier speaks in a set face. */
  --display-family: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --wordmark-family: "Fraunces Wordmark", var(--display-family);
  --weight-display: 500;
  --weight-heading: 500;
  --weight-wordmark: 500;
  --size-wordmark: clamp(1.625rem, 1.48rem + 0.5vw, 1.875rem);
  --tracking-display: -0.01em;
  --tracking-wordmark: 0;

  --frame: 90rem;
  --gutter: clamp(1.25rem, 0.5rem + 3.4vw, 4rem);
  --space-masthead: clamp(1rem, 0.2rem + 2.5vw, 2.5rem);
  --space-section: clamp(4.25rem, 2.5rem + 5vw, 8rem);

  --mark: 1.875rem;
  --label-ring: 0.6875rem;
  --mark-ring: 1.5px;
  --draft-opacity: 0.62;

  /* The ledger: an entry's words and its date, the markers and the date
     column; a marker's centre sits on the middle of its entry's first line —
     the date's on a phone, the entry's beside it on a wider screen. The
     atelier's principles: a numeral in its ring, the ring as tall as its
     lead's first line and the numeral half its height; the measure of the
     name's statement. */
  --type-entry: clamp(1.25rem, 1.08rem + 0.7vw, 1.75rem);
  --type-date: 1.0625rem;
  --type-numeral: calc(var(--numeral-ring) / 2);
  --leading-entry: 1.36;
  --tracking-caps: 0.07em;
  --ledger-gap: clamp(1.75rem, 1.3rem + 1.4vw, 2.75rem);
  --marker: 1.75rem;
  --marker-centre: calc(var(--type-date) * var(--leading-meta) / 2);
  --date-column: 9.5rem;
  --numeral-ring: calc(var(--type-pair-lead) * var(--leading-pair-lead));
  --measure-name: 12em;

  /* The first screen: the motto at the largest size on the site, tight —
     at the size its measure allows (pages/home.js mottoMeasure): a short
     motto's at the full size, bounded on the narrowest phones (below 375px)
     so that each line stays whole; a medium one's (up to 24 characters a
     line) and a long one's (up to 30) smaller, for the same; an overlong
     one's the medium size, wrapping at its phrases. Never below the product
     heading under it: where a line cannot stay whole at that size, it wraps,
     balanced. On a phone the heading has the frame's width. The product
     heading one step down the scale, the display size. */
  --hero-size: min(clamp(2.875rem, 1.6rem + 5.2vw, 6.375rem), 13.4vw - 0.25rem);
  --hero-size-medium: min(var(--hero-size), 10.6vw - 0.125rem);
  --hero-size-long: min(var(--hero-size), 8.5vw - 0.15rem);
  --hero-size-overlong: var(--hero-size-medium);
  --hero-leading: 0.98;
  --hero-tracking: -0.022em;
  --product-size: var(--type-display);

  /* The drawing: its width, how far it runs into the gutter on a phone, and
     its strokes in drawing units, which scale with it — an attempt's weight
     grows by tier from the outside in; the kept circle is the strongest
     line, its glow a blurred copy just wider, at rest this strong. The
     attempts' ink; the gold of the glow. */
  --plate-width: clamp(21.5rem, 12.5rem + 25vw, 35rem);
  --plate-crop: 4.5rem;
  --draft-thin: 0.95;
  --draft-thicken: 0.3;
  --kept-stroke: 4;
  --glow-stroke: 4.5;
  --glow-rest: 0.18;
  --small-stroke: 2.8;
  --small-kept: 4.6;
  --draft-ink: rgba(27, 24, 20, 0.8);
  --glow-ink: rgba(214, 160, 20, 0.5);
  --accent-lit: #c99c18;

  /* The circle sentence: as wide as a column at most; its two drafts, the
     ring we kept and its hand-drawn arrows; Remember's orb in the app's
     colours (remember.css). */
  --sentence-width: 37.5rem;
  --sentence-stroke: 2.3;
  --sentence-kept: 3.4;
  --sentence-link: 1.35px;
  --sentence-rough-opacity: 0.45;
  --sentence-better-opacity: 0.7;
  --sentence-link-opacity: 0.74;
  --orb-from: #4f46e5;
  --orb-to: #0e7490;
  --orb-halo: rgba(79, 70, 229, 0.22);

  /* The amendment, as an editor writes one: a gold pen stroke through the
     old word, rising slightly; a caret under the place the new word goes in;
     the new word in the italic, written. */
  --weight-written: 400;
  --strike-weight: max(2px, 0.03em);
  --strike-y: 0.6em;
  --strike-overhang: -0.05em;
  --strike-angle: -1.6deg;
  --caret-stroke: 2px;
  --caret-width: 0.3em;
  --caret-height: 0.21em;
  --caret-drop: 0.09em;
  --caret-shift: -0.13em;
  --italic-correction: 0.06em;

  --headword-size: clamp(6rem, 2.6rem + 13.6vw, 15rem);
  --headword-leading: 0.82;
  --headword-tracking: -0.035em;
  --definition-size: clamp(1.1875rem, 1.08rem + 0.45vw, 1.4375rem);

  /* Motion. The entrance: the attempts appear tier by tier, outside in —
     a dashed one fades in, a solid one draws itself — then the kept circle
     draws, slower, and its glow fades in under it; once. Then the gold line
     breathes: it brightens a little as its glow swells and settles. */
  --draw-draft: 1040ms;
  --draw-step: 80ms;
  --draw-tier: 560ms;
  --draw-kept: 3000ms;
  --draw-kept-delay: 3300ms;
  --glow-fade: 600ms;
  --breath: 5600ms;
  --breath-delay: 6300ms;
  --ease-draw: cubic-bezier(0.4, 0.1, 0.3, 1);
  --ease-breath: cubic-bezier(0.45, 0, 0.55, 1);

  /* The desk light: the canvas's glow is a pool of light wider than the
     screen, standing at the top left of the window — never centred on the
     gold ring — the paper falling away from it into a warm shade, deepest
     at the window's far edges and corners, over a longer reach on a phone;
     in the dark, a lamp's pool on the desk at night, nothing dimmer. The
     light holds still, on a layer the window's size, at least as tall as
     the window with a phone's toolbar gone. Over it lies the paper: a soft
     mottle, laid four times its tile's size, and over that its fine grain —
     clearly there by day, a step fainter at night. Each is a picture with
     its ink baked in, one per scheme (scripts/render-paper.mjs): no mask
     and no noise filter, which Firefox paints again as the page scrolls. */
  --canvas-glow-image: none;
  --desk-centre: 10vw 10vh;
  --desk-radius: 55vmax;
  --desk-height: 100lvh;
  --desk-shade-reach: 120vmax;
  --desk-shade-midpoint: 80%;
  --grain-tile: url("paper/grain-light.png");
  --mottle-tile: url("paper/mottle-light.png");
  --mottle-size: 588px;
  --page-min-height: 100svh;
}

/* On a wider screen the drawings are larger, so their strokes, in drawing
   units, are lighter; the drawing stays inside the frame. */
@media (min-width: 48rem) {
  html[data-site="amendion"] {
    --desk-shade-reach: 110vmax;
    --marker-centre: calc(var(--type-entry) * var(--leading-entry) / 2);
    --draft-thin: 0.55;
    --draft-thicken: 0.2;
    --kept-stroke: 2.6;
    --glow-stroke: 5;
    --sentence-stroke: 1.35;
    --sentence-kept: 2.1;
  }
}

/* Beside the drawing the motto has half the frame, and its heading reaches
   on to within 2.5rem of the drawing (the other half, the column gap
   between, less the drawing's width): at these sizes each line of a short,
   a medium and a long motto stays whole from 64rem up. */
@media (min-width: 64rem) {
  html[data-site="amendion"] {
    --plate-crop: 0rem;
    --hero-size: clamp(2.875rem, 0.6rem + 5.2vw, 5.5rem);
    --hero-size-medium: clamp(2.875rem, 5.3vw - 0.15rem, 4.55rem);
    --hero-size-long: clamp(2rem, 5.6vw - 1.125rem, 3.95rem);
    --hero-title-width: max(100%, 200% + var(--gap) - var(--plate-width) - 2.5rem);
  }
}

@media (prefers-color-scheme: dark) {
  /* Warm paper-black: the same desk at night, never a gothic theme. */
  html[data-site="amendion"] {
    --canvas: #141210;
    --canvas-glow: rgba(236, 198, 128, 0.075);
    --canvas-shade: transparent;
    --surface: #1d1a16;
    --ink: #ece6da;
    --ink-secondary: #d3cabb;
    --ink-muted: #a39888;
    --accent: #e3b341;
    --accent-end: #f1cf6b;
    --accent-ink: #e3b341;
    --on-accent: #141210;
    --border: rgba(236, 230, 218, 0.1);
    --border-strong: rgba(236, 230, 218, 0.22);
    --glow: rgba(227, 179, 65, 0.2);
    --selection: rgba(227, 179, 65, 0.3);
    --draft-ink: rgba(214, 205, 190, 0.6);
    --glow-ink: rgba(240, 190, 72, 0.5);
    --accent-lit: #f4cf6c;
    --orb-from: #818cf8;
    --orb-to: #22d3ee;
    --orb-halo: rgba(129, 140, 248, 0.32);
    --grain-tile: url("paper/grain-dark.png");
    --mottle-tile: url("paper/mottle-dark.png");
  }
}

/* The mark */

.brand-mark {
  width: var(--mark);
  overflow: visible;
}

.mark-ink {
  fill: var(--ink);
}

/* A section's label: a small gold ring, then the words */

/* The ring stands on the label's first line, centred on it, and keeps out of
   the label's baseline. */
.label::before {
  content: "";
  flex: none;
  align-self: flex-start;
  width: var(--label-ring);
  height: var(--label-ring);
  margin-top: calc((var(--type-small) * var(--leading-meta) - var(--label-ring)) / 2);
  border: var(--mark-ring) solid var(--accent);
  border-radius: var(--radius-full);
}

/* Ledger */

.ledger {
  padding: 0;
  list-style: none;
}

.ledger-entry {
  position: relative;
  display: grid;
  row-gap: var(--space-2);
  padding-inline-start: calc(var(--marker) + var(--space-8));
  padding-bottom: var(--ledger-gap);
}

.ledger-entry:last-child {
  padding-bottom: 0;
}

.ledger-entry:not(:last-child)::before {
  content: "";
  position: absolute;
  top: calc(var(--marker-centre) + var(--marker) / 2);
  bottom: calc(var(--marker) / 2 - var(--marker-centre));
  left: calc((var(--marker) - var(--hairline)) / 2);
  width: var(--hairline);
  background-color: var(--accent);
}

.ledger-marker {
  position: absolute;
  top: calc(var(--marker-centre) - var(--marker) / 2);
  width: var(--marker);
  overflow: visible;
}

.ledger-date {
  font-size: var(--type-date);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-meta);
  font-variant-caps: all-small-caps;
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--tracking-caps);
  color: var(--accent-ink);
}

.ledger-text {
  max-width: var(--measure-text);
  font-size: var(--type-entry);
  line-height: var(--leading-entry);
}

.ledger-intro,
.ledger-coda,
.name-statement,
.product-line,
.pull,
.write-address {
  font-family: var(--display-family);
  font-size: var(--type-statement);
  font-weight: var(--weight-heading);
  line-height: var(--leading-statement);
  letter-spacing: var(--tracking-display);
}

.ledger-intro,
.ledger-coda,
.name-statement,
.pull {
  max-width: var(--measure-statement);
  text-wrap: balance;
}

.ledger-intro {
  margin-bottom: var(--space-12);
}

.ledger-coda {
  margin-top: var(--space-12);
  color: var(--ink-muted);
}

@media (min-width: 48rem) {
  .ledger-entry {
    grid-template-columns: var(--date-column) minmax(0, 1fr);
    column-gap: var(--gap);
    align-items: baseline;
  }
}

@media (min-width: 64rem) {
  .ledger-coda {
    padding-inline-start: calc(var(--marker) + var(--space-8));
  }
}

/* Pairs: a list of leads, each with its text, one row each — the
   atelier's principles, the contact page's reasons */

.pairs {
  display: grid;
  row-gap: var(--space-12);
  padding: 0;
  list-style: none;
}

.pair {
  display: grid;
  row-gap: var(--space-4);
}

.pair-lead {
  max-width: var(--measure-statement);
  font-size: var(--type-pair-lead);
  line-height: var(--leading-pair-lead);
}

.pair-text {
  max-width: var(--measure-text);
  color: var(--ink-secondary);
}

/* From 64rem a pair is a row on the content's ten columns: its lead in 1–4,
   its text in 6–10; from 80rem in 1–3 and 5–10 (the page's 3–5 and 7–12). */
@media (min-width: 64rem) {
  .pair {
    grid-template-columns: var(--grid-content);
    column-gap: var(--gap);
    align-items: baseline;
  }

  .pair-lead {
    grid-column: 1 / span 4;
  }

  .pair-text {
    grid-column: 6 / -1;
  }
}

@media (min-width: 80rem) {
  .pair-lead {
    grid-column: 1 / span 3;
  }

  .pair-text {
    grid-column: 5 / -1;
  }
}

/* Principles */

.principles {
  counter-reset: principle;
}

.principle {
  position: relative;
  padding-inline-start: calc(var(--numeral-ring) + var(--space-8));
  counter-increment: principle;
}

/* The numeral is the list's counter, set over its ring and not read
   twice — in the body face: at a ring's size Fraunces's flat-topped 3 reads
   as its 5, in the 72pt cut too. */
.principle::before {
  content: counter(principle);
  content: counter(principle) / "";
  position: absolute;
  width: var(--numeral-ring);
  font-family: var(--family-body);
  font-size: var(--type-numeral);
  font-weight: var(--weight-display);
  line-height: var(--numeral-ring);
  font-variant-numeric: lining-nums tabular-nums;
  text-align: center;
}

.principle > svg {
  position: absolute;
  width: var(--numeral-ring);
  overflow: visible;
}

/* The name's statement: the passage's first sentence, set as a pull is at a
   pair lead's size, its story beside it — from 64rem on a measure that stands
   it on two balanced lines against the story's height. */
.name-statement {
  margin-bottom: var(--space-4);
  font-size: var(--type-pair-lead);
  line-height: var(--leading-pair-lead);
}

@media (min-width: 64rem) {
  .name-statement {
    max-width: var(--measure-name);
  }
}

@media (min-width: 64rem) {
  .principle {
    padding-inline-start: 0;
  }

  .principle > .pair-lead {
    padding-inline-start: calc(var(--numeral-ring) + var(--space-8));
  }
}

/* The ledger's markers and the atelier's numeral rings */

.marker-draft,
.numeral-draft {
  fill: none;
  stroke: var(--ink);
  stroke-opacity: var(--draft-opacity);
  vector-effect: non-scaling-stroke;
}

.mark-kept,
.marker-kept,
.numeral-kept {
  fill: none;
  stroke: var(--accent);
  stroke-width: var(--mark-ring);
  vector-effect: non-scaling-stroke;
}

/* The first screen: the stance beside the drawing */

.hero {
  align-items: center;
  row-gap: var(--space-12);
}

.kicker {
  margin-bottom: var(--space-6);
  font-size: var(--type-small);
  color: var(--ink-muted);
}

.hero-title {
  width: var(--hero-title-width);
  font-size: max(var(--hero-size), var(--product-size));
  line-height: var(--hero-leading);
  letter-spacing: var(--hero-tracking);
}

.hero-title[data-measure="medium"] {
  font-size: max(var(--hero-size-medium), var(--product-size));
}

.hero-title[data-measure="long"] {
  font-size: max(var(--hero-size-long), var(--product-size));
}

.hero-title[data-measure="overlong"] {
  font-size: max(var(--hero-size-overlong), var(--product-size));
}

.hero-line {
  display: block;
  text-wrap: balance;
}

.hero-lede {
  margin-top: var(--space-10);
  max-width: var(--measure-text);
  font-size: var(--type-lead);
  line-height: var(--leading-statement);
  color: var(--ink-secondary);
}

/* On a phone the drawing comes first and runs off the page's edge; on a
   wide screen it stands beside the words, whole. */
.hero-figure {
  order: -1;
  justify-self: end;
  width: var(--plate-width);
  margin-inline-end: calc(-1 * var(--plate-crop));
}

@media (min-width: 64rem) {
  .hero-text {
    grid-column: 1 / span 6;
  }

  .hero-figure {
    grid-column: 7 / -1;
    order: 0;
  }
}

/* The drawing */

.plate,
.small-plate {
  display: block;
  width: 100%;
  overflow: visible;
}

/* The hero is a layer of its own: a frame of its entrance repaints the
   drawing, not the paper under it. */
.plate {
  will-change: transform;
}

.plate .drafts path {
  fill: none;
  stroke: var(--draft-ink);
  stroke-width: calc(var(--draft-thin) + var(--tier, 0) * var(--draft-thicken));
}

.plate .drafts [stroke-dasharray] {
  stroke-linecap: round;
}

.plate .drafts > :nth-child(2) {
  --tier: 1;
}

.plate .drafts > :nth-child(3) {
  --tier: 2;
}

.plate .drafts > :nth-child(4) {
  --tier: 3;
}

.plate .drafts > :nth-child(5) {
  --tier: 4;
}

.plate .kept,
.plate .kept-glow,
.plate .kept-lit {
  fill: none;
  stroke: var(--accent);
  stroke-width: var(--kept-stroke);
}

.plate .kept-glow {
  stroke: var(--glow-ink);
  stroke-width: var(--glow-stroke);
  opacity: var(--glow-rest);
}

/* The kept circle's lit copy: the line brightens as the copy shows over it. */
.plate .kept-lit {
  stroke: var(--accent-lit);
  opacity: 0;
}

/* The entrance, without a rule per path: a tier sets --tier, a path its
   place in the tier, --step (test/drawings.test.js holds these to the
   drawing's tiers). The kept circle draws last; then it breathes. */
.plate .drafts path {
  animation: draw var(--draw-draft) var(--ease-draw) backwards;
  animation-delay: calc(var(--tier, 0) * var(--draw-tier) + var(--step, 0) * var(--draw-step));
}

.plate .drafts [stroke-dasharray] {
  animation-name: appear-stroke;
}

.plate .drafts path:nth-child(2) {
  --step: 1;
}

.plate .drafts path:nth-child(3) {
  --step: 2;
}

.plate .kept {
  animation: draw var(--draw-kept) var(--ease-draw) var(--draw-kept-delay) backwards;
}

/* The line kindles by its lit copy's opacity, which the compositor runs, not
   by its own colour, which would repaint it every frame. */
.plate .kept-lit {
  animation: kindle var(--breath) var(--ease-breath) var(--breath-delay) infinite;
}

/* The glow is not drawn: its group fades in once the kept circle is drawn,
   and the glow breathes on its own — one opacity animation each, which the
   compositor runs; two on one element would both fall back to the page. */
.plate .glow {
  animation: appear var(--glow-fade) var(--ease-draw) calc(var(--draw-kept-delay) + var(--draw-kept)) backwards;
}

.plate .kept-glow {
  animation: breathe var(--breath) var(--ease-breath) var(--breath-delay) infinite;
}

@keyframes draw {
  from {
    stroke-dasharray: 0 1;
  }

  to {
    stroke-dasharray: 1 0;
  }
}

@keyframes appear {
  from {
    opacity: 0;
  }
}

/* A dashed attempt fades in by its stroke: it stays on the drawing's layer
   instead of becoming a layer of its own while it fades. */
@keyframes appear-stroke {
  from {
    stroke: transparent;
  }
}

@keyframes kindle {
  50% {
    opacity: 1;
  }
}

@keyframes breathe {
  50% {
    opacity: 1;
  }
}

.small-plate path {
  fill: none;
  stroke: var(--draft-ink);
  stroke-width: var(--small-stroke);
}

.small-plate [stroke-dasharray] {
  stroke-linecap: round;
}

.small-plate .kept {
  stroke: var(--accent);
  stroke-width: var(--small-kept);
}

/* What we make: Remember, its line, the circle sentence */

.product {
  font-size: var(--product-size);
  line-height: var(--leading-display);
}

.product-line {
  margin-top: var(--space-5);
  color: var(--ink-muted);
}

.circle-sentence {
  display: block;
  width: min(100%, var(--sentence-width));
  margin-block: var(--space-12);
  overflow: visible;
}

.sentence-draft,
.sentence-kept {
  fill: none;
  stroke: var(--ink);
  stroke-width: var(--sentence-stroke);
}

.sentence-rough {
  stroke-opacity: var(--sentence-rough-opacity);
  stroke-linecap: round;
}

.sentence-better {
  stroke-opacity: var(--sentence-better-opacity);
}

.sentence-kept {
  stroke: var(--accent);
  stroke-width: var(--sentence-kept);
}

.sentence-link {
  fill: none;
  stroke: var(--ink);
  stroke-opacity: var(--sentence-link-opacity);
  stroke-width: var(--sentence-link);
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.orb-from {
  stop-color: var(--orb-from);
}

.orb-to {
  stop-color: var(--orb-to);
}

.orb-halo-in,
.orb-halo-out {
  stop-color: var(--orb-halo);
}

.orb-halo-out {
  stop-opacity: 0;
}

.make-body {
  max-width: var(--measure-text);
}

.pull {
  margin-top: var(--space-12);
}

.status {
  margin-top: var(--space-12);
  font-size: var(--type-small);
  color: var(--ink-muted);
}

.more {
  margin-top: var(--space-4);
}

@media (min-width: 64rem) {
  .make .product {
    margin-top: calc(-1 * var(--space-5));
  }
}

/* How we think, and the one amendment the site shows */

.think-title {
  margin-bottom: var(--space-12);
  font-size: var(--type-page-title);
  line-height: var(--leading-display);
}

.think-body {
  max-width: var(--measure-text);
  color: var(--ink-secondary);
}

/* The pair stays on one line; the caret travels with the first letters of
   the word written in. */
.amendment {
  white-space: nowrap;
}

del {
  position: relative;
  display: inline-block;
  color: var(--ink-muted);
  text-decoration: none;
}

del::after {
  content: "";
  position: absolute;
  top: var(--strike-y);
  right: var(--strike-overhang);
  left: var(--strike-overhang);
  height: var(--strike-weight);
  background-color: var(--accent);
  transform: rotate(var(--strike-angle));
  transform-origin: left center;
}

ins {
  margin-inline-end: var(--italic-correction);
  font-style: italic;
  font-weight: var(--weight-written);
  letter-spacing: 0;
  text-decoration: none;
}

.caret-point {
  position: relative;
  display: inline-block;
}

.caret {
  position: absolute;
  top: var(--caret-drop);
  left: calc(var(--caret-shift) - var(--caret-width) / 2);
  width: var(--caret-width);
  height: var(--caret-height);
  overflow: visible;
}

.caret path {
  fill: none;
  stroke: var(--accent);
  stroke-width: var(--caret-stroke);
  vector-effect: non-scaling-stroke;
}

@media (min-width: 64rem) {
  .think .think-title {
    margin-top: calc(-1 * var(--space-4));
  }
}

/* The name */

.headword {
  font-size: var(--headword-size);
  line-height: var(--headword-leading);
  letter-spacing: var(--headword-tracking);
}

.pronunciation {
  margin-top: var(--space-8);
  font-size: var(--type-small);
  color: var(--ink-muted);
}

.definition {
  margin-top: var(--space-5);
  max-width: var(--measure-text);
  font-size: var(--definition-size);
}

/* Write to us: the line, the address, what to write about */

.write-line {
  font-family: var(--display-family);
  font-size: var(--type-page-title);
  font-weight: var(--weight-heading);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}

.write-address {
  margin-top: var(--space-6);
  color: var(--accent-ink);
}

.write-address a {
  text-decoration-thickness: var(--line-strong);
}

.write-note {
  margin-top: var(--space-8);
  max-width: var(--measure-text);
  color: var(--ink-muted);
}

.name .more {
  margin-top: var(--space-6);
}

@media (min-width: 64rem) {
  .name .headword {
    grid-column: 1 / span 6;
    grid-row: 1 / span 3;
    align-self: end;
  }

  .name > :not(.headword) {
    grid-column: 8 / -1;
  }

  .name .pronunciation {
    grid-row: 1;
    align-self: end;
  }

  .name .definition {
    grid-row: 2;
  }

  .name .more {
    grid-row: 3;
  }

  .write .write-line {
    grid-column: 3 / span 4;
    margin-top: calc(-1 * var(--space-4));
  }

  .write .write-address {
    grid-column: 8 / -1;
    grid-row: 1;
    align-self: end;
    margin-top: 0;
  }

  .write .write-note {
    grid-column: 8 / -1;
  }
}

/* The background: daylight over the desk. The light is the room's — it
   stays with the window as the page scrolls — the grain and the mottle are
   the paper's and scroll with it, the body's own background; both lie
   under the content */

html[data-site="amendion"]::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  min-height: var(--desk-height);
  background-image: radial-gradient(circle var(--desk-radius) at var(--desk-centre), var(--canvas-glow), transparent), radial-gradient(circle var(--desk-shade-reach) at var(--desk-centre), transparent, var(--desk-shade-midpoint), var(--canvas-shade));
  pointer-events: none;
}

/* The body is at least the window's height, so the paper reaches the
   bottom of a short page. */
html[data-site="amendion"] body {
  position: relative;
  min-height: var(--page-min-height);
  background-image: var(--grain-tile), var(--mottle-tile);
  background-size: auto, var(--mottle-size);
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  .plate .drafts path,
  .plate .glow,
  .plate .kept,
  .plate .kept-glow,
  .plate .kept-lit {
    animation: none;
  }
}
