/* PEZ Crazy — one stylesheet, mobile first.
   1 tokens · 2 base · 3 layout · 4 pieces · 5 home · 6 shelf page · 7 dating guide · 8 footer */

/* 1 · TOKENS ------------------------------------------------------------ */
:root {
  --ink: #1E1B3A;
  --cream: #FFF7E8;
  --paper: #FFFFFF;
  --yellow: #FFC93C;
  --red: #E8364F;
  --red-deep: #B3213A;
  --mint: #A9E5D3;
  --teal: #7FD8BE;
  --pink: #FF8FB1;
  --orange: #FF7A1A;
  --lilac: #B79CED;
  --rule: #E6DCC6;
  --on-ink-muted: #D9D3E8;
  --on-ink-rule: #4A4670;

  --display: 'Bowlby One', Impact, 'Arial Black', sans-serif;
  --body: 'Figtree', 'Trebuchet MS', Verdana, sans-serif;

  --stroke: 4px;
  --radius: 24px;
  --gutter: 1.5rem;
  --section: clamp(3.5rem, 8vw, 6rem);

  /* seasonal hero (everyday) */
  --hero-bg: var(--yellow);
  --hero-fg: var(--ink);
  --hero-accent: var(--red);
  --hero-btn-bg: var(--ink);
  --hero-btn-fg: var(--cream);
}
[data-season="valentines"]   { --hero-bg: #FF8FB1; --hero-accent: #E8364F; }
[data-season="easter"]       { --hero-bg: #A9E5D3; --hero-accent: #FFC93C; }
[data-season="halloween"]    { --hero-bg: #5B2A86; --hero-fg: var(--cream); --hero-accent: #FF7A1A; --hero-btn-bg: var(--yellow); --hero-btn-fg: var(--ink); }
[data-season="thanksgiving"] { --hero-bg: #E8A33D; --hero-accent: #B5451B; }
[data-season="christmas"]    { --hero-bg: #C8102E; --hero-fg: var(--cream); --hero-accent: #1F7A4D; --hero-btn-bg: var(--yellow); --hero-btn-fg: var(--ink); }

/* 2 · BASE -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.55 var(--body); color: var(--ink); background: var(--cream); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
a { color: inherit; }
a:hover { opacity: 0.75; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 1.5rem; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: 0.75rem 1rem; background: var(--ink); color: var(--cream); border-radius: 999px; font-weight: 700; }
.skip-link:focus { top: 1rem; }

.h-xxl, .h-xl, .h-lg, .h-md, .hero__title { font-family: var(--display); font-weight: 400; line-height: 1.05; text-wrap: balance; }
.h-xxl { font-size: clamp(2.375rem, 1.3rem + 4.6vw, 4.75rem); letter-spacing: -0.01em; }
.h-xl  { font-size: clamp(2.375rem, 1.6rem + 3.2vw, 4rem); }
.h-lg  { font-size: clamp(1.75rem, 1.2rem + 2.3vw, 3rem); }
.h-md  { font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.5rem); }
.lede { margin-top: 1rem; max-width: 46rem; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.5; text-wrap: pretty; }
.lede--after { margin-top: 2.5rem; }
.eyebrow { margin-bottom: 0.75rem; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.fineprint { max-width: 35rem; font-size: 1rem; line-height: 1.55; }
.fineprint--strong { font-weight: 600; }
.fineprint--wide { max-width: 54rem; margin-top: 1.5rem; }
.section--ink .fineprint { color: var(--on-ink-muted); }

.c-yellow { color: var(--yellow); } .c-pink { color: var(--pink); } .c-teal { color: var(--teal); }
.c-orange { color: var(--orange); } .c-lilac { color: var(--lilac); } .c-red-deep { color: var(--red-deep); }

/* 3 · LAYOUT ------------------------------------------------------------ */
.wrap { width: min(100% - 2 * var(--gutter), 78rem); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--tight { padding-top: clamp(2rem, 4vw, 3.5rem); }
.section--ink { background: var(--ink); color: var(--cream); }
.section--yellow { background: var(--yellow); }
.section--mint { background: var(--mint); }

/* 4 · PIECES ------------------------------------------------------------ */
.pill { display: inline-block; padding: 0.3rem 0.9rem; border: 3px solid currentColor; border-radius: 999px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.pill--small { padding: 0.05rem 0.55rem; border-width: 2px; font-size: 0.6875rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.5rem; padding: 0 1.75rem; border: 0; border-radius: 999px; background: var(--ink); color: var(--cream); font-weight: 700; font-size: 1.0625rem; text-decoration: none; }
.btn--hero { background: var(--hero-btn-bg); color: var(--hero-btn-fg); min-height: 3.75rem; padding-inline: 2rem; }
.btn--small { min-height: 3rem; padding-inline: 1.25rem; font-size: 0.9375rem; }
.btn--outline { background: transparent; color: var(--ink); border: 3px solid var(--ink); min-height: 3rem; padding-inline: 1.375rem; font-size: 1rem; }
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.text-link { display: inline-block; padding-block: 0.75rem; font-weight: 700; font-size: 1.0625rem; }
.icon-btn { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border: 3px solid var(--ink); border-radius: 999px; background: var(--paper); }
.icon-btn:disabled { opacity: 0.4; cursor: default; }

/* photo slot: shows a hatched placeholder naming the missing file until the image exists */
.photo { position: relative; overflow: hidden; background: repeating-linear-gradient(135deg, #FFFFFF 0 14px, #F3EAD6 14px 28px); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo__hint { display: none; position: absolute; inset: 0; place-items: center; padding: 1rem; text-align: center; }
.photo__hint::before { content: none; }
.photo.is-missing img { display: none; }
.photo.is-missing .photo__hint { display: grid; }
.photo.is-missing .photo__hint { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.photo--framed { border: var(--stroke) solid var(--ink); border-radius: var(--radius); aspect-ratio: 5 / 4; }

/* a shelf: photo sitting on a drawn shelf lip */
.shelf { display: block; text-decoration: none; --lip: var(--red); }
.shelf--yellow { --lip: var(--yellow); } .shelf--teal { --lip: var(--teal); } .shelf--pink { --lip: var(--pink); }
.shelf--orange { --lip: var(--orange); } .shelf--lilac { --lip: var(--lilac); } .shelf--red { --lip: var(--red); }
.shelf__photo { border: var(--stroke) solid var(--ink); border-bottom: 0; border-radius: 18px 18px 0 0; aspect-ratio: 21 / 8; }
.shelf__lip { height: 16px; margin-inline: -8px; border-radius: 6px; background: var(--ink); box-shadow: 0 7px 0 var(--lip); }
.shelf__meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; padding-top: 1.25rem; font-weight: 700; }
.shelf__name { font-size: 1.125rem; }
.shelf__go { font-size: 0.9375rem; text-decoration: underline; white-space: nowrap; }
.shelf:hover { opacity: 1; }
.shelf:hover .shelf__go { opacity: 0.7; }

.callout { margin-top: 1.75rem; padding: 1.25rem 1.5rem; border: var(--stroke) solid var(--ink); border-radius: 20px; background: var(--yellow); }
.callout--paper { margin-top: 0; background: var(--paper); }
.callout h3 { font-size: 1.1875rem; }
.callout p { margin-top: 0.375rem; max-width: 62rem; font-size: 1rem; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; min-height: 4rem; }
.nav__brand { font-family: var(--display); font-size: 1.5rem; text-decoration: none; letter-spacing: 0.02em; }
.nav__toggle { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 3px solid currentColor; border-radius: 999px; background: transparent; }
.nav__links { display: none; flex-basis: 100%; flex-direction: column; padding-bottom: 1rem; }
.nav__links.is-open { display: flex; }
.nav__links a { display: flex; align-items: center; gap: 0.625rem; padding-block: 0.75rem; font-weight: 600; text-decoration: none; }
.nav__links a[aria-current] { font-weight: 700; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* inner-page header band */
.page-head { background: var(--yellow); }
.page-head__body { padding-block: 1.5rem clamp(2.5rem, 5vw, 4.5rem); }
.page-head__body .pill { margin-bottom: 1rem; }
.crumbs { margin-bottom: 0.75rem; font-weight: 600; font-size: 0.9375rem; }
.pager { display: flex; gap: 0.75rem; margin-top: 1.5rem; }

/* 5 · HOME -------------------------------------------------------------- */
.hero { background: var(--hero-bg); color: var(--hero-fg); overflow: hidden; }
.hero__body { display: grid; gap: 2.5rem; padding-block: 1.25rem 3.5rem; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.hero__title { font-size: clamp(2.375rem, 1.35rem + 4.4vw, 4.25rem); letter-spacing: -0.01em; }
.hero__lede { max-width: 36rem; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem); line-height: 1.5; text-wrap: pretty; }
.hero__actions { display: flex; flex-direction: column; align-self: stretch; align-items: center; gap: 0.25rem; margin-top: 0.5rem; }
.hero__actions .btn { align-self: stretch; }
.hero__art { position: relative; justify-self: center; width: min(100%, 31.25rem); padding: 1rem 0.5rem 1rem 1.5rem; }
.hero__art::before { content: ""; position: absolute; right: -4rem; top: 12%; width: 88%; aspect-ratio: 1; border-radius: 50%; background: var(--hero-accent); }
.hero__photo { aspect-ratio: 25 / 26; border: 5px solid var(--ink); border-radius: 28px; box-shadow: 12px 12px 0 var(--ink); transform: rotate(3deg); }
.sticker { position: absolute; left: 0; bottom: 0; display: grid; place-content: center; gap: 0.125rem; width: clamp(7.25rem, 30%, 9.75rem); aspect-ratio: 1; padding: 0.75rem; border: var(--stroke) solid var(--ink); border-radius: 50%; background: var(--cream); color: var(--ink); text-align: center; transform: rotate(-12deg); }
.sticker__kicker { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.25; }
.sticker__label { font-family: var(--display); font-size: clamp(0.875rem, 0.7rem + 0.6vw, 1.125rem); line-height: 1.1; }

.stats { background: var(--ink); color: var(--cream); padding-block: 1.5rem; }
.stats__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; }
.stats__grid div { display: flex; flex-direction: column-reverse; }
.stats__grid dt { font-size: 0.875rem; font-weight: 600; }
.stats__grid dd { font-family: var(--display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.2; }

.shelf-stack { display: grid; gap: 1.75rem; margin-top: 2.5rem; }
.boxsets { margin-top: clamp(3rem, 6vw, 4.5rem); }
.boxset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1.75rem; margin-top: 2rem; }
.boxset-grid .shelf:first-child { grid-column: span 2; }
.boxset-grid .shelf__photo { aspect-ratio: 8 / 5; }
.boxset-grid .shelf:first-child .shelf__photo { aspect-ratio: 21 / 8; }
.boxset-grid .shelf__lip { margin-inline: -6px; }

.dating { display: grid; gap: 3rem; }
.stem { display: none; }
.dating__foot { display: grid; gap: 0.5rem; margin-top: 1.5rem; }

.later { display: grid; gap: 2rem; }
.later__copy { display: flex; flex-direction: column; align-items: flex-start; }
.later__copy .pill { margin-bottom: 1rem; }
.signup { align-self: stretch; margin-top: 1.5rem; }
.signup label { display: block; margin-bottom: 0.5rem; font-size: 0.9375rem; font-weight: 700; }
.signup__row { display: grid; gap: 0.75rem; }
.signup input { width: 100%; min-height: 3.5rem; padding: 0 1.375rem; border: var(--stroke) solid var(--ink); border-radius: 999px; background: var(--paper); }
.later__cards { display: grid; gap: 0.875rem; align-content: center; }
.later__cards li { padding: 1rem 1.25rem; border: 3px solid var(--ink); border-radius: 18px; background: var(--cream); box-shadow: 5px 5px 0 var(--ink); font-size: 0.9375rem; line-height: 1.45; }
.later__cards strong { display: block; font-size: 1.125rem; }

.holders__head { display: grid; gap: 0.5rem; }
.holder-grid { display: grid; gap: 1.25rem; margin-top: 2rem; }
.holder { display: flex; flex-direction: column; overflow: hidden; border: var(--stroke) solid var(--ink); border-radius: var(--radius); background: var(--paper); }
.holder .photo { aspect-ratio: 5 / 3; border-bottom: var(--stroke) solid var(--ink); }
.holder__body { display: flex; flex-direction: column; align-items: stretch; gap: 0.375rem; padding: 1.125rem 1.25rem 1.25rem; }
.holder__body h3 { font-size: 1.25rem; }
.holder__body p { font-size: 0.9375rem; }
.holder__body .btn { margin-top: 0.5rem; }
.holders__foot { display: grid; gap: 1rem; margin-top: 1.75rem; }

/* patent tables: stacked rows on phones, real columns from 46rem up */
.patent-table { width: 100%; margin-top: 1.75rem; border-collapse: separate; border-spacing: 0; border: var(--stroke) solid var(--ink); border-radius: 20px; overflow: hidden; background: var(--paper); text-align: left; }
.patent-table, .patent-table thead, .patent-table tbody { display: block; }
.patent-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.patent-table tr { display: grid; grid-template-columns: auto 1fr; gap: 0.125rem 0.75rem; align-items: baseline; padding: 0.875rem 1.125rem; border-top: 2px solid var(--rule); }
.patent-table tbody tr:first-child { border-top: 0; }
.patent-table th[scope="row"] { font-family: var(--display); font-weight: 400; font-size: 1.1875rem; }
.patent-table td { font-size: 0.9375rem; }
.patent-table--dark { border: 3px solid var(--cream); background: transparent; }
.patent-table--dark tr { border-top-color: var(--on-ink-rule); }
.patent-table--dark td:nth-child(2) { justify-self: end; font-weight: 700; }
.patent-table--dark td:nth-child(3) { grid-column: 2; justify-self: end; }
.patent-table--full tr { grid-template-columns: auto auto 1fr; }
.patent-table--full th[scope="row"] { font-size: 1.375rem; color: var(--red-deep); }
.patent-table--full [data-col="number"] { font-size: 1rem; font-weight: 700; }
.patent-table--full [data-col="issued"] { display: none; }
.patent-table--full [data-col="years"] { justify-self: end; font-size: 1rem; font-weight: 700; }
.patent-table--full [data-col="note"] { grid-column: 1 / -1; font-size: 0.875rem; line-height: 1.45; }
.patent-table--country tr { grid-template-columns: 1fr; }
.patent-table--country th[scope="row"] { font-family: var(--body); font-weight: 700; font-size: 1rem; }
.patent-table--country [data-col="years"] { font-size: 1rem; font-weight: 700; color: var(--red-deep); }
.patent-table--country [data-col="note"] { font-size: 0.875rem; line-height: 1.45; }

/* 6 · SHELF PAGE -------------------------------------------------------- */
.viewer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; margin-bottom: 1.25rem; }
.viewer__hint { font-weight: 600; }
.viewer__controls { display: flex; align-items: center; gap: 0.625rem; }
.viewer__level { min-width: 3.5rem; text-align: right; font-weight: 700; }
.viewer__stage { overflow: hidden; border: var(--stroke) solid var(--ink); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; background: var(--paper); touch-action: pan-y pinch-zoom; }
.viewer__stage.is-zoomed { cursor: grab; touch-action: none; }
.viewer__stage.is-dragging { cursor: grabbing; }
.viewer__layer { position: relative; transform-origin: 0 0; transition: transform 0.4s ease; will-change: transform; }
.is-dragging .viewer__layer { transition: none; }
.viewer__photo { aspect-ratio: 4 / 3; }
.viewer__photo img { user-select: none; -webkit-user-drag: none; }
.pin { position: absolute; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin: -1.375rem 0 0 -1.375rem; padding: 0; border: 3px solid var(--ink); border-radius: 50%; background: var(--yellow); color: var(--ink); font-family: var(--display); font-size: 1.125rem; box-shadow: 3px 3px 0 var(--ink); transform: scale(var(--pin-scale, 1)); transition: transform 0.4s ease; }

.highlights { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.highlight-grid { display: grid; gap: 1rem; margin-top: 1.5rem; }
.highlight { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; align-items: center; padding: 1.125rem 1.25rem; border: var(--stroke) solid var(--ink); border-radius: 20px; background: var(--paper); }
.highlight__n { grid-row: span 2; display: grid; place-items: center; width: 3rem; height: 3rem; border: 3px solid var(--ink); border-radius: 50%; background: var(--yellow); font-family: var(--display); font-size: 1.25rem; }
.highlight h3 { font-size: 1.125rem; }
.highlight p { font-size: 0.9375rem; line-height: 1.45; }
.highlight .btn { grid-column: 2; justify-self: start; margin-top: 0.5rem; min-height: 2.75rem; }

.detail-grid { display: grid; gap: 1.25rem; margin-top: 2rem; }
.walk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1.75rem; margin-top: 2rem; }
.walk .shelf__photo { aspect-ratio: 2 / 1; border-radius: 16px 16px 0 0; }
.walk .shelf__lip { height: 14px; box-shadow: none; }
.walk .shelf__meta { padding-top: 0.875rem; }
.walk .shelf[aria-current] .shelf__photo { outline: var(--stroke) solid var(--red); outline-offset: 3px; }

/* 7 · DATING GUIDE ------------------------------------------------------ */
.jump { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 1.5rem; }
.jump a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; border: 3px solid var(--ink); border-radius: 999px; font-size: 0.9375rem; font-weight: 700; text-decoration: none; }
.jump a.is-solid { background: var(--ink); color: var(--cream); }

.step { display: flex; align-items: center; gap: 0.875rem; }
.step__n { flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--ink); color: var(--yellow); font-size: 1.25rem; }
.step--invert .step__n { background: var(--yellow); color: var(--ink); }

.feet-grid { display: grid; gap: 1rem; margin-top: 2rem; }
.feet-card { display: flex; align-items: center; gap: 1.25rem; padding: 1.125rem 1.25rem; border: var(--stroke) solid var(--ink); border-radius: 20px; background: var(--paper); }
.feet-card h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); }
.feet-card__when { font-weight: 700; }
.feet-card p:last-child { margin-top: 0.25rem; font-size: 0.9375rem; line-height: 1.45; }
.base { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; width: 6rem; height: 6.875rem; border-bottom: var(--stroke) solid var(--ink); }
.base__stem { width: 3.125rem; flex: 1; margin-top: 1.25rem; border: var(--stroke) solid var(--ink); border-bottom: 0; background: var(--red); }
.base__feet { width: 5.375rem; height: 0.875rem; border: var(--stroke) solid var(--ink); border-bottom: 0; border-radius: 5px 5px 0 0; background: var(--red); }

.imc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-block: 2rem 1.5rem; }
.imc-grid div { display: flex; align-items: center; gap: 0.75rem; min-height: 4.75rem; padding: 0.5rem 0.875rem; border: 3px solid var(--cream); border-radius: 16px; }
.imc-grid dt { font-family: var(--display); font-size: clamp(1.75rem, 1.5rem + 0.8vw, 2.25rem); line-height: 1; }
.imc-grid dd { font-size: 0.875rem; font-weight: 600; line-height: 1.25; }

.example-grid { display: grid; gap: 1.25rem; margin-top: 2rem; }
.example { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.25rem; border: var(--stroke) solid var(--ink); border-radius: 20px; background: var(--cream); box-shadow: 6px 6px 0 var(--ink); font-size: 0.9375rem; line-height: 1.5; }
.example__clues { font-size: 1rem; font-weight: 700; }
.example__answer { font-family: var(--display); font-size: clamp(1.75rem, 1.5rem + 0.8vw, 2.125rem); line-height: 1.1; color: var(--red-deep); }
.sources { margin-block: 1.5rem; font-size: 0.9375rem; }
.sources ul { margin-top: 0.375rem; padding-left: 1.25rem; }
.callout--paper + p, .sources + p { margin-top: 2rem; }

/* 8 · FOOTER ------------------------------------------------------------ */
.footer { padding-block: 3rem; background: var(--ink); color: var(--cream); }
.footer__inner { display: grid; gap: 1.5rem; }
.footer__brand { font-family: var(--display); font-size: 1.625rem; }
.footer__legal { margin-top: 1rem; max-width: 35rem; font-size: 0.875rem; line-height: 1.6; color: var(--on-ink-muted); }
.footer__links a { display: inline-block; padding-block: 0.625rem; font-weight: 600; text-decoration: none; }

/* ≥ 46rem (736px): tablets and up ---------------------------------------- */
@media (min-width: 46rem) {
  :root { --gutter: 3rem; }
  .hero__actions { flex-direction: row; align-self: auto; gap: 1.75rem; }
  .hero__actions .btn { align-self: auto; }
  .stats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats__grid div { flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: 0.75rem; }
  .stats__grid dt { font-size: 1rem; }
  .stats { padding-block: 2.25rem; }
  .shelf__lip { height: 18px; margin-inline: -16px; box-shadow: 0 8px 0 var(--lip); }
  .shelf__photo { border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 28 / 5; }
  .shelf__name { font-size: 1.25rem; }
  .shelf__go { font-size: 1.0625rem; }
  .boxset-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem 2.5rem; }
  .boxset-grid .shelf__photo, .boxset-grid .shelf:first-child .shelf__photo { aspect-ratio: auto; height: 11.25rem; }
  .boxset-grid .shelf__lip { margin-inline: -12px; }
  .signup__row { grid-template-columns: 1fr auto; }
  .holder-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
  .holder__body .btn { align-self: flex-start; }
  .holders__foot { grid-template-columns: 1fr auto; align-items: center; }
  .dating__foot { grid-template-columns: 1fr auto; align-items: center; gap: 2.5rem; }

  .patent-table thead { position: static; width: auto; height: auto; clip-path: none; }
  .patent-table tr { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 1rem; min-height: 3.5rem; padding: 0.5rem 1.75rem; }
  .patent-table thead tr { min-height: 3rem; border-top: 0; background: var(--ink); color: var(--cream); }
  .patent-table thead th { font-size: 0.8125rem; letter-spacing: 0.07em; text-transform: uppercase; }
  .patent-table tbody tr:first-child { border-top: 0; }
  .patent-table th[scope="row"] { font-size: 1.375rem; }
  .patent-table td, .patent-table--full [data-col="years"], .patent-table--full [data-col="number"], .patent-table--country [data-col="years"] { font-size: 1.0625rem; justify-self: start; }
  .patent-table--dark thead tr { background: var(--cream); color: var(--ink); }
  .patent-table--dark td:nth-child(2), .patent-table--dark td:nth-child(3) { grid-column: auto; justify-self: start; font-weight: 400; }
  .patent-table--full tr { grid-template-columns: 4.5rem 9.5rem 5rem 10.5rem 1fr; min-height: 4.5rem; }
  .patent-table--full th[scope="row"] { font-size: 1.5rem; }
  .patent-table--full [data-col="issued"] { display: block; }
  .patent-table--full [data-col="years"] { font-weight: 400; }
  .patent-table--full [data-col="note"], .patent-table--country [data-col="note"] { grid-column: auto; font-size: 0.9375rem; }
  .patent-table--country tr { grid-template-columns: 17.5rem 15rem 1fr; min-height: 4rem; }
  .patent-table--country th[scope="row"] { font-size: 1.0625rem; }
  .patent-table--country [data-col="years"] { color: inherit; font-weight: 400; }

  .viewer__photo { aspect-ratio: 1248 / 560; }
  .highlight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
  .highlight { grid-template-columns: auto 1fr auto; }
  .highlight__n { grid-row: span 2; }
  .highlight .btn { grid-column: 3; grid-row: 1 / span 2; margin-top: 0; }
  .detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
  .walk { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2rem; }
  .walk .shelf__meta { font-size: 1rem; }
  .feet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
  .feet-card { gap: 2rem; padding: 1.75rem 2rem; }
  .base { width: 11.25rem; height: 10.625rem; border-bottom-width: 5px; }
  .base__stem { width: 5.25rem; border-width: 5px; }
  .base__feet { width: 8.75rem; height: 1.125rem; border-width: 5px; }
  .imc-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
  .imc-grid div { min-height: 6.25rem; padding-inline: 1.25rem; gap: 1rem; }
  .imc-grid dd { font-size: 1rem; }
  .example-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
  .example { padding: 1.75rem; box-shadow: 8px 8px 0 var(--ink); }
  .footer { padding-block: 4rem; }
  .footer__inner { grid-template-columns: 1fr auto auto; gap: 5rem; }
}

/* ≥ 64rem (1024px): desktop ----------------------------------------------- */
@media (min-width: 64rem) {
  :root { --gutter: 6rem; }
  .nav { min-height: 5.5rem; flex-wrap: nowrap; }
  .nav__brand { font-size: 1.875rem; }
  .nav__toggle { display: none; }
  .nav__links { display: flex; flex-basis: auto; flex-direction: row; align-items: center; gap: 2.5rem; padding: 0; }
  .hero__body { grid-template-columns: minmax(0, 40rem) 1fr; align-items: center; gap: 4.5rem; padding-block: 3.5rem 5.5rem; }
  .hero__copy { gap: 1.75rem; }
  .hero__art { justify-self: end; padding: 1.5rem 1.5rem 1.5rem 3rem; }
  .later { grid-template-columns: minmax(0, 37.5rem) 1fr; gap: 5rem; align-items: center; }
  .later__cards { gap: 1rem; }
  .later__cards li { padding: 1.375rem 1.75rem; border-width: var(--stroke); border-radius: 20px; box-shadow: 6px 6px 0 var(--ink); font-size: 1rem; }
  .later__cards li:nth-child(odd) { transform: rotate(-1deg); }
  .later__cards li:nth-child(even) { transform: rotate(1deg); }
  .later__cards strong { font-size: 1.25rem; }
  .holders__head { grid-template-columns: 1fr minmax(0, 30rem); align-items: end; gap: 4rem; }
  .dating { grid-template-columns: 17.5rem 1fr; gap: 6rem; align-items: center; }
  .guide-patent { display: grid; grid-template-columns: 15rem 1fr; gap: 4rem; align-items: start; }
  .stem { display: flex; flex-direction: column; align-items: center; color: var(--cream); }
  .guide-patent .stem { padding-top: 8.75rem; }
  .stem--light { color: var(--ink); }
  .stem__head { width: 10.625rem; height: 9.375rem; border: 5px solid currentColor; border-radius: 28px 28px 12px 12px; background: repeating-linear-gradient(135deg, #FFFFFF 0 14px, #F3EAD6 14px 28px); }
  .stem__body { display: grid; place-items: center; width: 7.5rem; height: 29.375rem; border: 5px solid currentColor; border-top: 0; background: var(--red); }
  .stem__body span { writing-mode: vertical-rl; padding: 0.875rem 0.375rem; border: 2px dashed var(--yellow); border-radius: 8px; color: var(--cream); font-size: 1.0625rem; font-weight: 700; letter-spacing: 0.18em; }
  .stem__feet { width: 11rem; height: 1.375rem; border: 5px solid currentColor; border-radius: 6px; background: var(--red); }
  .stem__caption { margin-top: 1.5rem; font-size: 0.9375rem; font-weight: 600; text-align: center; color: var(--yellow); }
  .stem--light .stem__caption { color: var(--ink); }
  .page-head__body--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 4rem; }
  .pager { flex: none; margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .viewer__layer, .pin { transition: none; }
}
