@font-face {
  font-family: "D-DIN";
  src: url("fonts/D-DIN.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "D-DIN";
  src: url("fonts/D-DIN-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "D-DIN Condensed";
  src: url("fonts/D-DINCondensed-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;

  --sheet: oklch(0.982 0.004 250);
  --sheet-deep: oklch(0.94 0.014 250);
  --line: oklch(0.36 0.11 258);
  --line-2: oklch(0.47 0.07 255);
  --line-faint: oklch(0.36 0.11 258 / 0.3);
  --grid: oklch(0.45 0.1 256 / 0.07);
  --grid-major: oklch(0.45 0.1 256 / 0.13);
  --red: oklch(0.52 0.18 28);
  --yellow: oklch(0.88 0.16 94);
  --yellow-hover: oklch(0.84 0.16 90);
  --on-yellow: oklch(0.3 0.1 258);

  --font-letter: "D-DIN", "DIN Alternate", "Helvetica Neue", sans-serif;
  --font-display: "D-DIN Condensed", "D-DIN", "DIN Condensed", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  --text-xs: 12px;
  --text-s: 14px;
  --text-m: 16px;
  --text-l: 20px;
  --text-xl: 28px;
  --text-2xl: 44px;
  --text-3xl: clamp(52px, 6vw, 84px);

  --rule: 1px solid var(--line);
  --rule-heavy: 2px solid var(--line);
  --rule-faint: 1px solid var(--line-faint);
  --dash: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 16px);
  --grid-size: 24px;
  --sheet-max: 1360px;
  /* Paper tooth: fractal noise tinted with the line ink, at about 5% alpha. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.17 0 0 0 0 0.24 0 0 0 0 0.47 0 0 0 0.1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --paper: var(--grain), var(--sheet);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--line-2) var(--sheet);
}

body {
  margin: 0;
  padding: var(--space-4);
  font: var(--text-m) / 1.5 var(--font-body);
  color: var(--line);
  background: var(--paper);
}

::selection { background: var(--yellow); color: var(--on-yellow); }

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

img { display: block; }

h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

a { color: inherit; }

code { font: 0.92em var(--font-mono); }

.sprite { position: absolute; }

.icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 10;
  padding: var(--space-2) var(--space-4);
  background: var(--yellow);
  color: var(--on-yellow);
  font: 700 var(--text-s) var(--font-letter);
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus-visible { transform: none; }

/* Sheet: an outer hairline, zone numbers in the margin, and a heavy inner frame. */

.sheet {
  max-width: var(--sheet-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  border: var(--rule);
}
.sheet + .sheet { margin-top: var(--space-12); }

.zones {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  height: var(--space-6);
  font: var(--text-xs) / var(--space-6) var(--font-letter);
  color: var(--line-2);
  text-align: center;
}
.zones span + span { border-left: var(--rule); }

.frame {
  border: var(--rule-heavy);
  padding: 0 var(--space-8);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-6);
  font: 700 var(--text-m) / 1 var(--font-letter);
  letter-spacing: 0.01em;
  text-decoration: none;
  border: var(--rule-heavy);
  transition: background-color 150ms ease-out, color 150ms ease-out, transform 100ms ease-out;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--on-yellow);
}
.btn-primary:hover { background: var(--yellow-hover); border-color: var(--yellow-hover); }
.btn-primary:active { background: var(--yellow-hover); }
.btn-line { color: var(--line); }
.btn-line:hover { background: var(--line); color: var(--sheet); }

.link {
  font: 700 var(--text-m) var(--font-letter);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.link:hover { text-decoration-thickness: 2px; }

/* Nav */

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  min-height: 64px;
  border-bottom: var(--rule);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font: 700 var(--text-l) / 1 var(--font-letter);
  text-decoration: none;
}
.nav nav {
  display: flex;
  gap: var(--space-6);
  margin-left: auto;
}
.nav nav a {
  padding: var(--space-2) 0;
  font: var(--text-m) / 1 var(--font-letter);
  color: var(--line-2);
  text-decoration: none;
}
.nav nav a:hover { color: var(--line); text-decoration: underline; text-underline-offset: 6px; }
.nav .btn { min-height: 40px; padding: 0 var(--space-4); }
.brand + .btn { margin-left: auto; }

/* Hero: the plan across the top, the view title and the title block below it. */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  grid-template-areas:
    "plan plan"
    "title block";
  column-gap: var(--space-12);
  padding-block: var(--space-6) var(--space-8);
}

.view-title {
  grid-area: title;
  align-self: end;
  max-width: 820px;
}
.view-title h1 {
  padding-bottom: var(--space-3);
  border-bottom: 7px double var(--line);
  font: 700 var(--text-3xl) / 0.95 var(--font-display);
  letter-spacing: -0.01em;
}
.view-title p {
  margin-top: var(--space-8);
  max-width: 60ch;
  font-size: var(--text-l);
  line-height: 1.45;
  color: var(--line-2);
}

.title-block {
  grid-area: block;
  align-self: end;
  border: var(--rule-heavy);
  background: var(--paper);
}
.tb-name {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: var(--rule);
}
.tb-name b { display: block; font: 700 var(--text-xl) / 1 var(--font-letter); }
.tb-name span { font: var(--text-s) / 1.4 var(--font-letter); color: var(--line-2); }
.tb-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
}
.tb-fields div {
  padding: var(--space-2) var(--space-4) var(--space-3);
  border-bottom: var(--rule);
}
.tb-fields div:nth-child(odd) { border-right: var(--rule); }
.tb-fields dt { font: var(--text-xs) / 1.6 var(--font-letter); color: var(--line-2); }
.tb-fields dd { margin: 0; font: 700 var(--text-m) / 1.3 var(--font-letter); }
.title-block > .btn {
  display: flex;
  width: 100%;
  min-height: 56px;
  border: 0;
  font-size: var(--text-l);
}

/* The plan */

.plan {
  grid-area: plan;
  margin: 0 0 var(--space-12);
}
.routes {
  position: relative;
  isolation: isolate;
}
.routes::before {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--space-6)) 0;
  z-index: -1;
  mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 30%, transparent 100%);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size:
    calc(var(--grid-size) * 5) calc(var(--grid-size) * 5),
    calc(var(--grid-size) * 5) calc(var(--grid-size) * 5),
    var(--grid-size) var(--grid-size),
    var(--grid-size) var(--grid-size);
}
.plan-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-3);
  border-bottom: var(--rule-faint);
}
.plan-cap {
  font: var(--text-s) var(--font-letter);
  color: var(--line-2);
}
.path { font-family: var(--font-mono); font-size: 0.95em; color: var(--line); }

.switch {
  position: relative;
  flex: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
  font: 700 var(--text-m) var(--font-letter);
  cursor: pointer;
}
.switch input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.track {
  position: relative;
  width: 44px;
  height: 24px;
  border: var(--rule-heavy);
}
.track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background: var(--line);
  transition: transform 200ms var(--ease-out), width 120ms var(--ease-out);
}
.switch input:checked + .track::after { transform: translateX(20px); }
.switch:active .track::after { width: 18px; }
.switch:active input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { outline: 2px solid var(--yellow); outline-offset: 3px; }
.switch:hover .track { background: var(--sheet-deep); }

.plan-status { margin-top: var(--space-1); font: var(--text-l) var(--font-letter); }

.when-live { display: none; }
.plan:has(.switch input:not(:checked)) .when-dry { display: none; }
.plan:has(.switch input:not(:checked)) .when-live { display: inline; }

.routes {
  display: grid;
  grid-template-columns: minmax(220px, 290px) minmax(0, 1fr) minmax(150px, 200px);
  grid-template-rows: repeat(6, minmax(52px, auto));
}

.src {
  position: relative;
  grid-column: 1;
  grid-row: 1 / -1;
  border: 3px solid var(--line);
  background: var(--paper);
}
.src > span {
  position: absolute;
  background: var(--paper);
  bottom: 100%;
  left: -3px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 36px;
  padding: 0 var(--space-2) 0 var(--space-3);
  border: 3px solid var(--line);
  border-bottom: 0;
  font: 700 var(--text-s) var(--font-letter);
}
.src .callout { position: relative; inset: auto; width: 24px; height: 24px; margin-left: var(--space-1); font-size: var(--text-xs); }
.src .icon { width: 16px; height: 16px; }

.row {
  grid-column: 1 / 3;
  position: relative;
  display: grid;
  grid-template-columns: subgrid;
  align-items: center;
  transition: opacity 200ms ease-out;
}
.row:nth-child(2) { grid-row: 1; }
.row:nth-child(3) { grid-row: 2; }
.row:nth-child(4) { grid-row: 3; }
.row:nth-child(5) { grid-row: 4; }
.row:nth-child(6) { grid-row: 5; }
.row:nth-child(7) { grid-row: 6; }
.routes:has(.row:hover) .row:not(:hover),
.routes:has(.row:focus-within) .row:not(:focus-within) { opacity: 0.45; }

.file {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  padding: 0 var(--space-4) var(--space-3) var(--space-6);
  line-height: 1.3;
  font: 700 var(--text-m) var(--font-letter);
  overflow-wrap: anywhere;
}

/* A leader runs from the folder outline to its destination: dashed while planned, drawn solid once done. */
.act {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  align-self: stretch;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0 0.3em;
  padding: 0 var(--space-12) var(--space-3) var(--space-4);
  font: var(--text-s) / 1.3 var(--font-letter);
  color: var(--line-2);
}
.act b { font: 700 13px var(--font-mono); color: var(--line); }
.act .to { display: none; }
.act::before,
.act::after {
  content: "";
  position: absolute;
  left: 0;
  right: 10px;
  bottom: 0;
  height: 2px;
}
.act::before { background: var(--dash); }
.act::after {
  background: var(--line);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 260ms var(--ease-out) calc(var(--i) * 45ms);
}
.row:not(.is-skip) .act {
  background: linear-gradient(90deg, transparent calc(100% - 10px), var(--line) 0) right bottom / 100% 2px no-repeat;
}
.row:not(.is-skip)::after {
  content: "";
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: end;
  width: 12px;
  height: 10px;
  margin-bottom: -4px;
  background: var(--line);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.plan:has(.switch input:not(:checked)) .act::after { clip-path: inset(0); }

.is-skip .file,
.is-skip .act { color: var(--red); }
.is-skip .act::before {
  right: auto;
  width: 48px;
  background: var(--red);
}
.is-skip .act::after {
  left: 46px;
  right: auto;
  bottom: -7px;
  width: 2px;
  height: 16px;
  background: var(--red);
  clip-path: none;
  transition: none;
}

.callout {
  position: absolute;
  bottom: -16px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: var(--rule-heavy);
  border-radius: 50%;
  background: var(--paper);
  font: 700 var(--text-s) / 1 var(--font-letter);
  color: var(--line);
  text-decoration: none;
  transition: background-color 150ms ease-out, color 150ms ease-out, scale 100ms ease-out;
}
.callout:active { scale: 0.92; }
.callout::before {
  content: "";
  position: absolute;
  inset: -6px;
}
.callout:hover { background: var(--line); color: var(--sheet); }
.row:not(.is-skip) .callout { right: 56px; }
.is-skip .callout { left: 64px; border-color: var(--red); color: var(--red); }
.is-skip .callout:hover { background: var(--red); color: var(--sheet); }
.callout-narrow { display: none; }

.dest {
  position: relative;
  grid-column: 3;
  background: var(--paper);
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  gap: var(--space-1) var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: 3px solid var(--line);
  font: 700 var(--text-m) / 1.2 var(--font-letter);
}
.dest .icon { width: 16px; height: 16px; }
.dest small { flex-basis: 100%; font: var(--text-xs) var(--font-letter); color: var(--line-2); }
/* Each box straddles the bottom edge of its row, where the leaders run, so every arrow lands on a box. */
.dest-invoices { grid-row: 1 / span 3; margin: var(--space-6) 0 -20px; }
.dest-shots,
.dest-trash { align-self: end; height: 40px; margin-bottom: -20px; }
.dest-shots { grid-row: 4; }
.dest-trash { grid-row: 5; }
.dest .callout { top: -17px; right: -17px; bottom: auto; }

/* Sheet two */

.details {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin-inline: calc(-1 * var(--space-8));
  border-bottom: var(--rule);
}
.detail {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  align-content: start;
  padding: var(--space-12) var(--space-8);
  border-top: var(--rule);
}
.detail-a, .detail-d { grid-column: span 7; }
.detail-b, .detail-c { grid-column: span 5; }
.detail-a, .detail-c { border-right: var(--rule); }
.detail-a, .detail-b { border-top: 0; }

.detail .drawing {
  order: -1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 220px;
  margin-bottom: var(--space-8);
}
.detail h2 {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 7px double var(--line);
  font: 700 var(--text-xl) / 1.15 var(--font-letter);
}
.detail > p {
  max-width: 58ch;
  margin-top: var(--space-4);
  color: var(--line-2);
}

.bubble {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border: var(--rule-heavy);
  border-radius: 50%;
  font: 700 var(--text-m) / 1 var(--font-letter);
}

.drawing table {
  width: 100%;
  border: var(--rule-heavy);
  border-collapse: collapse;
  font: var(--text-s) / 1.35 var(--font-letter);
}
.drawing caption {
  padding-bottom: var(--space-2);
  text-align: left;
  font: 700 var(--text-m) var(--font-letter);
}
.drawing th,
.drawing td {
  padding: var(--space-2) var(--space-3);
  border: var(--rule);
  text-align: left;
  vertical-align: top;
}
.drawing thead th { font-size: var(--text-xs); font-weight: 400; color: var(--line-2); }
.drawing tbody th { font-weight: 700; }
.miss { color: var(--red); white-space: nowrap; }
.miss .icon { width: 16px; height: 16px; margin-right: var(--space-1); vertical-align: -3px; }

.cli {
  margin-top: var(--space-4);
  font: 13px / 1.5 var(--font-mono);
  color: var(--line-2);
}

.revs td:first-child,
.revs td:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.revs td:last-child,
.revs th:last-child { text-align: right; }
.reverted td { color: var(--red); }
.delta {
  display: inline-block;
  margin-right: var(--space-2);
  border-inline: 6px solid transparent;
  border-bottom: 10px solid var(--red);
}

.menubar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-4);
  height: 32px;
  padding: 0 var(--space-4);
  border: var(--rule-heavy);
}
.menubar span {
  width: 14px;
  height: 14px;
  border: var(--rule);
  border-radius: 50%;
}
.menubar .warn { color: var(--red); }
.menu {
  align-self: flex-end;
  width: min(300px, 100%);
  margin-right: var(--space-2);
  padding: var(--space-2) 0;
  border: var(--rule-heavy);
  border-top: 0;
  font: var(--text-m) / 1.3 var(--font-letter);
}
.menu > div { padding: var(--space-1) var(--space-4); }
.menu hr { margin: var(--space-2) 0; border: 0; border-top: var(--rule-faint); }
.m-dim { color: var(--line-2); }
.m-warn { display: flex; align-items: center; gap: var(--space-2); color: var(--red); }
.m-warn .icon { width: 16px; height: 16px; }

.ask {
  position: relative;
  align-self: flex-start;
  max-width: 34ch;
  margin-bottom: var(--space-8);
  padding: var(--space-3) var(--space-4);
  border: var(--rule);
}
.ask::after {
  content: "";
  position: absolute;
  top: 100%;
  left: var(--space-8);
  height: var(--space-8);
  border-left: 2px dashed var(--line);
}
.draft {
  padding: var(--space-4);
  background:
    var(--dash) top / 100% 2px no-repeat,
    var(--dash) bottom / 100% 2px no-repeat,
    repeating-linear-gradient(180deg, var(--line) 0 10px, transparent 10px 16px) left / 2px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--line) 0 10px, transparent 10px 16px) right / 2px 100% no-repeat;
  font: var(--text-s) / 1.45 var(--font-letter);
  color: var(--line-2);
}
.draft p + p { margin-top: var(--space-1); }
.draft code { font-size: 12.5px; color: var(--line); }
.draft-head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-2);
  font-size: var(--text-m);
}
.draft-head b { color: var(--line); }
.draft-foot { padding-top: var(--space-2); font-weight: 700; color: var(--line); }

.section {
  padding-block: var(--space-16);
  border-bottom: var(--rule);
}
.section > h2 {
  margin-bottom: var(--space-8);
  font: 700 var(--text-2xl) / 1.05 var(--font-display);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-12);
}
.split > h2 { margin-bottom: 0; }

.schedule {
  width: 100%;
  border: var(--rule-heavy);
  border-collapse: collapse;
  table-layout: fixed;
}
.c-topic { width: 22%; }
.schedule th,
.schedule td {
  padding: var(--space-4);
  border: var(--rule);
  text-align: left;
  vertical-align: top;
}
.schedule thead th { font: 700 var(--text-l) var(--font-letter); }
.schedule tbody th { font: 700 var(--text-m) var(--font-letter); }
.schedule td { color: var(--line-2); }
.schedule td.is-edna { font-weight: 600; color: var(--line); }

.notes {
  margin: 0;
  padding: 0;
  border-top: var(--rule-heavy);
  list-style: none;
  counter-reset: note;
}
.notes li {
  counter-increment: note;
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: baseline;
  padding: var(--space-4) 0;
  border-bottom: var(--rule);
  font: var(--text-l) / 1.35 var(--font-letter);
}
.notes li::before { content: counter(note) "."; font-weight: 700; }
.footnote {
  margin-top: var(--space-4);
  font: var(--text-s) var(--font-letter);
  color: var(--line-2);
}

.prices { border-top: var(--rule-heavy); }
.price {
  display: grid;
  grid-template-columns: 100px 90px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: var(--space-6);
  min-height: 80px;
  padding: var(--space-4) 0;
  border-bottom: var(--rule);
}
.p-when { font: var(--text-s) var(--font-letter); color: var(--line-2); }
.p-amount {
  font: 700 var(--text-2xl) / 1 var(--font-display);
  font-variant-numeric: tabular-nums;
}
.price p { color: var(--line-2); }
.price .btn,
.price .link { justify-self: end; }

.faq { border-top: var(--rule-heavy); }
.faq details { border-bottom: var(--rule); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  min-height: 56px;
  padding: var(--space-3) 0;
  font: 700 var(--text-l) / 1.3 var(--font-letter);
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--line), var(--line)) center / 14px 2px no-repeat,
    linear-gradient(var(--line), var(--line)) center / 2px 14px no-repeat;
}
.faq details[open] summary::after {
  background: linear-gradient(var(--line), var(--line)) center / 14px 2px no-repeat;
}
.faq summary:hover { text-decoration: underline; text-underline-offset: 5px; }
.faq details p {
  max-width: 62ch;
  padding-bottom: var(--space-6);
  color: var(--line-2);
}

.closing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  align-items: end;
  gap: var(--space-12);
  padding-block: var(--space-16) var(--space-8);
}
.fine {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  font: var(--text-s) var(--font-letter);
  color: var(--line-2);
}
.fine nav { display: flex; gap: var(--space-6); }
.fine a { text-underline-offset: 4px; }
.fine a:hover { color: var(--line); }
.title-block-end { grid-area: auto; padding: var(--space-6); }
.title-block-end h2 {
  margin-bottom: var(--space-6);
  font: 700 var(--text-2xl) / 1.05 var(--font-display);
}
.title-block-end .btn { width: 100%; min-height: 56px; font-size: var(--text-l); }
.title-block-end p {
  margin-top: var(--space-3);
  font: var(--text-s) var(--font-letter);
  color: var(--line-2);
}

/* Privacy */

.prose {
  max-width: 68ch;
  padding-block: var(--space-12) var(--space-16);
}
.prose h1 {
  padding-bottom: var(--space-3);
  border-bottom: 7px double var(--line);
  font: 700 var(--text-3xl) / 1 var(--font-display);
}
.prose .lede { margin-top: var(--space-6); font-size: var(--text-l); color: var(--line-2); }
.prose h2 { margin-top: var(--space-12); font: 700 var(--text-xl) var(--font-letter); }
.prose ul { margin: var(--space-4) 0 0; padding-left: 1.2em; }
.prose li { color: var(--line-2); }
.prose li + li { margin-top: var(--space-2); }
.prose a { text-underline-offset: 4px; }
.privacy-foot {
  padding-block: var(--space-6);
  border-top: var(--rule);
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "block" "plan";
    row-gap: var(--space-8);
  }
  .title-block { max-width: 480px; }
  .plan { margin: var(--space-8) 0 var(--space-6); }
  .details { grid-template-columns: minmax(0, 1fr); }
  .detail-a, .detail-b, .detail-c, .detail-d { grid-column: 1; border-right: 0; border-top: var(--rule); }
  .detail-a { border-top: 0; }
  .detail .drawing { min-height: 0; }
  .split { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .closing { grid-template-columns: minmax(0, 1fr); }
  .closing .fine { order: 1; }
}

@media (max-width: 760px) {
  :root {
    --text-l: 18px;
    --text-xl: 24px;
    --text-2xl: 34px;
    --text-3xl: 48px;
  }

  body { padding: var(--space-2); }
  .sheet { padding: 0 var(--space-2); }
  .zones { height: var(--space-4); font-size: 10px; line-height: var(--space-4); }
  .frame { padding: 0 var(--space-4); }
  .details { margin-inline: calc(-1 * var(--space-4)); }
  .detail { padding: var(--space-8) var(--space-4); }
  .nav { gap: var(--space-4); min-height: 60px; }
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }

  .hero { grid-template-areas: "title" "plan" "block"; padding-block: var(--space-6); }
  .plan { margin: 0; }
  .view-title p { margin-top: var(--space-6); }
  .plan-head { margin-bottom: var(--space-6); }
  .plan-status { font-size: var(--text-m); }

  .routes { display: block; }
  .src { margin: 0 0 var(--space-2); border: 0; }
  .src .callout { display: inline-flex; align-items: center; justify-content: center; }
  .dest-invoices { display: none; }
  .callout-narrow { display: inline-grid; }
  .src > span { position: static; border-bottom: var(--rule-heavy); }
  .row {
    display: block;
    padding: var(--space-3) 0 var(--space-3) var(--space-4);
    border-left: var(--rule);
  }
  .row::after { display: none; }
  .file { display: block; padding: 0 0 var(--space-1); }
  .act { display: block; padding: 0 0 var(--space-3); }
  .act .to { display: inline; }
  .act::before,
  .act::after { right: 0; }
  .row:not(.is-skip) .act { background: none; }
  .callout,
  .row:not(.is-skip) .callout,
  .is-skip .callout {
    position: relative;
    inset: auto;
    display: inline-grid;
    margin-left: var(--space-2);
    vertical-align: middle;
  }
  .dest { display: none; }

  .drawing table { font-size: 13px; }
  .drawing th, .drawing td { padding: var(--space-2); }
  .miss { white-space: normal; }

  .schedule, .schedule thead, .schedule tbody { display: block; }
  .schedule colgroup { display: none; }
  .schedule tr { display: grid; grid-template-columns: 1fr 1fr; }
  .schedule thead td { display: none; }
  .schedule th, .schedule td { padding: var(--space-3); }
  .schedule tbody th { grid-column: 1 / -1; padding-bottom: var(--space-1); border-bottom: 0; }
  .schedule tbody td { border-top: 0; }

  .price { grid-template-columns: 1fr auto; row-gap: var(--space-2); }
  .p-amount { grid-column: 2; grid-row: 1; }
  .price p, .price .btn, .price .link { grid-column: 1 / -1; justify-self: start; }
  .price .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0ms !important;
    transition-delay: 0ms !important;
  }
  html { scroll-behavior: auto; }
}
