/* Tess Thrifts, Issue No. 08. A two-colour riso zine.
   Inks: coral and cobalt, overprinting to violet. Plus black. On newsprint. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-var.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Special Elite";
  src: url("fonts/special-elite.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #EFEADC;
  --paper-2: #E4DCC6;
  --paper-3: #FBF8F0;
  --ink: #17151A;
  --ink-2: #3B3740;
  --coral: #FF5B4F;
  --coral-deep: #B8261B;
  --cobalt: #2443D6;
  --violet: #3B1E6E;
  --display: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --type: "Special Elite", "Courier New", Courier, monospace;
  --gut: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --mast: 60px;
  --cut: steps(3, end);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--mast) + 12px); scroll-padding-bottom: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: url("paper.svg");
  background-size: 420px 420px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: "opsz" 14;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
main { overflow-x: clip; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--coral); color: var(--ink); }

:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
/* on cobalt pages the cobalt ring disappeared, so it prints in paper there (keyboard focus only) */
.menu :focus-visible, .back :focus-visible, .toc__item--sub :focus-visible { outline-color: var(--paper-3); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 12px 16px; font-family: var(--type); text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Shared bits ---------- */
.btn {
  --sh: var(--cobalt);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px;
  background: var(--coral); color: var(--ink);
  border: 2px solid var(--ink);
  font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  box-shadow: 5px 5px 0 var(--sh);
  transition: transform .12s var(--cut), box-shadow .12s var(--cut), background-color .12s var(--cut);
}
.btn:hover { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--sh); }
.btn:active { transform: translate(5px, 5px) rotate(-1deg); }
.btn--small { min-height: 44px; padding: 8px 16px; font-size: 14px; box-shadow: 3px 3px 0 var(--sh); }
.btn--small:hover { transform: translate(3px, 3px); }
.btn--ghost { background: transparent; --sh: var(--coral); }
.btn--ghost:hover { background: var(--paper-3); }
.btn--blue { background: var(--cobalt); color: var(--paper-3); --sh: var(--ink); }

.stamp {
  display: inline-block; padding: 3px 10px 2px;
  font-family: var(--type); font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  background: var(--coral); color: var(--ink); transform: rotate(-2deg);
}
.stamp--blue { background: var(--cobalt); color: var(--paper-3); transform: rotate(1.5deg); }
.stamp--ink { background: var(--ink); color: var(--paper); transform: rotate(-1deg); }

.hl { background: linear-gradient(transparent 52%, rgba(255, 91, 79, .55) 52%, rgba(255, 91, 79, .55) 92%, transparent 92%); padding: 0 2px; }

.staple { position: absolute; z-index: 4; width: 38px; height: 7px; border-radius: 2px; background: linear-gradient(#9a979e, #57545b 60%, #2c2a30); box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 2px 3px rgba(0,0,0,.25); }
.staple--l { top: 10px; left: 22%; transform: rotate(-8deg); }
.staple--r { top: 14px; right: 22%; transform: rotate(5deg); }
.staple--top { top: -4px; left: 50%; transform: translateX(-50%) rotate(-3deg); }

.tape { position: absolute; z-index: 4; width: 110px; height: 30px; background: rgba(255, 91, 79, .42); mix-blend-mode: multiply; }
.tape::before, .tape::after { content: ""; position: absolute; top: 0; bottom: 0; width: 6px; background: inherit; }
.tape--tl { top: -10px; left: -24px; transform: rotate(-32deg); }
.tape--tr { top: -8px; right: -26px; transform: rotate(28deg); background: rgba(36, 67, 214, .32); }
.tape--bl { bottom: -8px; left: -20px; transform: rotate(24deg); }

.barcode { display: inline-block; width: 92px; height: 34px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px, var(--ink) 12px 13px, transparent 13px 16px); }
.barcode--wide { display: block; width: 100%; height: 46px; margin: 18px 0 10px; }

/* Crop marks and registration target, the printer's leftovers */
.crop { position: absolute; width: 28px; height: 28px; pointer-events: none; }
.crop::before, .crop::after { content: ""; position: absolute; background: var(--ink); }
.crop::before { width: 100%; height: 1px; top: 50%; }
.crop::after { height: 100%; width: 1px; left: 50%; }
.crop--tl { top: calc(var(--mast) + 14px); left: 10px; }
.crop--tr { top: calc(var(--mast) + 14px); right: 10px; }
.reg { position: absolute; width: 34px; height: 34px; border: 1px solid var(--ink); border-radius: 50%; pointer-events: none; }
.reg::before, .reg::after { content: ""; position: absolute; background: var(--ink); }
.reg::before { left: -8px; right: -8px; top: 50%; height: 1px; }
.reg::after { top: -8px; bottom: -8px; left: 50%; width: 1px; }
.reg--cover { right: calc(var(--gut) + 4px); bottom: 34px; box-shadow: 2px -1px 0 0 rgba(255,91,79,.8); }

/* ---------- Media frames: riso duotone until you look closer ---------- */
.frame {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: var(--ar, 9 / 16);
  isolation: isolate;
  background:
    radial-gradient(circle at 30% 30%, rgba(23,21,26,.35) 1.2px, transparent 1.6px) 0 0 / 7px 7px,
    linear-gradient(150deg, var(--coral) 0%, var(--coral) 34%, var(--violet) 62%, var(--cobalt) 100%);
}
.frame video, .frame img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--pos, 50% 50%);
  transform: scale(var(--zoom, 1)); transform-origin: var(--pos, 50% 50%);
  filter: grayscale(1) contrast(1.25) brightness(1.08);
}
.frame::before, .frame::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; transition: opacity .15s var(--cut); }
/* screen lifts the blacks to the ink colour, multiply tints the whites to paper */
.frame::before { background: var(--ink-tone, var(--coral)); mix-blend-mode: screen; }
.frame::after { background: var(--paper); mix-blend-mode: multiply; }
.duo--coral { --ink-tone: #E0382C; }
.duo--cobalt { --ink-tone: #2443D6; }
.duo--violet { --ink-tone: #4A2386; }
.frame .dots {
  position: absolute; inset: -4px; z-index: 2; pointer-events: none;
  background: radial-gradient(circle, var(--dot, rgba(36,67,214,.55)) 1px, transparent 1.5px) 0 0 / 5px 5px;
  mix-blend-mode: multiply; opacity: .5; transform: translate(1px, -1px);
  transition: opacity .15s var(--cut);
}
.duo--cobalt .dots { --dot: rgba(224, 56, 44, .55); }
/* full colour on hover, on focus, or when centred on a touch screen */
.is-colour .frame::before, .is-colour .frame::after, .is-colour .frame .dots,
.tile__btn:hover .frame::before, .tile__btn:hover .frame::after, .tile__btn:hover .dots,
.tile__btn:focus-visible .frame::before, .tile__btn:focus-visible .frame::after, .tile__btn:focus-visible .dots,
.still__btn:hover .frame::before, .still__btn:hover .frame::after, .still__btn:hover .dots,
.still__btn:focus-visible .frame::before, .still__btn:focus-visible .frame::after, .still__btn:focus-visible .dots,
.cover__clip:hover .frame::before, .cover__clip:hover .frame::after, .cover__clip:hover .dots,
.editor__portrait:hover .frame::before, .editor__portrait:hover .frame::after, .editor__portrait:hover .dots { opacity: 0; }
.is-colour .frame video, .is-colour .frame img,
.tile__btn:hover .frame video, .tile__btn:focus-visible .frame video,
.still__btn:hover .frame img, .still__btn:focus-visible .frame img,
.cover__clip:hover video, .editor__portrait:hover img { filter: none; animation: misreg .22s steps(1, end); }
@keyframes misreg {
  0% { translate: 4px -3px; }
  34% { translate: -3px 2px; }
  67% { translate: 1px 0; }
  100% { translate: 0 0; }
}
/* media not rendered yet: keep the printed gradient and label it like a proof */
.frame.is-missing::before { display: none; }
.frame.is-missing::after {
  content: attr(data-fallback); background: none; mix-blend-mode: normal;
  display: flex; align-items: flex-end; padding: 14px;
  font-family: var(--type); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-3);
}
.frame.is-missing video, .frame.is-missing img { display: none; }
.frame.is-missing .dots { opacity: .25; }

/* ---------- Ransom-note headings (letters built by script.js) ---------- */
.headline { font-family: var(--display); font-weight: 800; font-size: clamp(46px, 8.6vw, 128px); line-height: .95; letter-spacing: -.01em; text-transform: uppercase; }
.ransom { display: inline; }
.ransom .rw { display: inline-block; white-space: nowrap; margin-right: .22em; }
.ransom .rw:last-child { margin-right: 0; }
.ransom .rl { display: inline-block; padding: .02em .07em 0; margin: 0 .015em .06em; line-height: .92; transform: rotate(var(--r, 0deg)) translateY(var(--y, 0)); }
.rl.r1 { background: var(--ink); color: var(--paper); font-stretch: 75%; }
.rl.r2 { background: var(--coral); color: var(--ink); font-family: var(--type); font-weight: 400; font-size: .86em; text-transform: lowercase; }
.rl.r3 { color: var(--cobalt); font-stretch: 100%; box-shadow: inset 0 0 0 .04em var(--cobalt); }
.rl.r4 { background: var(--cobalt); color: var(--paper-3); font-stretch: 80%; font-weight: 600; }
.rl.r5 { color: var(--ink); font-weight: 300; font-stretch: 85%; }
.rl.r6 { background: var(--paper-3); color: var(--coral-deep); font-family: var(--type); font-weight: 400; box-shadow: 1px 2px 0 rgba(23,21,26,.25); }
.small-ransom .rl { padding: .06em .12em 0; }

/* ---------- Masthead ---------- */
.mast {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--mast);
  display: flex; align-items: center; gap: 22px; padding: 0 var(--gut);
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.mast::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--coral); transform: translateX(3px); opacity: .9; }
.mast__logo { display: inline-flex; align-items: baseline; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.01em; font-stretch: 75%; line-height: 1; min-height: 44px; align-items: center; }
.mast__logo-a { color: var(--cobalt); }
.mast__logo-b { background: var(--coral); color: var(--ink); padding: 4px 6px 2px; margin-left: 4px; transform: rotate(-2deg); display: inline-block; mix-blend-mode: multiply; }
.mast__logo:hover .mast__logo-b { transform: rotate(2deg) translateY(-1px); }
.mast__nav { display: flex; gap: 4px; margin-left: auto; }
.mast__nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-family: var(--type); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.mast__nav a::before { content: ""; position: absolute; left: 4px; right: 4px; top: 12px; bottom: 12px; background: var(--coral); z-index: -1; transform: scaleX(0); transform-origin: left; transition: transform .16s var(--cut); }
.mast__nav a:hover::before, .mast__nav a.is-here::before { transform: scaleX(1); }
.mast__nav a.is-here::before { background: rgba(36, 67, 214, .22); }
.mast__page { display: inline-flex; align-items: baseline; gap: 2px; padding: 4px 8px 2px; border: 2px solid var(--ink); font-family: var(--type); font-size: 14px; line-height: 1.2; white-space: nowrap; }
.mast__page #page-no { display: inline-block; min-width: 2ch; font-family: var(--display); font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; text-align: center; color: var(--cobalt); }
.mast__page #page-no.flip { animation: flip .2s steps(2, end); }
@keyframes flip { 0% { transform: translateY(-6px); color: var(--coral-deep); } 100% { transform: none; } }
.mast__page-of { color: var(--ink-2); }
.mast__menu { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; background: var(--ink); color: var(--paper); border: 0; cursor: pointer; font-family: var(--type); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.mast__menu-bars { display: grid; gap: 3px; width: 16px; }
.mast__menu-bars i { display: block; height: 2px; background: var(--paper); }
.mast__menu-bars i:nth-child(2) { background: var(--coral); transform: translateX(3px); }

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 90; overflow-y: auto;
  display: flex; flex-direction: column; gap: 18px;
  padding: 18px var(--gut) 32px;
  background: var(--cobalt); color: var(--paper-3);
  background-image: radial-gradient(circle, rgba(23,21,26,.28) 1px, transparent 1.6px);
  background-size: 6px 6px;
}
.menu:not([hidden]) { animation: wipe .24s steps(4, end); }
@keyframes wipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.menu__top { display: flex; align-items: center; justify-content: space-between; }
.menu__issue { font-family: var(--type); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.menu__close { width: 48px; height: 48px; display: grid; place-items: center; background: var(--paper-3); color: var(--ink); border: 0; cursor: pointer; }
.menu__close svg, .lb__btn svg, .ribbon__close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: square; }
.menu__title { font-family: var(--display); font-weight: 800; font-stretch: 75%; font-size: clamp(64px, 20vw, 140px); line-height: .85; text-transform: uppercase; color: var(--coral); text-shadow: 3px 2px 0 var(--violet); }
.menu__list { display: grid; border-top: 2px solid var(--paper-3); }
.menu__list a { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 6px 0; border-bottom: 2px solid rgba(251,248,240,.55); text-decoration: none; font-weight: 800; font-size: clamp(24px, 6.4vw, 38px); line-height: 1.05; text-transform: uppercase; letter-spacing: -.01em; }
.menu__list a:hover, .menu__list a:focus-visible { color: var(--ink); background: var(--coral); outline-offset: 0; }
.menu__pg { flex: none; min-width: 52px; padding: 2px 6px 0; background: var(--paper-3); color: var(--cobalt); font-family: var(--type); font-weight: 400; font-size: 14px; letter-spacing: .04em; text-align: center; }
.menu:not([hidden]) .menu__list li { animation: menuIn .3s steps(2, end) backwards; }
.menu__list li:nth-child(2) { animation-delay: .03s !important; }
.menu__list li:nth-child(3) { animation-delay: .06s !important; }
.menu__list li:nth-child(4) { animation-delay: .09s !important; }
.menu__list li:nth-child(5) { animation-delay: .12s !important; }
.menu__list li:nth-child(6) { animation-delay: .15s !important; }
.menu__list li:nth-child(7) { animation-delay: .18s !important; }
.menu__list li:nth-child(8) { animation-delay: .21s !important; }
@keyframes menuIn { from { opacity: 0; transform: translateX(-24px); } }
.menu__cta { align-self: flex-start; --sh: var(--ink); }
.menu__foot { margin-top: auto; font-family: var(--type); font-size: 14px; }

/* ---------- Cover ---------- */
.cover {
  position: relative;
  max-width: var(--max); margin: 0 auto;
  min-height: 100svh;
  padding: calc(var(--mast) + 28px) var(--gut) 48px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto 1fr auto;
  column-gap: 24px;
}
.cover__meta { grid-column: 1 / -1; grid-row: 1; }
.cover__issue { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--ink); font-family: var(--type); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.cover__issue b { font-family: var(--display); font-weight: 800; font-size: 16px; color: var(--cobalt); }
.cover__free { margin-left: auto; background: var(--ink); color: var(--paper); padding: 2px 8px 0; transform: rotate(-1.5deg); }
.cover__title { grid-column: 1 / 10; grid-row: 2; position: relative; z-index: 3; margin: 22px 0 0; pointer-events: none; }
.overprint { display: grid; font-family: var(--display); font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: clamp(76px, 12.4vw, 192px); line-height: .8; letter-spacing: -.025em; }
.overprint__plate { grid-area: 1 / 1; display: flex; flex-direction: column; mix-blend-mode: multiply; will-change: transform; }
.overprint__plate span:last-child { margin-left: .06em; }
.overprint__plate--coral { color: var(--coral); transform: translate(var(--cx, -.035em), var(--cy, .028em)); }
.overprint__plate--cobalt { color: var(--cobalt); transform: translate(var(--bx, .012em), var(--by, -.01em)); }
.js .overprint.is-loading .overprint__plate--coral { transform: translate(-.4em, .12em); }
.js .overprint.is-loading .overprint__plate--cobalt { transform: translate(.4em, -.08em); }
.overprint.is-registering .overprint__plate { transition: transform .42s steps(5, end); }

.cover__body { grid-column: 1 / 7; grid-row: 3; align-self: start; display: grid; gap: 20px; margin-top: 30px; position: relative; z-index: 2; }
.cover__lede { font-size: clamp(21px, 2.1vw, 28px); line-height: 1.25; font-weight: 600; font-variation-settings: "opsz" 40; max-width: 30ch; }
.cover__lines { display: grid; gap: 6px; font-family: var(--type); font-size: 15px; }
.cover__lines li { display: flex; gap: 10px; align-items: baseline; }
.cover__pg { flex: none; background: var(--cobalt); color: var(--paper-3); padding: 1px 6px 0; font-size: 13px; }
.cover__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.cover__niche { display: flex; gap: 10px; flex-wrap: wrap; }

.cover__clip { grid-column: 8 / 13; grid-row: 2 / 4; position: relative; z-index: 1; align-self: start; margin-top: 40px; transform: rotate(2.2deg); background: var(--paper-3); padding: 12px 12px 0; box-shadow: 0 1px 0 rgba(0,0,0,.08), 6px 10px 0 rgba(23,21,26,.12); }
.cover__clip .frame { --ar: 4 / 5.4; --pos: 50% 40%; }
.cover__clip figcaption { padding: 10px 2px 12px; font-family: var(--type); font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.cover__handle { display: none; position: absolute; right: calc(var(--gut) - 10px); top: 54%; writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--type); font-size: 14px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-2); }
.cover__barcode { grid-column: 9 / 13; grid-row: 4; justify-self: end; display: flex; align-items: end; gap: 10px; margin-top: 30px; margin-right: 48px; font-family: var(--type); font-size: 12px; color: var(--ink-2); }

/* ---------- Tape strip ---------- */
.tape-strip { position: relative; z-index: 2; overflow: hidden; margin: 10px -20px 0; background: var(--cobalt); color: var(--paper-3); transform: rotate(-1.6deg); border-block: 2px solid var(--ink); }
.tape-strip__track { display: flex; gap: 22px; align-items: center; white-space: nowrap; padding: 12px 0 10px; width: max-content; font-family: var(--display); font-weight: 800; font-stretch: 75%; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }
.tape-strip__track b { color: var(--coral); font-size: 12px; }

/* ---------- Pages ---------- */
.page { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(80px, 10vw, 150px) var(--gut) 0; }
.page-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 980px; }
.page-head--split { max-width: none; grid-template-columns: 1fr minmax(0, 380px); align-items: end; column-gap: 40px; }
.page-head--split .folio { grid-column: 1 / -1; }
.page-head__note { font-size: 18px; line-height: 1.5; max-width: 52ch; color: var(--ink-2); }
.folio { display: flex; align-items: center; gap: 12px; font-family: var(--type); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.folio span:first-child { background: var(--ink); color: var(--paper); padding: 2px 8px 0; }
.folio::after { content: ""; flex: 1; height: 1px; background: var(--ink); max-width: 220px; }

/* ---------- The haul ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 8px 16px 6px;
  background: var(--paper-3); border: 2px solid var(--ink);
  font-family: var(--type); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
  transform: rotate(var(--cr, 0deg));
  transition: background-color .1s var(--cut), transform .1s var(--cut);
}
.chip:nth-child(2) { --cr: 1deg; } .chip:nth-child(3) { --cr: -1.2deg; } .chip:nth-child(4) { --cr: .6deg; }
.chip:hover { background: rgba(255, 91, 79, .3); transform: rotate(0deg) translateY(-2px); }
.chip.is-on { background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--coral); }
.chip__n { font-family: var(--display); font-weight: 800; font-size: 13px; padding: 1px 6px 0; background: var(--coral); color: var(--ink); }
.chip.is-on .chip__n { background: var(--paper); }
.chips__status { font-family: var(--type); font-size: 14px; color: var(--ink-2); margin-bottom: 34px; }

.feed { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 28px; align-items: start; }
.tile { position: relative; }
.tile__btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; transform: rotate(var(--rot, 0deg)); transition: transform .14s var(--cut); }
.tile__btn:hover { transform: rotate(0deg) translateY(-4px); }
.tile__btn .frame { box-shadow: 0 0 0 2px var(--ink), 7px 8px 0 var(--shadow, rgba(36,67,214,.9)); }
.tile__btn:hover .frame { box-shadow: 0 0 0 2px var(--ink), 11px 12px 0 var(--shadow, rgba(36,67,214,.9)); }
.tile__play { position: absolute; z-index: 3; left: 50%; top: 50%; translate: -50% -50%; padding: 10px 18px 8px; background: var(--paper-3); color: var(--ink); border: 2px solid var(--ink); font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; opacity: 0; transform: rotate(-4deg) scale(.8); transition: opacity .1s var(--cut), transform .1s var(--cut); }
.tile__play::before { content: ""; display: inline-block; width: 0; height: 0; margin-right: 8px; border-left: 10px solid var(--coral-deep); border-block: 6px solid transparent; vertical-align: 0; }
.tile__btn:hover .tile__play, .tile__btn:focus-visible .tile__play { opacity: 1; transform: rotate(-4deg); }
.tile__cap { display: grid; gap: 6px; margin-top: 18px; padding-left: 2px; }
.tile__brand { justify-self: start; padding: 2px 8px 0; background: var(--coral); font-family: var(--type); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; transform: rotate(-1.5deg); }
.tile:nth-child(even) .tile__brand { background: var(--cobalt); color: var(--paper-3); transform: rotate(1.2deg); }
.tile__title { font-weight: 800; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.1; letter-spacing: -.01em; font-variation-settings: "opsz" 32; }
.tile__meta { font-family: var(--type); font-size: 13px; color: var(--ink-2); }

/* Collage layout for "Everything": different crops, sizes and offsets per tile */
.tile--a { grid-column: 1 / span 4; --rot: -1.4deg; }
.tile--a .frame { --ar: 9 / 16; }
.tile--b { grid-column: 5 / span 3; margin-top: 140px; --rot: 1.2deg; --shadow: rgba(255,91,79,.95); }
.tile--b .frame { --ar: 9 / 16; --pos: 50% 50%; }
.tile--c { grid-column: 8 / span 5; margin-top: 40px; --rot: -.6deg; }
.tile--c .frame { --ar: 4 / 5; --pos: 50% 28%; --zoom: 1.35; }
.tile--d { grid-column: 1 / span 3; margin-top: 40px; --rot: 1.8deg; --shadow: rgba(59,30,110,.9); }
.tile--d .frame { --ar: 1 / 1; --pos: 50% 62%; --zoom: 1.5; }
.tile--e { grid-column: 4 / span 4; margin-top: 30px; --rot: -1deg; --shadow: rgba(255,91,79,.95); }
.tile--e .frame { --ar: 3 / 4; --pos: 30% 45%; --zoom: 1.2; }
.tile--f { grid-column: 9 / span 4; margin-top: 70px; --rot: 1.4deg; }
.tile--f .frame { --ar: 9 / 14; --pos: 70% 50%; --zoom: 1.15; }

/* Filtered: a tidy row of the same crops, no offsets */
.feed.is-filtered { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feed.is-filtered .tile { grid-column: auto; margin-top: 0; }
.feed.is-filtered .tile .frame { --ar: 9 / 16; --zoom: 1; }
.feed .tile[hidden] { display: none; }
.feed .tile.snap { animation: snapIn .24s steps(1, end); }
@keyframes snapIn { 0% { opacity: 0; } 25% { opacity: 1; translate: 8px 10px; } 60% { translate: -4px 2px; } 100% { translate: 0 0; } }
.feed__note { margin-top: 56px; font-family: var(--type); font-size: 15px; max-width: 60ch; }
.hand-arrow { display: inline-block; color: var(--coral-deep); font-family: var(--display); font-size: 22px; transform: rotate(180deg); margin-right: 6px; }

/* ---------- Receipts ---------- */
.receipts__grid { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.receipt-wrap { filter: drop-shadow(5px 7px 0 rgba(23,21,26,.16)); }
.receipt {
  --z: 14px;
  background: var(--paper-3);
  padding: 34px 30px 36px;
  font-family: var(--type); font-size: 15px; line-height: 1.5;
  transform: rotate(-2deg);
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--z) 51% repeat-x, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--z) 51% repeat-x;
          mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--z) 51% repeat-x, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--z) 51% repeat-x;
}
.receipt__shop { text-align: center; text-transform: uppercase; letter-spacing: .1em; }
.receipt__line { margin: 16px 0 6px; padding: 6px 0; border-block: 1px dashed var(--ink); text-align: center; font-size: 13px; letter-spacing: .14em; }
.receipt__items > div { display: flex; align-items: baseline; gap: 8px; padding: 10px 0; }
.receipt__items > div + div { border-top: 1px dotted rgba(23,21,26,.4); }
.receipt__items dt { flex: 1; display: flex; gap: 8px; align-items: baseline; }
.receipt__items dt::after { content: ""; flex: 1; border-bottom: 2px dotted var(--ink); translate: 0 -4px; }
.receipt__items dd { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; color: var(--cobalt); font-variant-numeric: tabular-nums; }
.receipt__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; padding: 12px 0 10px; border-block: 2px solid var(--ink); text-transform: uppercase; letter-spacing: .06em; }
.receipt__total b { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; background: var(--coral); padding: 2px 8px 0; }
.receipt__thanks { margin-top: 14px; text-align: center; font-size: 13px; letter-spacing: .06em; }

.brands { padding-top: 8px; }
.brands__label { font-family: var(--type); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 20px; }
.brands__list { display: grid; }
.brand { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding: 20px 0; border-top: 2px solid var(--ink); font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 4.2vw, 60px); line-height: 1; }
.brand:last-child { border-bottom: 2px solid var(--ink); }
.brand__mark { display: inline-block; }
.brand--1 .brand__mark { background: var(--ink); color: var(--paper); font-stretch: 75%; padding: .08em .18em 0; transform: rotate(-1.5deg); }
.brand--2 .brand__mark { color: var(--cobalt); font-weight: 300; text-transform: lowercase; letter-spacing: -.04em; text-decoration: underline .12em var(--coral); text-underline-offset: .12em; }
.brand--3 .brand__mark { font-family: var(--type); font-weight: 400; text-transform: none; font-size: .82em; background: var(--coral); padding: .1em .25em 0; transform: rotate(1deg); }
.brand--4 .brand__mark { color: var(--cobalt); border: .06em solid var(--cobalt); padding: .1em .22em .02em; letter-spacing: .08em; font-size: .78em; transform: rotate(-.8deg); }
.brand small { font-family: var(--type); font-weight: 400; font-size: 14px; letter-spacing: .04em; text-transform: none; color: var(--ink-2); }
.brand--2 { padding-left: 6%; } .brand--3 { padding-left: 2%; } .brand--4 { padding-left: 9%; }
.brands__note { margin-top: 18px; font-family: var(--type); font-size: 14px; color: var(--ink-2); }

/* ---------- Stills ---------- */
.collage { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 30px 30px; align-items: start; }
.still { position: relative; }
.still__btn { position: relative; display: block; width: 100%; padding: 10px; border: 0; background: var(--paper-3); cursor: zoom-in; box-shadow: 5px 7px 0 rgba(23,21,26,.14); transform: rotate(var(--rot, 0deg)); transition: transform .14s var(--cut); }
.still__btn:hover { transform: rotate(0deg) scale(1.01); }
.still .frame { --ar: 4 / 5; }
.still__cap { margin-top: 14px; font-family: var(--type); font-size: 14px; line-height: 1.45; max-width: 36ch; }
.still__cap b { font-family: var(--display); font-weight: 800; background: var(--ink); color: var(--paper); padding: 1px 6px 0; margin-right: 6px; }
.still--1 { grid-column: 1 / span 5; grid-row: 1 / span 2; --rot: -2deg; }
.still--2 { grid-column: 6 / span 4; grid-row: 1 / span 2; margin-top: 90px; --rot: 1.6deg; }
.still--3 { grid-column: 10 / span 3; grid-row: 1; margin-top: 10px; --rot: -1.4deg; }
.still--3 .frame { --ar: 3 / 4; --zoom: 1.12; --pos: 50% 55%; }
.still--4 { grid-column: 10 / span 3; grid-row: 2; margin-top: 10px; --rot: 2.4deg; }
.still--4 .frame { --ar: 1 / 1; --zoom: 1.12; --pos: 50% 55%; }
.collage__note { grid-column: 1 / span 6; grid-row: 3; margin-top: 10px; font-family: var(--type); font-size: 15px; color: var(--ink-2); display: flex; gap: 10px; align-items: center; }
.collage__note::before { content: ""; flex: 1; max-width: 300px; border-top: 2px dashed var(--ink); }
.collage__note span { font-size: 22px; }

/* ---------- What I make (contents page) ---------- */
.headline--contents { font-stretch: 75%; font-size: clamp(76px, 15vw, 220px); line-height: .8; position: relative; color: var(--cobalt); mix-blend-mode: multiply; }
.headline--contents::after { content: attr(data-text); content: attr(data-text) / ""; position: absolute; left: 0; top: 0; color: var(--coral); mix-blend-mode: multiply; transform: translate(-.03em, .025em); pointer-events: none; }
.toc { border-top: 3px solid var(--ink); counter-reset: toc; }
.toc__item {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, .8fr);
  grid-template-areas: "head head head" "for incl facts" "add incl facts";
  gap: 14px 40px; padding: 30px 0 34px; border-bottom: 2px solid var(--ink);
}
.toc__head { grid-area: head; display: flex; align-items: baseline; gap: 14px; }
.toc__name { font-weight: 800; font-size: clamp(30px, 4.4vw, 62px); line-height: 1; letter-spacing: -.015em; text-transform: uppercase; font-stretch: 85%; }
.toc__dots { flex: 1; min-width: 30px; border-bottom: 4px dotted var(--ink); translate: 0 -8px; }
.toc__pg { font-weight: 800; font-size: clamp(30px, 4.4vw, 62px); line-height: 1; color: var(--coral-deep); font-variant-numeric: tabular-nums; }
.toc__for { grid-area: for; font-size: 18px; line-height: 1.45; font-weight: 500; max-width: 40ch; }
.toc__incl { grid-area: incl; display: grid; gap: 8px; font-family: var(--type); font-size: 15px; line-height: 1.4; }
.toc__incl li { display: grid; grid-template-columns: 20px 1fr; }
.toc__incl li::before { content: "+"; font-family: var(--display); font-weight: 800; color: var(--coral-deep); }
.toc__facts { grid-area: facts; display: grid; gap: 14px; align-content: start; font-size: 15px; }
.toc__facts dt { font-family: var(--type); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.toc__facts dd { font-weight: 600; margin-top: 2px; }
.use { display: inline-block; margin: 4px 6px 0 0; padding: 2px 8px 0; border: 1.5px solid var(--ink); font-family: var(--type); font-weight: 400; font-size: 13px; }
.toc__add {
  grid-area: add; justify-self: start; align-self: end;
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 14px 4px 8px;
  background: transparent; border: 2px dashed var(--ink); cursor: pointer;
  font-family: var(--type); font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  transition: background-color .1s var(--cut);
}
.toc__add::before { content: ""; width: 20px; height: 20px; border: 2px solid var(--ink); background: var(--paper-3); }
.toc__add:hover { background: rgba(255, 91, 79, .25); }
.toc__add[aria-pressed="true"] { border-style: solid; background: var(--ink); color: var(--paper); }
.toc__add[aria-pressed="true"]::before { background: linear-gradient(45deg, transparent 42%, var(--cobalt) 42% 58%, transparent 58%), linear-gradient(-45deg, transparent 42%, var(--cobalt) 42% 58%, transparent 58%), var(--coral); border-color: var(--coral); }
.toc__item--sub { margin-top: 26px; padding: 30px clamp(18px, 3vw, 36px) 34px; background: var(--cobalt); color: var(--paper-3); border: 0; transform: rotate(-.6deg); }
.toc__item--sub .toc__dots { border-color: var(--paper-3); }
.toc__item--sub .toc__pg { color: var(--coral); }
.toc__item--sub .toc__incl li::before { color: var(--coral); }
.toc__item--sub .toc__facts dt { color: rgba(251,248,240,.85); }
.toc__item--sub .use { border-color: var(--paper-3); }
.toc__item--sub .toc__add { border-color: var(--paper-3); }
.toc__item--sub .toc__add::before { border-color: var(--paper-3); background: transparent; }
.toc__item--sub .toc__add[aria-pressed="true"] { background: var(--paper-3); color: var(--ink); }
.toc__item--sub::before { content: "Standing order"; position: absolute; top: -14px; right: 24px; padding: 3px 10px 1px; background: var(--coral); color: var(--ink); font-family: var(--type); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; transform: rotate(2deg); }

.make__foot { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(30px, 5vw, 80px); align-items: start; margin-top: 70px; }
.memo { position: relative; margin-top: 40px; padding: 28px 24px 24px; background: var(--paper-3) linear-gradient(transparent 0 25px, rgba(255,91,79,.22) 25px 26px) 0 6px / 100% 26px; font-family: var(--type); font-size: 15px; line-height: 26px; transform: rotate(-2deg); box-shadow: 5px 6px 0 rgba(23,21,26,.12); }
.memo p + p { margin-top: 10px; }
.memo__head { font-weight: 400; text-transform: uppercase; letter-spacing: .08em; color: var(--cobalt); }
.memo__sign { text-align: right; font-size: 28px; color: var(--cobalt); }
.memo::before { content: ""; position: absolute; top: -10px; left: 50%; width: 38px; height: 7px; border-radius: 2px; background: linear-gradient(#9a979e, #57545b 60%, #2c2a30); transform: translateX(-50%) rotate(4deg); }
.extras { position: relative; margin: 0; max-width: 760px; padding: 36px clamp(20px, 4vw, 44px) 36px; background: rgba(255, 91, 79, .9); color: var(--ink); transform: rotate(.8deg); box-shadow: -8px 8px 0 var(--cobalt); }
.extras::before { content: ""; position: absolute; top: -14px; left: 40%; width: 120px; height: 28px; background: rgba(251,248,240,.6); transform: rotate(-3deg); }
.extras__title { font-weight: 800; font-size: clamp(28px, 3.4vw, 44px); line-height: 1; text-transform: uppercase; margin-bottom: 20px; }
.extras__title span { font-family: var(--type); font-weight: 400; font-size: .5em; letter-spacing: .06em; vertical-align: middle; display: block; margin-bottom: 6px; }
.extras__list { display: grid; gap: 0; margin-bottom: 26px; }
.extras__list li { padding: 11px 0; border-top: 1.5px solid rgba(23,21,26,.7); font-size: 16px; line-height: 1.4; }
.extras__list b { display: inline-block; min-width: 170px; font-family: var(--type); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; }
.extras .btn { --sh: var(--ink); }

/* ---------- From the editor ---------- */
.editor { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.editor__portrait { position: relative; padding: 12px 12px 0; background: var(--paper-3); transform: rotate(-2.2deg); box-shadow: 8px 10px 0 rgba(36,67,214,.85); margin-top: 20px; }
.editor__portrait .frame { --ar: 4 / 5; }
.editor__portrait figcaption { padding: 10px 2px 14px; font-family: var(--type); font-size: 13px; color: var(--ink-2); }
.editor__text { display: grid; gap: 24px; }
.editor__cols { columns: 2 280px; column-gap: 36px; font-size: 17px; }
.editor__cols p { margin-bottom: 1em; break-inside: avoid; }
.dropcap::first-letter { float: left; font-weight: 800; font-size: 76px; line-height: .8; padding: 8px 10px 2px; margin: 4px 10px 0 0; background: var(--coral); color: var(--ink); font-stretch: 75%; }
.editor__sign { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-family: var(--type); font-size: 14px; color: var(--ink-2); }
.signature { font-family: var(--type); font-size: 48px; line-height: 1; color: var(--cobalt); transform: rotate(-6deg); text-decoration: underline wavy var(--coral); text-underline-offset: 8px; text-decoration-thickness: 2px; }
.editor__standin { font-size: 15px; max-width: 58ch; padding-top: 18px; border-top: 1px dashed var(--ink); color: var(--ink-2); }
.editor__standin .stamp { margin-right: 8px; font-size: 12px; }

/* ---------- Process strip ---------- */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 14px; background: var(--ink); }
.panel { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 340px; padding: 22px 20px 70px; background: var(--paper-3); overflow: hidden; }
.panel:nth-child(2) { background: #FFD3CC; }
.panel:nth-child(3) { background: var(--cobalt); color: var(--paper-3); }
.panel:nth-child(4) { background: var(--paper) radial-gradient(circle, rgba(36,67,214,.35) 1px, transparent 1.5px) 0 0 / 6px 6px; }
.panel__n { font-weight: 800; font-stretch: 75%; font-size: 110px; line-height: .8; color: var(--coral); mix-blend-mode: multiply; }
.panel:nth-child(2) .panel__n { color: var(--cobalt); }
.panel:nth-child(3) .panel__n { color: var(--coral); mix-blend-mode: normal; }
.panel h3 { font-weight: 800; font-size: 24px; line-height: 1.1; text-transform: uppercase; letter-spacing: -.01em; }
.panel p { font-size: 16px; line-height: 1.5; }
.panel__bubble { position: absolute; right: 16px; bottom: 18px; padding: 6px 14px 4px; background: var(--paper-3); color: var(--ink); border: 2px solid var(--ink); border-radius: 50%; font-family: var(--type); font-size: 14px !important; }
.panel__bubble::after { content: ""; position: absolute; left: 18%; bottom: -12px; border: 7px solid transparent; border-top: 10px solid var(--ink); border-left-width: 0; }

/* ---------- Letters ---------- */
.letters__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; align-items: start; }
.letter { position: relative; padding: 30px 26px 26px; font-family: var(--type); font-size: 16px; line-height: 1.6; }
.letter p + p { margin-top: 10px; }
.letter__salute { font-size: 18px; }
.letter footer { margin-top: 20px; padding-top: 12px; border-top: 1px solid currentColor; font-family: var(--display); font-size: 15px; line-height: 1.4; }
.letter footer b { display: block; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.letter--1 { background: var(--paper-3) linear-gradient(transparent 0 27px, rgba(36,67,214,.18) 27px 28px) 0 4px / 100% 28.8px; transform: rotate(-1.6deg); box-shadow: 5px 6px 0 rgba(23,21,26,.12); border-left: 3px solid var(--coral); }
.letter--2 { background: var(--cobalt); color: var(--paper-3); margin-top: 60px; transform: rotate(1.2deg); }
.letter--3 { background: #FFD3CC; transform: rotate(-.6deg); margin-top: 20px; box-shadow: 5px 6px 0 rgba(23,21,26,.12); }
.letter--3::before { content: ""; position: absolute; top: -12px; left: 30px; width: 90px; height: 24px; background: rgba(36,67,214,.35); transform: rotate(-4deg); }

/* ---------- Order form ---------- */
.order { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 90px); align-items: start; padding-bottom: clamp(80px, 10vw, 140px); }
.order__intro { display: grid; gap: 22px; position: sticky; top: calc(var(--mast) + 30px); }
.order .headline { font-size: clamp(44px, 6.4vw, 96px); }
.order__lede { font-size: 19px; line-height: 1.45; max-width: 40ch; }
.order__contact { display: grid; border-top: 2px solid var(--ink); }
.order__contact li { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--ink); }
.order__contact span { font-family: var(--type); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.order__contact a { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.order__contact a:hover { color: var(--cobalt); text-decoration: underline wavy var(--coral); text-underline-offset: 5px; }
.order__where { font-size: 15px; color: var(--ink-2); }
.order__where .stamp { margin-right: 6px; font-size: 12px; }

.coupon { position: relative; padding: clamp(26px, 4vw, 48px); background: var(--paper-3); border: 3px dashed var(--ink); }
.coupon__cut { position: absolute; top: -14px; left: 24px; padding: 0 10px; background: var(--paper); font-family: var(--type); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.coupon__cut span { font-size: 20px; vertical-align: -2px; }
.form { display: grid; gap: 22px; }
.form__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field legend { font-family: var(--type); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  background: var(--paper); border: 0; border-bottom: 3px solid var(--ink);
  font: 500 17px/1.4 var(--display); color: var(--ink); border-radius: 0;
  transition: background-color .1s var(--cut), border-color .1s var(--cut);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(-45deg, transparent 50%, var(--ink) 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background-color: #FFE3DE; border-color: var(--cobalt); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { box-shadow: 0 0 0 3px var(--cobalt); }
.field textarea::placeholder { color: #6B6670; }
.field.has-err input, .field.has-err textarea { border-color: var(--coral-deep); background-color: #FFE3DE; }
.field__err { font-family: var(--type); font-size: 14px; color: var(--coral-deep); }
.field__err::before { content: "! "; font-family: var(--display); font-weight: 800; }
.field--boxes { border: 0; padding: 0; margin: 0; }
.field--boxes legend { padding: 0; margin-bottom: 10px; }
.field--boxes legend span { text-transform: none; letter-spacing: 0; color: var(--ink-2); margin-left: 6px; font-size: 13px; }
.boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.box { position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 10px; cursor: pointer; font-weight: 600; font-size: 16px; line-height: 1.25; border: 1.5px solid transparent; transition: background-color .1s var(--cut); }
.box:hover { background: rgba(255, 91, 79, .14); }
.box input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.box__tick { flex: none; position: relative; width: 26px; height: 26px; border: 2.5px solid var(--ink); background: var(--paper); }
.box input:checked + .box__tick { background: var(--coral); }
.box input:checked + .box__tick::before, .box input:checked + .box__tick::after { content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 3px; background: var(--cobalt); translate: -50% -50%; }
.box input:checked + .box__tick::before { rotate: 45deg; }
.box input:checked + .box__tick::after { rotate: -45deg; }
.box input:checked ~ span:last-child { text-decoration: underline 2px var(--coral); text-underline-offset: 4px; }
.box input:focus-visible + .box__tick { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.box.flash { animation: flash .5s steps(2, end) 2; }
@keyframes flash { 50% { background: var(--coral); } }
.box--extra { grid-column: 1 / -1; }
.field--boxes.has-err .box__tick { border-color: var(--coral-deep); }
.btn--submit { justify-self: start; min-width: 240px; }
.form__small { font-family: var(--type); font-size: 13px; color: var(--ink-2); }

.sent { position: relative; display: grid; gap: 16px; justify-items: start; padding: 30px 0 10px; }
.sent:focus { outline: none; }
.sent__stamp { font-weight: 800; font-stretch: 75%; font-size: clamp(56px, 9vw, 110px); line-height: .9; text-transform: uppercase; color: var(--coral); border: 6px double var(--coral); padding: 6px 18px 0; margin-bottom: 18px; transform: rotate(-7deg); mix-blend-mode: multiply; text-shadow: 3px -2px 0 rgba(36,67,214,.55); }
.sent:not([hidden]) .sent__stamp { animation: stampIn .3s steps(3, end); }
@keyframes stampIn { 0% { transform: rotate(-7deg) scale(1.8); opacity: 0; } 100% { transform: rotate(-7deg) scale(1); opacity: 1; } }
.sent__title { font-weight: 800; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.05; text-transform: uppercase; }
.sent p { font-size: 17px; max-width: 46ch; }
.sent__list { font-family: var(--type); font-size: 15px !important; padding: 8px 12px 6px; border-left: 4px solid var(--coral); background: var(--paper); }

/* ---------- Back cover ---------- */
.back { position: relative; background: var(--cobalt); color: var(--paper-3); overflow: hidden; border-top: 3px solid var(--ink); }
.back::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(23,21,26,.3) 1px, transparent 1.6px) 0 0 / 6px 6px; pointer-events: none; }
.back__inner { position: relative; max-width: var(--max); margin: 0 auto; padding: 70px var(--gut) 90px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
.back__big { font-weight: 800; font-stretch: 75%; font-size: clamp(80px, 13vw, 200px); line-height: .8; text-transform: uppercase; color: var(--coral); text-shadow: .03em -.025em 0 var(--ink); letter-spacing: -.02em; }
.back__col { display: grid; gap: 18px; padding-bottom: 10px; }
.back__colophon { font-family: var(--type); font-size: 15px; line-height: 1.6; max-width: 46ch; }
.back__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.back a { display: inline-flex; align-items: center; min-height: 44px; color: var(--paper-3); font-weight: 700; text-underline-offset: 5px; }
.back a:hover { color: var(--coral); }
.back__credit { font-size: 15px; }
.back__pg { position: absolute; right: var(--gut); top: 24px; font-family: var(--type); font-size: 14px; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 70px 90px; background: #1D0F3A; color: var(--paper-3); background-image: radial-gradient(circle, rgba(255,91,79,.16) 1px, transparent 1.6px); background-size: 6px 6px; }
.lb:not([hidden]) { animation: lbIn .22s steps(3, end); }
@keyframes lbIn { from { clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); } to { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); } }
.lb__stage { display: grid; grid-template-columns: auto minmax(220px, 320px); gap: 40px; align-items: center; max-height: 100%; }
.lb__media { position: relative; height: min(80vh, 760px); aspect-ratio: 9 / 16; background: linear-gradient(150deg, var(--coral), var(--violet) 60%, var(--cobalt)); box-shadow: -8px 8px 0 var(--coral), 8px -8px 0 var(--cobalt); }
.lb__media.is-photo { aspect-ratio: 4 / 5; }
.lb__media video, .lb__media img { width: 100%; height: 100%; object-fit: cover; }
.lb__media.cut { animation: lbCut .24s steps(1, end); }
@keyframes lbCut { 0% { translate: 14px 0; box-shadow: -18px 8px 0 var(--coral), 18px -8px 0 var(--cobalt); } 40% { translate: -6px 0; } 100% { translate: 0 0; } }
.lb__missing { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; font-family: var(--type); font-size: 15px; }
.lb__info { display: grid; gap: 12px; justify-items: start; }
.lb__count { font-family: var(--type); font-size: 14px; letter-spacing: .1em; }
.lb__brand { padding: 2px 8px 0; background: var(--coral); color: var(--ink); font-family: var(--type); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.lb__title { font-weight: 800; font-size: clamp(28px, 3vw, 44px); line-height: 1.02; text-transform: uppercase; letter-spacing: -.01em; }
.lb__cat { font-family: var(--type); font-size: 14px; color: rgba(251,248,240,.85); }
.lb__cta { margin-top: 10px; display: inline-flex; min-height: 44px; align-items: center; color: var(--paper-3); font-weight: 700; text-decoration: underline wavy var(--coral); text-underline-offset: 6px; }
.lb__btn { position: absolute; display: grid; place-items: center; width: 56px; height: 56px; background: var(--paper-3); color: var(--ink); border: 2px solid var(--ink); cursor: pointer; box-shadow: 4px 4px 0 var(--coral); transition: transform .1s var(--cut), box-shadow .1s var(--cut); }
.lb__btn:hover { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--coral); }
.lb__prev { left: 20px; top: 50%; translate: 0 -50%; }
.lb__next { right: 20px; top: 50%; translate: 0 -50%; }
.lb__close { right: 20px; top: 20px; background: var(--coral); box-shadow: 4px 4px 0 var(--paper-3); }

/* ---------- Demo ribbon ---------- */
.ribbon { position: fixed; z-index: 60; left: 18px; bottom: 18px; display: flex; align-items: center; max-width: calc(100% - 36px); background: var(--ink); color: var(--paper-3); transform: rotate(-1.2deg); box-shadow: 3px 3px 0 var(--coral); }
.ribbon[hidden] { display: none; }
.ribbon__link { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 4px 4px 8px; color: inherit; text-decoration: none; font-family: var(--type); font-size: 13px; line-height: 1.25; }
.ribbon__link u { text-decoration-color: var(--coral); text-underline-offset: 3px; }
.ribbon__link:hover u { color: var(--coral); }
.ribbon__tag { padding: 2px 6px 0; background: var(--coral); color: var(--ink); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.ribbon__close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; color: var(--paper-3); cursor: pointer; }
.ribbon__close svg { width: 16px; height: 16px; }
.is-embed .ribbon { display: none; }

/* ---------- Scroll reveals: hard cuts, not fades ---------- */
.js [data-reveal] { opacity: 0; }
.js [data-reveal].is-in { opacity: 1; animation: cutIn .26s steps(1, end); }
@keyframes cutIn {
  0% { opacity: 0; translate: 0 26px; }
  30% { opacity: 1; translate: 6px 8px; }
  65% { translate: -3px 2px; }
  100% { translate: 0 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .mast__nav { display: none; }
  .mast__menu { display: inline-flex; }
  .mast__page { margin-left: auto; }
}
@media (max-width: 1024px) {
  .cover { grid-template-rows: auto auto auto auto; min-height: 0; }
  .overprint { font-size: clamp(64px, 16.5vw, 170px); }
  .cover__title { grid-column: 1 / -1; }
  .cover__body { grid-column: 1 / 8; grid-row: 3; }
  .cover__clip { grid-column: 8 / 13; grid-row: 3; margin-top: 30px; }
  .feed { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 40px 24px; }
  .tile--a { grid-column: 1 / span 3; }
  .tile--b { grid-column: 4 / span 3; margin-top: 90px; }
  .tile--c { grid-column: 1 / span 4; margin-top: 0; }
  .tile--d { grid-column: 5 / span 2; margin-top: 60px; }
  .tile--e { grid-column: 1 / span 3; margin-top: 0; }
  .tile--f { grid-column: 4 / span 3; margin-top: 40px; }
  .page-head--split { grid-template-columns: 1fr; }
  .receipts__grid { grid-template-columns: 1fr; justify-items: start; }
  .receipt-wrap { width: min(100%, 420px); }
  .brands { width: 100%; }
  .collage { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .still--1 { grid-column: 1 / span 4; }
  .still--2 { grid-column: 5 / span 2; margin-top: 60px; }
  .still--3 { grid-column: 1 / span 3; margin-top: 0; }
  .still--4 { grid-column: 4 / span 3; margin-top: 30px; }
  .collage__note { grid-column: 1 / -1; grid-row: auto; margin-top: 10px; }
  .still { grid-row: auto !important; }
  .make__foot { grid-template-columns: 1fr; }
  .memo { max-width: 520px; margin-top: 0; }
  .toc__item { grid-template-columns: 1fr 1fr; grid-template-areas: "head head" "for for" "incl facts" "add add"; }
  .editor { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .editor__cols { columns: 1; }
  .strip { grid-template-columns: 1fr 1fr; }
  .letters__grid { grid-template-columns: 1fr 1fr; }
  .letter--3 { grid-column: 1 / -1; max-width: 560px; justify-self: center; margin-top: 0; }
  .order { grid-template-columns: 1fr; }
  .order__intro { position: static; }
  .back__inner { grid-template-columns: 1fr; }
  .lb { padding: 70px 80px; }
  .lb__stage { grid-template-columns: 1fr; gap: 20px; justify-items: center; text-align: center; }
  .lb__info { justify-items: center; }
  .lb__media { height: min(66vh, 680px); }
}
@media (max-width: 680px) {
  :root { --mast: 56px; }
  body { font-size: 16px; }
  .mast { gap: 12px; }
  .mast__page { display: none; }
  .mast__cta { margin-left: auto; padding: 8px 12px; }
  .mast__cta-long { display: none; }
  .mast__menu { padding: 0 10px; gap: 8px; }
  .mast__logo { font-size: 20px; }
  .crop { display: none; }
  .cover { display: flex; flex-direction: column; min-height: 0; padding-top: calc(var(--mast) + 24px); }
  .cover__issue { font-size: 12px; gap: 4px 14px; }
  .cover__free { margin-left: 0; }
  .cover__title { margin-top: 20px; }
  .overprint { font-size: clamp(64px, 21vw, 120px); }
  .cover__clip { order: 3; width: 74%; align-self: flex-end; margin-top: -34px; margin-right: 4px; }
  .cover__clip .frame { --ar: 4 / 5; }
  .cover__body { order: 4; margin-top: 30px; }
  .cover__handle { display: none; }
  .cover__barcode { order: 5; align-self: flex-start; margin: 26px 0 0; }
  .reg--cover { display: none; }
  .cover__actions .btn { flex: 1 1 200px; }
  .feed, .feed.is-filtered { grid-template-columns: 1fr 1fr; gap: 30px 16px; }
  .feed .tile { grid-column: auto; margin-top: 0; }
  .tile--a { grid-column: 1 / -1 !important; }
  .tile--a .frame { --ar: 4 / 5; --pos: 50% 40%; }
  .tile--c, .tile--e { margin-top: 44px !important; }
  .tile--c .frame { --ar: 3 / 4; }
  .tile--d .frame { --ar: 4 / 5; }
  .feed.is-filtered .tile { margin-top: 0 !important; grid-column: auto !important; }
  .feed.is-filtered .tile .frame { --ar: 9 / 16; }
  .tile__title { font-size: 17px; }
  .tile__cap { margin-top: 14px; }
  .tile__btn .frame { box-shadow: 0 0 0 2px var(--ink), 5px 6px 0 var(--shadow, rgba(36,67,214,.9)); }
  .receipt { padding: 30px 22px 32px; }
  .receipt__items dd, .receipt__total b { font-size: 32px; }
  .brand { padding-left: 0 !important; }
  .collage { grid-template-columns: 1fr 1fr; gap: 26px 16px; }
  .still { grid-column: auto !important; margin-top: 0 !important; }
  .still--1 { grid-column: 1 / -1 !important; width: 88%; }
  .still--2 { margin-top: 0 !important; }
  .still--3 { margin-top: 40px !important; }
  .still__btn { padding: 6px; }
  .still__cap { font-size: 13px; }
  .toc__item { grid-template-columns: 1fr; grid-template-areas: "head" "for" "incl" "facts" "add"; padding: 26px 0 28px; }
  .toc__head { flex-wrap: nowrap; }
  .toc__item--sub { padding: 26px 18px 28px; }
  .extras { margin-top: 50px; box-shadow: -5px 6px 0 var(--cobalt); }
  .extras__list b { display: block; min-width: 0; }
  .strip { grid-template-columns: 1fr; padding: 10px; gap: 10px; }
  .panel { min-height: 0; padding-bottom: 70px; }
  .panel__n { font-size: 84px; }
  .letters__grid { grid-template-columns: 1fr; }
  .editor { grid-template-columns: 1fr; }
  .editor__portrait { max-width: 360px; width: 86%; }
  .letter--2 { margin-top: 0; }
  .form__row--2, .boxes { grid-template-columns: 1fr; }
  .btn--submit { justify-self: stretch; }
  .coupon { padding: 26px 16px 22px; }
  .back__inner { padding-bottom: 110px; }
  .lb { padding: 80px 16px 96px; }
  .lb__stage { gap: 14px; }
  .lb__media { height: min(58vh, 560px); }
  .lb__prev, .lb__next { top: auto; bottom: 18px; translate: none; }
  .lb__prev { left: 16px; }
  .lb__next { right: 16px; }
  .lb__close { right: 16px; top: 12px; }
  .lb__title { font-size: 24px; }
  .lb__cta { margin-top: 0; }
  .ribbon { left: 50%; right: auto; bottom: 12px; transform: translateX(-50%) rotate(-1deg); width: max-content; max-width: calc(100% - 32px); }
  .ribbon__tag { display: none; }
  .ribbon__link { font-size: 12px; white-space: nowrap; padding-left: 12px; }
}

/* Very narrow screens (under 360px): the Contents button ran off the right edge.
   Its word is kept for screen readers and the bars stay as the visible button. */
@media (max-width: 359px) {
  .mast__menu { min-width: 44px; justify-content: center; }
  .mast__menu > span:last-child { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
}

/* ---------- Reduced motion: everything visible, nothing moves on its own ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; }
  .js .overprint.is-loading .overprint__plate--coral { transform: translate(-.035em, .028em); }
  .js .overprint.is-loading .overprint__plate--cobalt { transform: translate(.012em, -.01em); }
}

.nowrap { white-space: nowrap; }
