/*
 * brickbench.app. The app's own palette and type (src/app/styles/tokens.css):
 * warm workbench paper, one brick-orange accent, Bricolage Grotesque, with
 * IBM Plex Mono for code. The hero stands on a baseplate of paper studs.
 */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url("/assets/bricolage-grotesque.a756882d8a.woff2") format('woff2-variations');
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url("/assets/ibm-plex-mono-400.08949f728d.woff2") format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f1ede5;
  --sheet: #fbfaf7;
  --sunken: #e8e2d7;
  --plate: #e7e0d3;
  --ink: #1d1a16;
  --ink-2: #5b544a;
  --ink-3: #8a8276;
  --line: #ddd5c8;
  --line-strong: #c7bdac;

  /* the app's accent, for the mark; buttons and links take darker shades that read well on paper */
  --brick-mark: #d9480f;
  --brick: #c8410d;
  --brick-hover: #a93708;
  --brick-text: #ab390a;
  --danger: #c8341c;
  --focus: #1f5fd6;

  --night: #1d1a16;
  --night-2: #2b2721;
  --night-ink: #f1ede5;
  --night-ink-2: #b9b0a2;
  --night-link: #f0773f;

  --font: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --wrap-max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 128px);
  --shadow-window: 0 1px 2px rgb(40 30 20 / 0.08), 0 28px 56px -28px rgb(40 30 20 / 0.5);
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

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

img,
video {
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 720;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 1.35rem + 2.3vw, 3.25rem);
  font-stretch: 88%;
  letter-spacing: -0.024em;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.012em;
}

p {
  margin: 0;
  max-width: 68ch;
}

p + p {
  margin-top: 1em;
}

a {
  color: var(--brick-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

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

[id] {
  scroll-margin-top: 72px;
}

code,
kbd,
pre {
  font-family: var(--mono);
}

code {
  font-size: 0.86em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--sunken);
  overflow-wrap: anywhere;
}

kbd {
  font-size: 0.8em;
  padding: 0.05em 0.4em;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--sheet);
}

strong {
  font-weight: 680;
}

.wrap {
  max-width: calc(var(--wrap-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.display {
  font-size: clamp(2.6rem, 1.45rem + 4.6vw, 5.25rem);
  font-stretch: 84%;
  font-weight: 740;
  line-height: 0.96;
  letter-spacing: -0.028em;
}

.lede {
  margin-top: 22px;
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 36em;
}

.fine {
  margin-top: 16px;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.text-link {
  font-weight: 620;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.feature-text > p:last-child:has(.text-link) {
  margin-top: 24px;
}

/* ---------- buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 20px;
  border: 1.5px solid transparent;
  border-radius: 9px;
  font: 640 1rem/1.2 var(--font);
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.button .icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.button-primary {
  background: var(--brick);
  color: #fff;
}

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

.button-secondary {
  background: var(--sheet);
  border-color: var(--line-strong);
  color: var(--ink);
}

.button-secondary:hover,
.button-ghost:hover {
  border-color: var(--ink-2);
}

.button-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

/* ---------- header ---------- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 28px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 0;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  color: var(--brick-mark);
}

.wordmark {
  font-size: 1.3125rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  font-variation-settings: 'opsz' 32;
}

.wordmark em {
  font-style: normal;
  color: var(--brick-mark);
}

.site-nav {
  order: 3;
  width: 100%;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
  margin: 0;
  padding: 0 0 10px;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 0;
  color: var(--ink-2);
  font-weight: 540;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--ink);
}

.site-nav a[aria-current='page'] {
  box-shadow: inset 0 -2px 0 var(--brick-mark);
}

.site-nav .icon {
  display: none;
  width: 18px;
  height: 18px;
}

@media (max-width: 899px) {
  .site-nav ul {
    column-gap: 18px;
  }
}

.header-action {
  display: none;
  margin-left: auto;
}

.header-action .button {
  min-height: 42px;
  padding: 8px 16px;
  font-size: 0.9375rem;
}

@media (min-width: 560px) {
  .header-action {
    display: block;
  }
}

@media (min-width: 900px) {
  .site-nav {
    order: 0;
    width: auto;
    margin-left: auto;
  }

  .site-nav ul {
    padding: 0;
  }

  .site-nav .icon {
    display: block;
  }

  .header-action {
    margin-left: 0;
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(44px, 7vw, 104px) 0 clamp(52px, 8vw, 116px);
}

/* a baseplate of paper studs, fading in behind the screenshot */
.hero::before {
  content: '';
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -1;
  width: min(100%, 68%);
  background-color: var(--plate);
  background-image:
    radial-gradient(circle at calc(50% - 2.6px) calc(50% - 3px), rgb(255 255 255 / 0.55) 0 2.2px, transparent 3.2px),
    radial-gradient(circle at 50% 50%, #f2ede4 0 8.4px, transparent 9px),
    radial-gradient(circle at calc(50% + 1.4px) calc(50% + 2.4px), rgb(92 72 46 / 0.16) 0 8.8px, transparent 10.4px);
  background-size: 30px 30px;
  background-position: 0 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 42%);
  mask-image: linear-gradient(to right, transparent, #000 42%);
}

.hero-grid {
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

.hero-text .display {
  max-width: 11ch;
}

.window {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--sheet);
  box-shadow: var(--shadow-window);
}

@media (max-width: 959px) {
  .hero::before {
    inset: auto 0 0 0;
    width: 100%;
    height: 58%;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%);
    mask-image: linear-gradient(to bottom, transparent, #000 40%);
  }
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 5.3fr) minmax(0, 6.7fr);
  }

  /* the screenshot runs on past the right edge of the page */
  .hero-media {
    margin-right: calc(-1 * (var(--gutter) + max(0px, (100vw - var(--wrap-max) - 2 * var(--gutter)) / 2)));
  }

  .hero-media .window {
    border-right: 0;
    border-radius: 12px 0 0 12px;
  }
}

/* ---------- steps, as an instruction booklet numbers them ---------- */

.steps-band {
  background: var(--sheet);
  border-block: 1px solid var(--line);
  padding: clamp(28px, 4vw, 44px) 0 clamp(36px, 5vw, 56px);
}

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

.step {
  padding: 24px 0 8px;
}

.step + .step {
  border-top: 1px solid var(--line);
}

.step-number {
  display: block;
  margin-bottom: 12px;
  font-size: 3.25rem;
  font-weight: 800;
  font-stretch: 75%;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.step p {
  margin-top: 8px;
  color: var(--ink-2);
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step + .step {
    border-top: 0;
  }
}

@media (min-width: 1000px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

/* ---------- feature sections ---------- */

.feature,
.band-night,
.more,
.geometry,
.open {
  padding: var(--section) 0;
}

.feature + .feature:not(.band-night, .band-sheet),
.more,
.geometry,
.open {
  border-top: 1px solid var(--line);
}

.band-night + .more {
  border-top: 0;
}

.feature-grid {
  display: grid;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}

@media (min-width: 960px) {
  .feature-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .feature-flip .feature-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .feature-flip .feature-text {
    order: 2;
  }
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 40px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head .lede {
  flex: 1 1 28rem;
  margin-top: 0;
}

.section-head h2 {
  flex: 0 1 auto;
}

.ticks {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 30px;
  max-width: 60ch;
}

/* a 1 × 1 round plate from above, in place of a bullet */
.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--brick) 0 3px, transparent 3.6px), radial-gradient(circle, transparent 0 5px, var(--brick) 5.4px 7px);
  opacity: 0.9;
}

.shot,
.film,
.booklet,
.drawing-frame,
.parts-figure,
.ledger-figure {
  margin: 0;
}

figcaption {
  margin-top: 14px;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

/* ---------- the booklet ---------- */

.sheets {
  position: relative;
  aspect-ratio: 1000 / 740;
  margin: 8px 6px 0;
}

.sheet {
  position: absolute;
  width: 76%;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 1px 1px rgb(40 30 20 / 0.08), 0 18px 34px -18px rgb(40 30 20 / 0.5);
}

.sheet-cover {
  top: 0;
  left: 0;
  rotate: -3.5deg;
}

.sheet-parts {
  top: 11%;
  left: 12%;
  rotate: 1.5deg;
}

.sheet-step {
  top: 22%;
  left: 24%;
  rotate: -1deg;
}

/* ---------- the film ---------- */

.film video {
  width: 100%;
  border-radius: 12px;
  background: #e6e0d5;
  box-shadow: var(--shadow-window);
}

/* ---------- bands ---------- */

.band-sheet {
  background: var(--sheet);
  border-block: 1px solid var(--line);
}

.band-night {
  background: var(--night);
  color: var(--night-ink);
}

.band-night .lede,
.band-night .fine,
.band-night li,
.band-night p {
  color: var(--night-ink-2);
}

.band-night strong {
  color: var(--night-ink);
}

.band-night a:not(.button) {
  color: var(--night-link);
}

.band-night .button-ghost {
  color: var(--night-ink);
  border-color: rgb(241 237 229 / 0.32);
}

.band-night .button-ghost:hover {
  border-color: var(--night-ink);
}

.band-night .window {
  border-color: rgb(255 255 255 / 0.14);
  box-shadow: 0 30px 60px -28px rgb(0 0 0 / 0.7);
}

.band-night .ticks li::before {
  background: radial-gradient(circle at 50% 50%, var(--night-link) 0 3px, transparent 3.6px), radial-gradient(circle, transparent 0 5px, var(--night-link) 5.4px 7px);
}

.band-night code {
  background: var(--night-2);
  color: var(--night-ink);
}

/* ---------- rows ---------- */

.rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.row {
  position: relative;
  display: grid;
  gap: 6px 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.row h3 {
  font-size: 1.375rem;
  font-stretch: 92%;
}

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

/* the whole row is the link */
.row h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.row:hover h3 a {
  color: var(--brick-text);
}

.row p {
  color: var(--ink-2);
}

@media (min-width: 800px) {
  .row {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: baseline;
  }
}

/* ---------- the measured brick ---------- */

.drawing-frame {
  padding: clamp(16px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sheet);
}

.drawing {
  width: 100%;
  height: auto;
}

.drawing-face {
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.drawing-face-top {
  fill: #fdfbf7;
}

.drawing-face-front {
  fill: #efe9de;
}

.drawing-face-right {
  fill: #e2d9c9;
}

.drawing-stud-side {
  fill: #efe9de;
  stroke: var(--ink);
  stroke-width: 1.2;
}

.drawing-stud-top {
  fill: #fdfbf7;
  stroke: var(--ink);
  stroke-width: 1.2;
}

.drawing-plate-line {
  stroke: var(--ink-3);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.drawing-extension {
  stroke: var(--brick-text);
  stroke-width: 0.8;
  opacity: 0.55;
}

.drawing-dimension {
  stroke: var(--brick-text);
  stroke-width: 1.3;
}

.drawing-dimension-end {
  fill: var(--brick-text);
}

.drawing-label {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 640;
  fill: var(--brick-text);
}

/* ---------- open source and closing ---------- */

.open-grid {
  display: grid;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

@media (min-width: 900px) {
  .open-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  }
}

.release-note {
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}

.release-note p {
  margin-top: 10px;
  color: var(--ink-2);
}

.closing {
  padding: clamp(48px, 7vw, 88px) 0;
  background: var(--sheet);
  border-top: 1px solid var(--line);
}

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

.closing-row p {
  margin-top: 14px;
  color: var(--ink-2);
}

.closing-row .actions {
  margin-top: 0;
}

/* ---------- subpages ---------- */

.page-hero {
  padding: clamp(48px, 7vw, 100px) 0 clamp(44px, 6vw, 80px);
}

.page-hero .display {
  max-width: 13ch;
}

/* a page whose content starts straight after its title */
.page-hero + .feature {
  padding-top: 0;
  border-top: 0;
}

.section-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(241 237 229 / 0.94);
  border-block: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.section-nav ul {
  display: flex;
  gap: 4px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.section-nav a {
  display: block;
  padding: 14px 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 540;
  text-decoration: none;
  white-space: nowrap;
}

.section-nav a:hover {
  color: var(--ink);
}

.table-scroll {
  overflow-x: auto;
}

.table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.table th,
.table td {
  padding: 14px 20px 14px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table thead th {
  padding-top: 0;
  border-bottom-color: var(--line-strong);
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 600;
}

.table tbody th {
  font-weight: 650;
}

/* on a phone, each row of a table becomes a short block, its cells labelled */
@media (max-width: 639px) {
  .table {
    min-width: 0;
  }

  .table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .table tr {
    display: grid;
    gap: 4px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .table th,
  .table td {
    padding: 0;
    border: 0;
  }

  .table td[data-label]::before {
    content: attr(data-label) ': ';
    color: var(--ink-2);
  }

  .table td:empty {
    display: none;
  }
}

.terms {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--line-strong);
}

.terms > div {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.terms dt {
  font-weight: 680;
}

.terms dd {
  margin: 0;
  color: var(--ink-2);
}

/* searches, drawn like the parts panel's search box */
.queries {
  display: grid;
  gap: 10px;
  margin: 0;
}

.queries > div {
  display: grid;
  gap: 4px 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--sheet);
}

.queries dt {
  display: flex;
  align-items: center;
  gap: 10px;
}

.queries dt::before {
  content: '';
  width: 16px;
  height: 16px;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8276' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4 4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.queries dt code {
  padding: 0;
  background: none;
  color: var(--ink);
  font-size: 0.95rem;
}

.queries dd {
  margin: 0;
  color: var(--ink-2);
}

@media (min-width: 560px) {
  .queries > div {
    grid-template-columns: minmax(0, 10.5rem) minmax(0, 1fr);
    align-items: center;
  }
}

.ledger {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sheet);
  font-size: 0.97rem;
}

.ledger caption {
  padding-bottom: 12px;
  text-align: left;
  font-weight: 650;
}

.ledger th,
.ledger td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.ledger td + td,
.ledger th + th {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ledger thead th {
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 600;
}

.ledger .missing {
  color: var(--danger);
  font-weight: 680;
}

/* commands */
.code-block {
  position: relative;
}

.code-block pre {
  margin: 0;
  padding: 18px 20px;
  border-radius: 10px;
  background: var(--night);
  color: #efe9de;
  font-size: 0.875rem;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.code-block pre code {
  padding: 0;
  background: none;
  font-size: inherit;
}

.code-block:has(.copy-button:not([hidden])) pre {
  padding-top: 54px;
}

.copy-button {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 7px;
  background: rgb(255 255 255 / 0.06);
  color: #efe9de;
  font: 600 0.8125rem/1.2 var(--font);
  cursor: pointer;
}

.copy-button:hover {
  background: rgb(255 255 255 / 0.12);
}

.copy-button .icon {
  width: 16px;
  height: 16px;
}

.terminal {
  display: grid;
  gap: 18px;
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line);
}

.terminal p {
  margin-top: 8px;
}

/* the download page */
.notice {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--sheet);
}

.notice h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
}

.notice p {
  margin-top: 14px;
  color: var(--ink-2);
}

.platforms {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

@media (min-width: 800px) {
  .platforms {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.platform {
  padding: 22px 22px 24px;
  border-top: 3px solid var(--ink);
  background: transparent;
}

.platform h3 {
  font-size: 1.5rem;
  font-stretch: 90%;
}

.platform p {
  margin-top: 8px;
  color: var(--ink-2);
}

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

.file {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--sheet);
  color: var(--ink);
  text-decoration: none;
}

.file:hover {
  border-color: var(--ink-2);
}

.file .icon {
  grid-row: span 2;
  width: 22px;
  height: 22px;
  color: var(--brick);
}

.file-label {
  font-weight: 650;
}

.file-meta {
  color: var(--ink-2);
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.first-open {
  max-width: 50rem;
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: clamp(24px, 4vw, 36px);
  border-top: 1px solid var(--line);
}

.first-open p {
  margin-top: 10px;
  color: var(--ink-2);
}

.prose {
  padding: 0 0 var(--section);
}

.prose-wrap > * {
  max-width: 44rem;
}

.prose h2 {
  margin: 48px 0 12px;
  font-size: 1.875rem;
  font-stretch: 92%;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  color: var(--ink-2);
}

/* ---------- footer ---------- */

.site-footer {
  padding: clamp(48px, 7vw, 80px) 0 40px;
  background: var(--night);
  color: var(--night-ink-2);
}

.site-footer .brand {
  color: var(--night-ink);
  padding-top: 0;
}

.site-footer .wordmark em,
.site-footer .brand-mark {
  color: var(--night-link);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 24px;
}

.footer-about {
  grid-column: 1 / -1;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .footer-grid {
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  }

  .footer-about {
    grid-column: auto;
  }
}

.footer-about p {
  margin-top: 6px;
  max-width: 30ch;
}

.footer-column h2 {
  margin-bottom: 12px;
  color: var(--night-ink);
  font-size: 0.9375rem;
  font-stretch: 100%;
  font-weight: 650;
  letter-spacing: 0;
}

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

.site-footer a:not(.brand) {
  color: var(--night-ink-2);
  text-decoration: none;
}

.site-footer a:not(.brand):hover {
  color: var(--night-ink);
  text-decoration: underline;
}

.footer-legal {
  max-width: none;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  font-size: 0.8125rem;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
