:root {
  --paper: #ffffff;
  --ink: #000000;
  --grey: #7b7b7b;
  --copy-size: clamp(0.9rem, 0.86rem + 0.12vw, 1.02rem);
  --flow-gap: 0.98em;
  --section-gap: 1.45em;
  --content-width: 90ch;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  overscroll-behavior-y: none;
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--copy-size);
  line-height: 1.32;
  letter-spacing: -0.005em;
  overflow-x: clip;
}

.page-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 100svh;
  overflow-x: clip;
  position: relative;
  z-index: 1;
  background: transparent;
}

main {
  width: 100%;
}

.letter {
  width: min(calc(100% - 3rem), var(--content-width));
  margin: 0 auto;
  padding-top: clamp(1.5rem, 3vw, 2.75rem);
  padding-bottom: var(--section-gap);
}

h1 {
  margin: 0 0 0.1em;
  font-size: calc(1em + 0.25rem);
  font-weight: 700;
  line-height: 1.25;
}

section + section {
  margin-top: var(--section-gap);
}

section + section:first-of-type {
  margin-top: 0.35em;
}

p,
ul {
  margin-top: 0;
}

p + p {
  margin-top: var(--flow-gap);
}

.milestones p {
  margin-bottom: 0.05em;
}

ul {
  margin-bottom: 0;
  padding-left: 1.8em;
}

li {
  padding-left: 0.28em;
}

li::marker {
  font-size: 0.72em;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--grey);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

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

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

.warehouse-scene {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 -3.5vw;
  pointer-events: none;
}

@media (max-width: 480px) {
  :root {
    --copy-size: 0.92rem;
    --flow-gap: 1.02em;
    --section-gap: 1.5em;
  }

  .letter {
    width: calc(100% - 2rem);
    padding-top: 2rem;
  }

  ul {
    padding-left: 1.45em;
  }

  .warehouse-scene {
    width: 175%;
    margin-left: -37.5%;
    margin-bottom: -14vw;
  }
}
