/* Apocalypse-Proof Your Home: the fridge door at 2 a.m. */

@font-face { font-family: "Alfa Slab One"; src: url("./fonts/alfa-slab-one.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("./fonts/source-serif-4.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

@property --bx { syntax: "<percentage>"; inherits: true; initial-value: 74%; }
@property --by { syntax: "<percentage>"; inherits: true; initial-value: 36%; }

:root {
  /* The kitchen with the power out */
  --night: oklch(16.5% 0.004 60);
  --night-2: oklch(20.5% 0.005 60);
  --enamel: oklch(27% 0.006 70);
  --on-night: oklch(96% 0.006 85);
  --on-night-2: oklch(83% 0.01 80);
  --night-rule: oklch(33% 0.006 60);

  /* Printer paper, ink and Brian's red pencil */
  --paper: oklch(97.4% 0.004 95);
  --paper-2: oklch(93.6% 0.008 90);
  --paper-3: oklch(89.5% 0.01 88);
  --ink: oklch(19% 0.008 28);
  --ink-2: oklch(37% 0.012 28);
  --rule: oklch(84% 0.01 88);
  --red: oklch(52.9% 0.195 28);
  --red-2: oklch(45% 0.17 28);
  --red-ink: oklch(98.6% 0.004 28);
  --tan: oklch(73.9% 0.087 78);
  --foil-2: oklch(66% 0.012 255);
  --beam: oklch(96% 0.045 88);
  --shade: oklch(7% 0.004 60);
  --check-shade: oklch(19% 0.008 28 / 0.58);
  --focus-light: oklch(48% 0.2 28);
  --focus-night: oklch(82% 0.11 78);

  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M5 21c5 4 9 9 12 14C22 22 29 11 37 3' fill='none' stroke='black' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 5c-1 10 1 20 0 30M5 21c10-2 20 0 30-1' fill='none' stroke='black' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
  --minus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M5 21c10-2 20 0 30-1' fill='none' stroke='black' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
  --font-display: "Alfa Slab One", "Rockwell Extra Bold", Rockwell, Georgia, serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;

  --text: clamp(1.125rem, 0.25vw + 1.06rem, 1.25rem);
  --text-sm: 1.1875rem;
  --text-xs: 1.125rem;
  --text-lead: clamp(1.25rem, 0.6vw + 1.1rem, 1.5rem);
  --text-h2: clamp(2.125rem, 2.6vw + 1.2rem, 3.75rem);
  --text-h3: clamp(1.375rem, 0.5vw + 1.2rem, 1.625rem);

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 56px);
  --gap: clamp(32px, 5vw, 72px);
  --section: clamp(80px, 10vw, 144px);
  --radius: 8px;
  --lift: 0 1px 2px oklch(7% 0.004 60 / 0.3), 0 16px 30px oklch(7% 0.004 60 / 0.4);
  --lift-soft: 0 1px 2px oklch(20% 0.01 28 / 0.10), 0 12px 26px oklch(20% 0.01 28 / 0.16);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; scrollbar-color: var(--foil-2) var(--night); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--text)/1.6 var(--font-body); font-synthesis: none; -webkit-font-smoothing: antialiased; caret-color: var(--red); }
::selection { background: oklch(52.9% 0.195 28 / 0.25); color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 400; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h2 { font-size: var(--text-h2); line-height: 1.04; letter-spacing: -0.005em; }
h3 { font-size: var(--text-h3); line-height: 1.15; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus-light); outline-offset: 3px; }
.night :focus-visible, .nav :focus-visible, .dock :focus-visible { outline-color: var(--focus-night); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 50; padding: 10px 16px; background: var(--red); color: var(--red-ink); font-weight: 700; border-radius: var(--radius); }
.skip:focus-visible { top: 16px; }

/* Night sections swap every colour in one rule */
.night { background: var(--night); color: var(--on-night); }
.night ::selection { background: oklch(73.9% 0.087 78 / 0.35); }

/* Brian's flannel: the buffalo check from the cover */
.flannel { height: 28px; background-color: var(--red); background-image: linear-gradient(90deg, var(--check-shade) 50%, transparent 50%), linear-gradient(var(--check-shade) 50%, transparent 50%); background-size: 28px 28px; }
.flannel--thin { height: 8px; background-size: 16px 16px; }

/* Red pencil marks */
.ring, .underline { position: absolute; pointer-events: none; overflow: visible; fill: none; stroke: var(--red); stroke-linecap: round; stroke-linejoin: round; filter: url(#pencil); opacity: 0.92; }
.ring { top: -0.34em; left: -0.32em; width: calc(100% + 0.7em); height: calc(100% + 0.62em); stroke-width: 3.4; }
.ring path, .underline path, .check__box path { vector-effect: non-scaling-stroke; }
.underline { left: -4px; bottom: -12px; width: calc(100% + 10px); height: 14px; stroke-width: 3; }
.marked { font-weight: 700; padding-bottom: 0.18em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9c40-5 88-6 140-4 52 2 100 0 154-5' fill='none' stroke='%23C3241F' stroke-width='3.2' stroke-linecap='round'/%3E%3Cpath d='M14 12c46-3 96-4 146-2 46 2 90 0 134-3' fill='none' stroke='%23C3241F' stroke-width='1.6' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E") left bottom / 100% 0.42em no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Buttons: one red action everywhere */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 32px; border: 0; border-radius: var(--radius); background: var(--red); color: var(--red-ink); font: 400 1.3125rem/1 var(--font-display); letter-spacing: 0.01em; text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: 0 1px 2px oklch(20% 0.05 28 / 0.3), 0 10px 22px oklch(45% 0.17 28 / 0.32); transition: background-color 180ms ease-out, transform 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms ease-out; }
.btn:hover { background: var(--red-2); transform: translateY(-2px); box-shadow: 0 1px 2px oklch(20% 0.05 28 / 0.3), 0 16px 28px oklch(45% 0.17 28 / 0.38); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 2px oklch(20% 0.05 28 / 0.3); }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--nav { min-height: 46px; padding: 0 20px; font-size: 1.125rem; box-shadow: none; }
.btn--big { min-height: 64px; padding: 0 40px; font-size: 1.5rem; }
.textlink { display: inline-block; margin-top: 8px; font-weight: 700; font-size: var(--text-lead); color: var(--red); }
.night .textlink { color: var(--tan); }
.textlink:hover { text-decoration-thickness: 3px; color: var(--red-2); }
.night .textlink:hover { color: var(--beam); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 30; background: var(--night); color: var(--on-night); border-bottom: 1px solid var(--night-rule); }
.nav__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.nav__mark { display: block; border-radius: 4px; }
.nav__mark img { height: 44px; width: auto; }

/* 1. Hero: the kitchen with one flashlight */
.hero { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(120% 60% at 50% 115%, var(--night-2), var(--night) 70%); --bx: 26%; --by: 40%; }
.beam { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse min(34vw, 430px) min(40vw, 520px) at var(--bx) var(--by), oklch(94% 0.05 85 / 0.30), oklch(90% 0.05 85 / 0.16) 48%, oklch(90% 0.05 85 / 0.05) 66%, transparent 74%); transition: --bx 400ms cubic-bezier(0.16, 1, 0.3, 1), --by 400ms cubic-bezier(0.16, 1, 0.3, 1); }
.js .hero .beam { animation: sweep 1.8s cubic-bezier(0.16, 1, 0.3, 1) 200ms both; }
@keyframes sweep { from { --bx: 94%; --by: 88%; opacity: 0.3; } to { --bx: 26%; --by: 40%; opacity: 1; } }
.hero__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--gap); align-items: end; min-height: min(calc(100svh - 70px), 860px); }
.hero__copy { display: grid; gap: 22px; justify-items: start; align-self: center; padding-block: 56px 72px; }
.hero__title { font-size: clamp(3rem, 6.2vw, 6rem); line-height: 0.96; letter-spacing: -0.01em; }
.hero__title span { color: var(--red); }
.hero__lede { font-size: clamp(1.5rem, 1.4vw + 1rem, 2.125rem); line-height: 1.25; font-weight: 700; max-width: 24ch; }
.hero__sub { color: var(--on-night-2); max-width: 54ch; }
.buy { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; margin-top: 8px; }
.buy__price { display: flex; align-items: center; gap: 12px; }
.buy__num { font: 400 clamp(3rem, 3vw + 1.5rem, 4.25rem)/0.9 var(--font-display); color: var(--tan); font-variant-numeric: tabular-nums; }
.buy__unit { font-size: var(--text-xs); line-height: 1.3; color: var(--on-night-2); }
.hero__trust { font-size: var(--text-sm); color: var(--on-night-2); }
.hero__brian { position: relative; margin: 0; align-self: end; justify-self: end; }
.hero__brian img { height: clamp(520px, 80svh, 800px); width: auto; filter: drop-shadow(0 30px 34px var(--shade)); }

/* 2. The fridge door */
.door { background: var(--night-2); color: var(--on-night); padding-block: var(--section); }
.door__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--gap); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.door__head p { color: var(--on-night-2); max-width: 48ch; }
.fridge { position: relative; padding: clamp(40px, 5vw, 80px) clamp(20px, 6vw, 112px) clamp(48px, 5vw, 88px) clamp(20px, 4vw, 64px); border-radius: 22px 22px 6px 6px; background: var(--enamel) url("img/enamel.jpg") center / cover; box-shadow: inset 0 1px 0 oklch(40% 0.006 70), inset 0 -3px 0 oklch(12% 0.004 60), 0 30px 60px var(--shade); }
.fridge::after { content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 10px; border-radius: 0 0 6px 6px; background: oklch(12% 0.004 60); }
.fridge__handle { position: absolute; top: 14%; right: clamp(16px, 2.2vw, 34px); width: 18px; height: 52%; border-radius: 10px; background: linear-gradient(90deg, oklch(30% 0.004 60), oklch(46% 0.006 70) 40%, oklch(24% 0.004 60)); box-shadow: 0 8px 18px var(--shade); }
.sheets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(36px, 4vw, 52px) clamp(20px, 2.4vw, 36px); align-items: start; }
.sheets > :nth-child(1) { grid-column: 1 / span 6; grid-row: 1 / span 2; }
.sheets > :nth-child(2) { grid-column: 7 / span 6; margin-top: 18px; }
.sheets > :nth-child(3) { grid-column: 7 / span 5; margin-left: -28px; }
.sheets > :nth-child(4) { grid-column: 1 / span 4; margin-top: 8px; }
.sheets > :nth-child(5) { grid-column: 5 / span 4; margin-top: 28px; }
.sheets > :nth-child(6) { grid-column: 9 / span 4; }
.sheet { position: relative; display: grid; align-content: start; gap: 18px; padding: 36px 28px 24px; background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px var(--shade), 0 16px 28px oklch(7% 0.004 60 / 0.5); transform: rotate(var(--tilt, -0.8deg)); }
.sheet--lead { padding: 48px 40px 32px; gap: 24px; }
.sheet--lead .sheet__big { font-size: clamp(2.75rem, 3.4vw + 1rem, 4.75rem); margin: 10px 0 6px 12px; }
.sheet--lead .sheet__fact { font-size: clamp(1.375rem, 0.8vw + 1.1rem, 1.75rem); line-height: 1.35; font-weight: 600; }
.sheet:nth-child(2) { --tilt: 0.9deg; }
.sheet:nth-child(3) { --tilt: -0.4deg; }
.sheet:nth-child(4) { --tilt: 0.6deg; }
.sheet:nth-child(5) { --tilt: -1.1deg; }
.sheet:nth-child(6) { --tilt: 0.4deg; }
.pin-tape::before, .pin-magnet::before { content: ""; position: absolute; pointer-events: none; }
.pin-tape::before { top: -16px; left: 50%; width: 132px; height: 34px; background: url("img/tape-a.webp") center / 100% 100% no-repeat; transform: translateX(-50%) rotate(-3deg); filter: drop-shadow(0 1px 1px oklch(20% 0.02 80 / 0.25)); }
.sheets > :nth-child(5).pin-tape::before { left: 18px; transform: rotate(-24deg); width: 110px; background-image: url("img/tape-b.webp"); }
.pin-magnet::before { top: -14px; right: 18px; width: 40px; height: 40px; background: url("img/magnet.png") center / contain no-repeat; filter: drop-shadow(0 5px 6px var(--shade)); }
.sheets > :nth-child(4).pin-magnet::before { right: auto; left: 16px; }
.sheet__big { position: relative; justify-self: start; margin: 4px 0 0 6px; font: 400 clamp(2.125rem, 1.6vw + 1.2rem, 3rem)/1 var(--font-display); color: var(--ink); white-space: nowrap; }
.sheet__fact { font-size: 1.1875rem; line-height: 1.45; }
.sheet__big--line { margin-bottom: 6px; }
.sheet__back { margin: 0; padding-top: 14px; border-top: 1px dashed var(--rule); display: grid; gap: 6px; font-size: var(--text-xs); line-height: 1.4; }
.sheet__back div { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); gap: 8px; }
.sheet__back dt { font-weight: 700; color: var(--red); }
.sheet__back dd { margin: 0; color: var(--ink-2); }

/* 3 to 5. Scenes */
.scene { padding-block: var(--section); }
.scene:not(.night) { background: var(--paper-2); }
.scene--flood { background: radial-gradient(90% 70% at 20% 0%, var(--night-2), var(--night) 70%); }
.scene__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--gap); align-items: center; }
.scene__grid--flip .scene__photo { order: 2; }
.scene__photo { margin: 0; }
.scene__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; box-shadow: var(--lift); }
.scene:not(.night) .scene__photo img { box-shadow: var(--lift-soft); }
.scene__copy { display: grid; gap: 22px; max-width: 40rem; }
.scene__lead { font-size: var(--text-lead); line-height: 1.4; font-weight: 600; }
.night .scene__copy > p:not(.scene__lead) { color: var(--on-night-2); }
.night .scene__copy .marked { color: var(--on-night); }
.scene:not(.night) .scene__copy > p:not(.scene__lead) { color: var(--ink-2); }

/* 6. Brian, full size */
.brian { background: var(--paper); }
.brian__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--gap); align-items: center; }
.brian__cut { align-self: end; justify-self: center; height: clamp(520px, 62vw, 820px); width: auto; margin-top: clamp(32px, 5vw, 64px); filter: drop-shadow(0 22px 22px oklch(20% 0.01 28 / 0.28)); }
.brian__copy { display: grid; gap: 22px; padding-block: var(--section); max-width: 42rem; }
.brian__copy h2 { font-size: clamp(2.25rem, 3vw + 1.1rem, 4.25rem); }
.brian__lead { font-size: var(--text-lead); line-height: 1.45; font-weight: 600; }
.brian__copy > p:not(.brian__lead) { color: var(--ink-2); }
.brian__honest { padding: 18px 22px; border-radius: var(--radius); background: var(--paper-2); font-size: var(--text-sm); }
.brian__honest strong { color: var(--ink); }

/* 7. The self-audit */
.audit { background: var(--night-2); padding-block: var(--section); }
.audit__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: start; }
.audit__head { display: grid; gap: 20px; position: sticky; top: 112px; }
.audit__head > p { color: var(--on-night-2); max-width: 36ch; }
.audit__head > .audit__result { font-weight: 700; font-size: var(--text-lead); line-height: 1.35; color: var(--on-night); }
.checks { position: relative; margin: 0; padding: 40px clamp(20px, 3vw, 40px) 28px; border: 0; display: grid; background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px var(--shade), 0 18px 32px oklch(7% 0.004 60 / 0.5); transform: rotate(0.4deg); }
.checks.pin-magnet::before { right: auto; left: 22px; }
.check { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; padding-block: 22px; border-top: 1px solid var(--rule); cursor: pointer; font-size: 1.25rem; line-height: 1.4; }
.check:first-of-type { border-top: 0; }
.check input { position: absolute; left: 0; top: 50%; width: 44px; height: 44px; margin: -22px 0 0; opacity: 0; cursor: pointer; }
.check__box { display: grid; place-items: center; width: 44px; height: 44px; border: 2.5px solid var(--ink); border-radius: 6px; background: var(--paper); transition: border-color 150ms ease-out, background-color 150ms ease-out; }
.check__box svg { width: 34px; height: 34px; overflow: visible; fill: none; stroke: var(--red); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; transition: stroke-dashoffset 260ms cubic-bezier(0.16, 1, 0.3, 1); }
.check input:checked + .check__box svg { stroke-dashoffset: 0; }
.check:hover .check__box { border-color: var(--red); }
.check input:focus-visible + .check__box { outline: 3px solid var(--focus-light); outline-offset: 3px; }
.check input:active + .check__box { background: var(--paper-3); }
.check input:disabled + .check__box { opacity: 0.5; }
.check__ch { font-size: var(--text-xs); color: var(--ink-2); white-space: nowrap; }

/* 8. Inside the guide */
.inside { background: var(--paper); padding-block: var(--section); }
.inside__top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--gap); align-items: center; }
.inside__cover { width: min(100%, 400px); justify-self: center; transform: rotate(-2deg); border-radius: 3px; box-shadow: var(--lift-soft); }
.inside__intro { display: grid; gap: 22px; }
.inside__intro > p { color: var(--ink-2); max-width: 52ch; }
.chapter-card { margin: 0; border-top: 4px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--paper-2); font-size: var(--text-sm); }
.chapter-card > div { display: grid; grid-template-columns: 5em minmax(0, 1fr); gap: 12px; padding: 12px 18px; border-top: 1px solid var(--rule); }
.chapter-card > .chapter-card__title { display: block; border-top: 0; padding-block: 16px; font: 400 1.25rem/1.25 var(--font-display); }
.chapter-card__title b { display: inline-grid; place-items: center; min-width: 1.9em; margin-right: 10px; padding: 4px 6px 2px; background: var(--red); color: var(--red-ink); font-weight: 400; }
.chapter-card dt { font-weight: 700; color: var(--red); }
.chapter-card dd { margin: 0; }
.parts { list-style: none; margin: clamp(56px, 6vw, 88px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.parts li { display: grid; align-content: start; gap: 10px; padding-top: 18px; border-top: 4px solid var(--red); }
.parts p { font-size: var(--text-sm); color: var(--ink-2); }
.toc { margin-top: 48px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.toc summary, .faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 56px; padding-block: 16px; cursor: pointer; font-weight: 700; font-size: 1.25rem; list-style: none; }
.toc summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.toc summary::after, .faq summary::after { content: ""; flex-shrink: 0; width: 26px; height: 26px; background: var(--red); -webkit-mask: var(--plus) center / contain no-repeat; mask: var(--plus) center / contain no-repeat; }
.toc[open] summary::after, .faq details[open] summary::after { -webkit-mask-image: var(--minus); mask-image: var(--minus); }
.toc summary:hover, .faq summary:hover { color: var(--red-2); }
.toc__body { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; padding-block: 8px 32px; font-size: var(--text-sm); }
.toc__body h3 { font-size: 1.125rem; margin-bottom: 10px; }
.toc__body ol { margin: 0; padding-left: 1.6em; display: grid; gap: 2px; }
.toc__extra { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--ink-2); }
.pages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin-top: clamp(56px, 6vw, 88px); }
.pages figure { margin: 0; display: grid; gap: 14px; align-content: start; }
.pages a { display: block; border-radius: 3px; transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1); }
.pages a:hover { transform: translateY(-4px); }
.pages a:active { transform: translateY(-1px); }
.pages img { width: 100%; border-radius: 3px; box-shadow: var(--lift-soft); }
.pages figcaption { font-size: var(--text-sm); color: var(--ink-2); }
.pages__hint { margin-top: 18px; font-size: var(--text-xs); color: var(--ink-2); }

/* 9. The rules */
.rules { padding-block: var(--section); }
.rules__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap); align-items: start; }
.rules__head { display: grid; gap: 20px; }
.rules__head p { color: var(--on-night-2); max-width: 34ch; }
.rules__sheet { position: relative; padding: clamp(36px, 4vw, 56px) clamp(22px, 4vw, 56px) clamp(28px, 3vw, 44px); background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px var(--shade), 0 22px 40px oklch(7% 0.004 60 / 0.55); transform: rotate(-0.5deg); }
.rules__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 44px; counter-reset: rule; }
.rules__list li { counter-increment: rule; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: baseline; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 1.4375rem; line-height: 1.35; font-weight: 600; }
.rules__list li::before { content: counter(rule); font: 400 2.5rem/1 var(--font-display); color: var(--red); min-width: 1.1ch; }
.rules__list li:last-child { border-top: 2px solid var(--red); }

/* 10. The offer */
.offer { position: relative; overflow: hidden; isolation: isolate; }
.beam--low { --bx: 30%; --by: 70%; }
.offer__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: end; }
.offer__brian { align-self: end; justify-self: center; height: clamp(520px, 64vw, 840px); width: auto; margin-top: 48px; filter: drop-shadow(0 30px 34px var(--shade)); }
.offer__card { position: relative; align-self: center; display: grid; gap: 22px; margin-block: clamp(56px, 7vw, 112px); padding: clamp(32px, 4vw, 56px); background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px var(--shade), 0 24px 44px oklch(6% 0.004 60 / 0.55); }
.offer__card::before { content: ""; position: absolute; top: -18px; left: 50%; width: 170px; height: 40px; background: url("img/tape-b.webp") center / 100% 100% no-repeat; transform: translateX(-50%) rotate(-2deg); }
.offer__card :focus-visible { outline-color: var(--focus-light); }
.offer__card h2 { font-size: clamp(2rem, 2.2vw + 1.2rem, 3.25rem); }
.offer__lead { font-size: var(--text-lead); line-height: 1.4; font-weight: 600; }
.offer__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.offer__list li { position: relative; padding-left: 40px; }
.offer__list li::before { content: ""; position: absolute; left: 2px; top: 0.15em; width: 26px; height: 26px; background: var(--red); -webkit-mask: var(--tick) center / contain no-repeat; mask: var(--tick) center / contain no-repeat; }
.offer__buy { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; padding-top: 8px; }
.offer .buy__num { color: var(--red); font-size: clamp(3.5rem, 3vw + 2rem, 5rem); }
.offer .buy__unit { color: var(--ink-2); }
.guarantee { padding: 18px 22px; border: 2px solid var(--red); border-radius: var(--radius); background: var(--paper-2); }
.guarantee strong { color: var(--red-2); }
.offer__pay { font-size: var(--text-xs); color: var(--ink-2); }

/* 11. Questions */
.faq { background: var(--paper); padding-block: var(--section); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap); align-items: start; }
.faq__list { border-top: 4px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { padding-block: 22px; line-height: 1.35; }
.faq details p { padding-bottom: 22px; color: var(--ink-2); max-width: 62ch; }
.fill { padding: 0 4px; border: 1px dashed var(--ink-2); border-radius: 3px; color: var(--ink-2); }
.night .fill { border-color: var(--on-night-2); color: var(--on-night-2); }

/* Footer */
.footer { border-top: 1px solid var(--night-rule); }
.footer__row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--gap); align-items: start; padding-block: 56px 72px; }
.footer__mark { height: 56px; width: auto; }
.footer__lines { display: grid; gap: 8px; font-size: var(--text-xs); color: var(--on-night-2); max-width: 70ch; }

/* Phone dock: the buy button stays in reach */
.dock { display: none; }

/* Tablet */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); }
  .door__head, .audit__grid, .rules__grid, .faq__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .audit__head { position: static; }
  .sheets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheets > * { grid-column: auto !important; grid-row: auto !important; margin: 0 !important; }
  .sheets > :nth-child(1) { grid-column: 1 / -1 !important; }
  .parts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
  .toc__body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brian__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

/* Phone */
@media (max-width: 720px) {
  body { padding-bottom: 84px; }
  .nav .btn--nav { display: none; }
  .nav__row { justify-content: center; }
  .nav__mark img { height: 38px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 0; }
  .hero__copy { order: -1; }
  .hero { --bx: 50%; --by: 82%; }
  .js .hero .beam { animation: none; }
  .hero__copy { padding-block: 36px 8px; gap: 18px; }
  .hero__title { font-size: clamp(2.6rem, 11.5vw, 3.6rem); }
  .hero__brian { justify-self: center; }
  .hero__brian img { height: min(76svh, 560px); }
  .fridge { border-radius: 18px; }
  .fridge__handle { display: none; }
  .sheets { grid-template-columns: minmax(0, 1fr); }
  .scene__grid, .brian__grid, .inside__top, .offer__grid { grid-template-columns: minmax(0, 1fr); }
  .scene__grid--flip .scene__photo { order: 0; }
  .scene__photo img { aspect-ratio: 4 / 5; object-position: 50% 20%; }
  .brian__cut { order: 2; height: min(80svh, 600px); margin-top: 0; }
  .brian__copy { padding-block: 56px 8px; }
  .inside__cover { width: min(70%, 280px); }
  .parts, .toc__body, .pages, .rules__list { grid-template-columns: minmax(0, 1fr); }
  .pages figure { justify-items: center; }
  .pages a { width: min(100%, 360px); }
  .offer__brian { order: 2; height: min(76svh, 560px); margin-top: 0; }
  .offer__card { margin-block: 48px 32px; }
  .footer__row { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .btn--big { width: 100%; }
  .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--night); color: var(--on-night); border-top: 4px solid var(--red); box-shadow: 0 -10px 24px oklch(7% 0.004 60 / 0.4); transform: translateY(110%); transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1); }
  .dock.is-on { transform: translateY(0); }
  .dock .btn { flex: 1; min-height: 54px; font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero .beam { animation: none; }
  .beam { transition: none; }
  .btn, .pages a, .dock, .check__box, .check__box svg { transition: none; }
  .btn:hover, .btn:active, .pages a:hover, .pages a:active { transform: none; }
}
