/* itsybtsy — Aileron for everything you read, Zodiak for the big words; the covers bring the colour. */
@font-face { font-family: 'Zodiak'; src: url(../fonts/zodiak-variable.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Zodiak'; src: url(../fonts/zodiak-variable-italic.woff2) format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Aileron'; src: url(../fonts/aileron-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Aileron'; src: url(../fonts/aileron-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Aileron'; src: url(../fonts/aileron-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Aileron'; src: url(../fonts/aileron-800.woff2) format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --bg: #000000;
  --ink: #f4f4f2;
  --soft: #c8c8c1;
  --line: color-mix(in srgb, var(--ink) 18%, transparent);
  --serif: 'Zodiak', Georgia, serif;
  --sans: 'Aileron', 'Helvetica Neue', Arial, sans-serif;
  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.25rem, 4vw, 3.25rem);
  --step-4: clamp(3.5rem, 11vw, 9.5rem);
  --wrap: min(1120px, 100% - 3rem);
  --ease: cubic-bezier(.2, .8, .2, 1);          /* UI steps */
  --ease-enter: cubic-bezier(.22, 1, .36, 1);   /* things settling in */
  --ease-travel: cubic-bezier(.65, 0, .35, 1);  /* things moving across */
  --m-in: 150ms; --m-out: 120ms; --m-press: 90ms;
  color-scheme: dark;
}
:root[data-theme="light"] { --bg: #ececea; --ink: #121212; --soft: #55554f; color-scheme: light; }
:root[data-tone="issue"] { color-scheme: normal; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; min-height: 100svh;
  background: var(--bg); color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--sans);
  transition: color .45s var(--ease);
  touch-action: manipulation;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 60; background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 1rem; }

/* theme switch: the new theme spreads out from the sun/moon button */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }

/* the colour wash that sweeps across when the issue changes */
.wash { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ---------- chrome: top bar, dock, theme switch, Instagram ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 30;
  height: 72px; padding: 0 1.25rem;
  display: flex; justify-content: space-between; align-items: center;
  pointer-events: none;
}
.top > * { pointer-events: auto; }
/* hide on scroll down, return on scroll up: logo, pill and theme button lift away one after another */
.top > .logo, .top > .dock, .top > .theme {
  transition: opacity .42s var(--ease-enter), transform .5s var(--ease-enter), filter .42s var(--ease-enter), background-color var(--m-out) var(--ease);
}
.top > .dock { transition-delay: 40ms; }
/* once you're past the top, the logo and theme button get the pill's frosted backing so they stay readable over content */
.top > .logo, .top > .theme { backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px); }
.top.is-scrolled > .logo, .top.is-scrolled > .theme {
  background: color-mix(in srgb, var(--bg) 64%, transparent);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px -16px rgb(0 0 0 / .55);
}
.top > .theme { transition-delay: 80ms; }
.top.is-hidden > .logo, .top.is-hidden > .dock, .top.is-hidden > .theme {
  opacity: 0; transform: translateY(-130%) scale(.92); filter: blur(6px); pointer-events: none;
  transition-duration: .32s; transition-timing-function: cubic-bezier(.5, 0, .75, 0);
}
.top.is-hidden > .dock { transition-delay: 30ms; }
.top.is-hidden > .logo, .top.is-hidden > .theme { transition-delay: 0ms; }
@media (prefers-reduced-motion: reduce) {
  .top.is-hidden > .logo, .top.is-hidden > .dock, .top.is-hidden > .theme { transform: none; filter: none; }
}
.logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; transition: transform var(--m-out) var(--ease); }
.mark {
  display: block; width: 28px; height: 34px; background: currentColor;
  -webkit-mask: url(../brand/ib-white.png) center / contain no-repeat;
  mask: url(../brand/ib-white.png) center / contain no-repeat;
}
.dock {
  position: absolute; left: 50%; top: 14px; translate: -50% 0;
  display: flex; padding: 4px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 64%, transparent);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px -16px rgb(0 0 0 / .55);
}
.dock a {
  position: relative; z-index: 1;
  min-height: 40px; display: inline-flex; align-items: center; padding: 0 1rem; border-radius: 999px;
  text-decoration: none; font-size: .875rem; font-weight: 600; letter-spacing: .01em;
  color: color-mix(in srgb, var(--ink) 70%, transparent);
  transition: color var(--m-in) var(--ease);
}
.dock a:hover, .dock a:focus-visible, .dock a.is-lit { color: var(--ink); }
.dock a[aria-current="page"] { color: var(--bg); }
.dock-pill {
  position: absolute; z-index: 0; top: 4px; left: 0; height: 40px; width: 0; border-radius: 999px;
  background: var(--ink);
  transition: transform .42s var(--ease-enter), width .42s var(--ease-enter), background-color .25s var(--ease), opacity .2s;
}
.dock-hover {
  position: absolute; z-index: 0; top: 4px; left: 0; height: 40px; width: 0; border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 12%, transparent); opacity: 0;
  transition: transform .34s var(--ease-enter), width .34s var(--ease-enter), opacity .2s var(--ease);
}

.theme {
  width: 44px; height: 44px; border-radius: 999px; border: 0; cursor: pointer;
  display: grid; place-items: center; background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color var(--m-out) var(--ease), transform var(--m-press) var(--ease);
}
.theme svg { width: 20px; height: 20px; transition: transform .5s var(--ease-enter), opacity .3s var(--ease); }
.theme .sun { position: absolute; }
:root:not([data-theme="light"]) .theme .sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
:root[data-theme="light"] .theme .moon { opacity: 0; transform: rotate(90deg) scale(.5); }
.theme { position: relative; }
.theme:active { transform: scale(.94); }

/* footer pills: Instagram and email, compact, icon first */
.foot-links { display: flex; gap: .5rem; }
.ig {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 40px; padding: 0 .85rem 0 .7rem; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: .8125rem;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform var(--m-out) var(--ease), background-color var(--m-out) var(--ease), color var(--m-out) var(--ease);
}
.ig svg { width: 18px; height: 18px; }

.foot {
  width: var(--wrap); margin: 7rem auto 0; padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 1rem 2rem; align-items: center;
  font-size: var(--step--1); color: var(--soft);
}
.foot nav { justify-self: center; }
.foot .wordmark { width: 64px; aspect-ratio: 530 / 546; background: var(--ink); -webkit-mask: url(../brand/wordmark-white.png) center / contain no-repeat; mask: url(../brand/wordmark-white.png) center / contain no-repeat; }
.foot nav { display: flex; gap: 1.25rem; }
.foot a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s var(--ease), color var(--m-in); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.5rem; border-radius: 999px;
  background: var(--ink); color: var(--bg); border: 0;
  text-decoration: none; font-size: .9375rem; font-weight: 700; letter-spacing: .01em; cursor: pointer;
  transition: transform var(--m-out) var(--ease), background-color var(--m-out) var(--ease), box-shadow var(--m-out) var(--ease);
}
.btn:active { transform: translateY(1px) scale(.985); transition-duration: var(--m-press); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 45%, transparent); }
.btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

/* fine-pointer hovers only; keyboard focus gets the same states via :focus-visible */
@media (hover: hover) and (pointer: fine) {
  .logo:hover { transform: rotate(-8deg) scale(1.06); }
  .theme:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); }
  .ig:hover { transform: translateY(-1px); background: var(--ink); color: var(--bg); }
  .foot a:hover { color: var(--ink); background-size: 100% 1px; }
  .btn:not([aria-disabled="true"]):hover { transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgb(0 0 0 / .6); transition-duration: var(--m-in); }
  .btn.ghost:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); }
}

/* ---------- home: the deck ---------- */
.stage {
  position: relative; min-height: 100svh;
  display: grid; place-items: center;
  padding: 6.5rem 1rem 4.5rem;
  overflow: hidden;
}
.backword {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 400 var(--step-4)/1 var(--serif); letter-spacing: -.01em;
  color: var(--soft); opacity: .45; filter: blur(10px);
  pointer-events: none; user-select: none; white-space: nowrap;
}
.deck-wrap { position: relative; display: grid; justify-items: center; gap: 1.75rem; width: 100%; }
.deck {
  position: relative; touch-action: pan-y;
  height: clamp(300px, calc(100svh - 24rem), 600px);
  aspect-ratio: 1200 / 1553;
  perspective: 1600px;
}
.deck:focus-visible { outline: 2px solid var(--ink); outline-offset: 14px; border-radius: 8px; }
.card {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transition: transform .8s var(--ease-travel), opacity .6s var(--ease), filter .6s var(--ease);
  cursor: pointer;
}
.card .tilt {
  position: absolute; inset: 0; transform-style: preserve-3d; border-radius: 3px;
  transition: transform .5s var(--ease-enter);
  will-change: transform;
}
.card img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 3px;
  box-shadow: 0 30px 60px -28px rgb(0 0 0 / .7), 0 12px 24px -16px rgb(0 0 0 / .45);
}
.card .glare {
  position: absolute; inset: 0; border-radius: 3px; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgb(255 255 255 / .38), rgb(255 255 255 / 0) 55%);
  mix-blend-mode: soft-light; transition: opacity .3s var(--ease);
}
.card.is-tilting .tilt { transition: transform .12s linear; }
.card.is-tilting .glare { opacity: 1; }
.card[data-pos="0"] { transform: none; z-index: 3; }
.card[data-pos="-1"] { transform: translateX(-76%) translateZ(-160px) rotateY(32deg) scale(.86); filter: blur(2.5px) brightness(.6) saturate(.85); z-index: 2; }
.card[data-pos="1"]  { transform: translateX(76%)  translateZ(-160px) rotateY(-32deg) scale(.86); filter: blur(2.5px) brightness(.6) saturate(.85); z-index: 2; }
.card[data-pos="-2"] { transform: translateX(-128%) translateZ(-320px) rotateY(40deg) scale(.74); filter: blur(5px) brightness(.4) saturate(.7); opacity: .9; z-index: 1; }
.card[data-pos="2"]  { transform: translateX(128%)  translateZ(-320px) rotateY(-40deg) scale(.74); filter: blur(5px) brightness(.4) saturate(.7); opacity: .9; z-index: 1; }
.card[data-pos="far"] { transform: translateZ(-500px) scale(.5); opacity: 0; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .card[data-pos="1"]:hover, .card[data-pos="-1"]:hover { filter: blur(0) brightness(.85); }
}
.deck.is-dealing .card { transform: translateZ(-200px) scale(.9) !important; opacity: 0; filter: blur(8px); }

.arrow {
  position: absolute; z-index: 5; top: calc(clamp(300px, calc(100svh - 24rem), 600px) / 2); translate: 0 -50%;
  width: 52px; height: 52px; border-radius: 999px; border: 0; cursor: pointer;
  display: grid; place-items: center; background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color var(--m-out) var(--ease), transform var(--m-out) var(--ease);
}
.arrow svg { width: 22px; height: 22px; transition: transform var(--m-out) var(--ease); }
.arrow:active { transform: scale(.94); }
.arrow.prev { left: max(1rem, calc(50% - clamp(300px, calc(100svh - 24rem), 600px) * .773 - 10rem)); }
.arrow.next { right: max(1rem, calc(50% - clamp(300px, calc(100svh - 24rem), 600px) * .773 - 10rem)); }
@media (hover: hover) and (pointer: fine) {
  .arrow:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); }
  .arrow.prev:hover svg { transform: translateX(-3px); }
  .arrow.next:hover svg { transform: translateX(3px); }
}
.arrow:disabled { opacity: .25; cursor: default; background: transparent; }

.caption { text-align: center; display: grid; justify-items: center; gap: .6rem; }
.caption .c-num { font-weight: 800; font-size: .9375rem; letter-spacing: .02em; }
.caption .c-title { font: 400 clamp(1.5rem, 2.4vw, 2.05rem)/1.12 var(--serif); max-width: 24ch; }
/* the guests line sits between two short rules so it reads as its own line */
.caption .c-feat {
  display: flex; align-items: center; gap: .8rem;
  font-size: .875rem; font-weight: 600; color: color-mix(in srgb, var(--ink) 88%, transparent);
}
.caption .c-feat::before, .caption .c-feat::after { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .55; flex: none; }
.caption .c-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin: .1rem 0 0; padding: 0; list-style: none; }
.caption .c-meta li {
  font-size: .75rem; font-weight: 700; letter-spacing: .02em; color: var(--soft);
  padding: .3rem .65rem; border-radius: 999px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 28%, transparent);
  font-variant-numeric: tabular-nums;
}
.caption .btn { margin-top: .5rem; }
.caption > * { will-change: transform, opacity; }

/* ---------- home: pictures ---------- */
/* a rule with the ib mark in the middle, between the covers and the Showcase */
.divider { width: var(--wrap); margin: 1rem auto 0; display: flex; align-items: center; gap: 1.5rem; color: var(--ink); }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: color-mix(in srgb, var(--ink) 30%, transparent); }
.divider .mark { width: 22px; height: 27px; opacity: .85; }
.pictures { width: var(--wrap); margin: 0 auto; padding-top: 5rem; }
.section-note { display: grid; gap: 1.1rem; padding-bottom: .6rem; }
.section-note p { color: var(--soft); max-width: 44ch; font-size: clamp(1.125rem, 1.6vw, 1.5rem); line-height: 1.45; }
.section-head { display: grid; justify-items: start; gap: 1.5rem; margin-bottom: 2.75rem; }
.section-head h2 { font-size: var(--step-4); line-height: .92; letter-spacing: -.02em; }
.section-head p { color: var(--soft); max-width: 44ch; font-size: clamp(1.125rem, 1.6vw, 1.5rem); line-height: 1.45; padding-bottom: .6rem; }
.wall { columns: 3 260px; column-gap: 14px; }
.wall button {
  display: block; width: 100%; padding: 0; margin: 0 0 14px; border: 0; background: none; cursor: zoom-in;
  break-inside: avoid; border-radius: 3px; overflow: hidden; position: relative;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.wall img { width: 100%; transition: transform .6s var(--ease-enter), filter .4s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .wall button:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -18px rgb(0 0 0 / .6); }
  .wall button:hover img { transform: scale(1.03); }
  .wall:has(button:hover) button:not(:hover) img { filter: brightness(.72) saturate(.8); }
}

.lightbox {
  border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100svh;
  background: rgb(0 0 0 / .94); color: #f4f4f2;
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; grid-template: 1fr auto / 1fr; place-items: center; overscroll-behavior: contain; animation: lb-in .32s var(--ease-enter); }
.lightbox[open] img { animation: lb-img .45s var(--ease-enter); }
@keyframes lb-in { from { opacity: 0; } }
@keyframes lb-img { from { opacity: 0; transform: scale(.96); } }
.lightbox img { max-width: min(92vw, 1100px); max-height: 80svh; width: auto; height: auto; border-radius: 2px; }
.lightbox .bar { display: flex; gap: .5rem; align-items: center; padding: 1rem 1rem max(1.25rem, env(safe-area-inset-bottom)); }
.lightbox .bar button { min-height: 44px; min-width: 44px; padding: 0 1rem; border-radius: 999px; border: 0; background: rgb(255 255 255 / .1); color: inherit; cursor: pointer; font-weight: 600; transition: background-color var(--m-out) var(--ease); }
.lightbox .bar button:hover { background: rgb(255 255 255 / .22); }
.lightbox .bar span { font-variant-numeric: tabular-nums; font-size: var(--step--1); opacity: .7; padding: 0 .5rem; }

/* ---------- inner pages ---------- */
.page { width: var(--wrap); margin: 0 auto; padding-top: 9rem; }
.page-head { display: grid; gap: 1.25rem; margin-bottom: 3.5rem; }
.page-head h1 { font-size: clamp(4.5rem, 15vw, 13rem); line-height: .86; letter-spacing: -.03em; }
.page-head p { color: var(--soft); font-size: 1.125rem; line-height: 1.6; max-width: 52ch; }
.about-head h1 { font-size: clamp(3.5rem, 10vw, 9.5rem); }
@media (min-width: 861px) { .about-head h1 { white-space: nowrap; } }

/* load entrance for inner pages: the headline settles once */
.rise { animation: rise .9s var(--ease-enter) both; }
.rise-2 { animation-delay: .08s; }
.rise-3 { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* issues index */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index li { border-bottom: 1px solid var(--line); }
.index a {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 84px 1fr; gap: 1.75rem; align-items: center;
  padding: 1.1rem 1rem; margin: 0 -1rem; border-radius: 8px;
  text-decoration: none;
  transition: color .3s var(--ease);
}
.index a::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--row-bg);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .5s var(--ease-enter);
}
.index .thumb { position: relative; perspective: 600px; }
.index img { width: 84px; aspect-ratio: 1200 / 1553; object-fit: cover; border-radius: 2px; box-shadow: 0 10px 20px -12px rgb(0 0 0 / .7); transition: transform .5s var(--ease-enter); }
.index .num { font-weight: 800; font-size: .875rem; letter-spacing: .02em; }
.index .ttl { font: 400 var(--step-2)/1.15 var(--serif); margin: .25rem 0 .35rem; max-width: 30ch; }
.index .guests { color: var(--soft); font-size: .9375rem; transition: color .3s; }
/* date | genre | pages, on one line split by thin vertical rules */
.index .meta { display: flex; flex-wrap: wrap; align-items: center; margin-top: .55rem; color: var(--soft); font-size: var(--step--1); font-weight: 600; font-variant-numeric: tabular-nums; transition: color .3s; }
.index .meta span + span { border-left: 1px solid currentColor; margin-left: .75rem; padding-left: .75rem; }
.index .meta span { line-height: 1.1; }
.index .go { display: inline-block; margin-left: .4rem; opacity: 0; transform: translateX(-6px); transition: opacity .25s var(--ease), transform .35s var(--ease-enter); }
.index a:focus-visible::before { transform: scaleX(1); }
.index a:focus-visible { color: var(--row-ink); }
/* on touch screens, the row under the finger gets the same colour pop as a hovered row */
.index a { transition: color .3s var(--ease), opacity .3s var(--ease); }
.index a.is-lit { color: var(--row-ink); }
.index a.is-lit::before { transform: scaleX(1); }
.index a.is-lit .guests, .index a.is-lit .meta { color: var(--row-soft); }
.index a.is-lit img { transform: translateY(-3px) rotateY(-14deg) rotateZ(-2deg) scale(1.06); }
.index a.is-lit .go { opacity: 1; transform: none; }
.index:has(a.is-lit) a:not(.is-lit) { opacity: .55; }
@media (hover: hover) and (pointer: fine) {
  .index a:hover { color: var(--row-ink); }
  .index a:hover::before { transform: scaleX(1); }
  .index a:hover .guests, .index a:hover .meta { color: var(--row-soft); }
  .index a:hover img { transform: translateY(-3px) rotateY(-14deg) rotateZ(-2deg) scale(1.06); }
  .index a:hover .go { opacity: 1; transform: none; }
  .index:has(a:hover) a:not(:hover) { opacity: .55; }
}

/* reader */
.reader-body { overflow: hidden; height: 100svh; }
.reader { height: 100svh; display: grid; grid-template-rows: auto 1fr auto; }
.reader-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; }
.reader-top a { text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-size: .9375rem; font-weight: 600; }
.reader-top h1 { font: 800 .9375rem/1.3 var(--sans); letter-spacing: .02em; text-align: center; }
.reader-top h1 span { display: block; font: 400 1rem/1.3 var(--serif); letter-spacing: 0; color: var(--soft); }
.spread { position: relative; display: flex; justify-content: center; align-items: center; padding: 0 4.5rem; min-height: 0; touch-action: pan-y; perspective: 2000px; }
.spread .pages { display: flex; height: 100%; max-height: calc(100svh - 9.5rem); align-items: center; justify-content: center; }
.spread img { height: 100%; width: auto; max-width: 100%; object-fit: contain; background: color-mix(in srgb, var(--ink) 6%, transparent); box-shadow: 0 30px 60px -30px rgb(0 0 0 / .6); }
.spread .pages.two img { max-width: 50%; }
.spread .pages.two img:first-child { border-radius: 3px 0 0 3px; }
.spread .pages.two img:last-child { border-radius: 0 3px 3px 0; }
.spread .pages.one img { border-radius: 3px; }
/* light passing over the paper as a page comes in, and the fold down the middle of a spread */
.spread .pages { position: relative; }
.pages .sheen {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; border-radius: 3px;
  background: linear-gradient(105deg, transparent 38%, rgb(255 255 255 / .16) 47%, rgb(255 255 255 / .26) 50%, rgb(255 255 255 / .16) 53%, transparent 62%) 100% 0 / 260% 100% no-repeat;
}
.spread .pages.two::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 7%; translate: -50% 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgb(0 0 0 / .14) 44%, rgb(0 0 0 / .22) 50%, rgb(0 0 0 / .14) 56%, transparent);
}
.reader .arrow { top: 50%; }
.reader .arrow.prev { left: 1rem; }
.reader .arrow.next { right: 1rem; }
.reader-bottom { display: flex; justify-content: center; align-items: center; gap: 1.25rem; padding: .9rem 1rem max(1rem, env(safe-area-inset-bottom)); font-size: var(--step--1); color: var(--soft); }
.reader-bottom output { font-variant-numeric: tabular-nums; min-width: 9ch; text-align: center; }
.reader-bottom a { color: var(--ink); text-underline-offset: 3px; font-weight: 600; }
.scrub { width: min(320px, 40vw); accent-color: var(--ink); }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.about figure { margin: 0; position: sticky; top: 7rem; overflow: hidden; border-radius: 3px; }
.about figure img { width: 100%; filter: grayscale(1) contrast(1.05); transition: filter .8s var(--ease), transform 1.2s var(--ease-enter); }
@media (hover: hover) and (pointer: fine) { .about figure:hover img { filter: grayscale(0); transform: scale(1.02); } }
.about .story { display: grid; gap: 1.25rem; font-size: 1.125rem; line-height: 1.7; max-width: 34em; color: color-mix(in srgb, var(--ink) 86%, transparent); }
.about .story p:first-child { font: 400 var(--step-2)/1.3 var(--serif); color: var(--ink); }
.about h2 { font-size: var(--step-3); margin: 5rem 0 2rem; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 28px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.timeline li a { display: grid; grid-template-columns: 56px 1fr; gap: 1.25rem; align-items: center; padding: .75rem 0; text-decoration: none; }
.timeline img { width: 56px; aspect-ratio: 1200 / 1553; object-fit: cover; border-radius: 2px; position: relative; transition: transform .45s var(--ease-enter), box-shadow .3s var(--ease); }
.timeline time { display: block; font-size: var(--step--1); color: var(--soft); font-variant-numeric: tabular-nums; }
.timeline .t-num { font-weight: 800; font-size: .9375rem; letter-spacing: .02em; }
.timeline .who { font-size: .9375rem; color: var(--soft); }
@media (hover: hover) and (pointer: fine) {
  .timeline a:hover img { transform: scale(1.14) rotate(-3deg); box-shadow: 0 12px 24px -12px rgb(0 0 0 / .7); }
  .timeline a:hover .t-num { text-decoration: underline; text-underline-offset: 3px; }
}

/* shop */
.product { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 4.5vw, 4rem); align-items: start; max-width: 980px; margin-inline: auto; }
/* shop gallery: an 8.5 × 11 cover, then a carousel of photos underneath */
.gallery { display: grid; gap: 14px; min-width: 0; }
.g-main { position: relative; aspect-ratio: 8.5 / 11; border-radius: 4px; overflow: hidden; background: color-mix(in srgb, var(--ink) 7%, transparent); }
.g-main img { width: 100%; height: 100%; object-fit: cover; }
.slot {
  display: grid; place-items: center; align-content: center; gap: .4rem; text-align: center;
  width: 100%; height: 100%; padding: 1.5rem;
  border-radius: inherit; color: var(--soft); font-size: .875rem;
  background:
    repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 5%, transparent) 0 12px, transparent 12px 24px),
    color-mix(in srgb, var(--ink) 4%, transparent);
  box-shadow: inset 0 0 0 1px var(--line);
}
.slot strong { font: 400 clamp(1.4rem, 2.6vw, 2.1rem)/1.1 var(--serif); color: var(--ink); }
.g-strip { position: relative; }
.g-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 30px) / 4); gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  padding: 2px; position: relative;
}
.g-track::-webkit-scrollbar { display: none; }
.g-track button {
  scroll-snap-align: start; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: 3px; overflow: hidden; cursor: pointer;
  background: none; position: relative; transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.g-track button img { width: 100%; height: 100%; object-fit: cover; }
.g-track button[aria-current="true"] { box-shadow: 0 0 0 2px var(--ink); }
.g-track .slot { font-size: .75rem; padding: .5rem; }
.g-track .slot strong { font-size: clamp(.875rem, 3.6vw, 1.75rem); }
.g-nav { display: flex; justify-content: space-between; align-items: center; margin-top: .6rem; font-size: var(--step--1); color: var(--soft); }
.g-nav div { display: flex; gap: .4rem; }
.g-nav button { width: 40px; height: 40px; border-radius: 999px; border: 0; cursor: pointer; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; transition: background-color var(--m-out) var(--ease); }
.g-nav button svg { width: 18px; height: 18px; }
.g-nav button:disabled { opacity: .3; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .g-track button:hover { transform: translateY(-2px); }
  .g-nav button:not(:disabled):hover { background: color-mix(in srgb, var(--ink) 10%, transparent); }
}

/* shop: the buying panel */
.buy { position: sticky; top: 7rem; display: grid; gap: 1.4rem; align-content: start; }
.buy h1 { font-size: clamp(2rem, 3.2vw, 2.75rem); line-height: 1; }
.buy .price { font-weight: 800; font-size: 1.125rem; font-variant-numeric: tabular-nums; margin-top: -.8rem; }
.buy > p { color: var(--soft); font-size: .9375rem; line-height: 1.6; max-width: 44ch; }
.buy .btn { min-height: 46px; padding-inline: 1.4rem; font-size: .875rem; }
/* print details: a colophon-style list, label left and value right, split by hairlines */
/* collapsed by default: a single hairline row that opens to show the list */
.specs { border-block: 1px solid var(--line); interpolate-size: allow-keywords; }
.more { display: grid; }
.how .note a, .how p a[href="#policy"] { color: var(--ink); text-underline-offset: 2px; white-space: nowrap; }
/* shop fine print: pre-orders and refunds, set small at the bottom of the page like a magazine's small print */
/* lives in the shop footer: a full-width first row under the footer's top line, above the wordmark */
.foot:has(.policy) { padding-top: 0; }
.policy {
  grid-column: 1 / -1; margin-bottom: 1rem; scroll-margin-top: 6rem;
  border-bottom: 1px solid var(--line); interpolate-size: allow-keywords;
}
.policy h2 { color: var(--ink); }
.foot .policy dd a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; background: none; }
.policy summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; cursor: pointer; list-style: none; }
.policy summary::-webkit-details-marker { display: none; }
.policy h2 { font: 700 .875rem/1.4 var(--sans); margin: 0; }
.policy summary svg { width: 18px; height: 18px; flex: none; color: var(--soft); transition: transform .3s var(--ease); }
.policy[open] summary svg { transform: rotate(180deg); }
.policy summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
@media (hover: hover) and (pointer: fine) { .policy summary:hover svg { color: var(--ink); } }
.policy::details-content { block-size: 0; overflow: clip; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
.policy[open]::details-content { block-size: auto; }
@media (prefers-reduced-motion: reduce) { .policy::details-content, .policy summary svg { transition: none; } }
.policy dl { margin: .5rem 0 1.75rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.policy dt { font-weight: 700; font-size: .8125rem; color: var(--ink); margin-bottom: .35rem; }
.policy dd { margin: 0; font-size: .8125rem; line-height: 1.6; color: var(--soft); }
.policy dd a { color: var(--ink); text-underline-offset: 2px; }
@media (max-width: 860px) { .policy dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .policy dl { grid-template-columns: 1fr; gap: 1.1rem; } }
@media (prefers-reduced-motion: no-preference) { html:has(.policy) { scroll-behavior: smooth; } }
.more > .specs + .specs { border-top: 0; }
.specs dd a { color: var(--ink); text-underline-offset: 2px; }
/* pre-order status under the price: a small outlined label, then the ship date */
.buy .preorder { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin-top: -.6rem; font-size: .875rem; color: var(--soft); }
.buy .preorder b {
  font-weight: 700; font-size: .75rem; letter-spacing: .02em; color: var(--ink);
  padding: .2rem .6rem; border-radius: 999px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 45%, transparent);
}
.specs summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 48px; cursor: pointer; list-style: none;
  font: 700 .875rem/1.4 var(--sans); color: var(--ink);
}
.specs summary::-webkit-details-marker { display: none; }
.specs summary svg { width: 18px; height: 18px; flex: none; color: var(--soft); transition: transform .3s var(--ease); }
.specs[open] summary svg { transform: rotate(180deg); }
.specs summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
@media (hover: hover) and (pointer: fine) { .specs summary:hover svg { color: var(--ink); } }
.specs::details-content { block-size: 0; overflow: clip; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
.specs[open]::details-content { block-size: auto; }
@media (prefers-reduced-motion: reduce) { .specs::details-content, .specs summary svg { transition: none; } }
.specs dl { margin: 0 0 .5rem; }
.specs dl > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--line); font-size: .875rem; line-height: 1.45; }
.specs dt { color: var(--soft); }
.specs dd { margin: 0; color: var(--ink); }
.choice { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: .6rem; }
.choice legend { float: left; width: 100%; padding: 0; margin: 0 0 .6rem; font-weight: 700; font-size: .875rem; }
.choice legend + * { clear: both; }
.option {
  display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; row-gap: .3rem; align-items: start;
  padding: .9rem 1.1rem; border-radius: 12px; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .2s var(--ease), background-color .2s var(--ease), transform var(--m-out) var(--ease);
}
.option:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.option:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.option input { grid-row: 1 / span 2; margin: .2rem 0 0; width: 18px; height: 18px; accent-color: var(--ink); }
.option strong { font-weight: 700; font-size: .9375rem; }
.option span { grid-column: 2; color: var(--soft); font-size: .875rem; line-height: 1.5; }
@media (hover: hover) and (pointer: fine) { .option:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); transform: translateY(-1px); } }
.how { display: grid; gap: 1rem; }
.how[hidden] { display: none; }
.how p, .how li { color: var(--soft); font-size: .875rem; line-height: 1.6; }
.how .btn { justify-self: start; }
.buy .ordered { max-width: none; }
.ordered { padding: .9rem 1rem; border-radius: 10px; font-size: .875rem; line-height: 1.55; color: var(--soft); box-shadow: inset 0 0 0 2px var(--ink); }
.ordered b { display: block; color: var(--ink); font-size: .9375rem; }
.ordered[hidden] { display: none; }
.steps { margin: 0; padding-left: 1.3rem; display: grid; gap: 1.2rem; }
.steps li { padding-left: .3rem; }
.steps li::marker { font-weight: 800; color: var(--ink); }
.steps li > * + * { margin-top: .75rem; }
.place { display: grid; gap: .2rem; padding: .85rem 1rem; border-radius: 10px; background: color-mix(in srgb, var(--ink) 6%, transparent); font-size: .875rem; color: var(--soft); }
.place strong { color: var(--ink); font-weight: 700; }
.note { font-size: var(--step--1); color: var(--soft); }
.how-in { animation: how-in .45s var(--ease-enter); }
@keyframes how-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- guests: a pack to rip, and trading cards that glow in their issue's colour ---------- */
/* overflow-x: clip keeps the flash and flying shards from widening the page on phones (which shifted the header) */
.rip-stage { display: grid; justify-items: center; gap: 1.6rem; padding: 1rem 0 2rem; text-align: center; overflow-x: clip; }
.rip-head { display: grid; gap: .5rem; justify-items: center; min-height: 6.5rem; }
.rip-head h2 { font: 400 clamp(2.2rem, 5vw, 3.6rem)/1 var(--serif); letter-spacing: -.015em; }
.rip-head p { color: var(--soft); font-size: .9375rem; }
/* the pack and the card share one spot; the pack sets the size until it's torn off, then the card does */
.rip-area { position: relative; width: min(320px, 82vw); display: grid; }
.rip-area > .pack, .rip-area > .gcard { grid-area: 1 / 1; }
.rip-area > .gcard { align-self: center; }

/* the pack */
.pack {
  position: relative; width: 100%; aspect-ratio: 5 / 8; z-index: 3; cursor: grab; touch-action: pan-y; outline: none;
  filter: drop-shadow(0 30px 40px rgb(0 0 0 / .55));
  animation: pack-shake 2.8s var(--ease) 1.2s infinite;
}
.pack.is-dragging { animation: none; cursor: grabbing; }
.pack:focus-visible { outline: 2px solid var(--ink); outline-offset: 10px; border-radius: 12px; }
@keyframes pack-shake {
  0%, 62%, 100% { transform: none; }
  66% { transform: rotate(-3deg) translateX(-4px); }
  70% { transform: rotate(3deg) translateX(4px); }
  74% { transform: rotate(-2.5deg) translateX(-3px); }
  78% { transform: rotate(2deg) translateX(2px); }
  82% { transform: rotate(-1deg); }
}
.pack-part {
  position: absolute; left: 0; right: 0; overflow: hidden;
  background:
    linear-gradient(115deg, transparent 30%, rgb(255 255 255 / .16) 45%, transparent 60%) var(--sheen, 0%) 0 / 300% 100%,
    linear-gradient(160deg, #2c2c2c 0%, #0d0d0d 38%, #3b3b3b 62%, #121212 100%);
  background-attachment: local;
  animation: pack-sheen 3.6s linear infinite;
}
@keyframes pack-sheen { from { background-position: 150% 0, 0 0; } to { background-position: -150% 0, 0 0; } }
/* the top strip is drawn twice: the part still sealed (left) and the part already torn (right).
   --p (0 to 1) is how far the tear has run, from the right edge toward the left. */
.pack-top { top: 0; height: 17%; border-radius: 10px 10px 2px 2px; z-index: 2; clip-path: inset(0 calc(var(--p, 0) * 100%) 0 0); }
.pack-flap {
  top: 0; height: 17%; border-radius: 10px 10px 0 0; z-index: 4;
  clip-path: inset(0 0 0 calc((1 - var(--p, 0)) * 100%));
  transform-origin: calc((1 - var(--p, 0)) * 100%) 100%;
  will-change: transform;
}
/* a ragged foil edge where the strip has come away, on both the strip and the pack below it */
.pack-flap::after, .pack-body::before {
  content: ''; position: absolute; left: 0; right: 0; height: 5px; pointer-events: none;
  background: linear-gradient(135deg, transparent 45%, #c9c9c3 45% 60%, transparent 60%) 0 0 / 7px 5px repeat-x;
}
.pack-flap::after { bottom: -1px; }
.pack-body::before { top: -1px; z-index: 1; clip-path: inset(0 0 0 calc((1 - var(--p, 0)) * 100%)); transform: scaleY(-1); }
.pack-body { top: 17%; bottom: 0; border-radius: 2px 2px 10px 10px; }
/* heat-sealed crimp at the top and bottom edges */
.pack-top::before, .pack-flap::before, .pack-body::after {
  content: ''; position: absolute; left: 0; right: 0; height: 18px;
  background: repeating-linear-gradient(90deg, rgb(255 255 255 / .14) 0 2px, transparent 2px 6px);
}
.pack-top::before, .pack-flap::before { top: 0; }
.pack-body::after { bottom: 0; }
/* the tear line */
.pack-top::after {
  content: ''; position: absolute; left: 6%; right: 6%; bottom: 0; height: 0;
  border-bottom: 2px dashed rgb(255 255 255 / calc(.35 + var(--p, 0) * .65));
}
/* what's printed on the pack: a faint black-and-white collage of guests, the seven issue colours, a stuck-on sticker */
.pack-art {
  position: absolute; inset: 22px 16px 34%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  opacity: .55; mix-blend-mode: screen; border-radius: 4px; overflow: hidden;
}
.pack-art img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.25) brightness(.8); }
.pack-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, #0d0d0d); }
.pack-bands { position: absolute; left: 16px; right: 16px; bottom: 30%; height: 10px; display: flex; border-radius: 2px; overflow: hidden; }
.pack-bands i { flex: 1; }
/* the wordmark sits centred in the space below the colour bands */
.pack-body .wordmark {
  position: absolute; left: 50%; bottom: calc(15% + 9px); translate: -50% 50%; width: 26%; max-width: 110px; aspect-ratio: 530 / 546; background: #f4f4f2; opacity: .9;
  -webkit-mask: url(../brand/wordmark-white.png) center / contain no-repeat; mask: url(../brand/wordmark-white.png) center / contain no-repeat;
}
.pack-grip { opacity: calc(1 - var(--p, 0) * 5); position: absolute; left: 50%; top: 8.5%; translate: -50% -50%; font-size: .75rem; font-weight: 700; color: rgb(255 255 255 / .75); z-index: 3; pointer-events: none; white-space: nowrap; }
.shard { position: fixed; z-index: 40; width: 14px; height: 9px; background: linear-gradient(135deg, #4a4a4a, #151515); pointer-events: none; clip-path: polygon(0 20%, 100% 0, 85% 100%, 10% 80%); }
.rip-flash { position: absolute; inset: -40%; z-index: 1; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, var(--c) 0%, transparent 62%); opacity: 0; }

/* guest card: a print on its issue's colour stock, with a white-bordered photo, a strip of tape and a tear-off stub */
.gcard { --c: #555; --ci: #fff; --cs: color-mix(in srgb, var(--ci) 72%, var(--c)); width: 100%; perspective: 1200px; }
.gflip { position: relative; width: 100%; transform-style: preserve-3d; }
.gface, .gback { border-radius: 12px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.gface {
  position: relative; min-height: 100%; display: flex; flex-direction: column; isolation: isolate;
  padding: 14px 14px 0; text-align: left; color: var(--ci);
  /* a faint paper grain over the issue colour */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"),
    var(--c);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 22px 40px -22px rgb(0 0 0 / .9);
  transition: transform .5s var(--ease-enter);
}
.gcard.is-tilting .gface { transition: transform .1s linear; }
/* translucent tape holding the card at the top */
.gtape {
  position: absolute; z-index: 4; top: -11px; left: 50%; width: 88px; height: 24px; translate: -50% 0; rotate: var(--tape, -3deg);
  background: rgb(236 234 226 / .5); box-shadow: 0 1px 2px rgb(0 0 0 / .25); pointer-events: none;
  clip-path: polygon(0 8%, 4% 0, 8% 10%, 12% 0, 100% 0, 96% 10%, 100% 22%, 96% 40%, 100% 60%, 96% 78%, 100% 100%, 0 100%, 4% 82%, 0 64%, 4% 44%, 0 26%);
  -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px);
}
.gmeta { display: flex; justify-content: space-between; gap: 1rem; padding: 2px 2px 10px; font-size: .6875rem; font-weight: 700; color: var(--cs); font-variant-numeric: tabular-nums; }
/* the photo, printed with a white border */
.gprint { margin: 0; padding: 6px; background: #fbfbf8; border-radius: 3px; box-shadow: 0 2px 6px -2px rgb(0 0 0 / .45); }
.gart { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 1px; background: color-mix(in srgb, var(--c) 70%, #000); }
.gart img { width: 100%; height: 100%; object-fit: cover; }
.gart .ph { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: .3rem; color: var(--ci); }
.gart .ph b { font: 400 clamp(3.5rem, 9vw, 5rem)/1 var(--serif); opacity: .9; }
.gart .ph span { font-size: .6875rem; font-weight: 700; opacity: .75; }
.gbody { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; padding: 16px 4px 0; }
.gbody h3 { font: 400 clamp(1.6rem, 3vw, 1.95rem)/1 var(--serif); letter-spacing: -.012em; color: var(--ci); }
.gbody .passion { margin-top: -.25rem; font-size: .8125rem; font-weight: 600; line-height: 1.4; color: var(--cs); }
/* types, printed like small rubber stamps */
.gtypes { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; padding: 0; }
.gtypes li { font-size: .6875rem; font-weight: 700; padding: .12rem .45rem; border-radius: 3px; color: var(--ci); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ci) 55%, transparent); }
.gbody blockquote { margin: .2rem 0 0; font: italic 400 .9375rem/1.45 var(--serif); color: var(--ci); }
/* the tear-off stub: a perforated line, then where to read more */
.gstub {
  align-self: stretch; margin: auto -18px 0; padding: .95rem 18px 1rem; margin-top: auto;
  border-top: 1.5px dashed color-mix(in srgb, var(--ci) 45%, transparent);
  font-size: .8125rem; font-weight: 700; color: var(--ci); text-decoration: none;
  text-underline-offset: 3px;
}
.gbody > .gstub { margin-top: auto; }
.gstub:hover, .gstub:focus-visible { text-decoration: underline; }
.gstub:focus-visible { outline: 2px solid var(--ci); outline-offset: -6px; border-radius: 0 0 12px 12px; }
/* card back: the same stock, a printed border and the ib mark */
.gback { position: absolute; inset: 0; transform: rotateY(180deg); display: grid; place-items: center;
  background: var(--c); box-shadow: inset 0 0 0 8px var(--c), inset 0 0 0 9.5px color-mix(in srgb, var(--ci) 50%, transparent); }
.gback .mark { width: 34%; height: auto; aspect-ratio: 497 / 600; color: var(--ci); opacity: .8; }
.rip-area .gcard { position: relative; z-index: 2; }
.rip-area .gcard[hidden] { display: none; }
.after-rip { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; min-height: 48px; }
.after-rip[hidden] { display: none; }

/* every guest, shown after the pack is opened */
.all-guests { margin-top: 4rem; }
.all-guests[hidden] { display: none; }
.all-guests h2 { font-size: var(--step-3); margin-bottom: 2rem; }
.card-grid { list-style: none; margin: 0; padding: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 48px 28px; }
.card-grid li { display: grid; }
.card-grid .gcard, .card-grid .gflip { height: 100%; }
.card-grid .gface { display: flex; flex-direction: column; height: 100%; }
.card-grid .gbody blockquote { font-size: .875rem; }
/* pinned up slightly crooked, like prints on a wall; picking one up straightens it */
.card-grid .gcard { rotate: var(--r, 0deg); transition: rotate .45s var(--ease-enter), translate .45s var(--ease-enter); }
.card-grid .gcard:focus-within { rotate: 0deg; translate: 0 -6px; }
@media (hover: hover) and (pointer: fine) { .card-grid .gcard:hover { rotate: 0deg; translate: 0 -6px; } }
.card-grid .gcard.is-lit { rotate: 0deg; translate: 0 -6px; }
@media (prefers-reduced-motion: reduce) { .card-grid .gcard { transition: none; } }

/* touch screens can't hover, so a little life runs on its own (only when motion is welcome):
   the front cover drifts and catches the light, the pulled card sways in your hand,
   and the prints on the wall swing gently from their tape, each at its own pace */
@property --gx { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
@property --gy { syntax: '<percentage>'; inherits: true; initial-value: 30%; }
@media (hover: none) and (prefers-reduced-motion: no-preference) {
  .card[data-pos="0"]:not(.is-tilting) .tilt { animation: cover-float 8s ease-in-out infinite; }
  .card[data-pos="0"]:not(.is-tilting) .glare { opacity: .85; animation: glare-drift 8s ease-in-out infinite; }
  .rip-area .gcard:not(.is-tilting) .gface { animation: card-hold 6.5s ease-in-out infinite; }
  .card-grid .gface { transform-origin: 50% 0; animation: print-sway 6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -1.3s); }
  .card-grid .gcard.is-lit .gface { animation-play-state: paused; }
}
@keyframes cover-float {
  0%, 100% { transform: rotateY(-6deg) rotateX(3deg) translateZ(12px); }
  25% { transform: rotateY(1deg) rotateX(-3deg) translateZ(20px) translateY(-4px); }
  50% { transform: rotateY(6deg) rotateX(2deg) translateZ(12px); }
  75% { transform: rotateY(-1deg) rotateX(4deg) translateZ(20px) translateY(-4px); }
}
@keyframes glare-drift {
  0%, 100% { --gx: 22%; --gy: 30%; }
  25% { --gx: 55%; --gy: 70%; }
  50% { --gx: 80%; --gy: 35%; }
  75% { --gx: 45%; --gy: 20%; }
}
@keyframes card-hold {
  0%, 100% { transform: rotateY(-5deg) rotateX(2deg); }
  50% { transform: rotateY(5deg) rotateX(-2deg) translateY(-6px); }
}
@keyframes print-sway {
  0%, 100% { transform: rotate(-.9deg); }
  50% { transform: rotate(.9deg); }
}
/* the pulled card sits a touch crooked too */
.rip-area .gcard { rotate: -1.5deg; }

/* phones: floating pre-order bar, the same frosted pill as the top menu */
.buybar { display: none; }
@media (max-width: 860px) {
  .buybar {
    position: fixed; z-index: 29; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom));
    width: min(calc(100% - 1.5rem), 440px);
    display: flex; align-items: center; gap: 6px; padding: 5px 5px 5px 1.1rem; border-radius: 999px;
    background: color-mix(in srgb, var(--bg) 64%, transparent);
    backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
    box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px -16px rgb(0 0 0 / .55);
    translate: -50% calc(100% + 28px); opacity: 0;
    transition: translate .45s var(--ease-enter), opacity .3s var(--ease);
  }
  .buybar.is-on { translate: -50% 0; opacity: 1; }
  .buybar p { margin: 0 auto 0 0; display: grid; line-height: 1.25; font-size: .75rem; color: var(--soft); min-width: 0; }
  .buybar b { color: var(--ink); font-size: .9375rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .buybar .btn { min-height: 44px; padding: 0 1rem; font-size: .875rem; white-space: nowrap; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .foot { grid-template-columns: auto 1fr; }
  .foot nav { justify-self: end; }
  .about, .product { grid-template-columns: 1fr; }
  .product { max-width: 560px; gap: 2.25rem; }
  .gallery { width: min(100%, 400px); justify-self: center; }
  .about figure, .buy { position: static; }
  .about figure { max-width: 420px; }
  .index a { grid-template-columns: 64px 1fr; gap: 1rem; }
  .index img { width: 64px; }
  .section-head { display: grid; }
}
@media (max-width: 640px) {
  :root { --wrap: calc(100% - 2.25rem); }
  .top { padding: 0 .75rem; height: 64px; }
  .dock { top: 10px; }
  .dock a { padding: 0 .7rem; font-size: .8125rem; }
  .logo, .theme { width: 40px; height: 40px; }
  .mark { width: 24px; height: 29px; }
  .stage { padding-top: 5.5rem; }
  .deck { height: clamp(260px, calc(100svh - 25rem), 480px); }
  .card[data-pos="-1"] { transform: translateX(-58%) translateZ(-160px) rotateY(30deg) scale(.82); }
  .card[data-pos="1"]  { transform: translateX(58%)  translateZ(-160px) rotateY(-30deg) scale(.82); }
  .card[data-pos="-2"], .card[data-pos="2"] { opacity: 0; }
  .arrow { width: 44px; height: 44px; top: calc(clamp(260px, calc(100svh - 25rem), 480px) / 2); background: color-mix(in srgb, var(--bg) 50%, transparent); }
  .arrow.prev { left: .25rem; }
  .arrow.next { right: .25rem; }
  .dock a { padding: 0 .55rem; font-size: .75rem; }
  .g-track { grid-auto-columns: calc((100% - 30px) / 4); }
  .gallery { width: 82%; }
  .buy { gap: 1.2rem; }
  .buy h1 { font-size: 2rem; }
  .dex-grid { grid-template-columns: 1fr; }
  .pictures .section-head h2 { font-size: clamp(3rem, 18vw, 5.5rem); }
  .section-note p { font-size: 1.125rem; }
  .wall { columns: 2; column-gap: 8px; }
  .wall button { margin-bottom: 8px; }
  .spread { padding: 0 .5rem; }
  .reader .arrow { display: none; }
  .scrub { width: 40vw; }
  .page { padding-top: 7.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
}
