/* Weyers.app · v5 "Jazz club" · shared stylesheet
   Plain CSS, system fonts only, no external assets. */

:root {
  color-scheme: light dark;

  /* ---- Light: cream sleeve, tobacco ink, deep teal, brass-orange ---- */
  --paper:      #F3E7CF;   /* page */
  --paper-2:    #E9D9B8;   /* recessed strips, footer */
  --card:       #FBF3E1;   /* tiles */
  --ink:        #2A1B12;   /* headings, body */
  --ink-2:      #5B4130;   /* secondary text (tobacco) */
  --teal:       #0F4C5C;   /* primary colour block + links */
  --brass:      #D9741E;   /* accent fill (never small text on paper) */
  --rust:       #9A4408;   /* accent as text on paper */
  --line:       #2A1B12;   /* printed outlines */
  --edge:       #CDB98F;   /* quiet dividers */
  --shadow:     #2A1B12;   /* hard offset shadow */
  --focus:      #9A4408;

  --cta-bg:     #0F4C5C;
  --cta-fg:     #FBF3E1;
  --cta-tab:    #D9741E;
  --cta-tab-fg: #2A1B12;

  --block-a:    #0F4C5C;   /* cut-paper teal */
  --block-b:    #D9741E;   /* cut-paper brass */
  --on-block-a: #F3E7CF;
  --on-block-b: #2A1B12;
  --lamp:       #D9741E;
  --lamp-glow:  transparent;

  /* icon inks */
  --ic-a: var(--teal);
  --ic-b: var(--brass);
  --ic-p: var(--card);
  --seal: var(--teal);

  --hover-tint: #FFF9EA;
  --press-tint: #F1E3C4;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .17 0 0 0 0 .11 0 0 0 0 .07 0 0 0 .5 -.14'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");

  /* ---- Type ---- */
  --f-display: "Avenir Next Condensed", "HelveticaNeue-CondensedBold", "Helvetica Neue Condensed", "Arial Narrow", "Roboto Condensed", "Franklin Gothic Medium Cond", "Segoe UI", system-ui, sans-serif;
  --f-body: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, ui-serif, serif;

  /* ---- Rhythm (4px base) ---- */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --gutter: clamp(16px, 5vw, 40px);
  --radius: 6px;
  --drop: 5px;             /* depth of the hard shadow / press travel */
}

@media (prefers-color-scheme: dark) {
  :root {
    /* ---- Dark: smoky midnight blue, amber lamp-glow ---- */
    --paper:      #111B2E;
    --paper-2:    #0C1424;
    --card:       #1B2942;
    --ink:        #F4E6C8;
    --ink-2:      #B9AE99;
    --teal:       #6CC3CC;
    --brass:      #F2A33A;
    --rust:       #F2A33A;
    --line:       #05090F;
    --edge:       #33435F;
    --shadow:     #05090F;
    --focus:      #F2A33A;

    --cta-bg:     #F2A33A;
    --cta-fg:     #111B2E;
    --cta-tab:    #111B2E;
    --cta-tab-fg: #F2A33A;

    --block-a:    #17606F;
    --block-b:    #F2A33A;
    --on-block-a: #F4E6C8;
    --on-block-b: #111B2E;
    --lamp:       #F2A33A;
    --lamp-glow:  rgba(242, 163, 58, .38);

    --ic-a: var(--ink);
    --ic-b: var(--brass);
    --ic-p: var(--paper);
    --seal: var(--brass);

    --hover-tint: #22324F;
    --press-tint: #162238;

    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .72 0 0 0 .34 -.12'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--paper);
  background-image: var(--grain);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
@media (prefers-color-scheme: dark) {
  body {
    background-image:
      var(--grain),
      radial-gradient(90vmax 70vmax at 88% -12%, rgba(242, 163, 58, .17), transparent 62%),
      radial-gradient(70vmax 60vmax at -10% 110%, rgba(23, 96, 111, .28), transparent 60%);
    background-attachment: scroll, fixed, fixed;
  }
}
a { color: inherit; }
svg { display: block; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* icon ink classes (two-colour screenprint: A = key ink, B = spot colour, P = paper knock-out) */
.ia { fill: var(--ic-a); } .ib { fill: var(--ic-b); } .ip { fill: var(--ic-p); }
.sa, .sb, .sp { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sa { stroke: var(--ic-a); } .sb { stroke: var(--ic-b); } .sp { stroke: var(--ic-p); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 4px; }

.page {
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100dvh;
  max-width: 1180px; margin: 0 auto;
  padding:
    max(var(--s3), env(safe-area-inset-top))
    max(var(--gutter), env(safe-area-inset-right))
    max(var(--s4), env(safe-area-inset-bottom))
    max(var(--gutter), env(safe-area-inset-left));
}

/* ---------- Labels ---------- */
.label, .strip, .kicker, .go, .tile-no, .foot {
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  line-height: 1.2;
}

/* ---------- Top strip (sleeve header) ---------- */
.strip {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  min-height: 52px;
  border-bottom: 3px solid var(--ink);
  position: relative;
  color: var(--ink);
}
.strip::after { /* double rule, like a record-label keyline */
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 1px; background: var(--ink); opacity: .55;
}
.strip-r { color: var(--ink-2); text-align: right; }
.strip-r b { color: var(--rust); font-weight: 700; }

.back {
  display: inline-flex; align-items: center; gap: var(--s2);
  min-height: 44px; padding: 0 var(--s4) 0 var(--s3);
  margin: var(--s1) 0 calc(var(--s1) + 3px);
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--shadow);
  transition: transform .09s ease-out, box-shadow .09s ease-out, background-color .15s;
}
.back svg { width: 18px; height: 18px; fill: var(--rust); transition: transform .15s ease-out; }
.back:hover { background: var(--hover-tint); }
.back:hover svg { transform: translateX(-3px); }
.back:active { transform: translateY(3px); box-shadow: 0 0 0 var(--shadow); background: var(--press-tint); }
@media (prefers-color-scheme: dark) { .back { border-color: var(--edge); } }

/* ---------- Tactile press ---------- */
.press {
  box-shadow: var(--drop) var(--drop) 0 var(--shadow);
  transition: transform .09s ease-out, box-shadow .09s ease-out, background-color .15s ease-out;
  will-change: transform;
}
@media (hover: hover) {
  .press:hover { transform: translate(-1px, -1px); box-shadow: calc(var(--drop) + 1px) calc(var(--drop) + 1px) 0 var(--shadow); }
}
.press:active {
  transform: translate(calc(var(--drop) - 1px), calc(var(--drop) - 1px));
  box-shadow: 1px 1px 0 var(--shadow);
  transition-duration: .04s;
}

/* ---------- Cut-paper shapes + halftone ---------- */
.cut { position: absolute; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .18)) drop-shadow(0 8px 14px rgba(0, 0, 0, .12)); }
.cut > i { display: block; width: 100%; height: 100%; }
.dots {
  position: absolute;
  background-image: radial-gradient(circle, var(--ink) 1.3px, transparent 1.75px);
  background-size: 9px 9px;
  opacity: .5;
  -webkit-mask-image: linear-gradient(120deg, #000 10%, transparent 78%);
          mask-image: linear-gradient(120deg, #000 10%, transparent 78%);
}

/* =====================================================
   HOME: the record sleeve
   ===================================================== */
.cover {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s5);
  align-content: start;
  padding-top: var(--s6);
}
.cover-art {
  position: relative;
  height: clamp(190px, 52vw, 300px);
  isolation: isolate;
}
.cover-art .cut-teal { inset: 0 6% 4% 0; transform: rotate(-1.6deg); }
.cover-art .cut-teal > i { background: var(--block-a); clip-path: polygon(0 3%, 38% 0, 100% 5%, 98% 58%, 100% 96%, 61% 100%, 3% 97%, 1% 44%); }
.cover-art .cut-brass { right: 0; top: 30%; width: 34%; height: 70%; transform: rotate(3deg); }
.cover-art .cut-brass > i { background: var(--block-b); clip-path: polygon(4% 0, 100% 6%, 96% 100%, 0 94%); }
.cover-art .lamp {
  position: absolute; right: 14%; top: -7%;
  width: clamp(84px, 24vw, 132px); aspect-ratio: 1; border-radius: 50%;
  background: var(--lamp);
  box-shadow: 0 0 0 10px var(--block-a), 0 0 70px 24px var(--lamp-glow);
}
.cover-art .lamp::after { /* record spindle / lamp filament ring */
  content: ""; position: absolute; inset: 41%; border-radius: 50%; background: var(--block-a);
}
.cover-art .dots { left: -3%; bottom: -8%; width: 46%; height: 52%; z-index: 2; }
@media (prefers-color-scheme: dark) { .cover-art .dots { background-image: radial-gradient(circle, var(--brass) 1.3px, transparent 1.75px); opacity: .55; } }
.bone {
  position: absolute; left: 5%; top: 50%; width: 82%; height: auto;
  transform: translateY(-46%) rotate(-7deg);
  z-index: 3;
  --ic-a: var(--on-block-a);
  --ic-b: var(--brass);
  overflow: visible;
}
.slide { transition: transform .32s cubic-bezier(.3, .7, .2, 1); }
.cover:has(.ticket:hover) .bone .slide,
.cover:has(.ticket:focus-visible) .bone .slide { transform: translateX(12px); }
.cover:has(.ticket:active) .bone .slide { transform: translateX(20px); transition-duration: .12s; }

.cover-text { display: grid; gap: var(--s4); min-width: 0; }
.kicker { color: var(--rust); display: flex; align-items: center; gap: var(--s3); margin: 0; }
.kicker::after { content: ""; flex: 1; height: 2px; background: currentColor; opacity: .45; }

.wordmark { margin: 0; line-height: 0; }
.wordmark svg { width: 100%; height: auto; overflow: visible; }
.wordmark text {
  font-family: var(--f-display); font-weight: 800; font-size: 172px; letter-spacing: 0;
}
.wm-under { fill: var(--brass); }
.wm-over { fill: var(--ink); }

.tag {
  margin: 0; max-width: 34ch;
  font-size: clamp(1.1rem, 2.6vw, 1.35rem); line-height: 1.4; color: var(--ink-2);
  font-style: italic;
}
.tag b { font-style: normal; font-weight: 600; color: var(--ink); }

/* The Games entry: an admission ticket */
.ticket {
  --drop: 7px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: stretch;
  margin-top: var(--s3); margin-right: var(--drop);
  min-height: 104px;
  text-decoration: none;
  background: var(--cta-bg); color: var(--cta-fg);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.ticket-seal { display: grid; place-items: center; padding: 0 0 0 var(--s4); }
.ticket-seal svg { width: 60px; height: 60px; transform: rotate(-8deg); --ic-a: var(--cta-fg); --ic-b: var(--cta-fg); --ic-p: var(--cta-bg); --seal: var(--cta-fg); }
.ticket-main { display: grid; align-content: center; gap: 2px; padding: var(--s4); min-width: 0; }
.ticket-title {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.6rem, 11vw, 4rem); line-height: .9; letter-spacing: .04em;
}
.ticket-sub { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; opacity: .92; }
.ticket-tab {
  display: grid; place-items: center; width: 68px;
  background: var(--cta-tab); color: var(--cta-tab-fg);
  border-left: 3px dashed var(--cta-bg);
  box-shadow: -3px 0 0 var(--cta-tab);
}
.ticket-tab svg { width: 30px; height: 30px; fill: currentColor; transition: transform .18s ease-out; }
.ticket:hover .ticket-tab svg { transform: translateX(4px); }
.ticket:active .ticket-tab svg { transform: translateX(7px); }

/* ---------- Footer ---------- */
.foot {
  margin-top: var(--s7);
  padding-top: var(--s4);
  border-top: 1px solid var(--edge);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s5);
  color: var(--ink-2);
  font-size: .72rem;
}
.foot-mark { display: inline-flex; align-items: center; gap: var(--s3); }
.foot-mark svg { width: 28px; height: 28px; border-radius: 6px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--rust); }
.foot a:hover { color: var(--ink); }

/* =====================================================
   GAMES + APPS: masthead
   ===================================================== */
.mast { position: relative; padding: var(--s7) 0 var(--s6); isolation: isolate; }
.mast .cut { z-index: -1; right: -1%; top: 14%; width: 30%; height: 48%; transform: rotate(-3deg); }
.mast.teal .cut { top: 47%; height: 40%; width: 31%; }
@media (min-width: 640px) { .mast .cut, .mast.teal .cut { right: 0; top: 16%; width: min(40%, 400px); height: 70%; } }
.mast .cut > i { background: var(--block-b); clip-path: polygon(3% 6%, 100% 0, 97% 92%, 52% 100%, 0 90%); }
.mast.teal .cut > i { background: var(--block-a); }
.mast .dots { z-index: -1; right: 6%; top: 4%; width: 34%; height: 60%; -webkit-mask-image: linear-gradient(200deg, #000 5%, transparent 75%); mask-image: linear-gradient(200deg, #000 5%, transparent 75%); }
.mast h1 {
  margin: var(--s3) 0 var(--s3);
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(4rem, 19vw, 9.5rem); line-height: .84; letter-spacing: .02em;
  color: var(--ink);
  text-shadow: .045em .045em 0 var(--brass);
}
.mast.teal h1 { font-size: clamp(3.1rem, 14.5vw, 8rem); text-shadow: .045em .045em 0 var(--teal); }
@media (prefers-color-scheme: dark) { .mast.teal h1 { text-shadow: .045em .045em 0 var(--block-a); } }
.mast .tag { max-width: 30ch; }
.mast .kicker { max-width: 520px; }

/* ---------- Game tiles ---------- */
.grid { list-style: none; margin: 0; padding: 0 var(--drop) 0 0; display: grid; gap: var(--s5); grid-template-columns: minmax(0, 1fr); counter-reset: track; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); } }
.grid > li { display: flex; }

.tile {
  flex: 1;
  display: grid; grid-template-columns: 76px minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: var(--s4);
  position: relative;
  padding: var(--s4) var(--s4) 0;
  text-decoration: none;
  background: var(--card);
  border: 2.5px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  overflow: hidden;
}
@media (prefers-color-scheme: dark) { .tile, .sleeve { border-color: var(--edge); } }
.tile:hover { background: var(--hover-tint); }
.tile:active { background: var(--press-tint); }
.stamp { width: 76px; height: 76px; align-self: start; transform: rotate(var(--tilt, -5deg)); transition: transform .25s cubic-bezier(.3, .7, .2, 1); }
.tile:hover .stamp, .tile:focus-visible .stamp { transform: rotate(0deg) scale(1.04); }
.tile:active .stamp { transform: rotate(0deg) scale(.97); transition-duration: .06s; }
.st-seal { fill: var(--seal); }
.st-dots { fill: none; stroke: var(--seal); stroke-width: 4.6; stroke-linecap: round; stroke-dasharray: 0 5.236; }
.st-disc { fill: var(--ic-p); }
.st-ring { fill: none; stroke: var(--seal); stroke-width: .9; stroke-dasharray: 1.6 1.6; }
.grid > li:nth-child(3n+2) .tile { --seal: var(--brass); --tilt: 4deg; }
.grid > li:nth-child(3n) .tile { --seal: var(--ink); --tilt: -2deg; }
@media (prefers-color-scheme: dark) {
  .grid > li:nth-child(3n+2) .tile { --seal: var(--teal); }
  .grid > li:nth-child(3n) .tile { --seal: var(--ink); }
}

.tile-body { display: grid; align-content: start; gap: var(--s1); padding: 2px 0 var(--s4); min-width: 0; }
.tile-no { color: var(--rust); letter-spacing: .2em; }
.tile-title {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: 1.7rem; line-height: 1; letter-spacing: .035em;
}
.tile-desc { color: var(--ink-2); font-size: .98rem; line-height: 1.42; margin-top: 2px; }
.go {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 44px;
  margin: 0 calc(-1 * var(--s4)); padding: 0 var(--s4);
  border-top: 2px dashed var(--edge);
  color: var(--ink);
}
.go svg { width: 22px; height: 22px; fill: var(--rust); transition: transform .18s ease-out; }
a:hover > .go svg, a:hover .sleeve-info .go svg { transform: translateX(4px); }
a:active > .go svg, a:active .sleeve-info .go svg { transform: translateX(7px); }

/* entrance: cards settle onto the table */
@keyframes settle { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.grid > li, .sleeves > li { animation: settle .45s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 45ms + 60ms); }

/* =====================================================
   APPS: two record sleeves
   ===================================================== */
.sleeves { list-style: none; margin: 0; padding: 0 var(--drop) 0 0; display: grid; gap: var(--s6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .sleeves { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sleeves > li { display: flex; }
.sleeve {
  --drop: 7px;
  flex: 1; display: grid; grid-template-rows: auto 1fr;
  text-decoration: none; color: var(--ink);
  background: var(--card);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.sleeve:hover { background: var(--hover-tint); }
.sleeve:active { background: var(--press-tint); }
.sleeve-art {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 16 / 10;
  background: var(--block-a);
  border-bottom: 3px solid var(--line);
  overflow: hidden; isolation: isolate;
  --ic-a: var(--on-block-a); --ic-b: var(--brass); --ic-p: var(--block-a);
}
.sleeve.b .sleeve-art { background: var(--block-b); --ic-a: var(--on-block-b); --ic-b: #FBF3E1; --ic-p: var(--block-b); }
@media (prefers-color-scheme: dark) { .sleeve-art { border-bottom-color: var(--line); } }
.sleeve-art::before { /* cut-paper sun / spotlight */
  content: ""; position: absolute; z-index: -1; width: 62%; aspect-ratio: 1; border-radius: 50%;
  right: -14%; top: -30%; background: var(--ic-b); opacity: .9;
}
.sleeve.b .sleeve-art::before { left: -16%; right: auto; top: auto; bottom: -38%; background: var(--on-block-b); opacity: .16; }
.sleeve-art .dots { inset: auto auto 0 0; width: 60%; height: 70%; z-index: -1; background-image: radial-gradient(circle, var(--ic-a) 1.3px, transparent 1.75px); opacity: .35; -webkit-mask-image: linear-gradient(20deg, #000 5%, transparent 70%); mask-image: linear-gradient(20deg, #000 5%, transparent 70%); }
.sleeve.b .sleeve-art .dots { inset: 0 0 auto auto; -webkit-mask-image: linear-gradient(200deg, #000 5%, transparent 70%); mask-image: linear-gradient(200deg, #000 5%, transparent 70%); }
.sleeve-art .big { width: min(52%, 220px); height: auto; overflow: visible; transform: rotate(-4deg); transition: transform .28s cubic-bezier(.3, .7, .2, 1); }
.sleeve.b .sleeve-art .big { transform: rotate(3deg); }
.sleeve:hover .big, .sleeve:focus-visible .big { transform: rotate(0deg) scale(1.04); }
.sleeve:hover .slide, .sleeve:focus-visible .slide { transform: translateX(3px); }
.sleeve:active .slide { transform: translateX(5px); }
.sleeve-info { display: grid; gap: var(--s2); padding: var(--s5) var(--s5) 0; align-content: start; }
.sleeve-info h2 {
  margin: 0;
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.2rem, 8vw, 3.2rem); line-height: .95; letter-spacing: .03em;
}
.sleeve-info p { margin: 0 0 var(--s4); color: var(--ink-2); max-width: 38ch; }
.sleeve-info .tile-no { letter-spacing: .18em; }
.sleeve-info .go { margin: 0 calc(-1 * var(--s5)); padding: 0 var(--s5); min-height: 52px; align-self: end; }

/* =====================================================
   Larger screens
   ===================================================== */
@media (min-width: 900px) {
  .cover { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: var(--s8); align-items: center; align-content: center; padding-top: var(--s7); }
  .cover-text { order: 1; gap: var(--s5); }
  .cover-art { order: 2; height: min(62vh, 520px); }
  .cover-art .cut-teal { inset: 0 4% 2% 2%; }
  .cover-art .lamp { width: clamp(120px, 13vw, 170px); right: 10%; top: -5%; }
  .bone { left: 2%; width: 92%; transform: translateY(-40%) rotate(-12deg); }
  .ticket { max-width: 520px; min-height: 120px; }
  .ticket-tab { width: 84px; }
  .tile { grid-template-columns: 84px minmax(0, 1fr); padding: var(--s5) var(--s5) 0; }
  .stamp { width: 84px; height: 84px; }
  .go { margin: 0 calc(-1 * var(--s5)); padding: 0 var(--s5); }
  .mast { padding: var(--s8) 0 var(--s7); }
}
/* short landscape phones */
@media (max-height: 480px) and (orientation: landscape) and (max-width: 899px) {
  .cover { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; padding-top: var(--s5); }
  .cover-text { order: 1; } .cover-art { order: 2; height: 200px; }
  .foot { margin-top: var(--s5); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .press:hover { transform: none; box-shadow: var(--drop) var(--drop) 0 var(--shadow); }
  .cover .bone .slide, .sleeve .slide { transform: none !important; }
  .tile:hover .stamp, .tile:active .stamp { transform: rotate(var(--tilt, -5deg)); }
  .sleeve:hover .big { transform: rotate(-4deg); }
  .sleeve.b:hover .big { transform: rotate(3deg); }
}

/* ---------- Print-ish forced colours safety ---------- */
@media (forced-colors: active) {
  .tile, .sleeve, .ticket, .back { border: 2px solid CanvasText; }
}

/* =====================================================
   v5b QUIRKS: now-playing strip, slide positions, jamon mode, set list, (Hawks pennant removed 30 Nov, Lachlan 16489)
   ===================================================== */
.nowplaying {
  display: flex; align-items: baseline; gap: var(--s3);
  margin: 0; padding: var(--s3) var(--s4);
  border: 2px solid var(--line); border-radius: var(--radius);
  background: var(--card); color: var(--ink);
  font: inherit; text-align: left; width: 100%; cursor: pointer;
  box-shadow: 3px 3px 0 var(--shadow);
}
.nowplaying:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow); }
.np-label {
  flex: none; font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; font-size: .72rem; color: var(--rust);
}
.np-text { font-family: var(--f-body); font-style: italic; font-size: .98rem; line-height: 1.35; min-width: 0; }
.np-text.swap { animation: npin .35s ease-out; }
@keyframes npin { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.bone-hit {
  position: absolute; z-index: 4; left: 5%; top: 18%; width: 82%; height: 64%;
  background: none; border: 0; padding: 0; margin: 0; cursor: pointer; border-radius: var(--radius);
  -webkit-tap-highlight-color: transparent;
}
.bone-hit:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.pos {
  position: absolute; z-index: 5; right: 6%; bottom: 7%;
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem;
  padding: 4px 10px; border-radius: 99px; background: var(--paper); color: var(--ink); border: 2px solid var(--line);
  pointer-events: none;
}
.slide.manual { transition: transform .28s cubic-bezier(.3, .7, .2, 1); }

.ham {
  position: fixed; inset: auto var(--gutter) calc(var(--gutter) + env(safe-area-inset-bottom, 0px)) var(--gutter);
  z-index: 40; max-width: 420px; margin: 0 auto;
  display: flex; align-items: center; gap: var(--s4);
  padding: var(--s4); border: 2px solid var(--line); border-radius: var(--radius);
  background: var(--card); color: var(--ink); box-shadow: 5px 5px 0 var(--shadow);
}
.ham[hidden] { display: none; }
.ham svg { flex: none; width: 76px; height: 76px; }
.ham b { display: block; font-family: var(--f-display); text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; color: var(--rust); }
.ham span { font-family: var(--f-body); font-style: italic; }
.ham:not([hidden]) { animation: npin .3s ease-out; }

.setlist { flex-basis: 100%; margin: 0; color: var(--ink-2); font-family: var(--f-body); font-style: italic; font-size: .8rem; line-height: 1.5; }
.setlist b { font-family: var(--f-display); font-style: normal; text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; color: var(--rust); margin-right: .4em; }
.hawks { display: inline-flex; align-items: center; gap: var(--s2); }
.hawks svg { width: 34px; height: 18px; flex: none; }
.house { margin: var(--s3) 0 0; font-family: var(--f-body); font-style: italic; font-size: .85rem; color: inherit; opacity: .92; }

@media (prefers-reduced-motion: reduce) {
  .np-text.swap, .ham:not([hidden]) { animation: none; }
  .slide.manual { transition: none; }
}

/* =====================================================
   v5b CREST (30 Nov 2026, Lachlan 16495): hero crest, footer mark, crest.html
   The crest is one inline SVG; every ink is a custom property derived from the
   site tokens, so light, dark and jamon mode recolour it automatically.
   ===================================================== */
.crest {
  --cr-line: var(--ink);             /* key ink: outlines, lettering on the ribbon */
  --cr-f1: var(--block-a);           /* field 1 (teal) */
  --cr-f2: var(--card);              /* field 2 (paper) */
  --cr-on1: var(--on-block-a);       /* charge ink on field 1 */
  --cr-on2: var(--ic-a);             /* charge ink on field 2 */
  --cr-spot: var(--brass);           /* spot colour */
  --cr-chief: var(--block-b);        /* name band */
  --cr-onchief: var(--on-block-b);
  --cr-shadow: var(--shadow);
  --cr-dot: var(--dot-ink, var(--ink));
  width: 100%; height: auto; overflow: visible;
}
@media (prefers-color-scheme: dark) { :root { --dot-ink: #F2A33A; } }
html.jamon { --dot-ink: #B3122B; }
.crest .f-line { fill: var(--cr-line); } .crest .f-f1 { fill: var(--cr-f1); } .crest .f-f2 { fill: var(--cr-f2); }
.crest .f-on1 { fill: var(--cr-on1); } .crest .f-on2 { fill: var(--cr-on2); } .crest .f-spot { fill: var(--cr-spot); }
.crest .f-chief { fill: var(--cr-chief); } .crest .f-onchief { fill: var(--cr-onchief); }
.crest .f-shadow { fill: var(--cr-shadow); } .crest .f-dot { fill: var(--cr-dot); }
.crest [class^="s-"] { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.crest .s-line, .crest .k-line { stroke: var(--cr-line); }
.crest .s-spot { stroke: var(--cr-spot); } .crest .s-f1 { stroke: var(--cr-f1); } .crest .s-f2 { stroke: var(--cr-f2); }
.crest text { letter-spacing: 0; }
.crest .cr-ham { display: none; }

/* highlighted charge (homepage easter egg) */
.crest .ch { transition: opacity .2s ease-out; }
.crest.lit .ch { opacity: .26; }
.crest.lit .ch.on { opacity: 1; transform-box: fill-box; transform-origin: center; animation: crpop .32s cubic-bezier(.3, .7, .2, 1.3); }
@keyframes crpop { from { transform: scale(.86); } 60% { transform: scale(1.1); } to { transform: none; } }

/* homepage hero: tagline left, crest right */
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s4); align-items: center; }
.crest-fig { margin: 0; display: grid; justify-items: center; gap: var(--s2); }
.crest-btn {
  -webkit-appearance: none; appearance: none; display: block;
  width: clamp(116px, 36vw, 150px); margin: 0; padding: 0; border: 0; border-radius: var(--radius);
  background: none; color: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.crest-btn .crest { animation: crstamp .5s cubic-bezier(.2, .8, .3, 1.25) .18s both; transform-origin: 50% 55%; }
.crest-btn:active .crest { transform: scale(.97); }
@keyframes crstamp { from { opacity: 0; transform: scale(1.22) rotate(-7deg); } 55% { opacity: 1; transform: scale(.96) rotate(1.2deg); } to { opacity: 1; transform: none; } }
.crest-cap {
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .16em;
  font-size: .7rem; line-height: 1.2; min-height: 1.2em; color: var(--rust); text-align: center;
}
@media (min-width: 900px) { .crest-btn { width: 208px; } .hero-row { gap: var(--s5); } }
@media (max-height: 480px) and (orientation: landscape) and (max-width: 899px) { .crest-btn { width: 96px; } }

/* jamon mode: a ham takes the tent's place on the wreath */
html.jamon .crest-btn .cr-tent { display: none; }
html.jamon .crest-btn .cr-ham { display: block; }
html.jamon .crest-btn .crest { --cr-chief: #F59AA8; } /* name band: ink on pink 7.4:1 */

/* footer mark is now a link to the crest page */
a.foot-mark { text-decoration: none; }
a.foot-mark span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--rust); }
.foot-mark svg { width: 30px; height: 30px; }

/* crest.html */
.crest-mast { padding-bottom: var(--s5); }
.crest-mast h1 { font-size: clamp(3.1rem, 14.5vw, 8rem); }
.swatches { display: grid; gap: var(--s5); grid-template-columns: minmax(0, 1fr); padding-right: var(--drop); }
@media (min-width: 760px) { .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6); } }
.swatch {
  margin: 0; display: grid; gap: var(--s3); justify-items: center;
  padding: var(--s5) var(--s5) var(--s4);
  border: 3px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--drop) var(--drop) 0 var(--shadow);
  background-image: var(--grain);
}
@media (prefers-color-scheme: dark) { .swatch { border-color: var(--edge); } }
.swatch-art { width: min(100%, 440px); }
.swatch figcaption { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; }
.on-paper {
  --paper: #F3E7CF; --card: #FBF3E1; --ink: #2A1B12; --block-a: #0F4C5C; --block-b: #D9741E;
  --on-block-a: #F3E7CF; --on-block-b: #2A1B12; --ic-a: #0F4C5C; --brass: #D9741E; --shadow: #2A1B12; --dot-ink: #2A1B12;
  background-color: #F3E7CF; color: #5B4130;
}
.on-midnight {
  --paper: #111B2E; --card: #1B2942; --ink: #F4E6C8; --block-a: #17606F; --block-b: #F2A33A;
  --on-block-a: #F4E6C8; --on-block-b: #111B2E; --ic-a: #F4E6C8; --brass: #F2A33A; --shadow: #05090F; --dot-ink: #F2A33A;
  background-color: #111B2E; color: #B9AE99;
}
.swatch.on-paper, .swatch.on-midnight { box-shadow: var(--drop) var(--drop) 0 var(--cr-box, #2A1B12); }
@media (prefers-color-scheme: dark) { .swatch.on-paper, .swatch.on-midnight { --cr-box: #05090F; } }
html.jamon .swatch.on-paper, html.jamon .swatch.on-midnight { --cr-box: #4A0D14; }
.dl-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s5); margin: var(--s6) var(--drop) 0 0; }
.dl {
  display: inline-flex; align-items: center; gap: var(--s3); min-height: 52px; padding: 0 var(--s5);
  background: var(--cta-bg); color: var(--cta-fg); text-decoration: none;
  border: 3px solid var(--line); border-radius: var(--radius);
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 1rem;
}
.dl svg { width: 20px; height: 20px; fill: currentColor; }
.dl-note { color: var(--ink-2); font-style: italic; font-size: .92rem; }
.blazon { margin-top: var(--s7); }
.blazon h2 { margin: 0 0 var(--s3); color: var(--rust); }
.blazon dl { margin: 0; display: grid; gap: 0; border-top: 3px solid var(--ink); }
.blazon dl > div { display: grid; grid-template-columns: minmax(7.5rem, 28%) minmax(0, 1fr); gap: var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--edge); align-items: baseline; }
.blazon dt { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 1.15rem; line-height: 1.1; }
.blazon dd { margin: 0; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  .crest-btn .crest, .crest.lit .ch.on { animation: none; }
  .crest .ch { transition: none; }
  .crest-btn:active .crest { transform: none; }
}
