/* Moraki website. Same tokens as the app (direction G, faded Stone).
   Night colours apply under [data-theme="dark"], and under the system dark setting
   when the page has no data-theme (Auto). */

@font-face {
  font-family: 'Comfortaa';
  src: url('fonts/comfortaa-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('fonts/manrope-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('fonts/manrope-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('fonts/manrope-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('fonts/manrope-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f3f2ee;
  --card: #ffffff;
  --ink: #161412;
  --soft: #5c5852;
  --line: #e4e2da;
  --chip: #f3f2ee;
  --feed: #f7ebc0;
  --sleep: #f4e4de;
  --diaper: #e1e3f7;
  --pump: #e0eee7;
  --deco: #f1e1a8;
  --btn: #161412;
  --btn-text: #ffffff;
  --logo: #c9802f;
  --focus: #161412;
  --shadow: 0 10px 40px rgba(22, 20, 18, 0.08);
  --font-head: 'Comfortaa', 'Manrope', system-ui, sans-serif;
  --font-text: 'Manrope', -apple-system, system-ui, 'Segoe UI', sans-serif;
  --r-card: 28px;
  --r-tile: 28px;
  --max: 1100px;
  color-scheme: light dark;
}
:root[data-theme='light'] {
  color-scheme: light;
}
:root[data-theme='dark'] {
  color-scheme: dark;
}

:root[data-theme='dark'] {
  --bg: #171411;
  --card: #23201c;
  --ink: #f1eae0;
  --soft: #b8ad9f;
  --line: #34302b;
  --chip: #2c2823;
  --feed: #51432a;
  --sleep: #47343a;
  --diaper: #33374d;
  --pump: #2f4238;
  --deco: #5e4f31;
  --btn: #f1eae0;
  --btn-text: #171411;
  --logo: #e8a55a;
  --focus: #f1eae0;
  --shadow: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #171411;
    --card: #23201c;
    --ink: #f1eae0;
    --soft: #b8ad9f;
    --line: #34302b;
    --chip: #2c2823;
    --feed: #51432a;
    --sleep: #47343a;
    --diaper: #33374d;
    --pump: #2f4238;
    --deco: #5e4f31;
    --btn: #f1eae0;
    --btn-text: #171411;
    --logo: #e8a55a;
    --focus: #f1eae0;
    --shadow: none;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  max-width: 100%;
}
a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
a:hover {
  text-decoration-thickness: 2.5px;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 8px;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.005em;
}
h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
}
h2 {
  font-size: clamp(1.6rem, 4.4vw, 2.4rem);
}
h3 {
  font-size: 1.25rem;
}
p {
  margin: 0;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--btn);
  color: var(--btn-text);
  padding: 10px 16px;
  border-radius: 999px;
  z-index: 10;
}
.skip:focus {
  left: 16px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}
.soft {
  color: var(--soft);
}
.small {
  font-size: 0.9375rem;
  font-weight: 600;
}

/* header */
.site-header {
  padding: 18px 0;
}
.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  min-height: 48px;
}
.brand svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.mark path {
  stroke: var(--logo);
}
.mark circle {
  fill: var(--logo);
}
.lang {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--card);
  border-radius: 999px;
}
.lang a {
  min-width: 48px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0 12px;
}
.lang a[aria-current='true'] {
  background: var(--btn);
  color: var(--btn-text);
}

/* buttons and badge */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--btn);
  color: var(--btn-text);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn-out {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--soft);
}
.badge {
  display: inline-block;
  line-height: 0;
  border-radius: 10px;
}
.badge img {
  width: 156px;
  height: 52px;
}
.badge-night {
  display: none;
}
:root[data-theme='dark'] .badge-day {
  display: none;
}
:root[data-theme='dark'] .badge-night {
  display: inline;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .badge-day {
    display: none;
  }
  :root:not([data-theme]) .badge-night {
    display: inline;
  }
}

/* sections */
section {
  padding: 56px 0;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 640px;
  margin-bottom: 28px;
}
.eyebrow {
  align-self: flex-start;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--card);
}
.card {
  background: var(--card);
  border-radius: var(--r-card);
  padding: 24px;
}
.grid {
  display: grid;
  gap: 14px;
}

/* hero */
.hero {
  padding: 24px 0 56px;
}
.hero .wrap {
  display: grid;
  gap: 36px;
  align-items: center;
}
.hero-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hero-sub {
  font-size: 1.1875rem;
  color: var(--soft);
  max-width: 34ch;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 20px 0;
}
.hero-art::before {
  content: '';
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: var(--feed);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* phone mockup: the real app screen, scaled */
.phone {
  --s: 0.72;
  position: relative;
  width: calc(390px * var(--s) + 20px);
  height: calc(844px * var(--s) + 20px);
  padding: 10px;
  border-radius: 46px;
  background: #161412;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.phone-screen {
  width: calc(390px * var(--s));
  height: calc(844px * var(--s));
  border-radius: 36px;
  overflow: hidden;
  position: relative;
}
.phone-screen > div {
  transform: scale(var(--s));
  transform-origin: 0 0;
}
:root[data-theme='dark'] .phone {
  background: #000000;
  box-shadow: 0 0 0 1px #34302b;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .phone {
    background: #000000;
    box-shadow: 0 0 0 1px #34302b;
  }
}

/* steps */
.steps {
  counter-reset: step;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
}
.step:nth-child(1) .step-num {
  background: var(--feed);
}
.step:nth-child(2) .step-num {
  background: var(--sleep);
}
.step:nth-child(3) .step-num {
  background: var(--pump);
}

/* tiles */
.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.tile {
  border-radius: var(--r-tile);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.tile h3 {
  font-size: 1.1875rem;
}
.tile p {
  font-size: 0.9375rem;
  font-weight: 600;
}
.tile.feed {
  background: var(--feed);
}
.tile.sleep {
  background: var(--sleep);
}
.tile.diaper {
  background: var(--diaper);
}
.tile.pump {
  background: var(--pump);
}
.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-circle svg {
  width: 28px;
  height: 28px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px 0 8px;
  border-radius: 999px;
  background: var(--card);
  font-weight: 700;
  font-size: 0.9375rem;
}
.chips .icon-circle {
  width: 34px;
  height: 34px;
  background: var(--chip);
}
.chips .icon-circle svg {
  width: 18px;
  height: 18px;
}

/* split feature */
.split {
  display: grid;
  gap: 32px;
  align-items: center;
}
.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--card);
  border-radius: 22px;
  padding: 16px;
}
.list .icon-circle {
  width: 44px;
  height: 44px;
  background: var(--chip);
}
.list .icon-circle svg {
  width: 22px;
  height: 22px;
}
.list strong {
  display: block;
  font-weight: 800;
}
.night-band {
  background: #171411;
  color: #f1eae0;
  border-radius: 36px;
  padding: 32px 22px;
}
.night-band .list li {
  background: #23201c;
  color: #f1eae0;
}
.night-band .list .icon-circle {
  background: #2c2823;
}
.night-band .soft {
  color: #b8ad9f;
}
.night-band .eyebrow {
  background: #23201c;
  color: #f1eae0;
}
.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-radius: 22px;
  padding: 16px;
  background: var(--feed);
  font-weight: 600;
  font-size: 0.9375rem;
}

/* privacy */
.privacy-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.privacy-grid .card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
}
.privacy-grid .icon-circle {
  width: 44px;
  height: 44px;
  background: var(--pump);
}
.privacy-grid .icon-circle svg {
  width: 22px;
  height: 22px;
}

/* final cta */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--feed);
  border-radius: 36px;
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.cta::before {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--deco);
}
.cta > * {
  position: relative;
}
.cta .mark-circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta .mark-circle svg {
  width: 52px;
  height: 52px;
}

/* footer */
.site-footer {
  padding: 32px 0 48px;
}
.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  font-weight: 700;
}
.health-note {
  font-size: 0.9375rem;
  color: var(--soft);
  max-width: 60ch;
}

/* long text pages */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 18px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.doc-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0 8px;
}
.doc .card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.doc .card h2 {
  font-size: 1.375rem;
}
.doc .card p {
  color: var(--ink);
}
.placeholder {
  color: var(--soft);
  font-style: italic;
}
.toc {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.toc a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--card);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9375rem;
}

/* join and 404 */
.center-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 18px 40px;
}
.join-card {
  width: 100%;
  max-width: 480px;
  background: var(--card);
  border-radius: 32px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
  align-items: center;
}
.join-card .mark-circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--feed);
  display: flex;
  align-items: center;
  justify-content: center;
}
.join-card .mark-circle svg {
  width: 52px;
  height: 52px;
}
.code-box {
  width: 100%;
  border-radius: 24px;
  background: var(--feed);
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.code {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.8rem, 9vw, 2.6rem);
  letter-spacing: 0.12em;
  line-height: 1.2;
  word-break: break-all;
}
.join-steps {
  text-align: left;
  width: 100%;
  list-style: none;
  counter-reset: s;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.join-steps li {
  counter-increment: s;
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--chip);
  border-radius: 18px;
  padding: 12px 14px;
  font-weight: 600;
}
.join-steps li::before {
  content: counter(s);
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
}
[hidden] {
  display: none !important;
}

/* larger screens */
@media (min-width: 720px) {
  section {
    padding: 80px 0;
  }
  .hero {
    padding: 40px 0 80px;
  }
  .hero .wrap {
    grid-template-columns: 1.1fr 1fr;
  }
  .phone {
    --s: 0.8;
  }
  .hero-art::before {
    width: 440px;
    height: 440px;
  }
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split.reverse .split-art {
    order: -1;
  }
  .privacy-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .night-band {
    padding: 56px 48px;
  }
  .cta {
    padding: 64px 32px;
  }
  .site-footer .wrap {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
  }
}
.split-art {
  display: flex;
  justify-content: center;
}

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

/* additions */
ol.steps,
ul.tiles,
ul.privacy-grid {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lead {
  font-size: 1.125rem;
}
.hero-mark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--feed);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-mark svg {
  width: 46px;
  height: 46px;
}
.phone-night {
  display: none;
}
:root[data-theme='dark'] .phone-day {
  display: none;
}
:root[data-theme='dark'] .phone-night {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .phone-day {
    display: none;
  }
  :root:not([data-theme]) .phone-night {
    display: block;
  }
}
.lang button {
  min-width: 48px;
  min-height: 40px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0 12px;
  cursor: pointer;
}
.lang button[aria-pressed='true'] {
  background: var(--btn);
  color: var(--btn-text);
}
.more-h {
  margin-top: 28px;
  font-size: 1.125rem;
}
.more-link {
  margin-top: 20px;
  font-weight: 700;
}
.more-link a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
}
.split-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.split-text .section-head {
  margin-bottom: 20px;
}
.notice {
  margin-top: 16px;
}
.notice .icon-circle {
  width: 36px;
  height: 36px;
  background: var(--card);
}
.notice .icon-circle svg {
  width: 20px;
  height: 20px;
}
.privacy-grid h3 {
  font-size: 1.0625rem;
  margin-bottom: 4px;
}
.privacy-grid p {
  font-size: 0.9375rem;
}
.footer-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toc-h {
  font-size: 1rem;
  margin-bottom: 8px;
  font-family: var(--font-text);
  font-weight: 800;
}
.toc-wrap {
  padding: 4px 0 8px;
}
.join-card h1 {
  font-size: clamp(1.6rem, 6vw, 2rem);
}
.join-card .badge {
  margin-top: 4px;
}
.has-code {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.copy-status {
  min-height: 1.5em;
}
.nf-el {
  width: 100%;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.nf-el h2 {
  font-size: 1.375rem;
}
.center {
  text-align: center;
}
.night-band .split-art .phone {
  box-shadow: 0 0 0 1px #34302b;
  background: #000;
}
@media (min-width: 720px) {
  .footer-main {
    max-width: 60%;
  }
}
.phone-screen [data-b] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* illustrations */
:root {
  --skin-1: #f3cdb0;
  --skin-2: #d9a27c;
  --skin-3: #9c6646;
  --hair-1: #3a2b22;
  --hair-2: #8a5a34;
  --hair-grey: #c9c3ba;
  --blush: #f2b9a6;
}
:root[data-theme='dark'] {
  --skin-1: #c9a78e;
  --skin-2: #a87b5d;
  --skin-3: #7a5038;
  --hair-1: #1e1612;
  --hair-2: #6a4428;
  --hair-grey: #8f8880;
  --blush: #9c6a5c;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --skin-1: #c9a78e;
    --skin-2: #a87b5d;
    --skin-3: #7a5038;
    --hair-1: #1e1612;
    --hair-2: #6a4428;
    --hair-grey: #8f8880;
    --blush: #9c6a5c;
  }
}
.night-band {
  --bg: #171411;
  --card: #23201c;
  --ink: #f1eae0;
  --soft: #b8ad9f;
  --line: #34302b;
  --feed: #51432a;
  --sleep: #47343a;
  --diaper: #33374d;
  --pump: #2f4238;
  --deco: #5e4f31;
  --logo: #e8a55a;
  --skin-1: #c9a78e;
  --skin-2: #a87b5d;
  --skin-3: #7a5038;
  --hair-1: #1e1612;
  --hair-2: #6a4428;
  --hair-grey: #8f8880;
  --blush: #9c6a5c;
}
.illo {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
/* illustrated layout */
.hero-art {
  flex-direction: column;
  align-items: center;
}
.hero-mark {
  display: none;
}
.hero-art::before {
  display: none;
}
.illo-hero {
  width: 230px;
  flex-shrink: 0;
  position: relative;
  z-index: 0;
  margin-bottom: 16px;
}
.hero-art .phone {
  position: relative;
  z-index: 1;
}
.step .illo-step {
  width: 120px;
  margin: -4px 0 4px -6px;
}
.step {
  position: relative;
}
.step .step-num {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  font-size: 1.05rem;
}
.split-text .illo-wide {
  max-width: 420px;
  margin-bottom: 18px;
}
.night-band .illo-wide {
  max-width: 420px;
}
.priv-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}
.priv-top .section-head {
  margin-bottom: 0;
}
.priv-top .illo-small {
  width: 200px;
}
.cta .illo-crib {
  width: 220px;
}
@media (min-width: 720px) {
  .hero-art {
    flex-direction: row;
    align-items: flex-end;
  }
  .hero-mark {
    display: flex;
  }
  .illo-hero {
    width: 380px;
    margin-right: -120px;
    margin-bottom: 0;
  }
  .hero-art .phone {
    --s: 0.8;
  }
  .priv-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
  .priv-top .illo-small {
    width: 240px;
  }
  .cta .illo-crib {
    width: 280px;
  }
}

/* site build: header tools, legal pages */
.tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.draft {
  background: var(--sleep);
  border-radius: 22px;
  padding: 16px;
  font-weight: 600;
  font-size: 0.9375rem;
}
.doc .card ul {
  margin: 0;
  padding-left: 1.25em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.doc .card ul ul {
  margin-top: 8px;
}
.doc .note {
  background: var(--feed);
  border-radius: 18px;
  padding: 14px 16px;
}
.doc .doc-note {
  border-radius: 22px;
  padding: 16px;
  font-weight: 600;
}
.doc div.note {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.doc p,
.doc li {
  overflow-wrap: break-word;
}
.doc .table {
  overflow-x: auto;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
}
.doc th {
  font-weight: 800;
}
.doc-intro {
  gap: 12px;
}
.toc a {
  padding: 8px 14px;
  border-radius: 22px;
  line-height: 1.35;
}
/* tablets: the two-column hero needs more room than 720 px gives it */
@media (min-width: 720px) and (max-width: 1023px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .illo-hero {
    width: 300px;
    margin-right: -100px;
  }
}

/* theme switch: a pill on wider screens, one round button that cycles on phones */
.theme-pill {
  display: none;
  gap: 4px;
  padding: 4px;
  background: var(--card);
  border-radius: 999px;
}
.theme-pill button {
  min-width: 48px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.theme-pill button[aria-pressed='true'] {
  background: var(--btn);
  color: var(--btn-text);
}
.theme-cycle {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}
.ti {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ti .ti-fill {
  fill: currentColor;
  stroke: none;
}
.theme-cycle .ti {
  display: none;
}
.theme-cycle[data-state='auto'] .i-auto,
.theme-cycle[data-state='light'] .i-light,
.theme-cycle[data-state='dark'] .i-dark {
  display: block;
}
@media (min-width: 720px) {
  .theme-pill {
    display: inline-flex;
  }
  .theme-cycle {
    display: none;
  }
}

/* join and 404 drawings */
.illo-join {
  width: 200px;
}
.illo-404 {
  width: 170px;
}
