/* Aerial Systems Research
   Visual language borrowed from aeronautical charts: cool chart paper,
   chart magenta for working marks, a ticked neatline along the brief,
   and a plotted track in the masthead. Archivo (narrow cuts) carries
   headings and interface; Source Serif 4 carries reading text.
   Content changes each month; this file should not. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/fonts/archivo-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/source-serif-4-italic-latin.woff2") format("woff2");
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: light;

  --paper: #eef2ef;
  --panel: #fbfcfa;
  --ink: #17221f;
  --ink-muted: #475551;
  --magenta: #8e1a55;
  --magenta-soft: #f4e4ec;
  --rule: #c3cdc7;
  --grid: #d6ded9;
  --field: #ffffff;
  --band: #17221f;
  --band-ink: #e8eeea;
  --band-muted: #a9b8b2;
  --band-accent: #f0a3c8;
  --band-field: #22302c;
  --band-rule: #3a4a45;
  --ok: #1d6b45;
  --error: #9b2226;

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 3vw, 1.875rem);
  --step-3: clamp(2.125rem, 5.5vw, 3.5rem);
  --step-4: clamp(3rem, 11vw, 6.75rem);

  --measure: 66ch;
  --gutter: clamp(1rem, 4vw, 3rem);
  --tick: 14px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0f1614;
    --panel: #151f1c;
    --ink: #e3e9e6;
    --ink-muted: #a4b2ad;
    --magenta: #e78ab8;
    --magenta-soft: #35202c;
    --rule: #2e3b37;
    --grid: #1d2926;
    --field: #0b1210;
    --band: #1b2724;
    --band-ink: #e8eeea;
    --band-muted: #a9b8b2;
    --band-accent: #f0a3c8;
    --band-field: #111a17;
    --band-rule: #34443f;
    --ok: #7fd0a5;
    --error: #f2a0a3;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0f1614;
  --panel: #151f1c;
  --ink: #e3e9e6;
  --ink-muted: #a4b2ad;
  --magenta: #e78ab8;
  --magenta-soft: #35202c;
  --rule: #2e3b37;
  --grid: #1d2926;
  --field: #0b1210;
  --band: #1b2724;
  --band-field: #111a17;
  --band-rule: #34443f;
  --ok: #7fd0a5;
  --error: #f2a0a3;
}

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

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.62;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--sans);
  font-stretch: 72%;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--magenta);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

cite {
  font-style: italic;
}

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

.skip {
  position: absolute;
  left: -9999px;
  font-family: var(--sans);
}

.skip:focus {
  left: var(--gutter);
  top: 0.5rem;
  background: var(--panel);
  padding: 0.5rem 0.75rem;
  z-index: 10;
}

.wrap {
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------- Masthead ---------- */

.masthead {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 100% 4rem,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 4rem 100%,
    var(--paper);
}

.masthead .wrap {
  position: relative;
  padding-block: clamp(2.75rem, 9vw, 6.5rem) clamp(2.25rem, 6vw, 4.5rem);
}

.masthead__chart {
  position: absolute;
  top: 50%;
  right: max(-6rem, calc((100vw - 76rem) / 2 - 6rem));
  width: clamp(18rem, 52vw, 42rem);
  height: auto;
  transform: translateY(-50%);
  pointer-events: none;
}

.masthead__name {
  position: relative;
  font-family: var(--sans); /* set here too: plain pages use a <p>, not the home page's <h1> */
  font-size: var(--step-4);
  font-stretch: 62%;
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.012em;
  max-width: 9ch;
}

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

.masthead__line {
  position: relative;
  margin: 1.25rem 0 0;
  font-family: var(--sans);
  font-size: var(--step-1);
  font-stretch: 85%;
  font-weight: 500;
  line-height: 1.3;
  max-width: 30ch;
}

.intro {
  position: relative;
  margin: clamp(1.5rem, 4vw, 2.5rem) 0 0;
  max-width: 58ch;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink);
}

.intro--second {
  margin-top: 1rem;
}

.intro__links {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: clamp(1.5rem, 3vw, 2rem) 0 0;
  font-family: var(--sans);
  font-weight: 650;
}

.intro__link {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border-radius: 3px;
  background: var(--magenta);
  color: var(--panel);
  text-decoration: none;
}

.intro__link:hover {
  filter: brightness(1.1);
}

.intro__link--quiet {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink-muted);
}

.intro__link--quiet:hover {
  border-color: var(--magenta);
  color: var(--magenta);
  filter: none;
}

/* Chart marks inside the masthead SVG */
.chart-grid { stroke: var(--rule); stroke-width: 1; fill: none; }
.chart-ring { stroke: var(--magenta); stroke-width: 2.5; fill: none; stroke-dasharray: 10 7; }
.chart-ring--inner { stroke-width: 1.5; stroke-dasharray: none; opacity: 0.55; }
.chart-track { stroke: var(--ink); stroke-width: 1.5; fill: none; }
.chart-tick { stroke: var(--ink); stroke-width: 1.5; }
.chart-fix { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.chart-fix--hot { fill: var(--magenta); stroke: var(--magenta); }

@media (max-width: 40rem) {
  .masthead__chart {
    top: 1rem;
    right: -7rem;
    transform: none;
    opacity: 0.5;
  }
}

/* ---------- The brief ---------- */

.brief {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-top: 0;
  padding:
    clamp(1.75rem, 4vw, 3.25rem)
    clamp(1.25rem, 4vw, 3.5rem)
    clamp(2rem, 5vw, 3.5rem)
    calc(clamp(1.25rem, 4vw, 3.5rem) + var(--tick));
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
}

/* Chart neatline: a solid rule with minute ticks, a longer tick every fifth. */
.brief::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: -1px;
  left: -1px;
  width: var(--tick);
  border-right: 2px solid var(--magenta);
  background:
    repeating-linear-gradient(to bottom, var(--magenta) 0 1px, transparent 1px 60px) right / var(--tick) 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--magenta) 0 1px, transparent 1px 12px) right / 7px 100% no-repeat;
  pointer-events: none;
}

.brief__head {
  display: grid;
  gap: 1rem 2rem;
  align-items: end;
  padding-bottom: clamp(1.25rem, 3vw, 2rem);
  border-bottom: 3px solid var(--ink);
}

.brief__title {
  font-size: var(--step-3);
  font-stretch: 66%;
  font-weight: 800;
}

.brief__edition {
  margin: 0.35rem 0 0;
  font-family: var(--sans);
  font-size: var(--step-2);
  font-stretch: 72%;
  font-weight: 600;
  color: var(--magenta);
}

.brief__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  font-family: var(--sans);
  font-size: var(--step--1);
  color: var(--ink-muted);
}

.brief__meta p {
  margin: 0;
}

.brief__meta strong {
  color: var(--ink);
  font-weight: 600;
}

.print-btn {
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink-muted);
  border-radius: 3px;
  padding: 0.45rem 0.9rem;
  min-height: 2.5rem;
  cursor: pointer;
}

.print-btn:hover {
  border-color: var(--magenta);
  color: var(--magenta);
}

@media (min-width: 52rem) {
  .brief__head {
    grid-template-columns: 1fr auto;
  }
  .brief__meta {
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
  }
}

/* Contents: the edition at a glance */

.contents {
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
}

.contents__title {
  font-size: var(--step-0);
  font-stretch: 85%;
  font-weight: 650;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}

.contents ol {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--sans);
}

.contents li {
  border-top: 1px solid var(--rule);
}

.contents li:last-child {
  border-bottom: 1px solid var(--rule);
}

.contents a {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.15rem 0.75rem;
  padding: 0.7rem 0.25rem;
  color: var(--ink);
  text-decoration: none;
}

.contents a:hover {
  background: var(--magenta-soft);
}

.contents__no {
  grid-row: span 2;
  font-stretch: 64%;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.1;
  color: var(--magenta);
  font-variant-numeric: tabular-nums;
}

.contents__name {
  font-weight: 600;
  line-height: 1.3;
}

.contents__tags {
  font-size: var(--step--1);
  color: var(--ink-muted);
}

@media (min-width: 52rem) {
  .contents a {
    grid-template-columns: 2.25rem minmax(0, 1fr) 11rem 15rem;
    align-items: baseline;
  }
  .contents__no {
    grid-row: auto;
  }
  .contents__tags {
    display: contents;
  }
}

/* Entries */

.entries {
  list-style: none;
  margin: 0;
  padding: 0;
}

.entry {
  display: grid;
  gap: 1.25rem 3rem;
  padding: clamp(2rem, 5vw, 3.25rem) 0;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 1.5rem;
}

.entries > li:last-child .entry {
  border-bottom: 0;
  padding-bottom: 0;
}

.entry:target {
  background: var(--magenta-soft);
  box-shadow: 0 0 0 1.25rem var(--magenta-soft);
}

.entry__header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.35rem 1rem;
  align-items: baseline;
}

.entry__no {
  grid-row: span 2;
  font-family: var(--sans);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-stretch: 62%;
  font-weight: 800;
  line-height: 0.85;
  font-variant-numeric: tabular-nums;
  color: var(--magenta);
  text-decoration: none;
}

.entry__no:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* Region, Stage and Source status: one label each, name above value. */
.labels {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.6rem 0 0;
  font-family: var(--sans);
}

.label {
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.3rem 0.6rem 0.35rem;
  line-height: 1.25;
}

.label dt {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.label dd {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.label--status {
  border-color: var(--magenta);
  background: var(--magenta-soft);
}

.label--status dt,
.label--status dd {
  color: var(--magenta);
}

.entry__title {
  font-size: var(--step-2);
  max-width: 30ch;
}

.figure {
  margin: 0;
  align-self: start;
  border-top: 3px solid var(--magenta);
  padding-top: 0.75rem;
  font-family: var(--sans);
}

.figure__value {
  display: block;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-stretch: 64%;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--ink);
}

.figure__qual {
  display: block;
  font-size: 0.9375rem;
  font-stretch: 85%;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink-muted);
}

.figure__label {
  display: block;
  margin-top: 0.4rem;
  font-size: var(--step--1);
  line-height: 1.4;
  color: var(--ink-muted);
}

.fields {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
}

.fields dt {
  font-family: var(--sans);
  font-weight: 650;
  font-size: var(--step--1);
  color: var(--magenta);
  margin-top: 1.1rem;
}

.fields dt:first-child {
  margin-top: 0;
}

.fields dd {
  margin: 0.2rem 0 0;
  max-width: var(--measure);
}

.fields dd.indicates {
  font-weight: 600;
}

@media (min-width: 44rem) {
  .fields {
    grid-template-columns: 9.5rem minmax(0, 1fr);
    column-gap: 1.5rem;
  }
  .fields dt {
    margin-top: 0;
    padding: 0.85rem 0;
    border-top: 1px solid var(--rule);
    line-height: 1.62;
    font-size: 0.9375rem;
  }
  .fields dd {
    margin: 0;
    padding: 0.8rem 0;
    border-top: 1px solid var(--rule);
  }
  .fields dt:first-of-type,
  .fields dt:first-of-type + dd {
    border-top: 0;
    padding-top: 0;
  }
  .fields dt:last-of-type,
  .fields dt:last-of-type + dd {
    padding-bottom: 0;
  }
}

@media (min-width: 64rem) {
  .entry {
    grid-template-columns: minmax(0, 1fr) 13rem;
    grid-template-areas:
      "head figure"
      "fields figure";
  }
  .entry__header { grid-area: head; }
  .fields { grid-area: fields; }
  .figure { grid-area: figure; margin-top: 0.4rem; }
}

.num {
  font-variant-numeric: tabular-nums lining-nums;
}

.brief__note {
  margin: 1.25rem 0 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--magenta);
  background: var(--magenta-soft);
  font-family: var(--sans);
  max-width: var(--measure);
}

.brief__previous {
  margin: 2.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  color: var(--ink-muted);
}

/* ---------- Quick sign-up under the brief ---------- */

.signup {
  margin: 0 0 clamp(3rem, 7vw, 5rem);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--magenta);
  background: var(--panel);
  font-family: var(--sans);
  max-width: 46rem;
}

.signup__title {
  font-size: var(--step-2);
  margin-bottom: 0.5rem;
}

.signup__lead {
  margin-bottom: 1rem;
  color: var(--ink-muted);
}

.signup__label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.signup__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.signup__row input {
  flex: 1 1 16rem;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--rule);
  border-bottom-color: var(--ink-muted);
  border-radius: 3px;
  padding: 0.65rem 0.75rem;
  min-height: 3rem;
}

.signup__row input:focus-visible {
  outline-offset: 1px;
  border-color: var(--magenta);
}

.signup__row input[aria-invalid="true"] {
  border-color: var(--error);
}

.signup__row button {
  font: inherit;
  font-weight: 700;
  color: var(--panel);
  background: var(--magenta);
  border: 0;
  border-radius: 3px;
  padding: 0.8rem 1.6rem;
  min-height: 3rem;
  cursor: pointer;
}

.signup__row button:hover {
  filter: brightness(1.1);
}

.signup__row button[disabled] {
  opacity: 0.65;
  cursor: progress;
}

.signup__status {
  margin: 0.6rem 0 0;
  font-weight: 600;
  min-height: 1.5em;
}

.signup__status[data-state="ok"] {
  color: var(--ok);
}

.signup__status[data-state="error"] {
  color: var(--error);
}

.signup__note {
  margin: 0.25rem 0 0;
  font-size: var(--step--1);
  color: var(--ink-muted);
}

@media print {
  .signup {
    display: none;
  }
}

/* ---------- Sources and cadence ---------- */

.sources {
  display: grid;
  gap: 1.5rem 3.5rem;
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
}

.sources h2,
.work h2 {
  font-size: var(--step-2);
  margin-bottom: 1rem;
}

.sources p {
  max-width: var(--measure);
}

.cadence {
  align-self: start;
  margin: 0;
  border-top: 3px solid var(--magenta);
  padding-top: 0.75rem;
  font-family: var(--sans);
  font-size: var(--step-2);
  font-stretch: 72%;
  font-weight: 700;
  line-height: 1.1;
}

@media (min-width: 52rem) {
  .sources {
    grid-template-columns: minmax(0, 1fr) 13rem;
  }
  .sources h2 {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }
}

/* ---------- Commissioned research and form (dark band) ---------- */

.band {
  background: var(--band);
  color: var(--band-ink);
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

.band a {
  color: var(--band-accent);
}

.band :focus-visible {
  outline-color: var(--band-accent);
}

.band__grid {
  display: grid;
  gap: 2.5rem 4.5rem;
}

@media (min-width: 60rem) {
  .band__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}

.work p {
  font-size: var(--step-1);
  line-height: 1.5;
  max-width: 40ch;
}

.work__questions {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
  max-width: 44ch;
}

.work__questions li {
  position: relative;
  padding-left: 1.4rem;
  line-height: 1.45;
}

.work__questions li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border: 2px solid var(--band-accent);
  border-radius: 50%;
}

.work p.work__terms {
  font-size: var(--step-0);
  color: var(--band-muted);
  font-family: var(--sans);
}

.enquire h2 {
  font-size: var(--step-2);
  margin-bottom: 1.5rem;
}

.form {
  display: grid;
  gap: 1.1rem 1.25rem;
  font-family: var(--sans);
}

@media (min-width: 40rem) {
  .form {
    grid-template-columns: 1fr 1fr;
  }
  .form .span {
    grid-column: 1 / -1;
  }
}

.form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

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

.form input,
.form select,
.form textarea {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--band-ink);
  background: var(--band-field);
  border: 1px solid var(--band-rule);
  border-bottom-color: var(--band-muted);
  border-radius: 3px;
  padding: 0.65rem 0.75rem;
  min-height: 3rem;
}

.form textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--band-ink) 50%),
    linear-gradient(135deg, var(--band-ink) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 55%, calc(100% - 0.8rem) 55%;
  background-size: 0.35rem 0.35rem;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible {
  outline-offset: 1px;
  border-color: var(--band-accent);
}

.form input[aria-invalid="true"] {
  border-color: var(--band-accent);
}

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

.form button {
  justify-self: start;
  font: inherit;
  font-weight: 700;
  color: var(--band);
  background: var(--band-accent);
  border: 0;
  border-radius: 3px;
  padding: 0.8rem 1.75rem;
  min-height: 3rem;
  cursor: pointer;
}

.form button:hover {
  filter: brightness(1.08);
}

.form button[disabled] {
  opacity: 0.65;
  cursor: progress;
}

.form__status {
  margin: 0;
  font-weight: 600;
  min-height: 1.5em;
}

.form__status[data-state="ok"] {
  color: #9fe0bb;
}

.form__status[data-state="error"] {
  color: #ffb4b7;
}

.form__notes {
  margin-top: 1.5rem;
  color: var(--band-muted);
  font-size: var(--step--1);
  font-family: var(--sans);
  max-width: var(--measure);
}

.form__notes p {
  margin-bottom: 0.4em;
  text-wrap: pretty;
}

.nowrap {
  white-space: nowrap;
}

.noscript {
  font-family: var(--sans);
  font-weight: 600;
}

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

.footer {
  padding-block: 2.25rem 3.5rem;
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: var(--step--1);
}

.footer p {
  max-width: 72ch;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer .footer__links {
  margin-bottom: 0.9rem;
}

/* Entry footer: topic tracker links */
.entry__topics {
  margin: 1rem 0 0;
  font-family: var(--sans);
  font-size: var(--step--1);
  color: var(--ink-muted);
}

/* ---------- Topic tracker timeline ---------- */

.timeline {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
  border-left: 2px solid var(--rule);
}

.timeline__item {
  position: relative;
  padding: 0 0 2rem 1.5rem;
  max-width: var(--measure);
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--magenta);
}

.timeline__item:first-child::before {
  background: var(--magenta);
}

.timeline__date,
.timeline__labels {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step--1);
  color: var(--ink-muted);
}

.page .timeline__title {
  margin: 0.3rem 0 0.35rem;
  font-size: var(--step-1);
}

.timeline__title a {
  color: var(--ink);
  text-decoration: none;
}

.timeline__title a:hover {
  color: var(--magenta);
}

.timeline__figure {
  margin: 0.6rem 0 0;
  font-family: var(--sans);
}

.timeline__figure strong {
  font-size: 1.25rem;
  color: var(--magenta);
  font-variant-numeric: tabular-nums lining-nums;
}

.timeline__milestone {
  font-size: 0.95em;
}

@media print {
  .footer__links,
  .entry__topics {
    display: none;
  }
}

/* ---------- Plain pages (privacy, 404) ---------- */

.masthead--compact .wrap {
  padding-block: clamp(2rem, 6vw, 3.5rem);
}

.masthead--compact .masthead__name {
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  max-width: none;
}

.page {
  max-width: var(--measure);
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(3rem, 7vw, 5rem);
}

.page h1 {
  font-size: var(--step-3);
  margin-bottom: 1.25rem;
}

.page h2 {
  font-size: var(--step-1);
  font-stretch: 80%;
  margin: 2.25rem 0 0.6rem;
}

.page ul {
  padding-left: 1.2rem;
  margin: 0 0 1em;
}

.page .updated {
  font-family: var(--sans);
  color: var(--ink-muted);
}

/* /editions/ archive: the contents grid needs the full wrap width */
.page--editions {
  max-width: none;
}

.page--editions > p {
  max-width: var(--measure);
}

.page--editions .edition-item h2 a {
  color: var(--ink);
  text-decoration: none;
}

.page--editions .edition-item h2 a:hover {
  color: var(--magenta);
}

.page--editions .contents {
  margin: 0.75rem 0 0;
}

.page--404 h1 {
  font-size: var(--step-4);
  font-stretch: 62%;
  font-weight: 800;
  line-height: 0.9;
  max-width: 12ch;
}

.footer--rule {
  border-top: 1px solid var(--rule);
}

/* ---------- Motion: one moment, the chart plots itself on load ---------- */

@media (prefers-reduced-motion: no-preference) {
  .chart-track {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: plot 1400ms 150ms cubic-bezier(0.3, 0.6, 0.2, 1) forwards;
  }
  .brief::before {
    transform-origin: top;
    animation: neatline 1000ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  @keyframes plot {
    to { stroke-dashoffset: 0; }
  }
  @keyframes neatline {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
  }
}

/* ---------- Print: the brief, for meetings ---------- */

@media print {
  :root {
    --paper: #fff;
    --panel: #fff;
    --ink: #000;
    --ink-muted: #333;
    --magenta: #8e1a55;
    --rule: #aaa;
  }
  @page {
    margin: 15mm 14mm;
  }
  body {
    font-size: 10pt;
    line-height: 1.45;
  }
  /* A running footer on every printed page (Chrome 131+ supports page
     margin boxes; other browsers simply omit it). */
  @page {
    @bottom-left {
      content: "aerialsystemsresearch.com";
      font-family: "Archivo", Arial, sans-serif;
      font-size: 7.5pt;
      color: #444;
    }
    @bottom-right {
      content: "contact@aerialsystemsresearch.com";
      font-family: "Archivo", Arial, sans-serif;
      font-size: 7.5pt;
      color: #444;
    }
  }
  .skip,
  .masthead__chart,
  .print-btn,
  .intro__links,
  .enquire {
    display: none !important;
  }
  .intro {
    font-size: 10.5pt;
    margin-top: 3mm;
    max-width: none;
  }
  .contents {
    margin-top: 3mm;
    break-inside: avoid;
  }
  .contents a {
    padding: 1mm 0;
  }
  .contents__no {
    font-size: 11pt;
  }
  .band {
    background: none;
    color: var(--ink);
    padding: 0;
  }
  .band__grid {
    display: block;
  }
  .work {
    break-inside: avoid;
    margin-bottom: 4mm;
  }
  .work h2 {
    font-size: 11pt;
    margin-bottom: 1.5mm;
  }
  .work p {
    font-size: 9pt;
    max-width: none;
    margin: 0;
  }
  .masthead {
    background: none;
    border: 0;
  }
  .masthead .wrap {
    padding: 0 0 5mm;
  }
  .masthead__name {
    font-size: 24pt;
    max-width: none;
  }
  .masthead__line {
    font-size: 11pt;
    margin-top: 2mm;
  }
  .brief {
    border: 0;
    padding: 0 0 0 8mm;
    margin-bottom: 6mm;
  }
  .brief::before {
    animation: none;
  }
  /* Print uses plain block layout: Chrome does not reliably honour
     break-inside on grid containers, which split entries across pages
     and pushed the whole brief off page one. Source names stay clickable
     in a saved PDF; printed URLs are left out. */
  .brief__head,
  .entry,
  .entry__header,
  .fields {
    display: block;
  }
  .brief__head {
    padding-bottom: 3mm;
    break-inside: avoid;
    break-after: avoid;
  }
  .brief__meta {
    display: block;
    margin-top: 2mm;
    text-align: left;
  }
  .entry {
    break-inside: avoid;
    page-break-inside: avoid;
    padding: 5mm 0;
  }
  .entry::after {
    content: "";
    display: block;
    clear: both;
  }
  .entry__header {
    position: relative;
    padding-left: 11mm;
    margin-bottom: 3mm;
  }
  .labels {
    margin-top: 2mm;
    gap: 1.5mm;
  }
  .label {
    padding: 0.8mm 2mm;
  }
  .label dt {
    font-size: 6.5pt;
  }
  .label dd {
    font-size: 8pt;
  }
  .entry__no {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 26pt;
  }
  .entry__title {
    font-size: 15pt;
  }
  .figure {
    float: right;
    width: 36mm;
    margin: 0 0 3mm 8mm;
  }
  .figure__value {
    font-size: 20pt;
  }
  .fields {
    margin-left: 11mm;
    margin-right: 44mm;
  }
  .fields dt {
    float: left;
    clear: left;
    width: 27mm;
    font-size: 8.5pt;
  }
  .fields dt,
  .fields dd {
    margin: 0;
    padding: 1.5mm 0;
    border-top: 0.5pt solid var(--rule);
  }
  .fields dd {
    margin-left: 27mm;
    padding-left: 3mm;
  }
  .fields dt:first-of-type,
  .fields dt:first-of-type + dd {
    border-top: 0;
    padding-top: 0;
  }
  .entry:target {
    background: none;
    box-shadow: none;
  }
  .brief a {
    color: inherit;
    text-decoration-thickness: 0.5pt;
  }
  /* Keep the closing matter compact so it never becomes a page of its own. */
  .sources {
    display: block;
    margin-bottom: 3mm;
    font-size: 8.5pt;
    break-inside: avoid;
  }
  .sources h2 {
    font-size: 11pt;
    margin-bottom: 1.5mm;
  }
  .sources p {
    margin-bottom: 1.5mm;
  }
  .cadence {
    border: 0;
    padding: 0;
    font-size: 9pt;
  }
  .footer {
    padding: 2mm 0 0;
    border-top: 0.5pt solid var(--rule);
    font-size: 7.5pt;
    line-height: 1.35;
    break-inside: avoid;
  }
  .footer p {
    margin-bottom: 1mm;
    max-width: none;
  }
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
