/* Mark K Gladstone: author website (redesign 3 Dec 2026).
   Look: a storybook on watercolour paper. Warm cream paper, ink-plum text,
   a twilight sky (plum to dusk rose) for the top of each page, lamplight gold,
   Tiger's ginger and playing-card red. Paintings sit on the page as postcards.
   One light look on purpose: it is a printed book, not an app. */

@font-face { font-family: "Cinzel Decorative"; src: url("../fonts/cinzel-decorative-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #f8f1e4;        /* watercolour paper */
  --paper-2: #f0e5d1;      /* a deeper wash */
  --card: #fffaf0;         /* postcard and playing-card white */
  --ink: #1e2a30;          /* body text: ink with a little teal */
  --ink-soft: #4d5f66;
  --plum: #0f3443;         /* midnight teal (chosen 3 Dec) */
  --plum-2: #1b5a6a;
  --dusk: #17505f;         /* teal at the horizon */
  --gold: #f2c766;         /* lamplight */
  --gold-deep: #b9852a;
  --ginger: #d4732a;       /* Tiger */
  --red: #b5313b;          /* hearts and diamonds */
  --leaf: #3d7366;         /* Welsh woods */
  --line: rgba(15, 52, 67, .16);
  --f-title: "Cinzel Decorative", "Cinzel", Georgia, "Times New Roman", serif;
  --f-head: "Cinzel", Georgia, "Times New Roman", serif;
  --f-body: "Lora", Georgia, "Times New Roman", serif;
  --s-0: clamp(1rem, .95rem + .2vw, 1.1rem);
  --s-1: clamp(1.15rem, 1.05rem + .4vw, 1.35rem);
  --s-2: clamp(1.45rem, 1.2rem + 1vw, 2rem);
  --s-3: clamp(1.9rem, 1.4rem + 2vw, 2.9rem);
  --s-4: clamp(2.3rem, 1.5rem + 3.6vw, 4.4rem);
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; color: var(--ink); font-family: var(--f-body); font-size: var(--s-0); line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  /* soft watercolour washes on the paper */
  background:
    radial-gradient(40rem 26rem at 8% 38rem, rgba(212, 115, 42, .07), transparent 70%),
    radial-gradient(36rem 30rem at 96% 70rem, rgba(61, 115, 102, .08), transparent 70%),
    radial-gradient(42rem 30rem at 20% 120rem, rgba(23, 80, 95, .07), transparent 70%),
    var(--paper);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--plum-2); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.brand, .hero h1, .page-hero h1, .signature, .riddle .answer { font-variant-ligatures: none; font-feature-settings: "liga" 0, "dlig" 0, "calt" 0; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 700; line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: .01em; color: var(--plum); }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding-left: 1.2rem; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.prose { max-width: 40rem; display: grid; gap: 1rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-family: var(--f-head); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--red); display: inline-flex; align-items: center; gap: .55rem; }
.eyebrow::before { content: "\2666"; font-size: .95em; }
.on-dark .eyebrow { color: var(--gold); }
.small-print { font-size: .86rem; color: var(--ink-soft); }

/* ---------- header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--plum); }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(8, 32, 44, .95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; }
.home-link { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; color: var(--gold); border: 1px solid rgba(242, 199, 102, .45); text-decoration: none; }
.home-link svg { width: 1.2rem; height: 1.2rem; fill: currentColor; }
.home-link:hover, .home-link[aria-current="page"] { background: rgba(242, 199, 102, .15); color: var(--gold); }
.nav a .ico { font-size: 1em; margin-right: .4em; color: var(--gold); }
.brand { font-family: var(--f-title); font-size: 1.15rem; color: var(--card); text-decoration: none; white-space: nowrap; }
.brand span { color: var(--gold); }
.brand:hover { color: var(--card); }
.nav { display: flex; gap: clamp(.7rem, 1.8vw, 1.5rem); align-items: center; }
.nav a { font-family: var(--f-head); font-size: .84rem; letter-spacing: .12em; text-transform: uppercase; color: #d6eaee; text-decoration: none; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }
.nav .btn { color: var(--ink); }
.menu-btn { display: none; background: none; border: 1px solid rgba(242, 199, 102, .5); color: var(--card); border-radius: 999px; padding: .45rem .9rem; font: 700 .75rem/1 var(--f-head); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
@media (max-width: 900px) {
  .menu-btn { display: inline-block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--plum); padding: .5rem var(--gutter-r) 1rem var(--gutter); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: .75rem 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav .btn { margin-top: .8rem; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--f-head); font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; padding: .85rem 1.35rem; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s; line-height: 1.1; }
.btn-gold { background: linear-gradient(180deg, #ffe3a3, var(--gold) 50%, #dca444); color: var(--ink); box-shadow: 0 0 0 1px rgba(185, 133, 42, .45) inset, 0 8px 22px -10px rgba(185, 133, 42, .8); }
.btn-gold:hover { color: var(--ink); transform: translateY(-1px); }
.btn-plum { background: var(--plum); color: var(--card); }
.btn-plum:hover { background: var(--plum-2); color: var(--card); }
.btn-ghost { border-color: currentColor; color: var(--plum); background: transparent; }
.on-dark .btn-ghost { color: var(--card); border-color: rgba(255, 250, 240, .6); }
.btn-ghost:hover { color: var(--red); }
.on-dark .btn-ghost:hover { color: var(--gold); border-color: var(--gold); }
.btn-small { padding: .55rem .95rem; font-size: .74rem; }

/* Buy the book: one button that opens the store list */
.buy { position: relative; display: inline-block; }
.buy > summary { list-style: none; }
.buy > summary::-webkit-details-marker { display: none; }
.buy > summary::after { content: "\25BE"; font-size: .9em; }
.buy-list { position: absolute; z-index: 15; top: calc(100% + .5rem); left: 0; min-width: 15rem; background: var(--card); border-radius: 12px; padding: .5rem; box-shadow: 0 18px 40px -12px rgba(44, 34, 51, .45); border: 1px solid var(--line); display: grid; }
.buy-list a { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem .8rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.buy-list a:hover { background: var(--paper-2); color: var(--plum); }
.buy-list a span { color: var(--ink-soft); font-size: .85rem; }

/* ---------- hero (twilight sky) ---------- */
.hero, .page-hero { position: relative; isolation: isolate; overflow: hidden; color: var(--card);
  background: radial-gradient(50rem 16rem at 70% 108%, rgba(80, 200, 220, .18), transparent 70%), linear-gradient(180deg, #08202c 0%, var(--plum) 50%, #134552 80%, var(--dusk) 100%); }
.hero::before, .page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .8;
  background-image: radial-gradient(1.4px 1.4px at 12% 18%, #fff3d6 50%, transparent 51%), radial-gradient(1px 1px at 32% 34%, #fff3d6 50%, transparent 51%), radial-gradient(1.6px 1.6px at 56% 10%, var(--gold) 50%, transparent 51%), radial-gradient(1px 1px at 82% 28%, #fff3d6 50%, transparent 51%), radial-gradient(1.2px 1.2px at 24% 58%, #fff3d6 50%, transparent 51%), radial-gradient(1px 1px at 66% 48%, var(--gold) 50%, transparent 51%), radial-gradient(1.3px 1.3px at 92% 12%, #fff3d6 50%, transparent 51%), radial-gradient(1px 1px at 44% 70%, #fff3d6 50%, transparent 51%), radial-gradient(1px 1px at 6% 82%, #fff3d6 50%, transparent 51%); }
/* Divider under the sky: a gold rule with a playing card standing on it */
.hero::after, .page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 2;
  background: linear-gradient(90deg, transparent, var(--gold-deep) 12%, var(--gold) 50%, var(--gold-deep) 88%, transparent); }
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(4rem, 8vw, 6.5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; position: relative; z-index: 1; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } .hero-cover { order: -1; } }
.hero-copy { display: grid; gap: 1.2rem; min-width: 0; }
.hero h1 { font-family: var(--f-title); font-size: var(--s-4); line-height: 1.05; color: var(--gold); text-shadow: 0 0 26px rgba(242, 199, 102, .35); }
.hero h1 .conn { font-family: var(--f-head); font-weight: 400; font-size: .5em; letter-spacing: .08em; vertical-align: .18em; }
.hero h1 small { display: block; font-family: var(--f-head); font-size: .36em; color: var(--card); letter-spacing: .18em; text-transform: uppercase; text-shadow: none; margin-bottom: .6rem; }
.hero .lede { font-size: var(--s-1); max-width: 34rem; }
.hero .lede em { color: var(--gold); }
.gift { display: inline-flex; align-items: center; gap: .7rem; align-self: start; background: rgba(255, 250, 240, .12); border: 1px dashed rgba(242, 199, 102, .7); border-radius: 12px; padding: .7rem 1rem; font-size: 1rem; }
.gift b { color: var(--gold); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-start; }
.facts { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { font-size: .85rem; padding: .3rem .8rem; border-radius: 999px; border: 1px solid rgba(255, 250, 240, .35); color: var(--card); background: rgba(255, 250, 240, .06); }
.light .chip { border-color: var(--line); color: var(--ink); background: var(--card); }

/* The cover in a turning ring of gold light */
.hero-cover { position: relative; justify-self: center; width: min(74vw, 330px); }
.hero-cover img { position: relative; z-index: 2; width: 100%; border-radius: 8px; padding: 10px; background: var(--card); box-shadow: 0 0 0 1px rgba(185, 133, 42, .5), 0 30px 60px -20px rgba(10, 6, 30, .9); transform: rotate(-2deg); transition: transform .5s; }
.hero-cover:hover img { transform: rotate(-2deg); }
.ring { position: absolute; inset: 8% -16%; z-index: 1; border-radius: 50%; pointer-events: none; }
.ring::before, .ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: rgba(255, 226, 160, .9); border-right-color: rgba(242, 199, 102, .25); filter: blur(1px) drop-shadow(0 0 10px rgba(242, 199, 102, .9)); transform: rotateX(68deg); animation: spin 9s linear infinite; }
.ring::after { inset: 8%; animation-duration: 13s; animation-direction: reverse; border-top-color: rgba(255, 226, 160, .55); }
@keyframes spin { from { transform: rotateX(68deg) rotate(0deg); } to { transform: rotateX(68deg) rotate(360deg); } }
/* Real playing cards fluttering in a whirlwind round the book. Back cards pass behind the cover. */
.orbit { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; perspective: 700px; }
.orbit.back { z-index: 1; } .orbit.front { z-index: 3; }
.pc { position: absolute; left: -22px; top: -31px; width: 44px; height: 62px; offset-rotate: 0deg; animation: whirl 12s linear infinite; scale: var(--sz, 1); }
.pc.p0 { offset-path: path("M 0 -300 C 190 -320 300 -160 280 20 C 265 200 160 340 -10 320 C -190 300 -290 170 -275 -10 C -260 -190 -170 -285 0 -300"); }
.pc.p1 { offset-path: path("M 40 -350 C 250 -330 330 -120 300 80 C 270 260 120 370 -60 340 C -250 300 -320 120 -300 -60 C -280 -240 -150 -365 40 -350"); }
.pc.p2 { offset-path: path("M -20 -250 C 150 -275 245 -120 235 40 C 225 190 120 280 -30 270 C -180 255 -250 140 -240 -20 C -230 -170 -150 -240 -20 -250"); }
@keyframes whirl { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.flutter { position: absolute; inset: 0; transform-style: preserve-3d; animation: tumble 4s ease-in-out infinite; }
.flutter.swing { animation-name: swing; }
@keyframes tumble { 0% { transform: rotateZ(-18deg) rotateY(0deg) rotateX(12deg); } 30% { transform: rotateZ(10deg) rotateY(120deg) rotateX(-8deg); }
  60% { transform: rotateZ(-6deg) rotateY(220deg) rotateX(18deg); } 100% { transform: rotateZ(-18deg) rotateY(360deg) rotateX(12deg); } }
@keyframes swing { 0%, 100% { transform: rotateZ(-24deg) rotateY(-35deg) rotateX(10deg) translateY(0); } 50% { transform: rotateZ(22deg) rotateY(40deg) rotateX(-14deg) translateY(-14px); } }
.face { position: absolute; inset: 0; border-radius: 4px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 6px 14px rgba(10, 6, 30, .4); }
.face.front { background: #fffdf7; color: #1d1d2b; border: 1px solid rgba(0, 0, 0, .14); font-family: Georgia, "Times New Roman", serif; }
.face.front.red { color: #c0272d; }
.face.cback { transform: rotateY(180deg); border: 2.5px solid #fffdf7; background: repeating-linear-gradient(45deg, #b5313b 0 3px, #8e1f2a 3px 6px), #b5313b; box-shadow: inset 0 0 0 1px #f2c766, 0 6px 14px rgba(10, 6, 30, .4); }
.face .ix { position: absolute; font-style: normal; font-size: 10px; line-height: .95; text-align: center; font-weight: 700; z-index: 1; }
.face .tl { top: 3px; left: 3px; } .face .br { bottom: 3px; right: 3px; transform: rotate(180deg); }
.face .ace { position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; }
.face .pip { position: absolute; font-size: 11px; line-height: 1; transform: translate(-50%, -50%); }
.face .court { position: absolute; left: 9px; top: 6px; width: 26px; height: 50px; }
@media (max-width: 820px) { .pc { scale: calc(var(--sz, 1) * .8); } .pc.p0, .pc.p1, .pc.p2 { offset-path: path("M 0 -250 C 150 -260 220 -130 210 20 C 200 170 110 260 -10 250 C -140 240 -215 130 -205 -10 C -195 -150 -130 -240 0 -250"); } }
@media (prefers-reduced-motion: reduce) { .orbit { display: none; } }

/* inner-page header */
.page-hero { padding-block: clamp(2.2rem, 5vw, 3.8rem) clamp(3.6rem, 7vw, 5rem); }
.page-hero .wrap { position: relative; z-index: 1; display: grid; gap: .9rem; }
.page-hero h1 { font-family: var(--f-title); font-size: var(--s-3); color: var(--gold); max-width: 22ch; }
.page-hero p { max-width: 40rem; font-size: var(--s-1); }

/* ---------- sections ---------- */
.band { padding-block: clamp(3rem, 7vw, 5.5rem); position: relative; }
.band-wash { background: linear-gradient(180deg, transparent, var(--paper-2) 18%, var(--paper-2) 82%, transparent); }
.sec-head { display: grid; gap: .8rem; margin-bottom: clamp(1.6rem, 4vw, 2.6rem); max-width: 46rem; }
.sec-head h2 { font-size: var(--s-3); }
.sec-head p { color: var(--ink-soft); font-size: var(--s-1); }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* Card-suit divider (bigger, as asked) */
.suits { display: flex; align-items: center; justify-content: center; gap: clamp(.9rem, 3vw, 1.8rem); padding-block: clamp(1rem, 3vw, 2rem); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1; color: var(--plum); }
.suits::before, .suits::after { content: ""; flex: 0 1 9rem; height: 1px; background: linear-gradient(90deg, transparent, rgba(15, 52, 67, .45), transparent); }
.suits span:nth-child(even) { color: var(--red); }
.suits span { display: inline-block; animation: bob 5s ease-in-out infinite; }
.suits span:nth-child(2) { animation-delay: -1.2s; } .suits span:nth-child(3) { animation-delay: -2.4s; } .suits span:nth-child(4) { animation-delay: -3.6s; }
@keyframes bob { 50% { transform: translateY(-4px) rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .suits span { animation: none; } }

/* ---------- postcards: the paintings ---------- */
.postcard { margin: 0; background: var(--card); padding: .6rem .6rem 0; border-radius: 4px; box-shadow: 0 1px 0 rgba(44, 34, 51, .05), 0 18px 36px -18px rgba(44, 34, 51, .55); transform: rotate(var(--tilt, -1.5deg)); transition: transform .35s; position: relative; }
.postcard:hover { transform: rotate(0deg) translateY(-4px); }
.postcard .pic { aspect-ratio: var(--ratio, 4 / 3); overflow: hidden; border-radius: 2px; background: var(--paper-2); }
.postcard .pic img, .postcard .pic video { width: 100%; height: 100%; object-fit: cover; }
.postcard figcaption { padding: .65rem .3rem .8rem; font-style: italic; font-size: .95rem; color: var(--ink-soft); line-height: 1.45; }
.postcard figcaption b { display: block; font-style: normal; font-family: var(--f-head); font-size: .85rem; letter-spacing: .08em; color: var(--plum); margin-bottom: .1rem; }
a.postcard { text-decoration: none; display: block; }
.postcard.stamp::before { content: ""; position: absolute; top: 1rem; right: 1rem; width: 2.6rem; height: 3rem; z-index: 2; background: var(--card); border: 2px dashed rgba(181, 49, 59, .55); border-radius: 2px; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.postcard.stamp::after { content: "\2665"; position: absolute; top: 1.55rem; right: 1.62rem; z-index: 3; color: var(--red); font-size: 1.3rem; line-height: 1; }

/* Story: text with postcards scattered beside it */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }
.story .prose { font-size: var(--s-0); }
.hook { font-family: var(--f-head); font-size: var(--s-2); color: var(--red); line-height: 1.25; }
.story-cards { display: grid; gap: 1.6rem; }
.story-cards .postcard:nth-child(2) { --tilt: 1.6deg; margin-left: 12%; }
.story-cards .postcard:nth-child(3) { --tilt: -1deg; margin-right: 8%; }
@media (max-width: 860px) { .story-cards .postcard:nth-child(n) { margin-inline: 0; } }

/* Real places: a fan of postcards */
.fan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.8rem); }
.fan .postcard:nth-child(3n+1) { --tilt: -2deg; } .fan .postcard:nth-child(3n+2) { --tilt: 1.2deg; margin-top: 1.2rem; } .fan .postcard:nth-child(3n) { --tilt: -.6deg; }
@media (max-width: 760px) { .fan { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fan .postcard:nth-child(n) { margin-top: 0; } }
@media (max-width: 440px) { .fan { grid-template-columns: 1fr; } }

/* Cast */
.cast { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 2rem); }
@media (max-width: 860px) { .cast { grid-template-columns: 1fr; max-width: 30rem; } }
.who { display: grid; gap: .7rem; align-content: start; }
.who h3 { font-size: var(--s-2); }
.who h3 span { display: block; font-family: var(--f-body); font-style: italic; font-weight: 400; font-size: .95rem; color: var(--ink-soft); letter-spacing: 0; margin-top: .25rem; }
.who .postcard .pic { --ratio: 5 / 4; }
.who .soon-plate { display: grid; place-items: center; height: 100%; background: radial-gradient(circle at 60% 30%, #fff6e2, var(--paper-2)); color: var(--ink-soft); font-style: italic; text-align: center; padding: 1rem; }

/* Panels and buy cards */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.2rem, 3vw, 1.8rem); display: grid; gap: .8rem; align-content: start; box-shadow: 0 16px 34px -26px rgba(44, 34, 51, .6); }
.panel h3 { font-size: var(--s-1); }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; } }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 2rem); align-items: start; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }
.stores { display: flex; flex-wrap: wrap; gap: .5rem; }
.copyline { display: flex; align-items: center; justify-content: space-between; gap: .6rem; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: .45rem .5rem .45rem .8rem; font-variant-numeric: tabular-nums; }
.copyline span { min-width: 0; overflow-wrap: anywhere; }
.copyline button { font: 700 .72rem/1 var(--f-head); letter-spacing: .1em; text-transform: uppercase; border: 0; border-radius: 999px; padding: .5rem .8rem; background: var(--plum); color: var(--card); cursor: pointer; }

/* Riddles */
.riddles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
@media (max-width: 760px) { .riddles { grid-template-columns: 1fr; } }
.riddle { background: var(--card); border-radius: 14px; padding: 1.4rem 1.4rem 1.2rem; border: 1px solid var(--line); position: relative; display: grid; gap: .8rem; }
.riddle::before { content: attr(data-suit); position: absolute; top: .8rem; right: 1rem; font-size: 1.6rem; color: var(--red); opacity: .8; }
.riddle blockquote { margin: 0; font-family: var(--f-head); font-size: var(--s-1); color: var(--plum); line-height: 1.4; padding-right: 2rem; }
.riddle .who-asks { font-size: .85rem; color: var(--ink-soft); font-style: italic; }
.riddle details summary { cursor: pointer; font: 700 .75rem/1 var(--f-head); letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.riddle .answer { font-family: var(--f-title); font-size: var(--s-1); color: var(--ginger); margin-top: .4rem; }

/* Sign-up */
.signup { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.8rem, 4vw, 3.5rem); align-items: center; background: linear-gradient(160deg, var(--plum), #17505f); color: var(--card); border-radius: 22px; padding: clamp(1.4rem, 4vw, 3rem); box-shadow: 0 30px 60px -30px rgba(44, 34, 51, .8); }
@media (max-width: 860px) { .signup { grid-template-columns: 1fr; } }
.signup h2 { color: var(--gold); font-size: var(--s-3); }
.signup-body { display: grid; gap: 1rem; min-width: 0; }
.signup ul { display: grid; gap: .3rem; }
.signup .small-print, .signup .consent { color: #d4e6ea; }
.signup a { color: var(--gold); }
.join { display: grid; gap: .9rem; }
.join .row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: .8rem; }
@media (max-width: 560px) { .join .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; font-size: .88rem; }
.field input { font: inherit; font-size: 1rem; padding: .8rem .9rem; border-radius: 10px; border: 1px solid rgba(255, 250, 240, .35); background: rgba(255, 250, 240, .96); color: var(--ink); min-width: 0; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; }
.consent input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--gold); flex: none; }
.form-msg:empty { display: none; }
.form-msg { padding: .6rem .8rem; border-radius: 10px; font-size: .92rem; }
.form-msg.err { background: #ffe1e1; color: #7a1520; }
.form-msg.ok { background: #fff3cf; color: #5a3d00; }
.signup-art .postcard { --tilt: -2.5deg; color: var(--ink); }

/* Book 2 teaser */
.next { text-align: center; }
.next .wrap { display: grid; gap: 1rem; justify-items: center; }
.next-card { position: relative; overflow: hidden; border-radius: 22px; padding: clamp(2rem, 6vw, 4rem) clamp(1.2rem, 4vw, 3rem); color: var(--card); background: linear-gradient(180deg, #08202c, var(--plum)); width: 100%; display: grid; gap: 1rem; justify-items: center; isolation: isolate; }
.next-card .bg { position: absolute; inset: 0; z-index: -1; }
.next-card .bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: .4; filter: saturate(.85); }
.next-card h2 { font-family: var(--f-title); color: var(--gold); font-size: var(--s-3); font-variant-ligatures: none; font-feature-settings: "liga" 0; }
.next-card .when { font-family: var(--f-head); letter-spacing: .3em; text-transform: uppercase; font-size: var(--s-0); }
.next-card .when b { color: var(--gold); }
.next-card p.teaser { max-width: 34rem; font-style: italic; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.signature { font-family: var(--f-title); font-size: var(--s-2); color: var(--plum); }

/* Places page list */
.place { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.4rem, 4vw, 3rem); align-items: center; padding-block: clamp(1.4rem, 3vw, 2.2rem); border-bottom: 1px dashed var(--line); }
.place:nth-child(even) .postcard { order: 2; --tilt: 1.5deg; }
@media (max-width: 760px) { .place { grid-template-columns: 1fr; } .place:nth-child(even) .postcard { order: 0; } }
.place h3 { font-size: var(--s-2); }
.place .where { font-size: .9rem; color: var(--leaf); font-weight: 500; }

/* Clip (Marley) */
.postcard video { background: var(--paper-2); }

/* Footer */
.site-foot { margin-top: clamp(2rem, 6vw, 4rem); background: var(--plum); color: #d4e6ea; padding-block: 2.5rem; }
.site-foot a { color: var(--card); }
.site-foot a:hover { color: var(--gold); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-block: 1.2rem; font-size: .92rem; }
.foot-note { font-size: .8rem; color: #a9c6cc; }
.socials { display: flex; flex-wrap: wrap; gap: .6rem; }
.socials a { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; text-decoration: none; padding: .4rem .7rem; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; }
.socials svg { width: 16px; height: 16px; fill: currentColor; }

/* Simple text pages (privacy, thanks) */
.text-page { padding-block: clamp(2rem, 5vw, 4rem); }
.text-page h2 { font-size: var(--s-2); margin-top: 1.6rem; }
.text-page .prose ul { display: grid; gap: .35rem; }

/* Workbook mini cover, drawn in CSS (no draft stamp, master book cover inside) */
.wb-card { --tilt: -2.5deg; }
.postcard .wb-cover { aspect-ratio: 3 / 4; background: linear-gradient(180deg, var(--plum), #17505f) !important; display: grid; justify-items: center; align-content: center; gap: .4rem; padding: 1.2rem 1rem; text-align: center; color: var(--card); }
.wb-from { font-family: var(--f-head); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: #d4e6ea; }
.wb-title { font-family: var(--f-head); font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.1; color: var(--gold); }
.wb-sub { font-size: .85rem; font-style: italic; max-width: 16rem; }
.wb-cover img { width: 42% !important; height: auto !important; border-radius: 3px; box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .6); margin-block: .4rem; }
.wb-pages { font-family: var(--f-head); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.next-card h2.plain { font-family: var(--f-head); }

/* Story told in scenes: words beside pictures of the people in the place */
.scenes { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.scene { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.6rem, 5vw, 4rem); align-items: center; }
.scene:nth-child(even) .scene-pics { order: -1; }
@media (max-width: 860px) { .scene { grid-template-columns: 1fr; } .scene:nth-child(even) .scene-pics { order: 0; } }
.scene h3 { font-size: var(--s-2); }
.scene .prose { gap: .9rem; }
.scene-pics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; align-items: start; }
.scene-pics > :only-child { grid-column: 1 / -1; }
.scene-pics > .wide { grid-column: 1 / -1; }
.scene-pics > :nth-child(2) { --tilt: 1.8deg; margin-top: 1.4rem; }
.scene-pics > :nth-child(3) { --tilt: -1deg; }
.intro { max-width: 46rem; display: grid; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.intro h2 { font-size: var(--s-3); }

/* Meet the characters */
.character { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.6rem, 5vw, 4rem); align-items: center; padding-block: clamp(1.6rem, 4vw, 2.6rem); border-bottom: 1px dashed var(--line); }
.character:last-child { border-bottom: 0; }
.character:nth-child(even) { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.character:nth-child(even) > .pics { order: 2; }
@media (max-width: 760px) { .character, .character:nth-child(even) { grid-template-columns: 1fr; } .character:nth-child(even) > .pics { order: 0; } }
.character h2 { font-size: var(--s-3); }
.character .role { font-style: italic; color: var(--ink-soft); font-size: var(--s-1); }
.character .pics { display: grid; gap: 1.2rem; }
.cast-link { margin-top: 2rem; }
.hero h1, .page-hero h1, .next-card h2, .signature, .brand { text-transform: uppercase; }

/* Workbook pages, scattered like a pile on a table; they blow in once */
.pile { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 30rem; margin-inline: auto; }
.pile img { position: absolute; left: 50%; top: 10%; width: 40%; background: #fff; border-radius: 2px; box-shadow: 0 14px 30px -14px rgba(10, 6, 20, .7); }
.pile img { transform: translate(-50%, 0) translate(calc(var(--x) * 1%), calc(var(--y) * 1%)) rotate(var(--r)); }
.js .pile img { opacity: 0; transform: translate(-50%, 0) translate(calc(var(--x) * 1% + 260%), -60%) rotate(calc(var(--r) + 40deg)); transition: transform .9s cubic-bezier(.2, .8, .25, 1) var(--d), opacity .4s ease var(--d); }
.js .pile.in img { opacity: 1; transform: translate(-50%, 0) translate(calc(var(--x) * 1%), calc(var(--y) * 1%)) rotate(var(--r)); }
.pile img:hover { z-index: 5; }
@media (prefers-reduced-motion: reduce) { .js .pile img { opacity: 1; transition: none; transform: translate(-50%, 0) translate(calc(var(--x) * 1%), calc(var(--y) * 1%)) rotate(var(--r)); } }

/* Riddle cards that turn over */
.flip { perspective: 1200px; cursor: pointer; min-height: 17rem; display: grid; }
.flip:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 14px; }
.flip-in { position: relative; display: grid; transition: transform .7s cubic-bezier(.3, .7, .2, 1); transform-style: preserve-3d; }
.flip.flipped .flip-in { transform: rotateY(180deg); }
.flip .face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem 1.4rem 1.2rem; display: grid; gap: .8rem; align-content: start; box-shadow: 0 16px 34px -26px rgba(44, 34, 51, .6); }
.flip .front::before { content: attr(data-suit); }
.flip .front { position: relative; }
.flip .front blockquote { margin: 0; font-family: var(--f-head); font-size: var(--s-1); color: var(--plum); line-height: 1.4; padding-right: 2rem; }
.flip .who-asks { font-size: .85rem; color: var(--ink-soft); font-style: italic; }
.flip .turn { margin-top: auto; font: 700 .72rem/1 var(--f-head); letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.flip .turn::before { content: "\21BB  "; }
.flip .back { transform: rotateY(180deg); align-content: center; justify-items: center; text-align: center; background: linear-gradient(160deg, var(--plum), #17505f); color: var(--card); border-color: transparent; }
.flip .back .postcard { width: 70%; --tilt: -2deg; }
.flip .back .answer { font-family: var(--f-title); text-transform: uppercase; font-size: var(--s-3); color: var(--gold); line-height: 1.1; }
.flip::after { content: attr(data-suit); position: absolute; }
.flip { position: relative; }
.flip::after { top: .9rem; right: 1.1rem; font-size: 1.6rem; color: var(--red); opacity: .8; z-index: 2; pointer-events: none; transition: opacity .3s; }
.flip.flipped::after { opacity: 0; }

/* Trick cards */
.trick { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem 1.4rem; display: grid; gap: .8rem; align-content: start; position: relative; }
.trick::before { content: attr(data-suit); position: absolute; top: .8rem; right: 1rem; font-size: 1.6rem; color: var(--red); opacity: .8; }
.trick h3 { font-size: var(--s-2); padding-right: 2rem; }
.trick .needs { font-style: italic; color: var(--ink-soft); }
.trick ol { margin: 0; padding-left: 1.3rem; display: grid; gap: .45rem; }
.trick .nod { border-top: 1px dashed var(--line); padding-top: .8rem; font-style: italic; color: var(--plum-2); }

/* Several postcards from one place, overlapping */
.series { display: grid; }
.series .postcard { grid-area: 1 / 1; }
.series .postcard:first-child { width: 78%; --tilt: -3deg; }
.series .postcard:nth-child(2) { width: 70%; justify-self: end; margin-top: 34%; --tilt: 2.5deg; z-index: 1; }
.series:hover .postcard:first-child { z-index: 2; }
.who .postcard + .postcard { margin-top: .6rem; }
.riddle-home { align-items: center; }
.more-cast { margin-top: 2.2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; max-width: 52rem; }
.more-cast p { flex: 1 1 22rem; color: var(--ink-soft); font-style: italic; }
.support { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.8rem); }
@media (max-width: 960px) { .support { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .support { grid-template-columns: 1fr; } }
.support .who h3 { font-size: var(--s-1); }
/* Riddle cards: playing-card size, old paper front, picture back */
.flip { width: min(100%, 16rem); aspect-ratio: 5 / 7; min-height: 0; justify-self: center; }
.flip-in, .flip .face { height: 100%; }
.flip .face { border-radius: 12px; padding: 1.3rem 1.1rem 1rem; }
.flip .front {
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(120, 84, 30, .16) 100%),
    repeating-linear-gradient(0deg, rgba(120, 90, 40, .035) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(90deg, rgba(120, 90, 40, .03) 0 1px, transparent 1px 7px),
    #f4ead2;
  border: 1px solid rgba(120, 84, 30, .35);
  box-shadow: inset 0 0 0 6px #f4ead2, inset 0 0 0 7px rgba(176, 132, 52, .55), 0 18px 30px -22px rgba(8, 32, 44, .7);
}
.flip .front blockquote { font-size: var(--s-0); padding-right: 1.2rem; }
.flip .back { padding: 0; overflow: hidden; background: #f4ead2; border: 1px solid rgba(120, 84, 30, .35); align-content: end; }
.flip .back > :first-child:not(.answer) { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; --tilt: 0deg; }
.flip .back .postcard, .flip .back .slot { border-radius: 0; box-shadow: none; transform: none; }
.flip .back .postcard img, .flip .back .postcard video { width: 100%; height: 100%; object-fit: cover; }
.flip .back .answer { position: relative; z-index: 1; margin: 0; width: 100%; padding: .7rem .5rem .8rem; font-size: var(--s-2); background: linear-gradient(transparent, rgba(8, 32, 44, .75)); }
.riddle-flips, .flips { justify-items: center; }
.flip .back > .slot, .flip .back > .postcard { aspect-ratio: auto !important; height: 100%; max-width: none; }
.flip .front { grid-template-rows: auto auto 1fr; }
.flip .front .turn { align-self: end; }
.riddles { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); justify-items: center; }
.flip .back > .postcard { padding: 0; border: 0; background: transparent; }
.flip .back > .postcard .pic { aspect-ratio: auto; height: 100%; border-radius: 0; }
.flip .back .answer { color: var(--gold); text-shadow: 0 2px 8px rgba(0,0,0,.5); }
/* 12:42 review */
.nav { gap: 0; }
.nav a { padding: .45rem .2rem; }
.nav > a + a::before { content: "\2666"; display: inline-block; margin: 0 clamp(.7rem, 1.6vw, 1.2rem); color: var(--gold); opacity: .7; font-size: .7em; vertical-align: .12em; }
.hero { padding-block: clamp(2rem, 4.5vw, 3.6rem) clamp(4.5rem, 8vw, 6.5rem); }
.hero::after { height: clamp(4rem, 8vw, 6rem); background: linear-gradient(180deg, rgba(248, 241, 228, 0), var(--paper)); }
.story-top .suits { padding-block: .4rem clamp(1rem, 2.5vw, 1.6rem); margin-top: -1.2rem; position: relative; z-index: 3; }
.cast-strip { list-style: none; margin: 2.4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem clamp(1rem, 3vw, 2.2rem); }
.cast-strip a { display: grid; justify-items: center; gap: .5rem; width: 6.5rem; text-decoration: none; color: var(--ink); font-family: var(--f-head); font-size: .9rem; text-align: center; }
.cast-strip a:hover { color: var(--plum-2); }
.cast-strip .postcard, .cast-strip img { width: 5.2rem; height: 5.2rem; border-radius: 50%; overflow: hidden; padding: 0; margin: 0; --tilt: 0deg; box-shadow: 0 0 0 3px var(--card), 0 0 0 4px rgba(185, 133, 42, .55), 0 10px 18px -12px rgba(8, 32, 44, .6); }
.cast-strip .postcard .pic { border-radius: 50%; font-size: 0; }
.cast-strip .postcard .pic span { font-size: .55rem; }
.rid-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 13.5rem)); gap: 1.2rem; justify-content: center; align-items: start; }
.rid-pair .flip { width: 100%; }
.rid-pair .flip:nth-child(2) { margin-top: 3.2rem; }
.rid-pair .flip .front blockquote { font-size: .98rem; }
@media (max-width: 520px) { .rid-pair { grid-template-columns: minmax(0, 15rem); } .rid-pair .flip:nth-child(2) { margin-top: 0; } }
@media (max-width: 900px)  { .nav > a + a::before { display: none; } .nav a { padding: .6rem 0; } }
/* 13:50 review */
.nowrap { white-space: nowrap; }
.hero .lede em.nowrap { display: inline-block; }
.hero-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: 1rem; color: #d4e6ea; }
.hero-points li { display: flex; gap: .6rem; align-items: baseline; }
.hero-points li::before { content: "\2666"; color: var(--gold); font-size: .75em; }
.hero-points b { color: var(--gold); font-weight: 500; }
.hero-actions { margin-top: .4rem; }
.hero-cover img { transition: none; }
.others { margin-top: 2.6rem; text-align: center; }
.others-lead { font-family: var(--f-head); letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; color: var(--red); margin: 0; }
.cast-strip { margin-top: 1.2rem; gap: 1.4rem clamp(1.4rem, 4vw, 3rem); }
.cast-strip a { width: 10rem; font-size: .95rem; }
.cast-strip .postcard, .cast-strip img { width: 8rem; height: 8rem; }
.cast-strip span { display: grid; gap: .1rem; line-height: 1.3; }
.cast-strip span b { font-weight: 700; font-size: 1.05rem; }
.cast-strip span { font-family: var(--f-body); font-style: italic; color: var(--ink-soft); }
.cast-strip span b { font-family: var(--f-head); font-style: normal; color: var(--ink); }
.hero .lede em.nowrap { display: block; }
.hero-points li { display: block; position: relative; padding-left: 1.2rem; }
.hero-points li::before { position: absolute; left: 0; top: .1em; }
/* 14:10 review */
.others-more { margin: 1rem 0 0; font-family: var(--f-head); font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; }
.others-more a { color: var(--plum-2); }
.support { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .support { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .support { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .support { grid-template-columns: 1fr; } }
.real-tiger-btn { margin-top: .4rem; font: 600 .85rem/1 var(--f-head); letter-spacing: .08em; padding: .6rem 1rem; border-radius: 999px; border: 1px dashed var(--plum-2); background: transparent; color: var(--plum); cursor: pointer; }
.real-tiger-btn:hover { background: var(--card); }
.real-tiger { border: 0; border-radius: 14px; padding: 1rem 1.1rem 1.1rem; width: min(92vw, 34rem); background: var(--card); color: var(--ink); box-shadow: 0 30px 60px -20px rgba(8, 32, 44, .7); }
.real-tiger::backdrop { background: rgba(8, 32, 44, .6); }
.rt-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .7rem; }
.rt-head p { margin: 0; font-family: var(--f-head); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--plum); }
.rt-close { border: 0; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink-soft); }
.rt-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.rt-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; border: 4px solid #fff; box-shadow: 0 6px 14px -8px rgba(0,0,0,.5); }
.rt-photos .postcard { margin: 0; padding: 0; --tilt: 0deg; }
.rt-photos .postcard .pic span { font-size: .5rem; }
.rt-note { margin: .7rem 0 0; font-size: .8rem; color: var(--ink-soft); font-style: italic; }
.real-tiger-btn { justify-self: start; width: auto; display: inline-block; }
/* 14:18 review: places tabs, other places, smaller pile, about pics */
.ptabs { display: flex; gap: .7rem; margin-top: 2rem; flex-wrap: wrap; }
.ptab { font: 700 .9rem/1 var(--f-head); letter-spacing: .1em; text-transform: uppercase; padding: .8rem 1.4rem; border-radius: 999px; border: 1px solid var(--plum); background: var(--card); color: var(--plum); cursor: pointer; }
.ptab[aria-selected="true"] { background: var(--plum); color: var(--gold); }
.js .region[hidden] { display: none; }
.other-head { margin: 2.6rem 0 1rem; font-size: var(--s-1); color: var(--plum); }
.region .trio { margin-top: 0; }
.signup-art .pile { max-width: 20rem; align-self: start; }
.signup { align-items: start; }
.about-wrap { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.about-pics { display: grid; gap: 1.4rem; }
@media (max-width: 760px) { .about-wrap { grid-template-columns: 1fr; } .about-pics { grid-template-columns: 1fr 1fr; } }
/* support cards: show the full 4:5 portrait, never crop heads */
.support .who .postcard .pic { --ratio: 4 / 5; }
.support .who .postcard .pic img { object-position: center top; }
.panel-pic { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 5px solid #fff; box-shadow: 0 6px 14px -8px rgba(0,0,0,.45); margin-bottom: .8rem; }

/* ---- 15:45 review ---- */
/* Footer: one slim line, email on the right */
.site-foot { padding-block: 1rem; margin-top: clamp(1.5rem, 4vw, 3rem); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.5rem; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.1rem; margin: 0; font-size: .8rem; }
.foot-links .brand { font-size: .95rem; }
.site-foot .socials { display: contents; }
.site-foot .socials a { padding: 0; border: 0; border-radius: 0; font-size: .8rem; background: none; }
.site-foot .socials svg { display: none; }
.foot-note { font-size: .8rem; color: #a9c6cc; }
.foot-mail { font-size: .85rem; }
@media (max-width: 640px) { .foot-row { justify-content: flex-start; } }

/* Riddle cards: ornate question mark, no suits, coloured edges */
.flip::after, .flip .front::before { content: none !important; }
.flip { width: min(100%, 17.5rem); }
.flip .front blockquote { font-size: .95rem; padding-right: 0; text-wrap: balance; }
.flip .front { grid-template-rows: auto auto 1fr auto; --edge: #b08434; }
.flip .qmark { align-self: center; justify-self: center; margin: 0; font-family: "Cinzel Decorative", var(--f-title); font-weight: 700; font-size: 6.5rem; line-height: 1; color: var(--edge);
  text-shadow: 0 1px 0 rgba(255,255,255,.6), 0 6px 16px rgba(120, 84, 30, .25); }
.flip .qmark::before, .flip .qmark::after { content: "\2767"; font-size: 1.1rem; vertical-align: middle; margin-inline: .4rem; opacity: .7; }
.flip .qmark::before { display: inline-block; transform: scaleX(-1); }
.flip .front { box-shadow: inset 0 0 0 6px #f4ead2, inset 0 0 0 8px var(--edge), inset 0 0 0 11px #f4ead2, inset 0 0 0 12px var(--edge), 0 18px 30px -22px rgba(8, 32, 44, .7); }
.flip:nth-of-type(4n+1) .front { --edge: #1f6b78; }
.flip:nth-of-type(4n+2) .front { --edge: #9b2f3a; }
.flip:nth-of-type(4n+3) .front { --edge: #b08434; }
.flip:nth-of-type(4n+4) .front { --edge: #4f7a3a; }
.flip .who-asks { margin: 0; }

/* Trick cards: drawing top right, rows line up across both cards */
.tricks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); column-gap: 1.2rem; }
.tricks .trick { grid-row: span 4; grid-template-rows: subgrid; gap: 0; row-gap: .8rem; }
.trick::before { content: none; }
.trick-head { display: grid; grid-template-columns: minmax(0, 1fr) 5.5rem; gap: 1rem; align-items: start; }
.trick-head h3 { padding-right: 0; }
.trick-art .slot, .trick-art img { width: 100%; }
.trick-art .slot span { font-size: .55rem; }
.trick .nod { align-self: start; }
@media (max-width: 760px) { .tricks { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 1.2rem; } .tricks .trick { grid-row: auto; grid-template-rows: none; } }

/* Workbook pile: bigger, more pages, hover lifts a page */
.signup { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.signup-art .pile { max-width: 34rem; aspect-ratio: 1 / 1.08; }
.pile img { width: 36%; top: 4%; }
.pile.settled img { transition: transform .25s ease, box-shadow .25s ease; transition-delay: 0s; }
.js .pile.in.settled img:hover, .pile.settled img:hover { z-index: 20; transform: translate(-50%, 0) translate(calc(var(--x) * 1%), calc(var(--y) * 1%)) rotate(0deg) scale(1.55); box-shadow: 0 24px 40px -14px rgba(10, 6, 20, .8); }
@media (max-width: 860px) { .signup-art .pile { max-width: 26rem; } }

/* Other places: picture slot inside a card */
.panel-pic .slot { width: 100%; margin-bottom: .8rem; }
.panel-pic:has(.slot) { border: 0; box-shadow: none; aspect-ratio: auto; }
.trick-art { width: 5.5rem; }
.trick-art .slot { aspect-ratio: 1 / 1; }
.site-foot .socials a { text-decoration: underline; }
.flip .turn { font-size: .64rem; letter-spacing: .08em; white-space: nowrap; }
.rid-pair .flip .front blockquote { font-size: .9rem; }
.rid-pair .flip .qmark { font-size: 5rem; }
.js .pile.in.settled img:hover, .pile.settled img:hover { transform: translate(-50%, 0) translate(calc(var(--x) * 1%), calc(var(--y) * 1%)) rotate(0deg) scale(1.4); }
.flip .back:not(:has(.postcard)) { align-content: center; background: radial-gradient(circle at 50% 40%, #1f6b78, #0d3440); border-color: #b08434; box-shadow: inset 0 0 0 6px #0d3440, inset 0 0 0 7px rgba(240, 200, 110, .6); }
.flip .back:not(:has(.postcard)) .answer { background: none; font-size: var(--s-3); }
.trick-art img { display:block; width:100%; height:auto; }

/* Free sample reading page */
.reader { max-width: 38rem; margin-inline: auto; font-size: 1.1rem; line-height: 1.75; }
.reader > p { margin: 0; text-indent: 1.4em; }
.reader > p.first, .reader > p.centre, .reader > p.scene-break { text-indent: 0; }
.reader > p.first::first-letter { font-family: var(--f-title); float: left; font-size: 3.4em; line-height: .85; padding: .08em .1em 0 0; color: var(--red); }
.reader > h2 { text-align: center; font-size: var(--s-2); margin: 3rem 0 1.4rem; }
.reader > h2:first-child { margin-top: 0; }
.reader > h2::before { content: "\2666"; display: block; font-size: .9rem; color: var(--gold, #b08434); margin-bottom: .4rem; }
.reader > p.centre { text-align: center; font-style: italic; margin-block: .8rem; }
.reader > p.scene-break { text-align: center; color: var(--gold, #b08434); letter-spacing: .6em; margin-block: 1.6rem; }
.reader-end { margin-top: 3rem; padding: 1.8rem 1.6rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); text-align: center; display: grid; gap: .8rem; justify-items: center; }
.reader-end h2 { font-size: var(--s-2); }
.reader > p { text-wrap: wrap; }

.signup .grownup { color: #f3e3b0; font-size: .95rem; margin: .2rem 0 .5rem; }

/* 5 Dec: author photo floats right and the text wraps round it (computer and phone) */
.about-wrap { display: block; max-width: calc(52rem + var(--gutter) + var(--gutter-r)); margin-left: max(0px, calc((100% - var(--wrap)) / 2)); margin-right: auto; }
.about-wrap::after { content: ""; display: block; clear: both; }
.about-wrap .prose { display: block; max-width: none; }
.about-wrap .prose > * + * { margin-top: 1rem; }
.about-pics { display: block; float: right; width: 17rem; margin: .3rem 0 1.2rem 2.2rem; }
.about-pics .postcard figcaption { font-size: .74rem; line-height: 1.35; padding: .5rem .25rem .6rem; }
@media (max-width: 760px) {
  .about-pics { width: 44%; max-width: 13rem; margin: .3rem 0 .8rem 1.1rem; }
  .about-pics .postcard figcaption { font-size: .72rem; padding: .45rem .2rem .55rem; }
}
/* 5 Dec: Cardiff Castle has two pictures on the left, text on the right */
.place-two { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.place-two .place-pics { padding-bottom: 1rem; }
.place-two .series .postcard:first-child { width: 82%; }
.place-two .series .postcard:nth-child(2) { width: 52%; margin-top: 40%; }
@media (max-width: 760px) { .place-two { grid-template-columns: 1fr; } }
/* 5 Dec: trick pictures bigger, cut out (no white square) */
.trick-head { grid-template-columns: minmax(0, 1fr) 12rem; align-items: center; }
.trick-art { width: 12rem; }
@media (max-width: 760px) { .trick-head { grid-template-columns: minmax(0, 1fr) 8.5rem; } .trick-art { width: 8.5rem; } }
.place-two .series .postcard { align-self: start; }
/* 5 Dec 02:27: author photo sits on the right-hand margin of the page */
.about-wrap { max-width: var(--wrap); margin-inline: auto; }
@media (min-width: 761px) { .about-pics { width: 12.75rem; margin-right: 2.4rem; } }
.rt-note { margin: .9rem 0 0; font-style: italic; text-align: center; color: var(--ink-soft); }
/* 5 Dec: supporting cast sits a little closer (gap about 20% smaller) */
.band:has(#support-title) { padding-top: clamp(1.5rem, 3.5vw, 2.75rem); }
/* 5 Dec: riddle text bigger, question marks at the same height on every card */
.flip .front blockquote { font-size: 1.28rem; line-height: 1.35; padding-right: .6rem; }
.flip .front .qmark { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); white-space: nowrap; }
.flip .front blockquote { font-size: 1.16rem; padding-right: 0; }
.flip .front .turn { position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1rem; margin: 0; }
.flips .flip, .riddles .flip { width: min(100%, 17.5rem); }
.flip .front blockquote { font-size: 1.12rem; }
.riddles .flip .front blockquote { text-wrap: wrap; }
.riddles .flip { width: min(100%, 18.5rem); }
.riddles .flip .front blockquote { font-size: 1.05rem; white-space: nowrap; }
.flip .front .turn { white-space: normal; line-height: 1.3; }
.rid-pair .flip .front .turn { font-size: .58rem; letter-spacing: .05em; }
/* 5 Dec: tabs already name the region, so the region band starts closer */
.region { padding-top: clamp(1rem, 2.5vw, 1.8rem); }
/* 5 Dec: three-picture scene = one big picture on top, two smaller ones under it */
.scene-pics > :first-child:nth-last-child(3) { grid-column: 1 / -1; }
.scene-pics > :first-child:nth-last-child(3) ~ * { width: 82%; margin-top: 0; justify-self: center; }
/* 5 Dec 03:15: the two magic set pictures are bigger, overlap each other and tuck under the big picture */
.scene-pics > :first-child:nth-last-child(3) { position: relative; z-index: 3; }
.scene-pics > :first-child:nth-last-child(3) ~ * { grid-column: 1 / -1; grid-row: 2; width: 60%; margin-top: -2.6rem; position: relative; }
.scene-pics > :first-child:nth-last-child(3) + * { justify-self: start; z-index: 1; --tilt: -3deg; }
.scene-pics > :first-child:nth-last-child(3) + * + * { justify-self: end; z-index: 2; --tilt: 2.5deg; margin-top: -1.2rem; }
.scene-pics > :first-child:nth-last-child(3) ~ * { width: 56%; }
.scene-pics > :first-child:nth-last-child(3) + * { z-index: 2; }
.scene-pics > :first-child:nth-last-child(3) + * + * { z-index: 1; }
/* 5 Dec 03:16: magic set pictures lie on top of the Christmas picture */
.scene-pics > :first-child:nth-last-child(3) { z-index: 1; }
.scene-pics > :first-child:nth-last-child(3) + * { z-index: 5; }
.scene-pics > :first-child:nth-last-child(3) + * + * { z-index: 4; }
/* 5 Dec 03:17: scattered postcards - big picture, two smaller ones tossed over its lower edge */
.scene-pics > :first-child:nth-last-child(3) { --tilt: -1.2deg !important; }
.scene-pics > :first-child:nth-last-child(3) ~ * { width: 48%; }
.scene-pics > :first-child:nth-last-child(3) + * { --tilt: -6deg !important; justify-self: start; margin-left: 6%; margin-top: -3.2rem; }
.scene-pics > :first-child:nth-last-child(3) + * + * { --tilt: 5deg !important; justify-self: end; margin-right: 3%; margin-top: -1rem; }
.scene-pics > :first-child:nth-last-child(3) ~ * { width: 42%; }
.scene-pics > :first-child:nth-last-child(3) + * { margin-left: 9%; }
.scene-pics > :first-child:nth-last-child(3) + * + * { margin-right: 8%; }
/* 5 Dec: Buy the book lozenge, far right of the top menu */
.nav { margin-left: auto; }
.nav-buy { margin-left: clamp(.9rem, 2vw, 1.6rem); display: inline-flex; align-items: center; white-space: nowrap; font-family: var(--f-head); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--ink); background: var(--gold); border-radius: 999px; padding: .55rem 1rem; box-shadow: 0 4px 12px -6px rgba(0,0,0,.5); transition: transform .2s, background .2s; }
.nav-buy:hover, .nav-buy[aria-current="page"] { color: var(--ink); background: #f7d88a; transform: translateY(-1px); }
@media (max-width: 900px) {
  .menu-btn { margin-left: auto; }
  .nav { margin-left: 0; }
  .nav-buy { margin-left: .6rem; padding: .5rem .85rem; font-size: .72rem; }
}
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.text-page .prose h3 { font-size: 1.1rem; margin: .6rem 0 -.4rem; color: var(--plum-2); }
.trio.duo { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 56rem; }
@media (max-width: 860px) { .trio.duo { grid-template-columns: 1fr; } }
