/* SpinRecipe companion site. The same desk as the app (Shared/Design/CardTheme.swift):
   cream index cards with pale blue ruling and a red header rule, on a warm grey desk.
   Paper stays paper in dark mode; only the desk goes dark. */

@font-face {
  font-family: "Young Serif";
  src: url("fonts/YoungSerif-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/InstrumentSans.ttf") format("truetype");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --desk: #D9D2C6;
  --desk-hi: #E6E0D5;
  --desk-lo: #CFC7B9;
  --on-desk: #23272B;
  --on-desk-soft: #52565B;

  --stock: #F6F1E6;
  --stock-hi: #FBF7EE;
  --stock-lo: #F1EBDE;
  --rule: #DCE3EC;
  --red: #C8443F;
  --ink: #23272B;
  --pencil: #6E7378;
  --note: #FFF6C9;

  --pitch: 28px;
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --card-shadow:
    0 1px 0 rgba(0, 0, 0, .14),
    0 2px 3px rgba(0, 0, 0, .14),
    0 6px 12px rgba(0, 0, 0, .22);
  --measure: 62ch;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --desk: #2B2925;
    --desk-hi: #38352F;
    --desk-lo: #211F1C;
    --on-desk: #ECE6DA;
    --on-desk-soft: #B2AB9E;
    --card-shadow:
      0 0.5px 0.6px rgba(0, 0, 0, .2),
      0 2px 4px -1px rgba(0, 0, 0, .25),
      0 8px 14px -6px rgba(0, 0, 0, .35),
      0 22px 40px -18px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --desk: #2B2925;
  --desk-hi: #38352F;
  --desk-lo: #211F1C;
  --on-desk: #ECE6DA;
  --on-desk-soft: #B2AB9E;
  --card-shadow:
    0 0.5px 0.6px rgba(0, 0, 0, .2),
    0 2px 4px -1px rgba(0, 0, 0, .25),
    0 8px 14px -6px rgba(0, 0, 0, .35),
    0 22px 40px -18px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  /* The desk, lit from the top left and darker towards the edges (DeskBackground.swift). */
  background-color: var(--desk);
  background-image: radial-gradient(ellipse 120% 90% at 30% 0%, var(--desk-hi) 0%, var(--desk) 55%, var(--desk-lo) 100%);
  color: var(--on-desk);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: 24px;
}

.serif { font-family: var(--serif); font-weight: 400; }

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

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  text-decoration: none;
}
.wordmark img { width: 34px; height: 34px; border-radius: 8px; }
.site-nav { display: flex; gap: 20px; font-size: 15px; }
.site-nav a { text-decoration: none; color: var(--on-desk-soft); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--on-desk); text-decoration: underline; }

.site-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 40px 48px;
  font-size: 14px;
  color: var(--on-desk-soft);
}
.site-foot nav { display: flex; gap: 20px; }

/* ---------- the index card ---------- */

.card {
  position: relative;
  background: linear-gradient(to bottom, var(--stock-hi) 0%, var(--stock) 40%, var(--stock-lo) 100%);
  color: var(--ink);
  border-radius: 3px;
  box-shadow: 0 0 0 .5px rgba(35, 39, 43, .08), var(--card-shadow);
  padding: 14px 20px 16px;
}
.card h2, .card h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}
/* The red header rule. Everything under it sits on the blue ruling. */
/* CardRule: 1.5pt of red, running out to the card's edge. */
.card .rule-red {
  flex: none;
  height: 1.5px;
  background: var(--red);
  opacity: .9;
  margin: 10px -20px 0;
}
.ruled {
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(var(--pitch) - 1px), var(--rule) calc(var(--pitch) - 1px) var(--pitch));
  line-height: var(--pitch);
  margin-inline: -20px;
  padding-inline: 20px;
}
.ruled p, .ruled ul { margin: 0; }
.card-meta { font-size: 13px; color: var(--pencil); line-height: 1.4; }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--stock);
  font: 600 16px/1 var(--sans);
  padding: 13px 24px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease;
}
.pill:active { transform: scale(.97); }
.pill.on-desk { background: var(--on-desk); color: var(--desk); }

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding-block: 40px 88px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6.2vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  text-wrap: balance;
}
.hero .lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--on-desk-soft);
  max-width: 34em;
  margin: 0 0 30px;
}
.store {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}
.store small { font-size: 14px; color: var(--on-desk-soft); }

/* The reel: the in-app Spin (ReelView.swift) on the page. A column of cards streams past
   two red pointers and stops on a winner chosen before it starts. */
.reel-stage { display: grid; justify-items: center; gap: 22px; }
.reel {
  --card-h: 138px;
  --gap: 14px;
  position: relative;
  width: min(100%, 430px);
  height: calc(var(--card-h) * 2.6);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%);
}
.reel-track {
  display: grid;
  gap: var(--gap);
  padding-inline: 18px;
  will-change: transform;
}
.reel-track.spinning { transition: transform 2.8s cubic-bezier(.1, .72, .16, 1); }
.reel-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  height: var(--card-h);
  padding: 12px 16px;
  overflow: hidden;
}
.reel-card .text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.reel-card.marked .text { padding-right: 34px; }
.reel-card .number {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--pencil);
  font-variant-numeric: tabular-nums;
}
.reel-card h3 {
  font-size: 20px;
  line-height: 1.25;
  padding-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* The rule starts at the text column (it doesn't run under the photo) and reaches the right edge. */
.reel-card .rule-red { margin: 9px -16px 0 0; }
.reel-card.marked .rule-red { margin-right: -50px; }
.reel-card .card-meta { padding-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The photo clipped to the card (CardPhoto.swift): a white-bordered print. */
.photo {
  display: block;
  flex: none;
  object-fit: cover;
  background: #fff;
  padding: 3px;
  border-radius: 2px;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .06), 0 1px 1px rgba(0, 0, 0, .12), 0 4px 10px -1px rgba(0, 0, 0, .22);
}
.reel-card .photo { width: 88px; height: 88px; padding: 4px; }
/* The corner mark (IndexCard.swift): a solid red triangle in the top-right corner, clipped to the card. */
.corner-mark {
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 30px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  border-top-right-radius: 3px;
}
.corner-mark svg { position: absolute; width: 10px; height: 10px; left: 15px; top: 5px; }
.pointer {
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-block: 9px solid transparent;
  transform: translateY(-50%);
  z-index: 2;
}
.pointer.left { left: 0; border-left: 12px solid var(--red); }
.pointer.right { right: 0; border-right: 12px solid var(--red); }
.reel-controls { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.reel-result { margin: 0; min-height: 1.55em; font-size: 15px; color: var(--on-desk-soft); text-align: center; }

/* ---------- how a post becomes a card (a real sequence, so the cards are numbered) ---------- */

.section { padding-block: 32px 72px; }
.section-head { max-width: var(--measure); margin-bottom: 36px; }
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1.12;
  margin: 0 0 12px;
  text-wrap: balance;
}
.section-head p { margin: 0; color: var(--on-desk-soft); font-size: 18px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
.steps .card { display: flex; flex-direction: column; }
.steps li:nth-child(1) .card { transform: rotate(-1.2deg); }
.steps li:nth-child(2) .card { transform: rotate(.6deg) translateY(14px); }
.steps li:nth-child(3) .card { transform: rotate(-.4deg); }
.steps h3 { font-size: 23px; line-height: 1.2; }
.steps .ruled { flex: 1; padding-top: 4px; padding-bottom: 4px; background-position: 0 4px; }

/* ---------- widget ----------
   The app's widget (design/widget.html) at about 0.85 scale on a Home Screen. The card is the whole
   widget in light; in dark it is the desk at night, like the app. Sizes are in --u, 1/360 of the
   Home Screen's width, so the mock scales down on a phone without reflowing. */

.widget-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.widget-row .section-head { margin-bottom: 0; }
.sizes { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.sizes li { font-size: 16px; line-height: 1.55; color: var(--on-desk-soft); }
.sizes b { font-weight: 600; color: var(--on-desk); }

.homescreen {
  --w-surface: linear-gradient(to bottom, var(--stock-hi) 0%, var(--stock) 40%, var(--stock-lo) 100%);
  --w-ink: #23272B;
  --w-pencil: #6E7378;
  --w-pill: #23272B;
  --w-on-pill: #F6F1E6;
  --w-rule: rgba(35, 39, 43, .22);
  container-type: inline-size;
  justify-self: center;
  width: min(100%, 360px);
  padding: 26px;
  border-radius: 40px;
  background:
    radial-gradient(circle at 20% 15%, #9FB7A9 0, transparent 55%),
    radial-gradient(circle at 85% 90%, #C79A7E 0, transparent 60%),
    #6F8583;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 18px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .homescreen {
    --w-surface: linear-gradient(to bottom, #38352F, #2B2925);
    --w-ink: #ECE6DA;
    --w-pencil: #A9A295;
    --w-pill: #F6F1E6;
    --w-on-pill: #23272B;
    --w-rule: rgba(236, 230, 218, .28);
  }
}
:root[data-theme="dark"] .homescreen {
  --w-surface: linear-gradient(to bottom, #38352F, #2B2925);
  --w-ink: #ECE6DA;
  --w-pencil: #A9A295;
  --w-pill: #F6F1E6;
  --w-on-pill: #23272B;
  --w-rule: rgba(236, 230, 218, .28);
}
.homescreen .app { aspect-ratio: 1; border-radius: 13px; background: rgba(255, 255, 255, .32); }
.w {
  --u: calc(100cqi / 308);
  position: relative;
  overflow: hidden;
  border-radius: calc(20 * var(--u));
  background: var(--w-surface);
  color: var(--w-ink);
}
.w-small { grid-column: span 2; grid-row: span 2; aspect-ratio: 1; }
.w-medium { grid-column: 1 / -1; height: calc(145 * var(--u)); }
.w .pile { display: flex; align-items: center; gap: calc(3 * var(--u)); font-size: calc(9.5 * var(--u)); line-height: 1.25; color: var(--w-pencil); }
.w .pile svg { width: calc(10 * var(--u)); height: calc(10 * var(--u)); }
.w .name {
  font-family: var(--serif);
  line-height: 1.2;
  color: var(--w-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.w .rule-red { height: 1.5px; background: var(--red); opacity: .9; }

/* Small: the photo fills it, the name on a full-width slip at the bottom, the dice in the corner. */
/* Reel windows stay put and clip; only the strip inside them moves. */
.w-reel { position: absolute; inset: 0; overflow: hidden; }
.w-medium .print .window { position: absolute; inset: calc(3.5 * var(--u)); overflow: hidden; }
.w-small .slip {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: calc(8 * var(--u)) calc(12 * var(--u)) calc(11 * var(--u));
  background: var(--w-surface);
  border-radius: 3px 3px 0 0;
}
.w-small .name { font-size: calc(13 * var(--u)); margin-top: calc(2 * var(--u)); }
.dice {
  position: absolute;
  top: calc(7 * var(--u));
  right: calc(7 * var(--u));
  width: calc(37 * var(--u));
  height: calc(37 * var(--u));
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--w-pill);
  color: var(--w-on-pill);
  box-shadow: 0 0 0 2px rgba(246, 241, 230, .9), 0 3px 8px rgba(0, 0, 0, .3);
}
.dice svg { width: 50%; height: 50%; }

/* Medium: the app's recipe card at widget size. */
.w-medium { display: flex; gap: calc(12 * var(--u)); padding: calc(12 * var(--u)) calc(14 * var(--u)); }
.w-medium .print {
  position: relative;
  flex: none;
  width: calc(92 * var(--u));
  height: calc(92 * var(--u));
  background: #fff;
  padding: calc(3.5 * var(--u));
  border-radius: 2px;
  transform: rotate(-1.5deg);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .12), 0 4px 10px -1px rgba(0, 0, 0, .22);
}
.w-medium .text { flex: 1; min-width: 0; display: flex; flex-direction: column; padding-right: calc(22 * var(--u)); }
.w-medium .name { font-size: calc(15.5 * var(--u)); margin-top: calc(2 * var(--u)); }
.w-medium .rule-red { margin: calc(6 * var(--u)) calc(-36 * var(--u)) 0 0; }
.w-medium .facts { font-size: calc(10.5 * var(--u)); color: var(--w-pencil); margin-top: calc(4 * var(--u)); white-space: nowrap; }
.w-medium .actions { display: flex; gap: calc(5 * var(--u)); margin-top: calc(7 * var(--u)); }
.w-medium .actions span {
  display: inline-flex;
  align-items: center;
  height: calc(24 * var(--u));
  padding: 0 calc(10 * var(--u));
  border-radius: 999px;
  font-size: calc(11 * var(--u));
  font-weight: 600;
  white-space: nowrap;
}
.w-medium .spin { background: var(--w-pill); color: var(--w-on-pill); }
.w-medium .want { box-shadow: inset 0 0 0 1px var(--w-rule); color: var(--w-ink); }
.w-medium .corner-mark { width: calc(44 * var(--u)); height: calc(44 * var(--u)); border-radius: 0; }

/* A reel: the photo shown at rest first, the ones a spin rolls past below it. */
[data-reel] .strip { display: flex; flex-direction: column; height: 100%; }
.w-reel .strip { position: absolute; inset: 0; }
[data-reel] .strip img { flex: none; display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- scroll moments (only under .motion, which the script sets) ---------- */

/* Dealt onto the desk: dropped in lifted and turned, then settling at each card's own angle. */
.motion [data-motion="deal"] > li { opacity: 0; }
.motion [data-motion="deal"].in > li { animation: deal .75s cubic-bezier(.2, .8, .2, 1) both; }
.motion [data-motion="deal"].in > li:nth-child(2) { animation-delay: .14s; }
.motion [data-motion="deal"].in > li:nth-child(3) { animation-delay: .28s; }
@keyframes deal {
  0% { opacity: 0; transform: translate(-14px, -46px) rotate(-6deg) scale(1.05); }
  45% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}

/* The widget spin: the strip rolls from its last photo back to the one shown at rest, on the
   widget's own curve, the medium a beat after the small. The dice turns once as it starts. */
.motion [data-motion="spin"].in [data-reel] .strip { animation: roll 1.5s cubic-bezier(.2, .9, .12, 1) both; }
.motion [data-motion="spin"].in .w-medium [data-reel] .strip { animation-delay: .25s; }
.motion [data-motion="spin"].in .dice svg { animation: turn .6s cubic-bezier(.3, .7, .2, 1); }
@keyframes roll {
  from { transform: translateY(-500%); }
  to { transform: none; }
}
@keyframes turn {
  from { transform: rotate(-360deg); }
  to { transform: none; }
}

/* Written onto the ruling, a line at a time, left to right. */
.motion [data-motion="write"] > li { clip-path: inset(0 100% 0 0); }
.motion [data-motion="write"].in > li { animation: write .55s cubic-bezier(.4, 0, .2, 1) both; }
.motion [data-motion="write"].in > li:nth-child(2) { animation-delay: 0.1s; }
.motion [data-motion="write"].in > li:nth-child(3) { animation-delay: 0.2s; }
.motion [data-motion="write"].in > li:nth-child(4) { animation-delay: 0.3s; }
.motion [data-motion="write"].in > li:nth-child(5) { animation-delay: 0.4s; }
.motion [data-motion="write"].in > li:nth-child(6) { animation-delay: 0.5s; }
.motion [data-motion="write"].in > li:nth-child(7) { animation-delay: 0.6s; }
.motion [data-motion="write"].in > li:nth-child(8) { animation-delay: 0.7s; }
@keyframes write {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* The sticky note slapped down: a little high and turned, a small overshoot, then its own tilt. */
.motion [data-motion="slap"] { opacity: 0; }
.motion [data-motion="slap"].in { animation: slap .6s cubic-bezier(.3, 1.4, .5, 1) .9s both; }
@keyframes slap {
  0% { opacity: 0; transform: translateY(-18px) rotate(9deg) scale(1.12); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: rotate(1.6deg); }
}

/* Anything already on screen when the page loads is shown at rest. */
.motion [data-motion].settled,
.motion [data-motion].settled > li,
.motion [data-motion].settled .strip,
.motion [data-motion].settled .dice svg { animation: none !important; opacity: 1; clip-path: none; }

/* ---------- the rest of the app, written on one ruled card ---------- */

.more-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.card.big { padding: 18px 28px 20px; }
.card.big .rule-red, .card.big .ruled { margin-inline: -28px; }
.card.big .ruled { padding-inline: 28px; }
.card.big h2 { font-size: 28px; line-height: 1.2; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { padding-block: 0; }
.feature-list b { font-weight: 600; }

/* The sticky note: the one thing on the desk that isn't an index card. */
.note {
  background: var(--note);
  color: var(--ink);
  padding: 22px 22px 26px;
  transform: rotate(1.6deg);
  box-shadow: 0 1px 1px rgba(35, 39, 43, .08), 0 12px 20px -10px rgba(35, 39, 43, .35);
  max-width: 320px;
  justify-self: center;
  margin-top: 28px;
}
.note h2 { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.2; margin: 0 0 10px; }
.note p { margin: 0 0 12px; font-size: 16px; }
.note p:last-child { margin-bottom: 0; }

/* ---------- TestFlight sign-up: a form written on an index card ---------- */

.beta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.beta-row .section-head { margin-bottom: 0; }
.beta-card { padding: 18px 24px 22px; transform: rotate(-.5deg); }
.beta-card h3 { font-size: 24px; line-height: 1.2; }
.beta-card .rule-red { margin-inline: -24px; }
.field { display: grid; gap: 2px; margin-top: 16px; }
.field label { font-size: 13px; color: var(--pencil); }
.field label span { opacity: .8; }
/* Written on the ruling: no box, just the line, which turns red while you write on it. */
.field input {
  font: 17px/1.3 var(--sans);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--rule);
  border-radius: 0;
  padding: 6px 0 7px;
  outline: none;
}
.field input::placeholder { color: var(--pencil); opacity: .6; }
.field input:focus { border-bottom-color: var(--red); }
.field input:focus-visible { outline: none; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.beta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 22px; }
.beta-actions small { font-size: 13px; color: var(--pencil); }
.pill:disabled { opacity: .7; cursor: default; }
.beta-status { margin: 12px 0 0; min-height: 1.5em; font-size: 15px; line-height: 1.5; }
.beta-status.error { color: var(--red); }
.beta-status.success { color: var(--ink); }
.beta-card form.done .field { opacity: .55; pointer-events: none; }

/* ---------- long-form pages (privacy, support) ---------- */

.doc { padding-block: 16px 24px; }
.doc .card { max-width: 760px; margin-inline: auto; padding: 22px 36px 28px; }
.doc .card .rule-red { margin-inline: -36px; }
.doc h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 42px);
  line-height: 1.1;
  margin: 4px 0 0;
}
.doc .card-meta { margin-top: 6px; }
.doc .body { max-width: var(--measure); padding-top: 20px; }
.doc .body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.25;
  margin: 30px 0 8px;
}
.doc .body p, .doc .body ul { margin: 0 0 14px; line-height: 1.65; }
.doc .body ul { padding-left: 1.2em; }
.doc .body li { margin-bottom: 6px; }
.doc details { border-top: 1px solid var(--rule); padding-block: 4px; }
.doc details:last-of-type { border-bottom: 1px solid var(--rule); }
.doc summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.35;
  padding-block: 12px;
  list-style-position: outside;
  margin-left: 1.1em;
}
.doc details p, .doc details ol { margin: 0 0 14px; }
.doc details ol { padding-left: 1.3em; }
.contact {
  margin-top: 28px;
  padding: 16px 18px;
  background: var(--note);
  border-radius: 4px;
}
.contact p { margin: 0; }

/* ---------- small screens ---------- */

@media (max-width: 860px) {
  .hero, .widget-row, .more-row, .beta-row { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero { padding-block: 16px 64px; }
  .steps { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
  .steps li:nth-child(2) .card { transform: rotate(.6deg); }
  .note { margin-top: 0; }
}
@media (max-width: 480px) {
  .wrap { padding-inline: 16px; }
  .site-nav { gap: 14px; }
  .doc .card { padding: 18px 20px 22px; }
  .doc .card .rule-red { margin-inline: -20px; }
  .card.big { padding: 16px 20px 18px; }
  .card.big .rule-red, .card.big .ruled { margin-inline: -20px; }
  .card.big .ruled { padding-inline: 20px; }
  .homescreen { padding: 20px; gap: 16px 14px; border-radius: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .reel-track.spinning { transition: none; }
  .pill { transition: none; }
}
