/* Beffroi, Watchtower HUD: the tokens of Home-2a and the logo kit v2.0. Light or dark, as the device is set: the dark
   tokens swap ink and paper, as the favicon does. */

@font-face {
  font-family: 'Chakra Petch';
  src: url("../fonts/chakra-petch-latin-600-normal-wMdAHqB.woff2") format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  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: 'Archivo';
  src: url("../fonts/archivo-latin-wght-normal-eYWgLOH.woff2") format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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;
}

/* Latin Extended: the names of the visitors, Polish ones first (ą, ć, ę, ł, ń, ś, ź, ż), typed into the form. */
@font-face {
  font-family: 'Archivo';
  src: url("../fonts/archivo-latin-ext-wght-normal-3uRG5nh.woff2") format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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;
}

/* The ɛ and ʁ of /bɛ.fʁwa/, which Archivo does not draw: Noto Sans (OFL), cut down to those two glyphs, its x-height
   within a few units of Archivo's. Declared after the Latin Extended face, so it is the one tried first for them. */
@font-face {
  font-family: 'Archivo';
  src: url("../fonts/noto-sans-ipa-wght-normal-AFGar2G.woff2") format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+025B, U+0281;
}

@font-face {
  font-family: 'Martian Mono';
  src: url("../fonts/martian-mono-latin-wdth-normal-ImZAaEb.woff2") format('woff2');
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-style: normal;
  font-display: swap;
  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;
}

/* Metric-matched fallbacks, so that the swap to the web fonts moves nothing. */
@font-face {
  font-family: 'Chakra Petch fallback';
  src: local('Arial');
  font-weight: 600;
  size-adjust: 106.3255%;
  ascent-override: 93.2984%;
  descent-override: 28.9676%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Archivo fallback';
  src: local('Arial');
  font-weight: 100 900;
  size-adjust: 102.2878%;
  ascent-override: 85.8362%;
  descent-override: 20.5303%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Martian Mono fallback';
  src: local('Courier New');
  font-weight: 100 800;
  size-adjust: 124.9797%;
  ascent-override: 80.013%;
  descent-override: 16.0026%;
}

:root {
  color-scheme: light;

  --font-heading: 'Chakra Petch', 'Chakra Petch fallback', system-ui, sans-serif;
  --font-body: 'Archivo', 'Archivo fallback', system-ui, sans-serif;
  --font-mono: 'Martian Mono', 'Martian Mono fallback', ui-monospace, monospace;

  --color-bg: #f2f4f6;
  --color-surface: #e6e9ee;
  --color-field: #fff;
  --color-text: #0c1016;
  --color-divider: color-mix(in srgb, var(--color-text) 36%, transparent);
  --color-muted: color-mix(in srgb, var(--color-text) 72%, transparent);
  --color-quiet: color-mix(in srgb, var(--color-text) 68%, transparent);
  /* The accent of lines, markers and focus; the accent of text, which must read on the background; the button. */
  --color-accent: #2f45ff;
  --color-accent-ink: #1b2bb8;
  --color-accent-ink-hover: #2f45ff;
  --color-button: #2f45ff;
  --color-button-hover: #2336e0;
  --color-button-active: #1b2bb8;
  --color-on-button: #f2f4f6;
  --color-grid: color-mix(in srgb, #2f45ff 9%, transparent);
  --color-error: #b3261e;
  --signal: #c6f432;
  /* The glow of the grid around the window of the belfry, drawn over the ink of the tower. */
  --gate-glow: #a9b3ff;
  /* The halo behind the tower: its colour and its opacity at the heart and at a third of its radius. */
  --halo-color: #2f45ff;
  --halo-heart: 0.18;
  --halo-mid: 0.07;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230c1016' d='M0 0h12L6 8z'/%3E%3C/svg%3E");

  --max: 1296px;
  --gutter: clamp(16px, 4vw, 48px);

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Dark: ink and paper swap. The blue of lines and text lightens to read on the ink, the button keeps the blue of the
   brand, and the belfry of the gate is drawn in paper over the dark, its grid glowing blue.
   The theme follows the device, unless the visitor chose one with the switch of the header: the choice is the attribute
   data-theme of the root, and the dark tokens are written twice, for the device and for the choice.
   The dark backgrounds are a ladder of lightness in one hue, the higher the surface the lighter it is: the page at L* 10,
   the fields at 12, the bands of surface at 17, as the tonal surface roles of Material Design 3 and the elevations of
   Atlassian do. None is black, and each step is wide enough to tell one block from the next. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    --color-bg: #171c24;
    --color-surface: #252a33;
    --color-field: #1b2028;
    --color-text: #f2f4f6;
    --color-accent: #5468ff;
    --color-accent-ink: #9ba6ff;
    --color-accent-ink-hover: #c4caff;
    --color-button-hover: #4357ff;
    --color-button-active: #2336e0;
    --color-grid: color-mix(in srgb, #5468ff 14%, transparent);
    --color-error: #ff7a6e;
    --gate-glow: #2f45ff;
    --halo-color: #6577ff;
    --halo-heart: 0.85;
    --halo-mid: 0.42;
    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23f2f4f6' d='M0 0h12L6 8z'/%3E%3C/svg%3E");
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --color-bg: #171c24;
  --color-surface: #252a33;
  --color-field: #1b2028;
  --color-text: #f2f4f6;
  --color-accent: #5468ff;
  --color-accent-ink: #9ba6ff;
  --color-accent-ink-hover: #c4caff;
  --color-button-hover: #4357ff;
  --color-button-active: #2336e0;
  --color-grid: color-mix(in srgb, #5468ff 14%, transparent);
  --color-error: #ff7a6e;
  --gate-glow: #2f45ff;
  --halo-color: #6577ff;
  --halo-heart: 0.85;
  --halo-mid: 0.42;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23f2f4f6' d='M0 0h12L6 8z'/%3E%3C/svg%3E");
}

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

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1;
}

h1,
h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  text-wrap: balance;
}

p,
ul,
figure {
  margin: 0;
}

a {
  color: var(--color-accent-ink);
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

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

/* An acronym spelled out on hover: a dotted line under it, quieter than a link. In a link, the line of the link is enough. */
abbr[title] {
  text-decoration: underline dotted 1px;
  text-decoration-color: color-mix(in srgb, currentColor 55%, transparent);
  text-underline-offset: 0.2em;
  cursor: help;
}

/* In a link, a heading, a label or a chip, the title is kept and the line is not: the body text carries the mark. */
a abbr[title],
h1 abbr[title],
h2 abbr[title],
h3 abbr[title],
.mono abbr[title],
.chip abbr[title],
.badge abbr[title] {
  text-decoration: none;
}

:focus {
  outline: none;
}

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

::selection {
  background: color-mix(in srgb, var(--color-accent) 30%, transparent);
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

/* Layout and shared pieces */

/* The ink of the logo follows the text, light or dark; its window stays blue. */
.lockup {
  color: var(--color-text);
}

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

.blueprint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--color-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-grid) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-ink);
}

.label::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border: 1px solid var(--color-accent);
  background: var(--color-bg);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-ink);
}

.badge::before {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--color-accent);
}

.badge-signal {
  border-color: var(--color-text);
  color: var(--color-text);
}

.badge-signal::before {
  background: var(--signal);
  outline: 1px solid var(--color-text);
}

.chamfer-12 {
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px 0 18px;
  border: 1px solid transparent;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn svg {
  flex: none;
  transition: transform 0.2s var(--ease-out);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--color-button);
  color: var(--color-on-button);
}

/* A button that is a link keeps its text over the global colour of a link under the pointer. */
.btn-primary:hover,
.btn-primary:active {
  color: var(--color-on-button);
}

.btn-primary:hover {
  background: var(--color-button-hover);
}

.btn-primary:active {
  background: var(--color-button-active);
}

/* The button of a thing that is not there yet: it says so, and does nothing. */
.btn-soon {
  background: var(--color-surface);
  color: var(--color-muted);
  cursor: not-allowed;
}

/* The chamfer clips whatever is drawn outside the button: its ring of focus is drawn inside. */
.btn-primary:focus-visible {
  outline: 2px solid var(--color-on-button);
  outline-offset: -6px;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--color-text);
  text-decoration: none;
}

.arrow-link svg {
  transition: transform 0.2s var(--ease-out);
}

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

.arrow-link:hover svg {
  transform: translateX(3px);
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--color-text);
  color: var(--color-bg);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transform: translateY(-160%);
}

.skip-link:focus-visible {
  transform: none;
  color: var(--color-bg);
}

/* Top bar and footer */

.topbar {
  border-bottom: 2px solid var(--color-divider);
  background: var(--color-bg);
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 14px;
}

.topbar-home {
  display: block;
  /* A target of 44px for a thumb, the logo and the bar unmoved. */
  padding-block: 10px;
  margin-block: -10px;
}

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

.footer {
  border-top: 2px solid var(--color-divider);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px;
  color: var(--color-muted);
}

/* A taller target for a thumb, the line unmoved. */
.footer-inner a {
  padding-block: 13px;
  margin-block: -13px;
  color: var(--color-muted);
}

/* The teaser at the root */

.teaser {
  position: relative;
  display: grid;
  align-items: center;
  overflow: clip;
}

/* The text, and the scene of the gate beside it; under it below 760px. */
.teaser-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(240px, 30vw, 420px);
  gap: 48px 64px;
  align-items: center;
  padding-block: clamp(64px, 14vh, 160px);
}

.teaser-text {
  container-type: inline-size;
  display: grid;
  justify-items: start;
  gap: 28px;
}

@media (max-width: 760px) {
  .teaser-inner {
    grid-template-columns: minmax(0, 1fr);
    padding-block: clamp(40px, 10vh, 96px);
  }

  .teaser-inner .gate {
    width: min(100%, 360px);
  }
}

.teaser-lockup {
  width: auto;
  height: clamp(36px, 6vw, 56px);
}

/* Two lines, sized on the width of the text, as the title of the landing page. */
.teaser-title {
  font-size: clamp(1.5rem, 100cqi / 13.4, 4rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
}

/* The name, as a dictionary gives it: the word, how it is said, what it is. Under the title of the teaser and of the
   landing page. */

.definition {
  max-width: 34em;
  font-size: clamp(1.0625rem, 1.7vw, 1.25rem);
  line-height: 1.45;
  color: var(--color-muted);
}

.definition dfn {
  font-family: var(--font-heading);
  font-style: normal;
  font-weight: 600;
  color: var(--color-text);
}

/* A step back from the sense, still AA at 17px (4.8:1 light, 6.6:1 dark). Upright: Archivo has no italic to give. */
.definition-ipa,
.definition abbr {
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
}

.definition abbr {
  text-decoration: none;
}

/* The landing page of SymfonyCon: the pitch, and the form beside it or under it. The claims sit under the pitch beside
   the form, and under the form on a phone, so the form shows from the first screen. */

.landing {
  position: relative;
  overflow: clip;
}

.landing-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  grid-template-rows: auto auto 1fr;
  grid-template-areas:
    'pitch signup'
    'lede signup'
    'claims signup';
  gap: 0 64px;
  align-items: start;
  /* Bounded by the height too, so the button of the form shows on a 1280 by 720 laptop. */
  padding-block: clamp(28px, min(6vw, 5vh), 72px);
}

/* The title runs the width of the pitch, the definition sits beside the tower it describes. */
.pitch {
  grid-area: pitch;
  container-type: inline-size;
}

.pitch-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(128px, 38cqi, 200px);
  grid-template-areas:
    'badge badge'
    'title title'
    'def gate';
  gap: 0 20px;
  align-items: center;
}

.pitch-head .badge {
  grid-area: badge;
  justify-self: start;
  margin-bottom: 18px;
}

/* Two lines, broken after the comma: the first, "An OpenID Connect provider,", is 13.11em wide, so the title is sized
   on the width of its column. The same on the teaser. */
.pitch h1 {
  grid-area: title;
  font-size: clamp(1.5rem, 100cqi / 13.4, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.pitch .definition {
  grid-area: def;
  margin-top: 16px;
}

.pitch-head .gate {
  grid-area: gate;
  margin-top: 16px;
}

/* The sentence that says what Beffroi is, in the text before the form; beside the pitch on a wide screen, under the
   form on a phone. */
.lede {
  grid-area: lede;
  max-width: 34em;
  margin-top: clamp(20px, 3vw, 28px);
  font-size: clamp(1.0625rem, 1.7vw, 1.25rem);
  line-height: 1.45;
  color: var(--color-muted);
}

.claims {
  grid-area: claims;
  display: grid;
  gap: 0;
  margin-top: clamp(24px, 4vw, 40px);
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-divider);
}

.claims li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-block: 10px;
  border-bottom: 1px solid var(--color-divider);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
  line-height: 1.3;
}

.claim-index {
  flex: none;
  color: var(--color-accent-ink);
}

/* The scene of the gate, drawn small: same ratio as its viewBox, 92 by 86 u, so nothing is ever cropped. */

.gate {
  position: relative;
  aspect-ratio: 92 / 86;
}

.gate-frame {
  position: absolute;
  inset: 0;
  background: var(--color-surface);
}

.gate-frame svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gate-scene {
  pointer-events: none;
}

.bracket {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.bracket.tl {
  top: -6px;
  left: -6px;
  border-top: 2px solid var(--color-accent);
  border-left: 2px solid var(--color-accent);
}

.bracket.br {
  bottom: -6px;
  right: -6px;
  border-bottom: 2px solid var(--color-accent);
  border-right: 2px solid var(--color-accent);
}

@media (prefers-reduced-motion: no-preference) {
  .gate-light,
  .gate-halo {
    animation: bf-fade 0.3s var(--ease-out) both;
  }
}

@keyframes bf-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* The form */

/* The form is on the first screen of a phone; when it comes back with errors, the first field to fix takes the focus (autofocus) and the browser scrolls to it. */
.signup {
  grid-area: signup;
  scroll-margin-top: 16px;
  padding: 2px;
  background: var(--color-text);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.signup-inner {
  padding: clamp(20px, 3vw, 32px);
  background: var(--color-bg);
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

.signup h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
  line-height: 1.1;
}

.signup-lead {
  margin-top: 8px;
  color: var(--color-muted);
}

.signup-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px 14px;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field > label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
}

.optional {
  color: var(--color-quiet);
  text-transform: none;
  letter-spacing: 0;
}

.field input,
.field select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--color-text);
  border-radius: 0;
  background-color: var(--color-field);
  color: var(--color-text);
  font-size: 1.0625rem;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field select {
  padding-right: 40px;
  background-image: var(--select-arrow);
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.field input:focus-visible,
.field select:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent);
}

/* The field to fix stands out: a red line two pixels thick, and its label in red. */
.has-error input,
.has-error select {
  border-color: var(--color-error);
  box-shadow: inset 0 0 0 1px var(--color-error);
}

.has-error > label {
  color: var(--color-error);
}

.field-error {
  color: var(--color-error);
  font-size: 0.9375rem;
  line-height: 1.4;
}

/* "Which one?" shows once "Other" is chosen; a browser without :has() shows it always, and it is optional anyway. */
@supports selector(:has(*)) {
  .signup-form:not(:has(select option[value='other']:checked)) .field-other:not(.has-error) {
    display: none;
  }

  /* "Choose one" is a prompt, not an answer: quiet, and the options of the list keep the ink. */
  .field select:has(option[value='']:checked) {
    color: var(--color-quiet);
  }

  .field select option {
    color: var(--color-text);
  }
}

.consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.consent input {
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.consent label {
  cursor: pointer;
}

/* On its own line under the sentence, at every width; a taller target for a thumb, the line unmoved. */
.consent-link {
  display: block;
  width: fit-content;
  padding-block: 11px;
  margin-block: -7px -11px;
}

.consent .field-error {
  margin-top: 4px;
}

.submit {
  width: 100%;
  margin-top: 4px;
}

/* The thank-you page and the privacy notice */

.thanks {
  position: relative;
  overflow: clip;
}

/* Both start on the left edge of the logo, as the landing page does; their text keeps a readable measure. The scene of
   the gate, its still frame only, sits beside the thanks, under them below 760px. */
.thanks-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 30vw, 380px);
  gap: 48px 64px;
  align-items: center;
  padding-block: clamp(56px, 12vh, 128px);
}

.thanks-text {
  display: grid;
  justify-items: start;
  gap: 20px;
}

.thanks-text > *,
.prose > * {
  max-width: 760px;
}

@media (max-width: 760px) {
  .thanks-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .thanks-inner .gate {
    width: min(100%, 320px);
  }
}

.thanks h1 {
  font-size: clamp(2.125rem, 6vw, 3.75rem);
  line-height: 1.04;
}

.thanks-lead {
  max-width: 34em;
  font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
}

.prose {
  padding-block: clamp(40px, 8vw, 80px);
}

.prose h1 {
  font-size: clamp(1.875rem, 4.6vw, 2.75rem);
  line-height: 1.08;
}

.prose h2 {
  margin-top: 36px;
  font-size: 1.375rem;
  line-height: 1.2;
}

.prose p,
.prose ul {
  margin-top: 12px;
}

.prose ul {
  padding-left: 20px;
}

.prose-updated {
  margin-top: 12px;
  color: var(--color-muted);
}

/* Tablet and phone: one column, the pitch over the form */

@media (max-width: 900px) {
  .landing-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas:
      'pitch'
      'signup'
      'lede'
      'claims';
  }

  /* One measure for the pitch, the form, the sentence and the claims, so they all end together. */
  .pitch,
  .signup,
  .lede,
  .claims {
    max-width: 640px;
  }

  .signup {
    margin-top: 28px;
  }
}

/* Phone: the definition and the tower closer together; the year leaves the top bar so it holds on one line; the small
   mono text grows. */
@media (max-width: 560px) {
  .pitch-head {
    column-gap: 16px;
  }

  .pitch .definition,
  .pitch-head .gate {
    margin-top: 12px;
  }

  .topbar-year {
    display: none;
  }

  .mono {
    font-size: 0.71875rem;
  }

  .field > label {
    font-size: 0.75rem;
  }

  /* The event keeps its size, the one that holds beside the logo on a 390px phone (99 + 16 + 231 px). */
  .topbar-inner {
    column-gap: 16px;
  }

  .topbar-event {
    font-size: 0.65625rem;
  }
}

@media (max-width: 420px) {
  .claims li {
    padding-block: 8px;
  }
}

/* Two fields side by side are too short below 380px for a long Polish surname. */
@media (max-width: 380px) {
  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The home page: Home-2a of the design project */

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

.chamfer-9 {
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}

/* The second button: the ink outline the 2px panels are drawn with, clipped as the first. */
.btn-outline {
  background: var(--color-text);
  color: var(--color-text);
  position: relative;
  isolation: isolate;
}

.btn-outline::before {
  content: '';
  position: absolute;
  inset: 2px;
  z-index: -1;
  background: var(--color-bg);
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 11px 100%, 0 calc(100% - 11px));
  transition: background-color 0.15s ease;
}

.btn-outline:hover {
  color: var(--color-text);
}

.btn-outline:hover::before {
  background: color-mix(in srgb, var(--color-accent) 12%, var(--color-bg));
}

.btn-outline:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -6px;
}

.btn-small {
  height: 40px;
  padding: 0 18px 0 16px;
  font-size: 0.875rem;
}

.bracket.tr {
  top: -6px;
  right: -6px;
  border-top: 2px solid var(--color-accent);
  border-right: 2px solid var(--color-accent);
}

/* A panel drawn by its 2px border: a dark wrapper, and the panel clipped inside it, one pixel less. */
.panel {
  padding: 2px;
  background: var(--color-text);
}

.panel-inner {
  height: 100%;
  background: var(--color-bg);
}

.panel-16 {
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.panel-16 > .panel-inner {
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

.panel-18 {
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.panel-18 > .panel-inner {
  clip-path: polygon(0 0, calc(100% - 17px) 0, 100% 17px, 100% 100%, 0 100%);
}

.prompt {
  margin-right: 1ch;
  color: var(--color-accent-ink);
}

/* The banner of SymfonyCon, over the navigation */

.event-banner {
  background: var(--color-text);
  color: var(--color-bg);
}

.event-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  padding-block: 10px;
}

.event-banner p {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.event-banner-mark {
  flex: none;
  width: 8px;
  height: 8px;
  background: var(--signal);
}

.event-banner-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 6px;
  margin-block: -6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-bg);
  text-decoration: none;
}

.event-banner-link:hover {
  color: var(--color-bg);
  text-decoration: underline;
}

.event-banner-link svg {
  transition: transform 0.2s var(--ease-out);
}

.event-banner-link:hover svg {
  transform: translateX(3px);
}

.event-banner-link:focus-visible {
  outline-color: var(--color-bg);
}

/* The navigation */

/* Kept at the top while the page scrolls: the anchors of its links stop under it. */
html {
  scroll-padding-top: 70px;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 2px solid var(--color-divider);
  background: var(--color-bg);
}

.site-nav-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-block: 14px;
}

.site-nav-home {
  display: block;
  margin-right: auto;
}

.site-nav-links {
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav-links a {
  display: block;
  padding-block: 10px;
  margin-block: -10px;
  font-size: 0.75rem;
  text-decoration: none;
}

.site-nav-links a:hover {
  text-decoration: underline;
}

/* The link of the section in view, set by the script of the header. */
.site-nav-links a[aria-current="location"] {
  color: var(--color-accent-ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.site-nav-github {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -6px -10px;
  color: var(--color-text);
}

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

/* The switch of the theme: shown by its script alone, with the icon of the theme it leads to. */
.theme-switch {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -6px -10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-text);
  cursor: pointer;
}

.theme-switch[hidden] {
  display: none;
}

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

.theme-switch svg {
  display: none;
}

.theme-switch[data-theme-now="dark"] .icon-sun,
.theme-switch[data-theme-now="light"] .icon-moon {
  display: block;
}

@media (max-width: 860px) {
  .site-nav-links {
    display: none;
  }
}

/* The hero: the text, and the tower with the console of an instance over its corner */

.hero {
  position: relative;
  border-bottom: 2px solid var(--color-divider);
  overflow: clip;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px;
  align-items: center;
  padding-block: clamp(56px, 8vw, 96px);
}

.hero-text {
  display: grid;
  justify-items: start;
}

.hero h1 {
  margin-top: 28px;
  font-size: clamp(2.25rem, 4.6vw, 3.625rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.hero h1 span {
  display: block;
}

.hero h1 .accent {
  color: var(--color-accent);
}

.hero-lead {
  max-width: 33em;
  margin-top: 32px;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
}

/* The name as a dictionary gives it, under the title; the lead comes closer when it follows. */
.hero .definition {
  margin-top: 24px;
}

.hero .definition + .hero-lead {
  margin-top: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 36px;
}

.hero-meta {
  margin-top: 20px;
  color: var(--color-muted);
}

.hero-figure {
  position: relative;
  padding-top: 28px;
}

.hero-scene {
  position: relative;
}

.hero-scene-caption {
  position: absolute;
  top: -28px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--color-accent-ink);
}

/* Over the foot of the scene, never over the ground the visitors walk on: the viewBox of the scene runs 92 u
   wide and down to y 74, the ground line is y 60, so the console rises 12.5 u, 1.5 u under the ground. A
   percentage of a margin is one of the width, which is the width of the scene. Offset to the left, as the
   mockup sets it, only where the column has room on that side. */
.console {
  position: relative;
  z-index: 1;
  margin-top: calc(-12.5 / 92 * 100%);
  margin-left: -40px;
  width: min(392px, calc(100% + 40px));
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
}

.console-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--color-divider);
  letter-spacing: 0.08em;
}

.console-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.console-live::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--signal);
  outline: 1px solid var(--color-text);
}

.console-rows {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 7px 12px;
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px dashed var(--color-divider);
}

.console-rows dt {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-quiet);
}

.console-rows dd {
  margin: 0;
  overflow-wrap: anywhere;
}

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

.console-prompt {
  padding: 11px 16px 13px;
  white-space: nowrap;
}

.cursor {
  display: inline-block;
  width: 0.62em;
  height: 1.15em;
  margin-left: 4px;
  vertical-align: -0.22em;
  background: var(--color-accent);
}

@media (prefers-reduced-motion: no-preference) {
  .cursor {
    animation: bf-blink 1.1s steps(1) infinite;
  }
}

@keyframes bf-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-figure {
    width: min(100%, 520px);
  }

  .console {
    margin-left: 0;
    width: min(392px, 100%);
  }
}

/* A phone is too narrow for the labels beside the values: each label over its value. */
@media (max-width: 560px) {
  .console-rows {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .console-rows dd {
    margin-bottom: 8px;
  }

  .console-rows dd:last-child {
    margin-bottom: 0;
  }
}

/* The four facts under the hero */

.proofs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* The rule under the proofs runs as wide as the page, like the one under the hero. It is a line of its own, spread
   sideways by a shadow and clipped to its height, so the page never scrolls sideways. */
.proofs::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--color-divider);
  box-shadow: 0 0 0 100vmax var(--color-divider);
  clip-path: inset(0 -100vmax);
  pointer-events: none;
}

.proof {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  padding: 26px 24px 30px;
}

.proof:first-child {
  padding-left: 0;
}

.proof:last-child {
  padding-right: 0;
}

.proof + .proof {
  border-left: 2px solid var(--color-divider);
}

.proof-index {
  margin-bottom: 12px;
  letter-spacing: 0.08em;
  color: var(--color-accent-ink);
}

.proof-title {
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.15;
}

.proof-text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-muted);
}

@media (max-width: 960px) {
  .proofs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .proof:nth-child(even) {
    padding-right: 0;
  }

  .proof:nth-child(n + 3) {
    border-top: 2px solid var(--color-divider);
  }
}

@media (max-width: 560px) {
  .proofs {
    grid-template-columns: minmax(0, 1fr);
  }

  .proof,
  .proof + .proof {
    padding-inline: 0;
    border-left: 0;
  }

  .proof + .proof {
    border-top: 2px solid var(--color-divider);
  }
}

/* The numbered sections */

.block {
  scroll-margin-top: 16px;
  padding-block: clamp(64px, 8vw, 104px);
}

.block + .block {
  border-top: 2px solid var(--color-divider);
}

/* Bands: some sections stand on a field of their own, as wide as the page, to give it a rhythm. The field is the
   section itself, spread sideways by a shadow and clipped to its height, so the page never scrolls sideways. A band
   needs no rule above it, nor does the section that follows it. */
.block.band,
.block.band + .block {
  border-top: 0;
}

.band {
  background: var(--band);
  box-shadow: 0 0 0 100vmax var(--band);
  clip-path: inset(0 -100vmax);
}

.band-surface {
  --band: var(--color-surface);
}

/* A band tinted with the blue of the brand: paper for the light scheme, ink for the dark one. It holds the tokens of the
   page as they are, so the text on it keeps the contrasts those tokens were chosen for. */
.band-tint {
  --band: #dfe3f7;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .band-tint {
    --band: #1d2342;
  }
}

:root[data-theme="dark"] .band-tint {
  --band: #1d2342;
}

.block h2 {
  font-size: clamp(2rem, 3.6vw, 2.875rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.block h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
}

.block-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px 64px;
  align-items: start;
}

/* Tops, not feet: the first line of the text stands level with the capitals of the title, whatever the number of lines
   of either. Where text-box is not known, the tops of their boxes are level, a few pixels apart. */
.block-head h2,
.block-head p,
.start h2 {
  text-box: trim-start cap alphabetic;
}

.block-head p {
  max-width: 54ch;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
}

@media (max-width: 860px) {
  .block-head {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* [01] Deployment */

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

.mode {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 280px;
  padding: 22px 24px 24px;
}

.mode-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--color-quiet);
}

.mode h3 {
  font-size: 1.875rem;
  line-height: 1.05;
}

.mode-text {
  flex: 1;
  font-size: 0.96875rem;
  color: color-mix(in srgb, var(--color-text) 80%, transparent);
}

.mode-link {
  font-size: 0.9375rem;
}

.start-link {
  margin-top: 28px;
}

.proof-text a {
  white-space: nowrap;
}

.mode code,
.module-specs {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-accent-ink);
  overflow-wrap: anywhere;
}

/* Under 1024px the three modes do not fit side by side: two, and the third across. Under 760px, one under the other. */
@media (max-width: 1024px) {
  .modes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modes > :last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .modes {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* [02] Capabilities */

.modules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto auto 1fr auto;
  gap: 2px;
  margin-top: 48px;
  border: 2px solid var(--color-divider);
  background: var(--color-divider);
}

.module {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  row-gap: 12px;
  min-height: 300px;
  padding: 24px 26px;
  background: var(--color-bg);
}

.module-id {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--color-accent-ink);
}

.module h3 {
  font-size: 1.625rem;
  line-height: 1.1;
}

.module-text {
  font-size: 0.96875rem;
  color: color-mix(in srgb, var(--color-text) 80%, transparent);
}

.module-specs a {
  color: inherit;
  text-decoration: underline dotted;
  text-underline-offset: 4px;
}

.module-specs a:hover {
  color: var(--color-accent-ink-hover);
  text-decoration-style: solid;
}

.module-specs {
  padding-top: 12px;
  border-top: 1px solid var(--color-divider);
  font-size: 0.75rem;
}

@media (max-width: 960px) {
  .modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .modules {
    grid-template-columns: minmax(0, 1fr);
  }

  .module {
    min-height: 0;
  }
}

/* [03] Key lifecycle: two keys on twelve columns of time */

.timeline {
  display: grid;
  grid-template-columns: 150px repeat(12, minmax(0, 1fr));
  row-gap: 12px;
  margin-top: 56px;
  font-size: 0.875rem;
}

.tl-time {
  display: flex;
  grid-column: 1;
  grid-row: 1;
  align-items: flex-start;
  gap: 6px;
  padding-bottom: 8px;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.tl-time svg {
  flex: none;
  width: 14px;
  height: 14px;
}

.tl-step {
  grid-row: 1;
  padding: 0 0 8px 10px;
  border-left: 2px solid var(--color-text);
}

.tl-t0 {
  grid-column: 2 / span 4;
}

.tl-rotate {
  grid-column: 6 / span 2;
}

.tl-activate {
  grid-column: 8 / span 2;
  border-left-color: var(--color-accent);
  color: var(--color-accent-ink);
}

.tl-retire {
  grid-column: 10 / span 4;
}

.tl-cut {
  grid-column: 8;
  grid-row: 2 / span 2;
  z-index: 1;
  margin: -12px 0 -8px;
  border-left: 2px dashed var(--color-accent);
  pointer-events: none;
}

.tl-key {
  grid-column: 1;
  align-self: center;
  font-size: 0.75rem;
}

.tl-key-a {
  grid-row: 2;
}

.tl-key-b {
  grid-row: 3;
}

.tl-bar {
  padding: 10px 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.tl-active {
  padding: 12px 14px;
  background: var(--color-button);
  color: var(--color-on-button);
  letter-spacing: 0.02em;
}

.tl-a-active {
  grid-column: 2 / span 6;
  grid-row: 2;
}

.tl-retiring {
  grid-column: 8 / span 2;
  grid-row: 2;
  border: 2px solid var(--color-accent);
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--color-accent) 22%, var(--color-bg)) 0 6px, var(--color-bg) 6px 12px);
}

.tl-retired {
  grid-column: 10 / span 4;
  grid-row: 2;
  padding: 11px 13px;
  border: 1px dashed var(--color-divider);
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-muted);
}

.tl-staged {
  grid-column: 6 / span 2;
  grid-row: 3;
  border: 2px solid var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 12%, var(--color-bg));
}

.tl-b-active {
  grid-column: 8 / span 6;
  grid-row: 3;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 40px;
  border-top: 2px solid var(--color-divider);
}

.step {
  padding: 20px 28px 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--color-text) 80%, transparent);
}

.step:first-child {
  padding-left: 0;
}

.step:last-child {
  padding-right: 0;
}

.step + .step {
  border-left: 2px solid var(--color-divider);
}

.step .mono {
  margin-bottom: 6px;
  font-size: 0.75rem;
}

/* Below 860px the timeline reads as a list of the bars, each with its key. */
@media (max-width: 860px) {
  .timeline {
    grid-template-columns: 110px repeat(12, minmax(0, 1fr));
    font-size: 0.78125rem;
  }

  .tl-bar {
    padding: 8px;
  }
}

/* The KMS the keys can be sealed under, below the three steps. */
.compat {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 20px;
  margin: 40px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--color-divider);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.compat-label {
  font-size: 0.75rem;
  color: var(--color-accent-ink);
}

.compat-list {
  color: color-mix(in srgb, var(--color-text) 80%, transparent);
}

.compat-note {
  font-size: 0.8125rem;
  color: var(--color-muted);
}

/* Below 620px time runs downward: one column per key, a rail of milestones on the left. */
@media (max-width: 620px) {
  .timeline {
    grid-template-columns: 72px repeat(2, minmax(0, 1fr));
    grid-template-rows: auto repeat(12, 26px);
    gap: 4px 8px;
    margin-top: 40px;
  }

  .tl-step {
    grid-column: 1;
    align-self: start;
    padding: 4px 0 0;
    border-top: 2px solid var(--color-text);
    border-left: 0;
    font-size: 0.75rem;
  }

  .tl-t0 {
    grid-row: 2 / span 4;
  }

  .tl-rotate {
    grid-row: 6 / span 2;
  }

  .tl-activate {
    grid-row: 8 / span 2;
    border-top-color: var(--color-accent);
  }

  .tl-retire {
    grid-row: 10 / span 4;
  }

  .tl-cut {
    grid-column: 2 / -1;
    grid-row: 8;
    align-self: start;
    margin: -3px 0 0;
    border-top: 2px dashed var(--color-accent);
    border-left: 0;
  }

  .tl-key {
    grid-row: 1;
    align-self: end;
  }

  .tl-time {
    align-items: center;
    align-self: end;
    padding-bottom: 0;
  }

  .tl-time svg {
    transform: rotate(90deg);
  }

  .tl-key-a,
  .tl-a-active,
  .tl-retiring,
  .tl-retired {
    grid-column: 2;
  }

  .tl-key-b,
  .tl-staged,
  .tl-b-active {
    grid-column: 3;
  }

  .tl-bar {
    display: flex;
    align-items: center;
    padding: 6px 8px;
  }

  .tl-a-active {
    grid-row: 2 / span 6;
  }

  .tl-retiring {
    grid-row: 8 / span 2;
  }

  .tl-retired {
    grid-row: 10 / span 4;
    padding: 6px 8px;
  }

  .tl-staged {
    grid-row: 6 / span 2;
  }

  .tl-b-active {
    grid-row: 8 / span 6;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .step,
  .step + .step {
    padding-inline: 0;
    border-left: 0;
  }
}

/* [04] Boot sequence */

.start {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px 64px;
  align-items: start;
}

.start h2 {
  margin-bottom: 20px;
}

.start-lead {
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
}

.start-note {
  margin: 24px 0 0;
  font-size: 0.9375rem;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
}

.start-note strong {
  color: var(--color-text);
}

.boot {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--color-divider);
}

.boot li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--color-divider);
  font-size: 1rem;
}

.panel-code {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.panel-code > .panel-inner {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 19px), calc(100% - 19px) 100%, 0 100%);
}

.code-wrap {
  position: relative;
}

/* On the corner of the block, over the comment of its first line: the longest line of the block stays under it. */
.copy {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 1;
  min-width: 72px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--color-divider);
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.copy:hover {
  border-color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 12%, var(--color-bg));
}

.code {
  padding: 26px 30px;
  background: var(--color-surface);
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 0.78125rem;
  line-height: 1.85;
  overflow-x: auto;
}

.code p {
  white-space: pre;
}

/* In the boot block, no line scrolls sideways: a long one wraps under its own first character. The copy button reads
   the text of the lines, which a wrap does not change. */
.start .code {
  background: var(--color-field);
  overflow-x: visible;
}

.start .code p {
  padding-left: 2ch;
  text-indent: -2ch;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.start .code p.cont {
  padding-left: 4ch;
}

/* On a narrow screen the address of a file is too long to stay in one piece: it wraps where it must. */
@media (max-width: 640px) {
  .start .code .nowrap {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* A line of a file written by a command: aligned with the commands, and copied as it is. */
.code p.cont {
  padding-left: 2ch;
}

.code .comment {
  color: color-mix(in srgb, var(--color-text) 64%, transparent);
}

.code .comment:not(:first-child) {
  margin-top: 14px;
}

/* A group of commands apart from the one above it; a comment stays against the command it is about. */
.code .gap {
  margin-top: 14px;
}

.code .comment.tight {
  margin-top: 0;
}

/* Two steps told in a row, the second without a command of its own above it: no gap between them. */
.code .comment + .comment {
  margin-top: 0;
}

/* The button over the block on a phone, where the block is too narrow for it to sit beside the first line. */
@media (max-width: 760px) {
  .code {
    padding-top: 50px;
  }
}

/* Level with the title of the section, and kept in view beside the steps, which run longer than it does. It stops
   under the header, which is 70px high and stays at the top, with the same clearance as the contents of a page. */
@media (min-width: 961px) {
  .start > .panel-code {
    position: sticky;
    top: 96px;
    margin-top: calc(12px * 1.6 + 20px);
  }
}

@media (max-width: 960px) {
  .start {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* [05] FAQ */

.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 64px;
  margin: 48px 0 0;
}

.faq-item {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  padding: 24px 0 28px;
  border-top: 1px solid var(--color-divider);
}

.faq-item-wide {
  grid-column: 1 / -1;
}

.faq-item-wide dd > p {
  max-width: none;
  text-wrap: balance;
}

.faq-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 64px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.faq-points li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.faq-points strong {
  display: block;
  margin-bottom: 2px;
  color: var(--color-text);
  font-weight: 600;
}

.faq dt {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.2;
}

.faq dd {
  margin: 10px 0 0;
  font-size: 0.96875rem;
  color: color-mix(in srgb, var(--color-text) 80%, transparent);
  text-wrap: pretty;
}

.faq-item:not(.faq-item-wide) dd,
.faq-points li {
  max-width: 66ch;
}

.faq a {
  padding-block: 0.3em;
}

.nowrap {
  white-space: nowrap;
}

@media (max-width: 880px) {
  .faq,
  .faq-points {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The close: one sentence, the button, and the other way in. */

.closing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
}

.closing-band {
  position: relative;
  border-top: 2px solid var(--color-divider);
  overflow: clip;
}

.closing-band > .wrap {
  position: relative;
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

/* The footer of the home page */

.site-footer {
  border-top: 2px solid var(--color-divider);
}

.site-footer-top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-block: 48px 32px;
  border-bottom: 2px solid var(--color-divider);
}

.site-footer-tagline {
  margin-top: 14px;
  max-width: 30ch;
  font-size: 0.875rem;
  color: var(--color-muted);
  text-wrap: balance;
}

.site-footer-column .mono {
  margin-bottom: 14px;
  letter-spacing: 0.08em;
  color: var(--color-quiet);
}

@media (max-width: 860px) {
  .site-footer-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .site-footer-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.site-footer-links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}

.site-footer-links a {
  display: inline-block;
  padding-block: 4px;
  margin-block: -4px;
  color: var(--color-text);
  text-decoration: none;
}

.site-footer-links a:hover {
  color: var(--color-accent-ink);
  text-decoration: underline;
}

.site-footer-legal {
  padding-block: 20px 32px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--color-quiet);
}
