/* Archivo, SIL Open Font License (fonts/OFL.txt). Latin subset, weight and width axes. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/fonts/archivo-wdth-latin-5.3.0.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;
}

:root {
  --board: #f2f4f3;       /* bare laminate */
  --ink: #15241e;         /* text */
  --mask: #0d5240;        /* solder mask: links, actions, the plot */
  --mask-deep: #083a2d;
  --silk: #5b6863;        /* secondary text */
  --enig: #b88a1e;        /* gold pads, decoration only, never text */
  --rule: #d5dbd8;
  --map: #a3b3ad;
  --gutter: clamp(20px, 5vw, 64px);
  --stack: clamp(72px, 10vw, 128px);
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--board);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);
  line-height: 1.55;
  font-kerning: normal;
}

::selection {
  background: #c9ddd5;
}

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

a:hover {
  color: var(--mask-deep);
  text-decoration-thickness: 2px;
}

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

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 1;
  padding: 8px 14px;
  background: var(--mask);
  color: var(--board);
}

.skip:focus {
  top: 12px;
}

/* Masthead */

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 40px;
  padding-block: 28px;
}

.wordmark {
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: 0.01em;
  text-decoration: none;
}

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

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
}

.nav a {
  color: var(--silk);
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Hero */

.hero {
  padding-block: clamp(24px, 4vw, 64px) 0;
}

.hero h1 {
  max-width: 16em;
  margin: 0;
  font-size: clamp(2.25rem, 1rem + 4.6vw, 4.25rem);
  font-weight: 760;
  font-stretch: 125%;
  line-height: 1.03;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

@media (max-width: 480px) {
  .hero h1 {
    font-stretch: 112%;
  }
}

.lead {
  max-width: 34em;
  margin: 24px 0 0;
  font-size: clamp(1.125rem, 1rem + 0.55vw, 1.3125rem);
  line-height: 1.5;
}

.hero__action {
  margin: 28px 0 0;
}

.button {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 3px;
  background: var(--mask);
  color: var(--board);
  font-weight: 620;
  font-stretch: 110%;
  text-decoration: none;
}

.button:hover {
  background: var(--mask-deep);
  color: var(--board);
}

/* Examples: five illustrative figures that cross-fade on their own, in CSS only (the CSP
   forbids scripts). Choosing a tab stops the rotation on that example; hovering, keyboard
   focus and the Pause box hold it; reduced motion shows the first one and leaves the
   choice to the tabs. Cycle: 5 slides x 8 s; slide n starts at (n - 1) x 8 s - 1 s, so
   the first one is already visible when the page opens. */

.examples {
  display: flex;
  flex-direction: column;
  margin: clamp(40px, 4vw, 56px) 0 0;
}

.examples__slides {
  display: grid;
}

.example {
  grid-area: 1 / 1;
  min-width: 0;
  margin: 0;
  animation: example-cycle 40s linear -1s infinite both;
}

.example:nth-child(2) {
  animation-delay: 7s;
}

.example:nth-child(3) {
  animation-delay: 15s;
}

.example:nth-child(4) {
  animation-delay: 23s;
}

.example:nth-child(5) {
  animation-delay: 31s;
}

@keyframes example-cycle {
  0% {
    opacity: 0;
    visibility: hidden;
  }
  0.1% {
    visibility: visible;
  }
  2.5%,
  20% {
    opacity: 1;
  }
  22.5% {
    opacity: 0;
    visibility: visible;
  }
  22.6%,
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

.example figcaption {
  max-width: 44em;
  margin-top: 24px;
  font-size: 1rem;
  color: var(--silk);
}

.examples__controls {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
}

/* Narrow screens: the slides differ in height, so the tabs go above them and the
   difference falls into the space before the next section. */
@media (max-width: 799px) {
  .examples__controls {
    order: -1;
    margin: 0 0 24px;
    padding: 0 0 10px;
    border-top: 0;
    border-bottom: 1px solid var(--rule);
  }
}

.examples__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}

.examples__pick,
.examples__pause {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.examples__tabs label {
  padding: 4px 0;
  color: var(--silk);
  cursor: pointer;
  animation: tab-cycle 40s linear -1s infinite both;
}

.examples__tabs label:nth-of-type(2) {
  animation-delay: 7s;
}

.examples__tabs label:nth-of-type(3) {
  animation-delay: 15s;
}

.examples__tabs label:nth-of-type(4) {
  animation-delay: 23s;
}

.examples__tabs label:nth-of-type(5) {
  animation-delay: 31s;
}

/* Inactive at 0%: a delayed tab shows that frame while it waits for its turn. */
@keyframes tab-cycle {
  0%,
  21.3%,
  100% {
    color: var(--silk);
    box-shadow: none;
  }
  0.1%,
  21.25% {
    color: var(--ink);
    box-shadow: inset 0 -2px var(--mask);
  }
}

.examples__tabs label:hover {
  color: var(--ink);
}

.examples__pause + label {
  padding: 3px 12px;
  border: 1px solid var(--silk);
  border-radius: 3px;
  color: var(--silk);
  cursor: pointer;
}

.examples__pause:checked + label {
  border-color: var(--mask);
  background: var(--mask);
  color: var(--board);
}

.examples__pick:focus-visible + label,
.examples__pause:focus-visible + label {
  outline: 3px solid var(--mask);
  outline-offset: 3px;
}

.examples:hover .example,
.examples:hover .examples__tabs label,
.examples:focus-within .example,
.examples:focus-within .examples__tabs label {
  animation-play-state: paused;
}

/* Kept apart from the rule above: a browser without :has() drops a whole selector list. */
.examples:has(.examples__pause:checked) .example,
.examples:has(.examples__pause:checked) .examples__tabs label {
  animation-play-state: paused;
}

/* A chosen tab replaces the rotation. */
.examples:has(.examples__pick:checked) .example {
  animation: none;
  opacity: 0;
  visibility: hidden;
}

.examples:has(#example-1:checked) .example:nth-child(1),
.examples:has(#example-2:checked) .example:nth-child(2),
.examples:has(#example-3:checked) .example:nth-child(3),
.examples:has(#example-4:checked) .example:nth-child(4),
.examples:has(#example-5:checked) .example:nth-child(5) {
  opacity: 1;
  visibility: visible;
}

.examples:has(.examples__pick:checked) .examples__tabs label {
  animation: none;
  color: var(--silk);
  box-shadow: none;
}

.examples:has(.examples__pick:checked) .examples__pick:checked + label {
  color: var(--ink);
  box-shadow: inset 0 -2px var(--mask);
}

.examples:has(.examples__pick:checked) .examples__pause + label {
  visibility: hidden;
}

/* Entropy example: the plot sweeps in once, left to right, when the page opens. */

.entropy__plot {
  display: block;
  width: 100%;
  height: clamp(150px, 12vw, 170px);
  animation: sweep 2.4s cubic-bezier(0.3, 0.7, 0.2, 1) 0.2s both;
}

.entropy__area {
  fill: var(--mask);
  fill-opacity: 0.07;
}

.entropy__line {
  fill: none;
  stroke: var(--mask);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.entropy__edge {
  stroke: var(--rule);
  stroke-width: 1;
}

.entropy__map {
  display: grid;
  grid-template-columns: 4fr 1fr 27fr 80fr 12fr 4fr;
  height: 8px;
}

.entropy__map span:nth-child(odd) {
  background: var(--map);
}

.entropy__map span:nth-child(even) {
  background: var(--rule);
}

.entropy__regions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  font-stretch: 88%;
  color: var(--silk);
  animation: appear 0.6s ease-out 1.9s both;
}

.entropy__region {
  position: relative;
  padding-left: 16px;
}

.entropy__region::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--enig);
}

/* From 800px the labels hang under the map, each on a leader at the centre of its region. */
@media (min-width: 800px) {
  .entropy__regions {
    display: block;
    position: relative;
    height: 70px;
    margin-top: 0;
  }

  .entropy__region {
    position: absolute;
    top: 0;
    padding: 16px 0 0;
    white-space: nowrap;
  }

  .entropy__region::before {
    content: "";
    position: absolute;
    top: -4px;
    height: 18px;
    border-left: 1px solid var(--silk);
  }

  .entropy__region::after {
    top: -8.5px;
  }

  .entropy__region--kernel,
  .entropy__region--blob {
    padding-top: 46px;
  }

  .entropy__region--kernel::before,
  .entropy__region--blob::before {
    height: 48px;
  }

  /* Text starts at the leader. */
  .entropy__region--boot {
    left: 1.5625%;
  }

  .entropy__region--kernel {
    left: 14.4531%;
  }

  .entropy__region--boot::before,
  .entropy__region--kernel::before {
    left: 0;
  }

  .entropy__region--boot::after,
  .entropy__region--kernel::after {
    left: -4px;
  }

  /* Text centred on the leader. */
  .entropy__region--rootfs {
    left: 56.25%;
    transform: translateX(-50%);
  }

  .entropy__region--rootfs::before {
    left: 50%;
  }

  .entropy__region--rootfs::after {
    left: calc(50% - 4px);
  }

  /* Text ends at the leader. */
  .entropy__region--config {
    right: 7.8125%;
  }

  .entropy__region--blob {
    right: 1.5625%;
  }

  .entropy__region--config::before,
  .entropy__region--blob::before {
    right: 0;
  }

  .entropy__region--config::after,
  .entropy__region--blob::after {
    left: auto;
    right: -4px;
  }
}

@keyframes sweep {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

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

/* Attack surface: entry points carry a gold pad; the chip holds the assets. */

.surface__diagram {
  display: grid;
  gap: 24px;
}

.surface__device {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 24px 16px 16px;
  border: 1.5px dashed var(--map);
  border-radius: 12px;
}

.surface__scope {
  position: absolute;
  top: -0.8em;
  left: 16px;
  margin: 0;
  padding: 0 8px;
  background: var(--board);
  font-size: 0.875rem;
  font-stretch: 88%;
  color: var(--silk);
}

.surface__ports {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.surface__ports li {
  position: relative;
  padding: 2px 0 2px 24px;
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--silk);
}

.surface__ports b,
.surface__chip b {
  display: block;
  font-weight: 650;
  font-stretch: 105%;
  color: var(--ink);
}

.surface__ports li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--enig);
}

.surface__chip {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 16px 20px;
  border: 2px solid var(--mask);
  border-radius: 4px;
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--silk);
}

/* The package pins. */
.surface__chip::before,
.surface__chip::after {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  width: 6px;
  background: repeating-linear-gradient(to bottom, var(--mask) 0 2px, transparent 2px 9px);
}

.surface__chip::before {
  left: -8px;
}

.surface__chip::after {
  right: -8px;
}

@media (min-width: 800px) {
  .surface__diagram {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    column-gap: 56px;
    align-items: center;
  }

  .surface__device {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 56px;
    padding: 32px 28px;
  }

  .surface__ports li {
    padding: 9px 14px 9px 32px;
    border: 1px solid var(--rule);
    border-radius: 4px;
  }

  .surface__ports li::before {
    left: 12px;
  }

  /* Board traces: local ports to the chip, the chip to the edge of the board. */
  .surface__ports--local li::after {
    content: "";
    position: absolute;
    left: 100%;
    top: 50%;
    width: 56px;
    border-top: 1px solid var(--silk);
  }

  .surface__device::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 28px;
    border-top: 1px solid var(--silk);
  }

  /* Off the board: a bus from the board edge to each remote interface. */
  .surface__ports--remote {
    position: relative;
  }

  .surface__ports--remote::before {
    content: "";
    position: absolute;
    left: -28px;
    top: 22%;
    bottom: 22%;
    border-left: 1px solid var(--silk);
  }

  .surface__ports--remote::after {
    content: "";
    position: absolute;
    left: -56px;
    top: 50%;
    width: 28px;
    border-top: 1px solid var(--silk);
  }

  .surface__ports--remote li::after {
    content: "";
    position: absolute;
    right: 100%;
    top: 50%;
    width: 28px;
    border-top: 1px solid var(--silk);
  }
}

/* Sample finding: one sheet of the report. */

.finding__sheet {
  padding: clamp(16px, 2.5vw, 22px) clamp(18px, 3vw, 26px);
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: #fbfcfb;
}

.finding__title {
  margin: 0 0 14px;
  font-size: 1.3125rem;
  font-weight: 650;
  font-stretch: 112%;
  line-height: 1.25;
}

.finding__facts {
  display: grid;
  gap: 12px 40px;
  margin: 0;
}

@media (min-width: 800px) {
  .finding__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
  }

  /* The fix runs long: spread it over two rows so it does not push "Affected" down. */
  .finding__facts > div:last-child {
    grid-row: span 2;
  }
}

.finding__facts dt {
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--silk);
}

.finding__facts dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.finding__facts code {
  display: block;
  font-family: inherit;
  font-size: 0.875rem;
  font-stretch: 88%;
  color: var(--silk);
}

/* Remediation: risk removed against effort, quick wins top left. */

.remediation__body {
  display: grid;
  gap: 28px;
}

@media (min-width: 800px) {
  .remediation__body {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: 56px;
    align-items: center;
  }
}

.remediation__chart {
  position: relative;
  height: 210px;
  margin: 0 0 26px 26px;
  border-left: 1px solid var(--silk);
  border-bottom: 1px solid var(--silk);
  background:
    linear-gradient(to right, transparent calc(50% - 0.5px), var(--rule) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(to bottom, transparent calc(50% - 0.5px), var(--rule) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px));
}

.remediation__quadrant {
  position: absolute;
  bottom: calc(50% + 6px);
  left: 12px;
  font-size: 0.875rem;
  font-stretch: 88%;
  color: var(--silk);
}

.remediation__axis {
  position: absolute;
  font-size: 0.875rem;
  font-stretch: 88%;
  color: var(--silk);
  white-space: nowrap;
}

.remediation__axis--x {
  right: 0;
  bottom: -26px;
}

.remediation__axis--y {
  left: -26px;
  top: 0;
  transform: rotate(-90deg) translateX(-100%);
  transform-origin: 0 0;
}

.remediation__point {
  position: absolute;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  background: var(--enig);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
}

.remediation__point--1 {
  left: 10%;
  top: 14%;
}

.remediation__point--2 {
  left: 28%;
  top: 22%;
}

.remediation__point--3 {
  left: 56%;
  top: 26%;
}

.remediation__point--4 {
  left: 20%;
  top: 60%;
}

.remediation__point--5 {
  left: 82%;
  top: 42%;
}

.remediation__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.5em;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.remediation__list li::marker {
  font-weight: 700;
  color: var(--mask);
}

/* EN 18031-1 gaps: shape and word carry the status, not colour alone. */

.gaps__list {
  display: grid;
  column-gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 800px) {
  .gaps__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(6, auto);
    grid-auto-flow: column;
  }
}

.gaps__item {
  display: grid;
  grid-template-columns: 3.4em minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  padding: 5px 0;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
}

.gaps__item b {
  font-weight: 650;
  font-stretch: 112%;
}

.gaps__status {
  position: relative;
  padding-left: 18px;
  color: var(--silk);
}

.gaps__status::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 11px;
  height: 11px;
  border: 2px solid var(--mask);
  border-radius: 50%;
}

.gaps__item--met .gaps__status::before {
  background: var(--mask);
}

.gaps__item--partial .gaps__status::before {
  background: linear-gradient(to right, var(--mask) 50%, transparent 50%);
}

.gaps__item--missing .gaps__status {
  font-weight: 650;
  color: var(--ink);
}

.gaps__item--missing .gaps__status::before {
  border-color: var(--enig);
}

.gaps__item--na .gaps__status::before {
  border-color: var(--rule);
}

/* Sections */

.section {
  padding-top: var(--stack);
}

.section:last-child {
  padding-bottom: var(--stack);
}

.section > h2 {
  margin: 0 0 24px;
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.25rem);
  font-weight: 680;
  font-stretch: 118%;
  line-height: 1.1;
  text-wrap: balance;
}

.section__body {
  max-width: 34em;
}

@media (min-width: 960px) {
  .section {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(40px, 6vw, 96px);
    align-items: start;
  }

  .section > h2 {
    position: sticky;
    top: 32px;
  }
}

.intro {
  margin: 0 0 32px;
  font-size: clamp(1.125rem, 1rem + 0.55vw, 1.3125rem);
  line-height: 1.45;
}

/* Scope: layers from the silicon outwards */

.layers {
  margin: 0;
}

.layers > div {
  padding-block: 16px 20px;
  border-top: 1px solid var(--rule);
}

.layers dt {
  font-weight: 650;
  font-stretch: 112%;
}

.layers dd {
  margin: 4px 0 0;
}

/* Rules of engagement */

.checklist {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 42px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 22px;
  height: 22px;
  border: 2px solid var(--mask);
  border-radius: 3px;
}

.checklist li::after {
  content: "";
  position: absolute;
  left: 7.5px;
  top: calc(0.15em + 3px);
  width: 7px;
  height: 12px;
  border: solid var(--mask);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

/* Method: a real sequence, numbered and joined by a trace */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 0 0 32px 62px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -6px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--mask);
  border-radius: 50%;
  background: var(--board);
  color: var(--mask);
  font-weight: 700;
  font-stretch: 112%;
}

.steps li::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 38px;
  bottom: 0;
  width: 2px;
  background: var(--rule);
}

.steps li:last-child {
  padding-bottom: 0;
}

.steps li:last-child::after {
  content: none;
}

.steps h3 {
  margin: 0 0 6px;
  font-size: 1.3125rem;
  font-weight: 650;
  font-stretch: 112%;
  line-height: 1.25;
}

.steps p {
  margin: 0;
}

.references {
  margin: 40px 0 0;
  color: var(--silk);
}

/* CE compliance */

.timeline {
  margin: 0;
}

.timeline > div {
  padding-block: 16px 20px;
  border-top: 1px solid var(--rule);
}

.timeline dt {
  font-weight: 650;
  font-stretch: 112%;
  font-variant-numeric: tabular-nums;
}

.timeline dd {
  margin: 4px 0 0;
}

.subhead {
  margin: 40px 0 14px;
  font-size: 1.3125rem;
  font-weight: 650;
  font-stretch: 112%;
  line-height: 1.25;
}

.pads {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pads li {
  position: relative;
  padding-left: 24px;
}

.pads li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.6em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--enig);
}

.note {
  margin: 28px 0 0;
}

/* Contact */

.email {
  margin: 8px 0 28px;
  font-size: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.aside {
  margin: 0;
  font-size: 1rem;
  color: var(--silk);
}

/* Footer */

.colophon {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 32px;
  padding-block: 28px 44px;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--silk);
}

.colophon p {
  margin: 0;
}

/* Inner pages: legal notice, 404 */

.page {
  max-width: 40em;
  padding-block: clamp(40px, 7vw, 88px) var(--stack);
}

.page h1 {
  margin: 0 0 28px;
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3rem);
  font-weight: 740;
  font-stretch: 122%;
  line-height: 1.08;
}

.page h2 {
  margin: 44px 0 10px;
  font-size: 1.3125rem;
  font-weight: 650;
  font-stretch: 112%;
  line-height: 1.25;
}

.page p,
.page address {
  margin: 0 0 12px;
  font-style: normal;
}

.placeholder {
  background: #f6e3a8;
}

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

  .entropy__plot,
  .entropy__regions,
  .example,
  .examples__tabs label {
    animation: none;
  }

  .example {
    opacity: 0;
    visibility: hidden;
  }

  .example:first-child {
    opacity: 1;
    visibility: visible;
  }

  .examples__tabs label[for="example-1"] {
    color: var(--ink);
    box-shadow: inset 0 -2px var(--mask);
  }

  .examples__pause + label {
    display: none;
  }
}
