/* Shipped by Prompt: the page is a set of shipping papers. Two inks, blush and aubergine, like a two-colour print job. */
:root {
  --content: 1200px;
  --inset: max(var(--margin), calc((100% - var(--content)) / 2));
  --bg: #edccbe;
  --surface: #e8c2b2;
  --ink: #351a2b;
  --muted: #6c4857;
  --field-2: #4f2c41;
  --field-3: #6b4258;
  --tab-3: #c99a89;
  --tab-4: #ddb3a3;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(3.4rem, 10vw, 10rem);
  --margin: clamp(16px, 3vw, 32px);
  --gap: clamp(88px, 9vw, 136px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --zig-bottom: polygon(0 0, 100% 0, 100.00% calc(100% - 14px), 96.43% 100%, 92.86% calc(100% - 14px), 89.29% 100%, 85.71% calc(100% - 14px), 82.14% 100%, 78.57% calc(100% - 14px), 75.00% 100%, 71.43% calc(100% - 14px), 67.86% 100%, 64.29% calc(100% - 14px), 60.71% 100%, 57.14% calc(100% - 14px), 53.57% 100%, 50.00% calc(100% - 14px), 46.43% 100%, 42.86% calc(100% - 14px), 39.29% 100%, 35.71% calc(100% - 14px), 32.14% 100%, 28.57% calc(100% - 14px), 25.00% 100%, 21.43% calc(100% - 14px), 17.86% 100%, 14.29% calc(100% - 14px), 10.71% 100%, 7.14% calc(100% - 14px), 3.57% 100%, 0.00% calc(100% - 14px));
  --zig-top: polygon(0.00% 14px, 3.57% 0, 7.14% 14px, 10.71% 0, 14.29% 14px, 17.86% 0, 21.43% 14px, 25.00% 0, 28.57% 14px, 32.14% 0, 35.71% 14px, 39.29% 0, 42.86% 14px, 46.43% 0, 50.00% 14px, 53.57% 0, 57.14% 14px, 60.71% 0, 64.29% 14px, 67.86% 0, 71.43% 14px, 75.00% 0, 78.57% 14px, 82.14% 0, 85.71% 14px, 89.29% 0, 92.86% 14px, 96.43% 0, 100.00% 14px, 100% 100%, 0 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--ink);
  font: 400 var(--step-body)/1.45 "Schibsted Grotesk", system-ui, sans-serif; letter-spacing: -0.01em;
}
h1, h2, h3 { font-weight: 800; letter-spacing: -0.05em; line-height: .92; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--margin); top: var(--margin); background: var(--bg); color: var(--ink); padding: .6rem 1rem; z-index: 9; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
code, pre { font-family: ui-monospace, "SF Mono", Menlo, monospace; }

.btn {
  display: inline-block; padding: 1rem 1.5rem; background: var(--ink); color: var(--bg);
  font-weight: 600; text-decoration: none; border-radius: 0;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%, 0 10px);
  transition: transform .18s var(--ease), background-color .18s;
}
.btn:hover { transform: translateY(-2px); background: var(--field-2); }
.btn:active { transform: translateY(1px); }
.btn-paper { background: var(--bg); color: var(--ink); }
.btn-paper:hover { background: #fff1ea; }

/* Hero: the stack of folders */
.hero { position: relative; height: 100svh; min-height: 720px; overflow: hidden; background: var(--ink); color: var(--bg); padding-inline: var(--inset); }
.wordmark { font-size: var(--step-body); font-weight: 800; letter-spacing: -0.03em; text-decoration: none; }
.wordmark:hover { text-decoration: underline; }
.hero h1 { margin-top: clamp(28px, 5svh, 64px); text-align: center; font-size: var(--step-display); line-height: .88; }
.hero-line { max-width: 46ch; margin: 28px auto 0; text-align: center; font-size: var(--step-lead); line-height: 1.35; }
.folders { position: absolute; left: 0; right: 0; top: 44svh; bottom: 0; }
.folder {
  position: absolute; left: max(7%, calc((100% - 1340px) / 2)); right: max(7%, calc((100% - 1340px) / 2)); top: calc(var(--i) * 44px + 40px); bottom: -40px;
  display: block; text-decoration: none; color: var(--ink); transition: transform .24s var(--ease);
}
.folder:nth-child(1) { background: var(--field-2); color: var(--bg); }
.folder:nth-child(2) { background: var(--field-3); color: var(--bg); }
.folder:nth-child(3) { background: var(--tab-3); }
.folder:nth-child(4) { background: var(--tab-4); }
.folder.front { background: var(--bg); }
a.folder:hover { transform: translateY(-10px); }
.tab {
  position: absolute; top: -40px; left: var(--tab); height: 40px; padding: 10px 30px 0;
  background: inherit; color: inherit; font-weight: 600; font-size: var(--step-body); white-space: nowrap; text-decoration: none;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 100%, 0 100%);
}
.front .tab { background: var(--bg); }
.front-inner { display: grid; grid-template-columns: 1fr minmax(0, 46%); gap: 32px 48px; padding: 32px; align-items: start; }
.front-left { display: grid; gap: 28px; justify-items: start; }
.label { margin: 0; display: grid; grid-template-columns: repeat(3, auto); gap: 14px 40px; font-size: var(--step-small); }
.front-shot { margin: 0; }
.front-shot img { display: block; width: 100%; height: auto; }
.front-shot figcaption { margin-top: 10px; font-size: var(--step-small); }
.front-shot a { font-weight: 600; }
.label dt { color: var(--muted); font-weight: 600; }
.label dd { margin: 0; font-size: var(--step-body); font-weight: 600; }
.label .to dd { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.03em; }

main > section { position: relative; }

/* The route: an itinerary slip */
.route { background: var(--field-2); color: var(--bg); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 40px clamp(48px, 7vw, 120px); padding: var(--gap) var(--inset); align-items: center; }
.route-copy { grid-column: 1; display: grid; gap: 20px; align-content: start; }
.route-copy h2 { font-size: var(--step-head); }
.route-copy p { max-width: 30ch; font-size: var(--step-lead); line-height: 1.35; }
.route .slip { grid-column: 2; }

.slip { background: var(--bg); color: var(--ink); padding: 36px 36px 54px; max-width: 480px; width: 100%; font-size: var(--step-body); }
.zig { clip-path: var(--zig-bottom); }
.slip-group { font-weight: 800; margin-top: 28px; }
.slip [role="rowgroup"]:first-child .slip-group, .slip > .slip-group:first-child { margin-top: 0; }
.slip-row { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
.slip-row i { flex: 1; border-bottom: 4px dotted var(--muted); transform: translateY(-4px); min-width: 24px; }
.slip-row span:last-child { text-align: right; white-space: nowrap; font-weight: 600; }
.slip-row em { font-style: normal; color: var(--muted); font-size: var(--step-small); margin-left: 6px; }
.slip-total { display: flex; justify-content: space-between; gap: 16px; margin: 30px -36px 0; padding: 12px 36px; background: var(--ink); color: var(--bg); font-weight: 800; }
.slip-note { margin-top: 18px; font-size: var(--step-small); color: var(--muted); }

/* The starter: output slips standing along the bottom of a photograph */
.starter { overflow: hidden; color: var(--bg); background: #1d1418; }
.starter-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) brightness(.38) contrast(1.1); }
.starter-in { position: relative; padding: 0 var(--inset) var(--gap); }
.starter-copy { position: relative; padding: var(--gap) 0 48px; max-width: 34rem; display: grid; gap: 22px; }
.starter-copy h2 { font-size: var(--step-head); }
.starter-copy p { font-size: var(--step-lead); line-height: 1.35; }
.starter-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.link-paper { font-weight: 600; font-size: var(--step-body); }
.proofs { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.out { background: var(--bg); color: var(--ink); padding: 14px 14px 22px; display: grid; align-content: start; gap: 12px; }
.out img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: left top; display: block; }
.out h3, .out p { padding-inline: 8px; }
.out.tilt { transform: rotate(-1.5deg); transform-origin: bottom left; }
.out.tilt-r { transform: rotate(1.2deg); transform-origin: bottom right; }
.out h3 { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.2; }
.out .file { color: var(--muted); font-weight: 600; overflow-wrap: anywhere; }
.out pre { margin: 0; white-space: pre-wrap; font-size: var(--step-small); line-height: 1.45; padding-top: 10px; border-top: 4px dotted var(--muted); }
.out p { color: var(--ink); }

/* The questions: a printed card, cut by the section's lower edge */
.questions { background: var(--bg); overflow: hidden; padding-top: var(--gap); }
.card {
  width: min(56vw, 760px); margin: 0 auto -140px; padding: 56px 56px 196px; background: var(--ink); color: var(--bg);
  text-align: center; display: grid; gap: 28px; align-content: start;
}
.card h2 { font-size: var(--step-head); }
.card-lede { font-size: var(--step-body); }
.asks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; text-align: left; }
.asks a { display: grid; gap: 4px; padding: 14px 18px; background: var(--field-2); text-decoration: none; transition: background-color .2s, transform .2s var(--ease); }
.asks a:hover, .asks a:focus-visible { background: var(--field-3); transform: translateX(6px); }
.asks q { font-weight: 800; font-size: var(--step-body); letter-spacing: -0.02em; line-height: 1.25; quotes: "“" "”"; }
.asks span { font-size: var(--step-small); opacity: .85; }

/* The bill: a total and its receipt */
.bill { background: var(--ink); color: var(--bg); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 40px clamp(48px, 7vw, 120px); padding: var(--gap) var(--inset); }
.bill-left { grid-column: 1; display: flex; flex-direction: column; gap: 22px; }
.bill-left h2 { font-size: var(--step-head); }
.bill-left > p:first-of-type { max-width: 34ch; font-size: var(--step-lead); line-height: 1.35; }
.knobs { display: grid; gap: 20px; max-width: 30rem; margin-top: 28px; padding: 24px; background: var(--field-2); }
.knobs label { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-weight: 600; }
.knobs output { font-weight: 800; }
.knobs input { grid-column: 1 / -1; accent-color: var(--bg); width: 100%; height: 28px; }
.total { margin-top: 48px; font-weight: 800; letter-spacing: -0.06em; line-height: .8; font-size: clamp(7rem, 18vw, 18rem); }
.bill.over .total { color: var(--tab-3); }
.total-cap { font-size: var(--step-lead); font-weight: 600; }
.bill .receipt { grid-column: 2; align-self: start; }

/* The guides: one giant word, then the index */
.guides { background: var(--bg); padding: var(--gap) var(--inset); }
.index { position: relative; display: grid; grid-template-columns: minmax(0, 640px) 1fr; gap: 0 clamp(32px, 6vw, 96px); }
.index-col { container-type: inline-size; }
.giant { font-size: 31cqw; line-height: .8; letter-spacing: -0.06em; padding-bottom: .12em; margin-bottom: 16px; }
.index-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.index-row {
  display: grid; gap: 4px; padding: 16px 18px; background: var(--surface); text-decoration: none;
  transition: background-color .2s, opacity .24s, transform .2s var(--ease);
}
.index-row:hover, .index-row:focus-visible { background: #e2b6a4; transform: translateX(6px); }
.index-name { font-weight: 800; font-size: var(--step-lead); letter-spacing: -0.03em; line-height: 1.15; }
.index-desc { color: var(--ink); max-width: 60ch; }
.index-list:has(.index-row:hover) .index-row:not(:hover) { opacity: .5; }
.index-frame { position: sticky; top: 12vh; align-self: start; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); padding: 18px; }
.index-frame img { width: 100%; height: 100%; object-fit: contain; }
.index-lede { font-size: var(--step-lead); line-height: 1.35; margin: 0 0 28px; max-width: 30ch; }
.index-list { counter-reset: none; }

/* The letter: a sheet with a tear-off stub */
.letter { background: var(--field-3); padding: var(--gap) var(--inset); display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: start; grid-template-rows: auto 1fr; }
.letter-photo { grid-column: 1 / 6; grid-row: 1 / 3; margin: 0; color: var(--bg); }
.letter-photo img { display: block; width: 100%; height: auto; filter: grayscale(.3) sepia(.15); }
.letter-photo figcaption { margin-top: 12px; font-size: var(--step-small); }
.letter .sheet, .letter .stub { grid-column: 7 / 13; }
.sheet { width: 100%; background: var(--bg); padding: 60px; display: grid; gap: 1.1em; line-height: 1.55; }
.sign { margin-top: 12px; font-style: italic; font-size: var(--step-lead); }
.role { color: var(--muted); font-size: var(--step-small); margin-top: -12px; }
.stub { width: 100%; background: var(--bg); padding: 26px 60px; margin-top: 10px; font-weight: 600; clip-path: var(--zig-bottom); }

/* The back of the card */
.back { background: var(--ink); padding: var(--gap) var(--margin) var(--margin); }
.postcard { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: var(--content); margin-inline: auto; padding: 72px 56px 32px; background: var(--bg); clip-path: var(--zig-top); }
.pc-sign { font-weight: 800; letter-spacing: -0.04em; font-size: var(--step-head); margin-bottom: 14px; }
.pc-msg p:last-child { max-width: 34ch; }
.pc-addr { display: grid; justify-items: start; gap: 12px; font-weight: 600; position: relative; padding-right: 150px; }
.pc-addr a { text-decoration: none; }
.pc-addr a:hover { text-decoration: underline; }
.stamp { position: absolute; top: 0; right: 0; width: 120px; height: auto; aspect-ratio: 3 / 4; object-fit: cover; padding: 6px; background: var(--surface); }
.imprint { grid-column: 1 / -1; text-align: center; font-size: var(--step-small); color: var(--muted); max-width: 58ch; justify-self: center; }

/* Entrances (only when script runs and motion is allowed) */
.js-reveal .reveal, .js-reveal .out, .js-reveal .index-row { opacity: 0; translate: 0 22px; transition: opacity .6s var(--ease) var(--d, 0ms), translate .6s var(--ease) var(--d, 0ms); }
.js-reveal .in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: no-preference) {
  .starter-photo { animation: drift 24s ease-in-out infinite alternate; }
  .folder { animation: deal .7s var(--ease) both; animation-delay: calc(var(--i) * 90ms + 150ms); }
}
@keyframes drift { to { transform: scale(1.06) translate(-1%, -1%); } }
@keyframes deal { from { translate: 0 60px; } }

/* Tablet and phone */
@media (max-width: 900px) {
  .route, .bill { grid-template-columns: 1fr; gap: 40px; }
  .proofs { grid-template-columns: 1fr 1fr; }
  .route-copy, .route .slip, .bill-left, .bill .receipt { grid-column: 1; }
  .route .slip, .bill .receipt { max-width: none; }
  .total { font-size: 40vw; }
  .index { grid-template-columns: 1fr; }
  .index-frame { display: none; }
  .letter { grid-template-columns: 1fr; gap: 32px; }
  .letter-photo, .letter .sheet, .letter .stub { grid-column: 1; grid-row: auto; }
  .label { grid-template-columns: repeat(2, auto); }
  .front-inner { grid-template-columns: 1fr; }
  .postcard { grid-template-columns: 1fr; margin-inline: 0; padding: 56px 24px 24px; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 17vw; margin-top: 56px; }
  .hero-line { font-size: 1rem; }
  .folders { top: 46svh; }
  .folder { left: 0; right: 0; top: calc(var(--i) * 36px + 32px); }
  .knobs { gap: 26px; }
  .tab { height: 32px; top: -32px; padding: 7px 18px 0; font-size: .9375rem; }
  .folder:nth-child(1) { --tab: 2% !important; } .folder:nth-child(2) { --tab: 34% !important; }
  .folder:nth-child(3) { --tab: 62% !important; } .folder:nth-child(4) { --tab: 4% !important; }
  .folder.front { --tab: 40% !important; }
  .front-inner { padding: 24px var(--margin); }
  .front-inner .btn { width: 100%; text-align: center; }
  .label { grid-template-columns: repeat(2, auto); gap: 10px 24px; }
  .label .to dd { font-size: var(--step-body); }
  .front-left { gap: 20px; }
  .front-shot { display: none; }
  .slip { padding: 28px 22px 48px; }
  .slip-total { margin-inline: -22px; padding-inline: 22px; }
  .starter-copy { padding-top: 72px; }
  .starter-copy p { font-size: 1.25rem; }
  .proofs { grid-template-columns: 1fr; gap: 14px; margin-top: 36px; }
  .card { width: 100%; padding: 28px 20px 140px; margin-bottom: -100px; }
  .names { font-size: 1.0625rem; }
  .sheet { padding: 32px 24px; }
  .stub { padding: 22px 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* ---------- Guide pages (Read mode): the same papers, set for long reading ---------- */
.reading { background: var(--bg); }
.reading > .bar, .hero > .bar, .doc-band > .bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; padding-inline: var(--margin); }
.reading > .bar { background: var(--ink); color: var(--bg); }
.hero > .bar { padding-inline: 0; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: inherit; }
.bar-links { display: flex; gap: 28px; font-weight: 600; font-size: var(--step-small); }
.bar-links a { text-decoration: none; }
.bar-links a:hover { text-decoration: underline; }
.bar-menu { display: none; position: relative; font-weight: 600; }
.bar-menu summary { cursor: pointer; list-style: none; padding: 10px 14px; background: var(--bg); color: var(--ink); }
.bar-menu summary::-webkit-details-marker { display: none; }
.bar-menu nav { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; display: grid; min-width: 200px; background: var(--bg); color: var(--ink); padding: 8px; }
.bar-menu nav a { padding: 12px 14px; text-decoration: none; }
.bar-menu nav a:hover { background: var(--surface); }
@media (max-width: 760px) { .bar-links { display: none; } .bar-menu { display: block; } }

.doc-wrap { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 1fr); gap: 0 clamp(40px, 6vw, 96px); padding-inline: var(--inset); }
.doc { padding: clamp(56px, 8vw, 104px) 0 clamp(72px, 9vw, 120px); min-width: 0; }
.doc-toc { position: sticky; top: 24px; align-self: start; margin-top: clamp(40px, 5vw, 72px); padding: 22px 24px; background: var(--surface); }
.toc-h { font-weight: 800; margin-bottom: 10px; }
.doc-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.doc-toc a { display: block; padding: 6px 0; font-size: var(--step-small); font-weight: 600; text-decoration: none; }
.doc-toc a:hover { text-decoration: underline; }
@media (max-width: 1000px) { .doc-wrap { grid-template-columns: 1fr; } .doc-toc { display: none; } }
.doc-head h1 { font-size: clamp(2.25rem, 1.4rem + 3vw, 3.75rem); line-height: .95; }
.doc-lede { margin-top: 20px; font-size: var(--step-lead); line-height: 1.35; max-width: 34em; }
.doc-by { margin-top: 18px; font-size: var(--step-small); font-weight: 600; color: var(--muted); }
.affiliate-disclosure { margin: 36px 0 0; padding: 14px 18px; background: var(--surface); font-size: var(--step-small); }

.prose { margin-top: 44px; font-size: var(--step-body); line-height: 1.6; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); margin-top: 2.2em; }
.prose h3 { font-size: var(--step-lead); letter-spacing: -0.03em; line-height: 1.15; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose strong { font-weight: 800; }
.prose a { font-weight: 600; }
.prose code { font-size: .88em; background: var(--surface); padding: .1em .35em; }
.prose pre { background: var(--ink); color: var(--bg); padding: 20px 22px; overflow-x: auto; font-size: var(--step-small); line-height: 1.55; }
.prose pre code { background: none; padding: 0; font-size: inherit; }
.prose img { display: block; width: 100%; height: auto; margin: 2em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--step-small); display: block; overflow-x: auto; }
.prose th { text-align: left; font-weight: 800; padding: 10px 12px; background: var(--ink); color: var(--bg); }
.prose td { padding: 10px 12px; vertical-align: top; }
.prose tbody tr:nth-child(odd) { background: var(--surface); }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--ink); }

.doc-sources { max-width: none; margin-top: 64px; }
.doc-sources ol { list-style: none; margin: 14px 0 0; padding: 0; }
.doc-sources .slip-row { font-size: var(--step-small); }
.doc-sources .slip-row a { font-weight: 600; }

.doc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; }
.doc-pager a { display: grid; gap: 6px; padding: 22px 24px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; transition: transform .18s var(--ease); }
.doc-pager a:hover { transform: translateY(-3px); }
.doc-pager span { font-weight: 600; font-size: var(--step-small); letter-spacing: 0; opacity: .8; }
.pager-next { grid-column: 2; text-align: right; }
@media (max-width: 640px) { .doc-pager { grid-template-columns: 1fr; } .pager-next { grid-column: 1; } }
.reading .back { padding-top: clamp(72px, 8vw, 112px); }
/* Guide header: a dark band with the title and the guide's own picture */
.doc-band { background: var(--ink); color: var(--bg); padding: 0 var(--inset) clamp(48px, 6vw, 88px); }
.doc-band > .bar { padding-inline: 0; }
.reading > .bar { display: none; }
.doc-head { display: grid; grid-template-columns: 1fr; gap: 40px 56px; align-items: center; padding-top: clamp(40px, 6vw, 80px); margin: 0 auto; }
.doc-band.has-pic .doc-head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.doc-head h1 { font-size: clamp(2.5rem, 1.4rem + 3vw, 4rem); line-height: .93; max-width: 16ch; }
.doc-sub { margin-top: 14px; font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; max-width: 26ch; }
.doc-band .doc-by { color: var(--bg); opacity: .8; }
.doc-band .doc-lede { max-width: 32em; }
.doc-actions { margin-top: 28px; }
.doc-pic { margin: 0; background: var(--bg); padding: 14px; }
.doc-pic img { display: block; width: 100%; height: auto; }
.doc { padding-top: clamp(40px, 5vw, 72px); }
.doc .prose { margin-top: 0; }
@media (prefers-reduced-motion: no-preference) {
  .doc-pic { animation: lift .8s var(--ease) both .15s; }
  .doc-head h1 { animation: lift .7s var(--ease) both; }
}
@keyframes lift { from { opacity: 0; translate: 0 24px; } }
@media (max-width: 900px) { .doc-band.has-pic .doc-head { grid-template-columns: 1fr; } }
.doc-sources h2.slip-group { font-size: var(--step-body); letter-spacing: -0.02em; line-height: 1.2; }
@media (max-width: 640px) { .prose h2 { font-size: 1.5rem; } .doc-sub { font-size: var(--step-body); } }
.slip-row em { display: block; margin: 2px 0 0; }
.route .slip { max-width: 520px; }
@media (min-width: 901px) { .label dd { white-space: nowrap; } }
/* Diagrams keep a readable size on phones and scroll sideways inside their own box */
@media (max-width: 640px) {
  .prose p:has(> img[src$=".svg"]) { overflow-x: auto; margin-inline: calc(-1 * var(--margin)); padding-inline: var(--margin); }
  .prose img[src$=".svg"] { width: 680px; max-width: none; }
}

/* ---------- v6: a plain hero, no photographs of ships, guides in two columns ---------- */
.hero { height: auto; min-height: 0; padding-bottom: clamp(64px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px clamp(40px, 6vw, 96px); align-items: center; padding-top: clamp(40px, 6vw, 88px); }
.hero h1 { margin-top: 0; text-align: left; font-size: clamp(3.4rem, 7vw, 7.5rem); }
.hero-line { margin: 24px 0 0; text-align: left; max-width: 30em; }
.hero-actions { margin-top: 32px; }
.hero-links { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; font-weight: 600; }
.hero-links a { text-decoration-thickness: 2px; }
.waybill { margin: 0; background: var(--bg); color: var(--ink); padding: 18px 18px 26px; clip-path: var(--zig-bottom); }
.waybill img { display: block; width: 100%; height: auto; }
.waybill figcaption { margin: 12px 4px 18px; font-size: var(--step-small); font-weight: 600; }
.waybill .label { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 20px; padding: 0 4px; }
.waybill .label dd { white-space: normal; }
.starter { background: var(--field-3); }
.starter-copy { padding-top: var(--gap); }
.guides .giant { font-size: clamp(4.5rem, 12vw, 11rem); }
.guides .index-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.guides .index-row { height: 100%; }
.byline-block { grid-column: 1 / 6; grid-row: 1 / 3; color: var(--bg); display: grid; gap: 16px; align-content: start; }
.byline-block h2 { font-size: var(--step-head); }
.by-name { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.02em; }
.by-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; }
.sheet h3 { font-size: var(--step-lead); letter-spacing: -0.03em; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .guides .index-list { grid-template-columns: 1fr; }
  .byline-block { grid-column: 1; grid-row: auto; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 17vw; margin-top: 0; }
  .waybill .label { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Deploy check tool ---------- */
.check-head { grid-template-columns: minmax(0, 860px); }
.check-form { margin-top: 32px; display: grid; gap: 10px; }
.check-form label { font-weight: 600; }
.check-row { display: flex; flex-wrap: wrap; gap: 10px; }
.check-row input { flex: 1 1 22rem; min-width: 0; padding: 1rem 1.1rem; font: 600 var(--step-body)/1.2 "Schibsted Grotesk", system-ui, sans-serif; color: var(--ink); background: var(--bg); border: 0; border-radius: 0; }
.check-row input:focus-visible { outline: 3px solid var(--bg); outline-offset: 3px; }
.check-row .btn { border: 0; cursor: pointer; font: 600 var(--step-body)/1 "Schibsted Grotesk", system-ui, sans-serif; }
.check-row .btn:disabled { opacity: .6; cursor: progress; }
.check-hint { font-size: var(--step-small); opacity: .85; }
.check-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px clamp(40px, 6vw, 96px); padding: var(--gap) var(--inset); align-items: start; }
.check-what h2 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); margin-bottom: 18px; }
.check-what ol { margin: 0; padding-left: 1.2em; display: grid; gap: 12px; }
.check-what a { font-size: var(--step-small); font-weight: 600; margin-left: 6px; }
.check-slip { max-width: none; }
.check-repo { margin: 6px 0 4px; font-size: var(--step-small); color: var(--muted); font-weight: 600; overflow-wrap: anywhere; }
.check-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 4px; }
.check-item { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 14px 0; }
.check-item + .check-item { border-top: 4px dotted var(--muted); }
.check-tag { align-self: start; text-align: center; padding: 4px 0; font-weight: 800; font-size: var(--step-small); background: var(--surface); }
.is-ok .check-tag { background: #d5e3d2; color: #24452d; }
.is-fail .check-tag { background: var(--ink); color: var(--bg); }
.check-item p { margin: 0 0 6px; overflow-wrap: anywhere; }
.check-title { font-weight: 800; letter-spacing: -0.02em; }
.check-fix { font-weight: 600; }
.check-item a { font-weight: 600; font-size: var(--step-small); }
.check-prompt { margin: 8px 0; padding: 12px 14px; background: var(--surface); display: grid; gap: 8px; }
.check-prompt p { font-size: var(--step-small); }
.check-prompt button { justify-self: start; padding: .5rem .8rem; border: 0; background: var(--ink); color: var(--bg); font: 600 var(--step-small)/1 "Schibsted Grotesk", system-ui, sans-serif; cursor: pointer; }
.check-next { display: grid; gap: 10px; margin-top: 22px; justify-items: start; }
.check-next span { font-size: var(--step-small); }
.check-status { margin-top: 16px; font-weight: 600; }
@media (max-width: 900px) { .check-wrap { grid-template-columns: 1fr; } }
.check-out .slip { background: #fbefe9; }
.check-out .check-prompt, .check-out .check-tag { background: #f1d9ce; }
.check-out .is-ok .check-tag { background: #d5e3d2; }
.check-out .is-fail .check-tag { background: var(--ink); }
.check-what ul { list-style: square; margin: 0; padding-left: 1.1em; display: grid; gap: 12px; }
.check-status { padding: 22px 24px; background: #fbefe9; }
.check-status:empty { display: none; }
