/*
  OneLevel — site styles.
  One field (the ink of the logo), one type family (Red Hat), one accent (the check).
  The violet is reserved for the check mark and for things that are "done" or active;
  nothing else on the site uses it.
*/

:root {
  --ink: #17161c;
  --ink-raise: #1e1d24;
  --ink-line: #2a2931;
  --white: #ffffff;
  --text: #ffffff;
  --text-2: #c9c8d1;
  --text-3: #8e8d98;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.2);
  --check: #7d6bf2;
  --check-hi: #a093f7;

  --display: "Red Hat Display", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Red Hat Text", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Red Hat Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --pad: clamp(20px, 4.4vw, 56px);
  --max: 1360px;
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: dark;
}

/* ---------- base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text-2);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

::selection {
  background: var(--check);
  color: var(--white);
}

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

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--pad);
  top: -100px;
  z-index: 100;
  background: var(--white);
  color: var(--ink);
  font: 600 0.9375rem/1 var(--sans);
  padding: 12px 16px;
  border-radius: 4px;
}

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

.wrap {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
}

/* ---------- type ---------- */

.h-hero,
.h-xl,
.h-l,
.h-m {
  font-family: var(--display);
  color: var(--text);
  font-feature-settings: "kern", "liga";
}

.h-hero {
  font-weight: 800;
  font-size: clamp(3.5rem, 11.2vw, 11.5rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
}

.h-xl {
  font-weight: 800;
  font-size: clamp(2.75rem, 6.6vw, 6.25rem);
  line-height: 0.94;
  letter-spacing: -0.048em;
}

.h-l {
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.042em;
}

.h-m {
  font-weight: 700;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.022em;
}

.lead {
  font-size: clamp(1.15rem, 1.45vw, 1.375rem);
  line-height: 1.5;
  color: var(--text-2);
  letter-spacing: -0.005em;
}

.mono {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.8125rem;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--text-3);
}

.link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--line-2);
  transition: text-decoration-color 0.2s var(--ease), color 0.2s var(--ease);
}

.link:hover {
  text-decoration-color: var(--check);
}

/* ---------- icons ---------- */

.i {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.i--fill {
  fill: currentColor;
  stroke: none;
}

/* the check, wherever it appears */
.tick {
  color: var(--check);
  fill: currentColor;
  overflow: visible;
}

/* draws in from the left, like a pen stroke, once its parent is revealed */
.js .tick--draw {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.7s var(--ease-in-out);
  transition-delay: var(--tick-delay, 0.15s);
}

.js .is-in .tick--draw,
.js .tick--draw.is-in,
.js .hero.is-ready .tick--draw {
  clip-path: inset(0 0 0 0);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0 1.15em;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  color: var(--text);
  font: 600 0.9375rem/1 var(--sans);
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn:hover {
  border-color: var(--white);
}

.btn .i {
  font-size: 1.05em;
}

.btn .i--arrow {
  font-size: 0.9em;
  transition: transform 0.25s var(--ease);
}

.btn:hover .i--arrow {
  transform: translate(2px, -2px);
}

.btn:hover .i--down {
  transform: translateY(2px);
}

.btn--solid {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.btn--solid:hover {
  background: var(--check);
  border-color: var(--check);
  color: var(--white);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: block;
  color: var(--white);
  padding: 6px 0;
  margin: -6px 0;
}

.brand svg {
  height: 23px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 36px);
  font: 500 0.9375rem/1 var(--sans);
}

.nav a {
  position: relative;
  color: var(--text-2);
  padding: 10px 0;
  transition: color 0.2s var(--ease);
}

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

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--check);
}

@media (max-width: 380px) {
  .brand svg {
    height: 20px;
  }

  .nav {
    gap: 14px;
    font-size: 0.875rem;
  }
}

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

.section {
  padding-block: clamp(88px, 11vw, 168px);
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  gap: 20px 24px;
  margin-bottom: clamp(48px, 6vw, 88px);
}

@media (min-width: 960px) {
  .section-head {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: end;
  }

  .section-head > :first-child {
    grid-column: 1 / span 7;
  }

  .section-head > :last-child {
    grid-column: 9 / span 4;
  }
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(20px, 2.4vw, 32px);
}

.kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--text-3);
}

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

.hero {
  padding-top: clamp(40px, 7vw, 104px);
  padding-bottom: clamp(72px, 9vw, 136px);
}

.hero__grid {
  display: grid;
  gap: 40px 24px;
}

.hero__title .line {
  display: block;
}

/* keep the check from splitting "OneLevel" when the first line wraps on phones */
.hero__title .nobr {
  white-space: nowrap;
}

@media (max-width: 799px) {
  .h-hero {
    font-size: clamp(3.5rem, 19vw, 7rem);
  }
}

@media (min-width: 800px) {
  .h-hero {
    font-size: min(11.2vw, 10.5rem);
  }
}

/* the v of "level" is the logo's check, as it is in the wordmark */
.vcheck {
  display: inline-block;
  height: 0.745em;
  width: auto;
  margin: 0 -0.105em 0 0.005em;
  vertical-align: baseline;
  overflow: visible;
  color: var(--check);
  fill: currentColor;
  position: relative;
  z-index: 1;
}

.hero__copy {
  display: grid;
  gap: 32px;
  align-content: start;
  max-width: 36rem;
}

.hero__lead {
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  line-height: 1.45;
  color: var(--text-2);
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .hero__grid .kicker {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .hero__title {
    grid-column: 1 / -1;
  }

  .hero__copy {
    grid-column: 1 / span 6;
    margin-top: 24px;
  }

  .levels-mini {
    grid-column: 8 / span 5;
    margin-top: 24px;
  }
}

/* hero entrance */
.js .hero__title .line,
.js .hero .reveal-up {
  opacity: 0;
  transform: translateY(0.35em);
}

.js .hero__title .line {
  transform: translateY(0.18em);
}

.js .hero.is-ready .hero__title .line,
.js .hero.is-ready .reveal-up {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease), transform 1s var(--ease);
}

.js .hero.is-ready .hero__title .line:nth-child(2) {
  transition-delay: 0.08s;
}

.js .hero.is-ready .kicker {
  transition-delay: 0s;
}

.js .hero.is-ready .hero__copy {
  transition-delay: 0.22s;
}

.js .hero.is-ready .levels-mini {
  transition-delay: 0.32s;
}

/* stroke that reveals the hero check, drawn left arm first */
.vcheck__pen {
  fill: none;
  stroke: #fff;
  stroke-width: 74;
  stroke-linejoin: miter;
  stroke-miterlimit: 4;
}

.js .vcheck__pen {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.js .hero.is-ready .vcheck__pen {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.75s var(--ease-in-out) 0.55s;
}

/* level select, beside the hero copy */
.levels-mini {
  border-top: 1px solid var(--line);
  align-self: start;
}

.levels-mini__head {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.levels-mini ol {
  list-style: none;
}

.levels-mini li > a,
.levels-mini li > div {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto 1.75rem;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.levels-mini li > a {
  transition: background-color 0.2s var(--ease), padding 0.25s var(--ease);
}

.levels-mini li > a:hover {
  background: var(--ink-raise);
  padding-inline: 12px;
}

.levels-mini .lvl-name {
  font: 600 1.0625rem/1.2 var(--sans);
  color: var(--text);
  letter-spacing: -0.01em;
}

.levels-mini .is-next .lvl-name {
  color: var(--text-3);
  font-weight: 500;
}

/* a checkbox; when ticked, the check breaks out of its top-right corner like a hand tick */
.box {
  position: relative;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--line-2);
  border-radius: 4px;
  justify-self: end;
}

.box .tick {
  position: absolute;
  left: 3px;
  bottom: 3px;
  width: 23px;
  height: auto;
}

/* ---------- apps ---------- */

.level {
  display: grid;
  gap: 28px 24px;
  padding-block: clamp(44px, 6vw, 88px);
  border-top: 1px solid var(--line);
}

.level__mark {
  display: flex;
  align-items: baseline;
  gap: 0.06em;
  font: 800 clamp(4.5rem, 12.5vw, 11.5rem)/0.8 var(--display);
  letter-spacing: -0.06em;
  color: #34333c;
  user-select: none;
}

.level__tick {
  height: 0.7em;
  width: auto;
}

.level__box {
  width: 0.56em;
  height: 0.56em;
  border: max(2px, 0.03em) solid #34333c;
  border-radius: 0.07em;
  margin-left: 0.04em;
}

.level__meta {
  margin-bottom: 20px;
}

.level__head {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  margin-bottom: 24px;
}

.level__head .level__name {
  margin-bottom: 6px;
  font-size: clamp(2.125rem, 5vw, 4.5rem);
}

.app-icon {
  position: relative;
  width: clamp(64px, 7.5vw, 104px);
  aspect-ratio: 1;
  border-radius: 22.5%;
  overflow: hidden;
  flex: none;
  background: var(--ink-raise);
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  pointer-events: none;
}

.app-icon--empty {
  background: transparent;
  border: 1.5px dashed var(--line-2);
}

.app-icon--empty::after {
  display: none;
}

.level__tagline {
  font: 500 clamp(1.125rem, 1.7vw, 1.5rem)/1.3 var(--display);
  color: var(--text-2);
  letter-spacing: -0.015em;
}

.level__text {
  max-width: 40rem;
  margin-bottom: 32px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  margin-bottom: 32px;
}

.facts > div {
  padding: 16px 16px 0 0;
}

.facts > div + div {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.facts dt {
  margin-bottom: 6px;
}

.facts dd {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text);
}

@media (max-width: 560px) {
  .facts {
    grid-template-columns: 1fr;
  }

  .facts > div,
  .facts > div + div {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    align-items: baseline;
    padding: 12px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .facts dt {
    margin: 0;
  }
}

.level--next .level__name,
.level--next .level__tagline {
  color: var(--text-3);
}

@media (min-width: 960px) {
  .level {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .level__mark {
    grid-column: 1 / span 4;
    align-self: start;
  }

  .level__body {
    grid-column: 5 / span 8;
  }
}

/* ---------- studio ---------- */

.studio-intro {
  display: grid;
  gap: 28px 24px;
}

@media (min-width: 960px) {
  .studio-intro {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: end;
  }

  .studio-intro h2 {
    grid-column: 1 / span 7;
  }

  .studio-intro p {
    grid-column: 9 / span 4;
  }
}

.checklist {
  list-style: none;
  display: grid;
  margin-top: clamp(56px, 7vw, 104px);
  border-top: 1px solid var(--line);
}

.checklist li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 4px 20px;
  padding: 32px 0 36px;
  border-bottom: 1px solid var(--line);
}

.checklist .tick {
  width: 34px;
  height: auto;
  margin-top: 4px;
  grid-row: span 2;
}

.checklist h3 {
  margin-bottom: 8px;
}

.checklist p {
  max-width: 30rem;
}

@media (min-width: 760px) {
  .checklist {
    grid-template-columns: 1fr 1fr;
  }

  .checklist li {
    padding: 40px 40px 44px 0;
  }

  .checklist li:nth-child(even) {
    padding-left: 40px;
    padding-right: 0;
    border-left: 1px solid var(--line);
  }
}

/* ---------- contact band ---------- */

.contact-band h2 {
  max-width: 12ch;
}

.mail {
  display: inline-flex;
  align-items: center;
  gap: 0.12em;
  margin-top: clamp(32px, 4vw, 56px);
  font: 800 clamp(1.9rem, 8.6vw, 6rem)/1 var(--display);
  letter-spacing: -0.045em;
  color: var(--text);
  background-image: linear-gradient(var(--check), var(--check));
  background-size: 0% 3px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 0.12em;
  transition: background-size 0.5s var(--ease);
  word-break: break-word;
}

.mail:hover {
  background-size: 100% 3px;
}

.mail .i {
  width: 0.6em;
  height: 0.6em;
  stroke-width: 2.2;
  color: var(--check);
  transition: transform 0.3s var(--ease);
}

.mail:hover .i {
  transform: translate(0.06em, -0.06em);
}

.contact-band__foot {
  display: grid;
  gap: 24px;
  margin-top: clamp(32px, 4vw, 48px);
}

@media (min-width: 960px) {
  .contact-band__foot {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
  }

  .contact-band__foot p {
    grid-column: 1 / span 6;
  }

  .contact-band__foot .btn-row {
    grid-column: 9 / span 4;
    justify-content: flex-end;
  }
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: clamp(56px, 7vw, 88px);
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 24px;
}

.footer-grid h2 {
  margin-bottom: 14px;
}

.footer-grid ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-grid a {
  color: var(--text-2);
  transition: color 0.2s var(--ease);
}

.footer-grid a:hover {
  color: var(--white);
}

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

.footer-about p {
  max-width: 22rem;
  margin-top: 16px;
  color: var(--text-3);
}

.footer-about .brand {
  color: var(--white);
}

.footer-about .brand svg {
  height: 24px;
}

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

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

  .footer-grid > nav:nth-of-type(1) {
    grid-column: 7 / span 2;
  }

  .footer-grid > nav:nth-of-type(2) {
    grid-column: 9 / span 2;
  }

  .footer-grid > div:last-child {
    grid-column: 11 / span 2;
  }
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* the wordmark, set into the bottom edge of the page */
.footer-mark {
  margin-top: clamp(28px, 4vw, 48px);
  aspect-ratio: 1413.9 / 212;
  overflow: hidden;
  color: var(--ink-line);
  --check-fill: var(--check);
}

.footer-mark svg {
  width: 100%;
  height: auto;
}

@media (max-width: 599px) {
  .footer-mark {
    margin-inline: calc(var(--pad) * -0.5);
  }
}

/* ---------- scroll reveal ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.9s var(--ease);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- inner pages ---------- */

.page-head {
  padding-top: clamp(48px, 7vw, 104px);
  padding-bottom: clamp(48px, 6vw, 88px);
}

.page-head .h-xl {
  max-width: 14ch;
}

.page-head .lead {
  max-width: 40rem;
  margin-top: clamp(24px, 3vw, 36px);
}

.page-head .mono + .mono {
  margin-top: 8px;
}

main.inner {
  padding-bottom: clamp(88px, 10vw, 152px);
}

/* contact routes */
.routes {
  list-style: none;
  border-top: 1px solid var(--line);
}

.routes a {
  display: grid;
  gap: 8px 24px;
  padding: clamp(24px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s var(--ease), padding 0.25s var(--ease);
}

.routes a:hover {
  background: var(--ink-raise);
  padding-inline: 16px;
}

.routes .route__to {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font: 500 0.9375rem/1.3 var(--sans);
}

.routes .route__to .i {
  color: var(--check);
  transition: transform 0.25s var(--ease);
}

.routes a:hover .route__to .i {
  transform: translate(2px, -2px);
}

.routes p {
  max-width: 34rem;
}

@media (min-width: 960px) {
  .routes a {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: baseline;
  }

  .routes h2 {
    grid-column: 1 / span 4;
  }

  .routes p {
    grid-column: 5 / span 5;
  }

  .routes .route__to {
    grid-column: 10 / span 3;
    justify-self: end;
  }
}

.note {
  display: grid;
  gap: 16px 24px;
  margin-top: clamp(56px, 7vw, 96px);
  padding: clamp(24px, 3.5vw, 40px);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.note p + p {
  margin-top: 12px;
}

@media (min-width: 960px) {
  .note {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .note h2 {
    grid-column: 1 / span 4;
  }

  .note > div {
    grid-column: 5 / span 7;
  }
}

/* ---------- legal ---------- */

.legal {
  padding-bottom: clamp(88px, 10vw, 152px);
}

.legal-grid {
  display: grid;
  gap: 48px 24px;
}

.toc {
  display: none;
}

@media (min-width: 1080px) {
  .legal-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .toc {
    display: block;
    grid-column: 1 / span 3;
    position: sticky;
    top: calc(var(--header-h) + 32px);
    align-self: start;
    max-height: calc(100vh - var(--header-h) - 64px);
    overflow: auto;
  }

  .prose {
    grid-column: 5 / span 7;
  }
}

.toc p {
  margin-bottom: 14px;
}

.toc ol {
  list-style: none;
  border-left: 1px solid var(--line);
}

.toc a {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  padding: 6px 0 6px 16px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--text-3);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.toc a span {
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.8;
}

.toc a:hover {
  color: var(--text);
}

.toc a.is-current {
  color: var(--text);
  border-left-color: var(--check);
}

.summary {
  padding: clamp(24px, 3.5vw, 36px);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: clamp(56px, 6vw, 80px);
}

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

.ticks {
  list-style: none;
  display: grid;
  gap: 14px;
}

.ticks li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 14px;
  color: var(--text);
  line-height: 1.5;
}

.ticks .tick {
  width: 17px;
  height: auto;
  margin-top: 4px;
}

.prose {
  max-width: 44rem;
}

.prose section + section {
  margin-top: clamp(48px, 5vw, 64px);
  padding-top: clamp(48px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.prose h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font: 700 clamp(1.5rem, 2.3vw, 2rem)/1.15 var(--display);
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 20px;
}

.prose h2 .num {
  font: 400 0.8125rem/1 var(--mono);
  letter-spacing: 0;
  color: var(--text-3);
  transform: translateY(-0.2em);
}

.prose h3 {
  font: 600 1.0625rem/1.4 var(--sans);
  color: var(--text);
  margin: 28px 0 8px;
}

.prose p,
.prose li {
  line-height: 1.7;
}

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

.prose ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.prose ul:not(.ticks) li {
  position: relative;
  padding-left: 22px;
}

.prose ul:not(.ticks) li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.8em;
  width: 8px;
  height: 1px;
  background: var(--text-3);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose .basis {
  display: block;
  margin-top: 2px;
  font: 400 0.75rem/1.5 var(--mono);
  color: var(--text-3);
}

.prose a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--line-2);
  transition: text-decoration-color 0.2s var(--ease);
  overflow-wrap: anywhere;
}

.prose a:hover {
  text-decoration-color: var(--check);
}

/* data recipients: name, what, where */
.recipients {
  display: grid;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}

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

.recipients dt {
  color: var(--text);
  font-weight: 600;
}

.recipients dd {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.recipients dd.where {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-3);
}

@media (min-width: 720px) {
  .recipients > div {
    grid-template-columns: 11rem minmax(0, 1fr);
  }

  .recipients dd {
    grid-column: 2;
  }
}

/* ---------- 404 ---------- */

.lost {
  min-height: calc(100vh - var(--header-h) - 120px);
  display: grid;
  align-content: center;
  padding-block: 96px;
}

.lost .box {
  justify-self: start;
  width: clamp(56px, 7vw, 88px);
  height: clamp(56px, 7vw, 88px);
  border-width: 2px;
  border-radius: 10px;
  margin-bottom: 40px;
}

.lost .lead {
  max-width: 30rem;
  margin: 28px 0 40px;
}

/* ---------- motion preferences ---------- */

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