/*
 * roomlisto.com: the public site. Same look as the signed-in app (apps/web/src/styles.css): a night-audit navy
 * frame, cool concrete floors, brass key tags and signage-style headings. No JavaScript, no third-party
 * requests: fonts and icons are served from this folder. Text contrast stays at 4.5:1 or better.
 */

@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/big-shoulders-display-latin-800-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/atkinson-hyperlegible-next-latin-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin-700-normal.woff2') format('woff2');
}

:root {
  --font-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --font-sans: 'Atkinson Hyperlegible Next', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --night: #0d1828;
  --night-2: #15253b;
  --night-3: #22364f;
  --night-text: #c8d2df;

  --paper: #eceff2;
  --surface: #ffffff;
  --ink: #111a2b;
  --subtle: #364152;
  --muted: #566070;
  --line: #d8dde4;
  --chip: #eaedf1;

  --brass: #c99a3d;
  --brass-ink: #7d520b;
  --brass-soft: #f7edd8;

  --accent: #1f4fd1;
  --accent-hover: #173ea8;

  --ooo: #b42318;
  --ooo-soft: #fdecea;
  --ready: #0b7a5c;
  --ready-soft: #ddf3ea;
  --safety: #fcd34d;
  --guest: #1d4ed8;
  --guest-soft: #e0e9ff;
  --routine: #4a5363;
  --pm: #0f6e6e;
  --pm-soft: #dbf2f1;
  --warn-bg: #fff6e6;
  --warn-line: #efc277;

  --shadow-card:
    0 1px 0 rgb(17 26 43 / 0.04), 0 1px 2px rgb(17 26 43 / 0.06), 0 8px 24px -12px rgb(17 26 43 / 0.18);
  --shadow-lift: 0 2px 4px rgb(17 26 43 / 0.06), 0 18px 40px -18px rgb(17 26 43 / 0.35);

  --gutter: 16px;
  --max: 1180px;

  --floor:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.07 0 0 0 0 0.1 0 0 0 0 0.17 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(rgb(17 26 43 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(17 26 43 / 0.035) 1px, transparent 1px);

  color-scheme: light;
}

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

html {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  scroll-padding-top: 16px;
}

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

/* Concrete floor: a faint survey grid with a little grain. */
body {
  margin: 0;
  font-size: 1.0625rem;
  background-color: var(--paper);
  background-image: var(--floor);
  background-size:
    160px 160px,
    32px 32px,
    32px 32px;
}

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

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

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

.dark :focus-visible,
.on-dark :focus-visible {
  outline-color: var(--brass);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  text-wrap: balance;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 0.95;
}

/* The product's name in its own capitals: "RoomListo", not the display font's "ROOMLISTO". */
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  line-height: 1;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Blueprint panel for the dark bands. */
.dark {
  background-color: var(--night);
  background-image:
    radial-gradient(120% 140% at 100% 0%, rgb(201 154 61 / 0.16), transparent 55%),
    linear-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.05) 1px, transparent 1px);
  background-size:
    100% 100%,
    24px 24px,
    24px 24px;
}

/*
 * The top of each page: the header (outside <main>) and the hero (inside it) share one blueprint panel, so the
 * band reads as one piece. Everything after the hero sits on .paper, which covers the rest of the panel.
 */
.blueprint-top {
  overflow-x: clip;
  background-color: var(--night);
  background-image:
    radial-gradient(1100px 760px at 100% 0%, rgb(201 154 61 / 0.16), transparent 55%),
    linear-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.05) 1px, transparent 1px);
  background-size:
    100% 100%,
    24px 24px,
    24px 24px;
  background-repeat: no-repeat, repeat, repeat;
}

.dark,
.on-dark {
  color: #fff;
}

.dark a:not(.button),
.on-dark a:not(.button) {
  color: #fff;
}

/* The concrete floor again, over the bottom of the blueprint panel. */
.paper {
  color: var(--ink);
  background-color: var(--paper);
  background-image: var(--floor);
  background-size:
    160px 160px,
    32px 32px,
    32px 32px;
}

/* ---- Header ---- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding-block: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.dark a.brand,
.dark a.brand:hover,
.on-dark a.brand,
.on-dark a.brand:hover {
  color: #fff;
}

.mark {
  flex: none;
  width: 40px;
  height: 40px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
}

.site-nav ul {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 10px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
}

.on-dark .site-nav a:not(.button):hover {
  background: rgb(255 255 255 / 0.1);
}

.lang-link {
  border: 1px solid rgb(255 255 255 / 0.22);
}

@media (min-width: 900px) {
  .site-nav ul {
    display: flex;
    gap: 2px;
  }
}

/* ---- Buttons ---- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background-color 150ms ease,
    transform 150ms ease;
}

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

.button-brass {
  background: var(--brass);
  color: var(--night);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.25) inset;
}

.button-brass:hover {
  background: #d8ab52;
  color: var(--night);
}

.button-ghost {
  border-color: rgb(255 255 255 / 0.28);
  color: #fff;
}

.button-ghost:hover {
  background: rgb(255 255 255 / 0.1);
  color: #fff;
}

.button-small {
  min-height: 44px;
  padding: 8px 14px;
  font-size: 0.9375rem;
}

/* ---- Hero ---- */

.hero-grid {
  display: grid;
  gap: 40px;
  padding-block: 28px 56px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 640px;
}

.hero .eyebrow {
  color: var(--brass);
}

.hero h1 {
  font-size: clamp(3.4rem, 15vw, 6.6rem);
}

.lede {
  max-width: 34em;
  color: var(--night-text);
  font-size: 1.1875rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.loop-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.loop-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border: 1px solid rgb(255 255 255 / 0.15);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.05);
  font-size: 0.9375rem;
  font-weight: 700;
}

.loop-chips .chip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--brass);
  color: var(--night);
}

.loop-chips svg {
  width: 15px;
  height: 15px;
}

/* A rack of key tags, like the board behind the desk. */
.rack {
  display: none;
  grid-template-columns: repeat(6, max-content);
  gap: 8px;
  margin-top: 8px;
}

@media (min-width: 640px) {
  .rack {
    display: grid;
  }
}

/* ---- Key tags (room numbers) ---- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.tag::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: rgb(236 239 242 / 0.8);
  opacity: 0.6;
}

.tag-dark {
  border-color: rgb(201 154 61 / 0.6);
  background: rgb(201 154 61 / 0.15);
  color: #fff;
}

.tag-ooo {
  border-color: rgb(180 35 24 / 0.5);
  background: var(--ooo-soft);
  color: var(--ooo);
}

.tag-ready {
  border-color: rgb(11 122 92 / 0.5);
  background: var(--ready-soft);
  color: var(--ready);
}

.tag-brass {
  border-color: rgb(201 154 61 / 0.7);
  background: var(--brass-soft);
  color: var(--ink);
}

/* ---- Phone illustration ---- */

.phone-figure {
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 380px;
}

.phone {
  padding: 10px;
  border-radius: 40px;
  background: #05090f;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.12),
    0 30px 60px -20px rgb(0 0 0 / 0.6);
}

.phone-screen {
  overflow: hidden;
  border-radius: 31px;
  background: var(--surface);
  color: var(--ink);
}

.phone-top {
  padding: 26px 20px 12px;
  background: #f4f3f1;
}

.phone-top .eyebrow {
  color: var(--subtle);
  font-size: 0.6875rem;
}

.phone-title {
  margin-top: 2px;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
}

.phone-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.875rem;
}

.phone-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  color: var(--subtle);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 2px 10px;
  padding: 12px 18px 12px 14px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}

.plan .n {
  grid-row: span 3;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  text-align: right;
}

.plan .place {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 700;
}

.plan .mins {
  color: var(--muted);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.plan .what,
.plan .why {
  grid-column: 2 / 4;
}

.plan .why {
  color: var(--muted);
  font-size: 0.8125rem;
}

.pill {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  vertical-align: 1px;
}

.pill-ooo {
  background: #fde7d4;
  color: #8a2c0d;
}

.pill-safety {
  background: var(--ink);
  color: var(--safety);
}

.pill-guest {
  background: var(--guest-soft);
  color: var(--guest);
}

.pill-pm {
  background: var(--pm-soft);
  color: var(--pm);
}

.phone-talk {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 6px 14px 16px;
  padding: 10px;
  border-radius: 999px;
  background: var(--night);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
}

.phone-talk svg {
  width: 18px;
  height: 18px;
  color: var(--brass);
}

figcaption {
  margin-top: 12px;
  color: var(--night-text);
  font-size: 0.875rem;
  text-align: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    padding-block: 40px 88px;
  }

  .phone-figure {
    justify-self: end;
  }
}

/* ---- Sections ---- */

.section {
  padding-block: 64px;
}

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

.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 720px;
  margin-bottom: 36px;
}

.section-head .eyebrow {
  color: var(--brass-ink);
}

.section-head h2 {
  font-size: clamp(2.6rem, 9vw, 4rem);
}

.section-head p {
  color: var(--subtle);
  font-size: 1.125rem;
}

/* The daily loop */

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 1rem;
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brass-soft);
  color: var(--brass-ink);
}

.step-icon svg {
  width: 22px;
  height: 22px;
}

.step h3 {
  font-size: 1.25rem;
}

.step p {
  color: var(--subtle);
}

.step ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding-left: 1.1em;
  color: var(--subtle);
}

.loop-back {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 18px;
  border: 1px dashed rgb(125 82 11 / 0.45);
  border-radius: 12px;
  background: var(--brass-soft);
  color: var(--ink);
}

.loop-back svg {
  flex: none;
  margin-top: 1px;
  width: 24px;
  height: 24px;
  color: var(--brass-ink);
}

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

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

/* Owner view */

.owner-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.owner-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.owner-copy p,
.owner-copy li {
  color: var(--subtle);
}

.owner-copy ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding-left: 1.1em;
}

.owner-figure {
  margin: 0;
}

.owner-figure figcaption {
  color: var(--muted);
}

.owner-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-lift);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

/* Two across on phones, with the last tile taking the full row. */
.stat:last-child {
  grid-column: 1 / -1;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  background: var(--surface);
}

.stat-label {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.stat-ooo {
  color: var(--ooo);
}

.stat-ready {
  color: var(--ready);
}

.stat-note {
  color: var(--muted);
  font-size: 0.8125rem;
}

.portfolio {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.portfolio th,
.portfolio td {
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.portfolio th {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio tbody th {
  color: var(--ink);
  font-size: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.portfolio .num {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.portfolio .down {
  color: var(--ooo);
  font-weight: 700;
}

@media (min-width: 960px) {
  .owner-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 56px;
  }

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

  .stat:last-child {
    grid-column: auto;
  }
}

/* Features */

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

.feature {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.feature h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1875rem;
}

.feature h3 svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--brass-ink);
}

.feature p {
  color: var(--subtle);
}

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

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

/* Pricing and contact */

.pricing {
  padding-block: 64px;
}

.pricing-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.pricing h2 {
  font-size: clamp(2.8rem, 11vw, 5rem);
}

.pricing .eyebrow {
  color: var(--brass);
}

.pricing-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pricing-copy p {
  max-width: 36em;
  color: var(--night-text);
  font-size: 1.125rem;
}

.pricing-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 22px;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 16px;
  background: rgb(255 255 255 / 0.04);
  list-style: none;
}

.pricing-points li {
  display: flex;
  gap: 10px;
  color: var(--night-text);
}

.pricing-points svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--brass);
}

.contact-line {
  color: var(--night-text);
}

.contact-line a {
  font-weight: 700;
}

@media (min-width: 960px) {
  .pricing-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 56px;
  }
}

/* ---- Footer ---- */

.site-footer {
  padding-block: 36px 40px;
  color: var(--night-text);
  font-size: 0.9375rem;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0 -8px;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 8px;
  font-weight: 700;
}

.fine-print {
  max-width: 60em;
  color: var(--night-text);
  font-size: 0.8125rem;
}

/* ---- Legal pages ---- */

.legal-header .site-header {
  padding-block: 14px;
}

.legal-hero {
  padding-block: 20px 36px;
}

.legal-hero h1 {
  font-size: clamp(2.8rem, 12vw, 4.5rem);
}

.legal-hero p {
  margin-top: 10px;
  color: var(--night-text);
}

.legal {
  display: grid;
  gap: 28px;
  padding-block: 32px 64px;
}

.draft-banner {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--warn-line);
  border-left-width: 6px;
  border-radius: 12px;
  background: var(--warn-bg);
}

.draft-banner strong {
  display: block;
  font-size: 1.0625rem;
}

.draft-banner p {
  color: var(--subtle);
}

.draft-banner p + p {
  margin-top: 6px;
}

.toc {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.toc h2 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.toc ol {
  display: grid;
  gap: 2px 24px;
  margin: 0;
  padding-left: 1.4em;
}

.toc a {
  display: inline-block;
  padding-block: 4px;
}

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

.prose {
  max-width: 72ch;
  padding: 28px var(--gutter);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.prose section + section {
  margin-top: 36px;
}

.prose h2 {
  margin-bottom: 12px;
  font-size: 1.375rem;
}

.prose h3 {
  margin: 20px 0 8px;
  font-size: 1.0625rem;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 12px;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 6px;
}

.prose table {
  width: 100%;
  margin: 8px 0 16px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.prose th,
.prose td {
  padding: 8px 10px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--chip);
}

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

.caps {
  text-transform: uppercase;
}

/* A decision still to be made: by Jeremy, or by the lawyer reviewing the draft. */
mark.tbd {
  padding: 0 3px;
  border-radius: 4px;
  background: #fff1b8;
  color: var(--ink);
  font-weight: 700;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

@media (min-width: 720px) {
  .prose {
    padding: 36px 40px;
  }
}

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

.not-found {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-block: 40px 80px;
}

.not-found h1 {
  font-size: clamp(3rem, 14vw, 6rem);
}

.not-found p {
  max-width: 34em;
  color: var(--night-text);
}

/* ---- Motion ---- */

@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 420ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .button:hover {
    transform: translateY(-1px);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 640px) {
  :root {
    --gutter: 32px;
  }
}

@media print {
  .dark,
  body {
    background: #fff !important;
    color: #000 !important;
  }

  .skip-link,
  .site-nav,
  .toc {
    display: none !important;
  }

  .prose {
    max-width: none;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}
