/* Levysco Inc. website. Light only, on purpose: the apps are light only, their screenshots are
   white PDF pages that glare on a dark page, and one theme is one thing to check. */

:root {
  color-scheme: light;

  --ink: #15181d; /* 17.9:1 on white */
  --ink-2: #4f5763; /* 7.3:1 on white, 6.8:1 on --bg-2 */
  --line: #e4e7eb;
  --line-2: #d3d8de;
  --bg: #ffffff;
  --bg-2: #f6f7f9;
  --accent: #2952e3; /* 6.5:1 on white, 5.8:1 on --subtle */
  --accent-hover: #1f43c4;
  --subtle: #eef0ff;
  --night: #12141a;
  --night-ink: #c9ced8; /* 11.5:1 on --night */
  --night-accent: #a9b8ff; /* 9.6:1 on --night */
  --grad: linear-gradient(120deg, #e43f6f 0%, #8b3fd8 50%, #2952e3 100%);

  --font:
    'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto,
    'Noto Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-display:
    'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto,
    'Noto Sans', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  --radius: 10px;
  --radius-lg: 20px;
  --shadow-phone: 0 1px 2px rgb(16 24 40 / 0.08), 0 12px 24px -6px rgb(16 24 40 / 0.18),
    0 40px 64px -24px rgb(16 24 40 / 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  border-top: 3px solid transparent;
  border-image: var(--grad) 1;
  overflow-wrap: break-word;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.i {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

/* --- Header ------------------------------------------------------------------------------ */

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 28px;
  height: 28px;
}

.top nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.top nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.top nav a:hover {
  color: var(--ink);
  background: var(--bg-2);
}

.top nav a[aria-current='page'] {
  color: var(--ink);
  background: var(--bg-2);
}

@media (max-width: 380px) {
  .top nav a {
    padding: 8px 8px;
  }
  .brand span {
    font-size: 1.125rem;
  }
}

/* App sub-navigation (Overview, Privacy, Support) */

.subnav {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.subnav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
}

.subnav-app {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.subnav-app:hover {
  color: var(--ink);
}

.subnav-app img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.subnav-links {
  display: flex;
  gap: 2px;
}

.subnav-links a {
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  text-decoration: none;
}

.subnav-links a:hover {
  color: var(--ink);
  background: #eceef2;
}

.subnav-links a[aria-current='page'] {
  color: var(--accent);
  font-weight: 600;
  background: var(--subtle);
}

@media (max-width: 400px) {
  .subnav-app span,
  .subnav-app {
    font-size: 0;
    gap: 0;
  }
  .subnav-app img {
    width: 28px;
    height: 28px;
  }
  .subnav-links {
    flex: 1;
    justify-content: flex-end;
  }
}

/* --- Shared pieces ----------------------------------------------------------------------- */

.lede {
  color: var(--ink-2);
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem);
  line-height: 1.55;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 20px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    filter 120ms ease-out,
    background-color 120ms ease-out;
}

.btn-primary {
  color: #fff;
  background: var(--accent) var(--grad);
  box-shadow: 0 1px 2px rgb(16 24 40 / 0.12), inset 0 1px 0 rgb(255 255 255 / 0.12);
}

.btn-primary:hover {
  color: #fff;
  filter: brightness(0.92);
}

.btn-secondary {
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-2);
}

.btn-secondary:hover {
  color: var(--ink);
  background: var(--bg-2);
}

.btn .i {
  width: 18px;
  height: 18px;
}

/* Google Play: text only, laid out like a store badge. */
.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 48px;
  padding: 5px 18px 6px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  line-height: 1.15;
  text-decoration: none;
}

.store:hover {
  color: #fff;
  background: #000;
}

.store-small {
  font-size: 0.75rem;
  letter-spacing: 0.01em;
}

.store-big {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.store-soon {
  margin: 0;
  background: transparent;
  color: var(--ink-2);
  border: 1px dashed var(--line-2);
}

.store-soon .store-big {
  color: var(--ink);
}

.tag {
  display: inline-block;
  vertical-align: 0.2em;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.5;
}

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.checks .i {
  width: 20px;
  height: 20px;
  margin-top: 0.2em;
  padding: 3px;
  border-radius: 50%;
  color: var(--accent);
  background: var(--subtle);
  stroke-width: 3;
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 22.5%;
  box-shadow: 0 0 0 1px rgb(16 24 40 / 0.06), 0 4px 12px -2px rgb(41 82 227 / 0.3);
}

.app-icon-lg {
  width: 80px;
  height: 80px;
}

.app-icon-sm {
  width: 40px;
  height: 40px;
  box-shadow: 0 0 0 1px rgb(16 24 40 / 0.06);
}

/* Phone frame, drawn in CSS: a dark bezel with a punch-hole camera above the screen. */
.phone {
  margin: 0;
  width: 100%;
  max-width: 300px;
  padding: 9px;
  border-radius: 40px;
  background: #1a1c22;
  box-shadow:
    inset 0 0 0 1px #3a3d46,
    var(--shadow-phone);
}

.phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 31px;
  background: #fff;
  padding-top: 26px;
}

.phone-screen::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: #1a1c22;
}

.phone-screen img {
  width: 100%;
}

/* Desktop window frame, also CSS. */
.window {
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  box-shadow: 0 1px 2px rgb(16 24 40 / 0.06), 0 24px 48px -16px rgb(16 24 40 / 0.22);
}

.window-bar {
  display: flex;
  gap: 7px;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}

.window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line-2);
}

.window img {
  width: 100%;
}

/* --- Home -------------------------------------------------------------------------------- */

.hero-home {
  padding: clamp(48px, 9vw, 112px) 0 clamp(40px, 6vw, 72px);
}

.hero-home h1 {
  max-width: 15ch;
  font-size: clamp(2.375rem, 1.2rem + 4.6vw, 4.5rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.hero-home .lede {
  max-width: 36rem;
  margin-top: clamp(20px, 3vw, 28px);
}

@media (min-width: 1024px) {
  .hero-home {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 64px;
    align-items: end;
  }
  .hero-home .lede {
    margin: 0 0 0.4em;
  }
}

.showcase {
  position: relative;
  display: grid;
  gap: 32px;
  overflow: hidden;
  padding: clamp(24px, 5vw, 64px);
  padding-bottom: 0;
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  border: 1px solid var(--line);
}

.showcase + .showcase {
  margin-top: 24px;
}

.showcase-text {
  display: grid;
  gap: 24px;
  align-content: start;
}

.app-id {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-id h3 {
  font-size: 1.5rem;
}

.app-id p {
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.showcase-promise {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  max-width: 18ch;
  text-wrap: balance;
}

.showcase-media {
  display: flex;
  justify-content: center;
  max-height: 340px;
  overflow: hidden;
}

.showcase-media .phone {
  max-width: 250px;
  box-shadow:
    inset 0 0 0 1px #3a3d46,
    0 12px 32px -8px rgb(16 24 40 / 0.3);
}

.more {
  margin-top: 20px;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

@media (min-width: 920px) {
  .showcase {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .showcase-text {
    align-self: center;
    gap: 28px;
    padding-bottom: 64px;
  }
  .showcase-flip .showcase-text {
    order: 2;
  }
  .showcase-media {
    max-height: 460px;
  }
  .showcase-media .phone {
    max-width: 290px;
  }
}

/* How we build */

.rules {
  display: grid;
  gap: 32px;
  padding: clamp(64px, 10vw, 120px) 0 clamp(48px, 8vw, 96px);
}

.rules-head h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  letter-spacing: -0.03em;
}

.rules-head p {
  margin-top: 12px;
  color: var(--ink-2);
  max-width: 26rem;
}

.rules-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: rule;
}

.rules-list li {
  counter-increment: rule;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.rules-list li::before {
  content: counter(rule, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.rules-list h3 {
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
}

.rules-list p {
  margin-top: 8px;
  color: var(--ink-2);
}

@media (min-width: 720px) {
  .rules-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
  }
}

@media (min-width: 1024px) {
  .rules {
    grid-template-columns: 1fr 2fr;
    gap: 64px;
  }
  .rules-head {
    padding-top: 24px;
  }
}

/* --- App page ---------------------------------------------------------------------------- */

.hero-app {
  display: grid;
  gap: 48px;
  padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 80px);
}

.hero-app-text {
  display: grid;
  gap: 24px;
  align-content: center;
  justify-items: start;
}

.hero-app h1 {
  font-size: clamp(2.25rem, 1.2rem + 4vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 12.5em;
}

.hero-app-id {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.hero-app-id .tag {
  margin-left: 0;
}

.hero-app-id .app-icon {
  width: 56px;
  height: 56px;
}

.hero-app .lede {
  max-width: 34rem;
}

.price {
  color: var(--ink-2);
  font-size: 0.9375rem;
  margin-top: -8px;
}

.platforms {
  list-style: none;
  margin: 8px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  width: 100%;
  max-width: 34rem;
  font-size: 0.9375rem;
}

.platforms li {
  display: grid;
}

.platforms li > span:first-child {
  font-weight: 600;
}

.platform-status {
  color: var(--ink-2);
}

.platform-status.is-next {
  color: var(--accent);
}

@media (min-width: 560px) {
  .platforms {
    grid-template-columns: repeat(4, auto);
  }
}

.hero-app-media {
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 40px 24px 0;
  border-radius: var(--radius-lg);
  background: var(--subtle);
  min-height: 0;
}

.hero-app-media {
  max-height: 440px;
}

.hero-app-media .phone {
  max-width: 250px;
  margin-bottom: -64px;
}

@media (min-width: 920px) {
  .hero-app {
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: stretch;
  }
  .hero-app-media {
    padding-top: 56px;
    max-height: 640px;
  }
  .hero-app-media .phone {
    max-width: 290px;
  }
}

.feature {
  display: grid;
  gap: 40px;
  padding: clamp(56px, 9vw, 112px) 0;
  border-bottom: 1px solid var(--line);
}

.feature-text {
  display: grid;
  gap: 16px;
  align-content: center;
  max-width: 34rem;
}

.feature-text .eyebrow {
  margin: 0;
}

.feature h2 {
  font-size: clamp(1.875rem, 1.3rem + 2.2vw, 2.75rem);
  letter-spacing: -0.03em;
}

.feature-text > p {
  color: var(--ink-2);
  font-size: 1.125rem;
}

.feature .checks {
  margin-top: 8px;
}

.feature-media {
  display: flex;
  justify-content: center;
}

.feature-media .phone {
  max-width: 280px;
}

@media (min-width: 820px) {
  .feature {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
  }
  .feature-flip .feature-text {
    order: 2;
  }
  .feature-text {
    justify-self: start;
  }
  .feature-flip .feature-text {
    justify-self: end;
  }
}

/* Details */

.extras {
  padding: clamp(56px, 9vw, 104px) 0;
}

.extras h2 {
  font-size: clamp(1.625rem, 1.25rem + 1.5vw, 2.25rem);
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

.extras-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.extras-list div {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.extras-list dt {
  font-weight: 600;
}

.extras-list dd {
  margin: 4px 0 0;
  color: var(--ink-2);
}

@media (min-width: 720px) {
  .extras-list {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 40px;
  }
}


.note {
  margin-top: 32px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
  max-width: 52rem;
}

.note h3 {
  font-family: var(--font);
  font-size: 1rem;
  letter-spacing: 0;
}

.note p {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 0.9688rem;
}

/* Privacy promise: the one dark panel. */

.promise {
  position: relative;
  display: grid;
  gap: 40px;
  padding: clamp(32px, 6vw, 72px);
  border-radius: var(--radius-lg);
  background: var(--night);
  color: #fff;
  overflow: hidden;
}

.promise::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--grad);
}

.eyebrow-light {
  color: var(--night-accent);
}

.promise h2 {
  font-size: clamp(1.875rem, 1.3rem + 2.4vw, 3rem);
  letter-spacing: -0.035em;
  max-width: 16ch;
}

.promise-head > p:last-child {
  margin-top: 16px;
  color: var(--night-ink);
  font-size: 1.125rem;
  max-width: 40rem;
}

.promise .rules-list li {
  border-top-color: #2b2f3a;
}

.promise .rules-list li::before {
  color: var(--night-accent);
}

.promise .rules-list p {
  color: var(--night-ink);
}

.promise-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--night-accent);
  font-weight: 600;
  text-decoration: none;
}

.promise-link a:hover {
  color: #fff;
}

.promise :focus-visible {
  outline-color: var(--night-accent);
}


/* Desktop preview */

.desktop {
  display: grid;
  gap: 32px;
  padding: clamp(64px, 10vw, 120px) 0 clamp(40px, 6vw, 72px);
}

.desktop-text {
  max-width: 40rem;
}

.desktop h2 {
  font-size: clamp(1.625rem, 1.25rem + 1.5vw, 2.25rem);
  letter-spacing: -0.03em;
}

.desktop-text p {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 1.125rem;
}

/* Help list group (also on the contact page) */

.help {
  padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 9vw, 104px);
}

.help h2 {
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.list-group {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  overflow: hidden;
  max-width: 46rem;
  background: var(--bg);
}

.list-group li + li {
  border-top: 1px solid var(--line);
}

.list-group a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  color: var(--ink);
  text-decoration: none;
}

.list-group a:hover {
  background: var(--bg-2);
  color: var(--ink);
}

.list-group a:focus-visible {
  outline-offset: -3px;
  border-radius: 12px;
}

.list-group a > span {
  flex: 1;
  display: grid;
  gap: 2px;
  min-width: 0;
}

.list-group strong {
  font-weight: 600;
}

.list-group a > span > span {
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.i-lead {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.i-chev {
  width: 18px;
  height: 18px;
  color: var(--ink-2);
}

/* --- Long-form pages --------------------------------------------------------------------- */

.doc {
  max-width: calc(46rem + 2 * var(--gutter));
  padding-top: clamp(40px, 7vw, 80px);
  padding-bottom: clamp(56px, 9vw, 104px);
}

.doc-head h1 {
  font-size: clamp(2.125rem, 1.4rem + 3vw, 3.25rem);
  letter-spacing: -0.035em;
}

.doc-head .lede {
  margin-top: 16px;
}

.contact-card {
  display: grid;
  gap: 16px;
  justify-items: start;
  margin: 32px 0 56px;
  padding: 24px;
  border-radius: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}

.contact-card p {
  color: var(--ink-2);
  font-size: 0.9688rem;
}

.contact-card .btn {
  white-space: normal;
  text-align: left;
  overflow-wrap: anywhere;
}

.faq-title {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--accent);
}

.faq summary .i-chev {
  transform: rotate(90deg);
  transition: transform 150ms ease-out;
}

.faq details[open] summary .i-chev {
  transform: rotate(-90deg);
}

.faq details p {
  padding: 0 32px 20px 0;
  color: var(--ink-2);
}

.doc-foot {
  margin-top: 32px;
  color: var(--ink-2);
}

/* Privacy policy: a table of contents beside a measured column. */

.doc-layout {
  display: grid;
  gap: 32px;
  padding-top: clamp(32px, 6vw, 72px);
  padding-bottom: clamp(56px, 9vw, 104px);
}

.toc {
  font-size: 0.9375rem;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}

.toc h2 {
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-2);
  margin-bottom: 8px;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.toc a {
  display: block;
  padding: 4px 0;
  color: var(--ink);
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 719px) {
  .toc ol {
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
  }
}

@media (min-width: 1024px) {
  .doc-layout {
    grid-template-columns: 15rem minmax(0, 44rem);
    gap: 72px;
    justify-content: center;
  }
  .toc {
    position: sticky;
    top: 24px;
    align-self: start;
    padding: 0;
    background: none;
    border: 0;
    border-left: 1px solid var(--line);
  }
  .toc h2,
  .toc a {
    padding-left: 16px;
  }
  .toc ol {
    gap: 0;
  }
}

.prose {
  max-width: 44rem;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.prose h1 {
  font-size: clamp(2.125rem, 1.4rem + 3vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}

.prose h1 + p {
  color: var(--ink-2);
  font-size: 0.9375rem;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.prose h1 + p strong {
  color: var(--ink);
}

.prose h2 {
  font-size: 1.4375rem;
  letter-spacing: -0.02em;
  margin: 48px 0 12px;
  scroll-margin-top: 24px;
}

.prose h3 {
  font-size: 1.125rem;
  margin: 28px 0 8px;
}

.prose p + p,
.prose p + ul,
.prose ul + p {
  margin-top: 16px;
}

.prose ul {
  margin: 12px 0 0;
  padding-left: 1.25rem;
}

.prose li {
  margin: 8px 0;
  padding-left: 4px;
}

.prose li::marker {
  color: var(--accent);
}

.prose strong {
  font-weight: 600;
}

.prose code {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, 'SF Mono', monospace;
  font-size: 0.9em;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--bg-2);
}

/* 404 */

.notfound {
  padding-top: clamp(64px, 12vw, 144px);
  padding-bottom: clamp(80px, 14vw, 176px);
}

.notfound h1 {
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem);
  letter-spacing: -0.035em;
}

.notfound .lede {
  margin: 16px 0 32px;
}

/* --- Footer ------------------------------------------------------------------------------ */

.foot {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 0.9375rem;
}

.foot .wrap {
  padding-top: 48px;
  padding-bottom: 32px;
}

.foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 24px;
}

.foot-about {
  flex: 1 1 100%;
}

.foot-col {
  flex: 1 1 9rem;
}

.foot-about p {
  margin-top: 12px;
  color: var(--ink-2);
  max-width: 22rem;
}

.brand-foot {
  font-size: 1.125rem;
}

.brand-foot img {
  width: 24px;
  height: 24px;
}

.foot h2 {
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 12px;
}

.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.foot-col a {
  color: var(--ink-2);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.foot-col a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.875rem;
}

@media (min-width: 820px) {
  .foot-grid {
    gap: 48px;
  }
  .foot-about {
    flex: 1 1 20rem;
  }
  .foot-col {
    flex: 0 0 11rem;
  }
}

/* --- Motion ------------------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
