/* ==========================================================================
   Owlbrook Puzzles — site stylesheet
   Brand: navy #2B3A55 · deep navy #1E2A40 · cream #F4E9D8 · amber #F2A541
   Type:  Poppins (labels, UI) · Lora (reading, headings)
   ========================================================================== */

/* ---------- Fonts (self-hosted: no calls to third parties) ---------- */
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/poppins-400.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/poppins-500.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/poppins-700.woff") format("woff"); }
@font-face { font-family: "Lora"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/lora-400.woff") format("woff"); }
@font-face { font-family: "Lora"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/lora-400i.woff") format("woff"); }
@font-face { font-family: "Lora"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/lora-600.woff") format("woff"); }
@font-face { font-family: "Lora"; font-weight: 600; font-style: italic; font-display: swap; src: url("../fonts/lora-600i.woff") format("woff"); }

/* ---------- Tokens ---------- */
:root {
  --navy-950: #0F1626;
  --navy-900: #151E31;
  --navy-800: #1E2A40;
  --navy-700: #2B3A55;
  --navy-600: #3B4D6E;
  --navy-400: #7C8BA8;
  --cream-50: #FDF9F2;
  --cream-100: #F9F2E6;
  --cream-200: #F4E9D8;
  --cream-300: #EADBC2;
  --cream-400: #D9C8A9;
  --amber-300: #F7C274;
  --amber-400: #F2A541;
  --amber-500: #E4912A;
  --amber-700: #8F5207;          /* amber for text on cream (AA) */
  --ink: #1E2A40;
  --ink-soft: #4B5770;
  --line: rgba(30, 42, 64, .14);
  --line-strong: rgba(30, 42, 64, .28);
  --ok: #2F7D4F;
  --bad: #B3382C;

  --font-sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;

  --radius-s: 6px;
  --radius: 12px;
  --radius-l: 20px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;

  --shadow-s: 0 1px 2px rgba(15, 22, 38, .08), 0 2px 8px rgba(15, 22, 38, .06);
  --shadow: 0 2px 6px rgba(15, 22, 38, .10), 0 12px 32px rgba(15, 22, 38, .12);
  --shadow-book: 0 1px 1px rgba(0,0,0,.18), 0 6px 14px rgba(8,12,24,.28), 0 22px 44px rgba(8,12,24,.30);

  /* default "theme" values (used by themed sections) */
  --t-bg: var(--cream-100);
  --t-bg2: var(--cream-200);
  --t-ink: var(--ink);
  --t-soft: var(--ink-soft);
  --t-accent: var(--amber-400);
  --t-accent-text: var(--amber-700);
  --t-line: var(--line);
}

/* Series colourways (match the covers and banners) */
[data-theme="owlbrook-puzzles"] { --t-bg: #F4E9D8; --t-bg2: #EADBC2; --t-ink: #1E2A40; --t-soft: #4B5770; --t-accent: #F2A541; --t-accent-text: #8F5207; --t-line: rgba(30,42,64,.16); }
[data-theme="owlbrook-noir"]    { --t-bg: #131419; --t-bg2: #1D1F27; --t-ink: #F4E9D8; --t-soft: #C9BFAE; --t-accent: #E0574B; --t-accent-text: #F08A80; --t-line: rgba(244,233,216,.14); }
[data-theme="owlbrook-oddities"]{ --t-bg: #22172F; --t-bg2: #2E2041; --t-ink: #F4E9D8; --t-soft: #D2C6DC; --t-accent: #B9CE67; --t-accent-text: #CBDC86; --t-line: rgba(244,233,216,.14); }
[data-theme="owlbrook-legends"] { --t-bg: #111A2E; --t-bg2: #1A2742; --t-ink: #F4E9D8; --t-soft: #C8CBD6; --t-accent: #E8BF64; --t-accent-text: #F0CF86; --t-line: rgba(244,233,216,.14); }
[data-theme="owlbrook-grim-tales"]{ --t-bg: #1F1426; --t-bg2: #2C1D37; --t-ink: #F4E9D8; --t-soft: #D5C9DE; --t-accent: #BDA4E2; --t-accent-text: #D0BDEC; --t-line: rgba(244,233,216,.14); }
[data-theme="night"]            { --t-bg: #151E31; --t-bg2: #1E2A40; --t-ink: #F4E9D8; --t-soft: #C7CCD8; --t-accent: #F2A541; --t-accent-text: #F7C274; --t-line: rgba(244,233,216,.14); }

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--cream-50);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow-x: clip) { body { overflow-x: clip; } }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.55rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); }
h4 { font-size: 1.1rem; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--amber-400); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--amber-300); color: var(--navy-900); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--amber-400); color: var(--navy-900); padding: 10px 16px; border-radius: var(--radius-s); font-family: var(--font-sans); font-weight: 500; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }
.wrap--text { max-width: 720px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--themed { background: var(--t-bg); color: var(--t-ink); }
.section--alt { background: var(--cream-100); }
.section--cream { background: var(--cream-200); }
.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-sans); font-size: .78rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--t-accent-text, var(--amber-700));
  margin: 0 0 .9rem;
}
.eyebrow::before { content: ""; width: 11px; height: 11px; flex: none; background:
  linear-gradient(currentColor 0 0) 0 0/3px 3px no-repeat, linear-gradient(currentColor 0 0) 4px 0/3px 3px no-repeat, linear-gradient(currentColor 0 0) 8px 0/3px 3px no-repeat,
  linear-gradient(currentColor 0 0) 0 4px/3px 3px no-repeat, linear-gradient(var(--amber-400) 0 0) 4px 4px/3px 3px no-repeat, linear-gradient(currentColor 0 0) 8px 4px/3px 3px no-repeat,
  linear-gradient(currentColor 0 0) 0 8px/3px 3px no-repeat, linear-gradient(currentColor 0 0) 4px 8px/3px 3px no-repeat, linear-gradient(currentColor 0 0) 8px 8px/3px 3px no-repeat; opacity: .9; }
.lede { font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); line-height: 1.6; color: var(--t-soft, var(--ink-soft)); }
.section--themed .lede { color: var(--t-soft); }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }
.tiny { font-size: .8rem; }
.sans { font-family: var(--font-sans); }
.italic { font-style: italic; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; }
.section-head h2 { margin-bottom: .35em; }
.section-head p:last-child { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--amber-400); --b-ink: var(--navy-900); --b-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 46px; padding: .7em 1.35em;
  background: var(--b-bg); color: var(--b-ink); border: 1.5px solid var(--b-bd);
  border-radius: 999px; text-decoration: none; font-family: var(--font-sans); font-weight: 500; font-size: .95rem; line-height: 1.2;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(242, 165, 65, .28); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn--ghost { --b-bg: transparent; --b-ink: currentColor; --b-bd: currentColor; }
.btn--ghost:hover { box-shadow: none; background: rgba(127, 127, 127, .12); }
.btn--navy { --b-bg: var(--navy-700); --b-ink: var(--cream-100); }
.btn--navy:hover { box-shadow: 0 6px 18px rgba(30, 42, 64, .25); }
.btn--soft { --b-bg: rgba(242,165,65,.14); --b-ink: currentColor; --b-bd: rgba(242,165,65,.55); }
.btn--sm { min-height: 38px; padding: .5em 1em; font-size: .86rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.link-arrow { font-family: var(--font-sans); font-weight: 500; font-size: .95rem; color: var(--t-accent-text, var(--amber-700)); text-decoration: none; display: inline-flex; gap: .4em; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .15s ease; }
.link-arrow:hover::after { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #151E31;
  color: var(--cream-100);
  border-bottom: 1px solid rgba(244, 233, 216, .08);
}
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(21, 30, 49, .95); backdrop-filter: saturate(140%) blur(10px); } }
.site-header__inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; flex: none; }
.brand svg { width: 38px; height: 46px; }
.brand__word { font-family: var(--font-sans); font-weight: 700; font-size: .95rem; letter-spacing: .3em; line-height: 1.15; text-transform: uppercase; }
.brand__word span { display: block; font-family: var(--font-serif); font-weight: 400; font-style: italic; font-size: .72rem; letter-spacing: .02em; text-transform: none; opacity: .75; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a, .nav__drop > button { font-family: var(--font-sans); font-size: .92rem; font-weight: 500; color: var(--cream-100); text-decoration: none; padding: 10px 12px; border-radius: 8px; background: none; border: 0; display: inline-flex; align-items: center; gap: 6px; }
.nav a:hover, .nav__drop > button:hover, .nav a[aria-current="page"] { background: rgba(244, 233, 216, .08); }
.nav a[aria-current="page"] { color: var(--amber-300); }
.nav .btn { margin-left: 8px; color: var(--navy-900); background: var(--amber-400); padding: .6em 1.15em; }
.nav .btn:hover { background: var(--amber-300); }
.nav__drop { position: relative; }
.nav__drop > button svg { width: 12px; height: 12px; transition: transform .2s ease; }
.nav__drop[data-open] > button svg { transform: rotate(180deg); }
.nav__menu { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: 330px; background: var(--navy-800); border: 1px solid rgba(244,233,216,.1); border-radius: 14px; padding: 8px; box-shadow: 0 18px 40px rgba(0,0,0,.35); display: none; }
.nav__drop[data-open] .nav__menu { display: block; }
.nav__menu a { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 10px; }
.nav__menu a:hover { background: rgba(244,233,216,.07); }
.nav__menu .dot { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.nav__menu strong { display: block; font-weight: 500; font-size: .92rem; }
.nav__menu small { display: block; font-family: var(--font-serif); font-style: italic; font-size: .8rem; opacity: .72; font-weight: 400; }
.nav__menu .nav__all { justify-content: center; font-size: .85rem; color: var(--amber-300); border-top: 1px solid rgba(244,233,216,.08); margin-top: 4px; border-radius: 0 0 10px 10px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--cream-100); width: 46px; height: 46px; border-radius: 10px; }
.nav-toggle svg { width: 26px; height: 26px; margin: auto; }
.nav-toggle:hover { background: rgba(244,233,216,.08); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--gutter) 24px; background: var(--navy-900); border-bottom: 1px solid rgba(244,233,216,.1); box-shadow: 0 20px 40px rgba(0,0,0,.35); max-height: calc(100vh - var(--header-h)); overflow-y: auto; display: none; }
  .nav[data-open] { display: flex; }
  .nav a, .nav__drop > button { padding: 14px 12px; font-size: 1rem; width: 100%; justify-content: space-between; }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
  .nav__menu { position: static; transform: none; width: auto; box-shadow: none; border: 0; background: rgba(244,233,216,.04); margin: 2px 0 8px; }
  .brand__word { font-size: .82rem; letter-spacing: .24em; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(59, 77, 110, .55), transparent 60%),
    radial-gradient(800px 500px at 0% 110%, rgba(242, 165, 65, .10), transparent 60%),
    linear-gradient(180deg, #121A2C 0%, #1B2740 100%);
  color: var(--cream-100);
}
.hero::before { /* stars */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .75;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 62%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 44% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 63% 38%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 71% 8%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 86% 54%, #fff 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 94% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 7% 84%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 86%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 36% 36%, #fff 50%, transparent 51%);
  background-size: 640px 420px;
}
.hero__moon { position: absolute; z-index: -1; width: clamp(90px, 12vw, 150px); aspect-ratio: 1; right: 7%; top: 11%; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFF6E3, #F4E2BF 55%, #E8CD98); box-shadow: 0 0 60px 12px rgba(247, 194, 116, .18); opacity: .9; }
.hero__moon::after { content: ""; position: absolute; inset: -6% -6% 18% 24%; border-radius: 50%; background: #16203A; }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(56px, 8vw, 110px) clamp(64px, 9vw, 120px); }
.hero h1 { color: #FFF8EC; margin-bottom: .4em; }
.hero h1 em { font-style: italic; color: var(--amber-300); }
.hero .lede { color: #D4D8E2; max-width: 36em; }
.hero .btn-row { margin-top: 1.8rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 2rem 0 0; padding: 0; list-style: none; font-family: var(--font-sans); font-size: .85rem; color: #C7CCD8; }
.hero__trust li { display: inline-flex; gap: 8px; align-items: center; }
.hero__trust svg { width: 16px; height: 16px; color: var(--amber-300); flex: none; }
.hero__books { position: relative; height: clamp(320px, 36vw, 470px); }
.hero__books a { position: absolute; bottom: 4%; width: 41%; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.hero__books img { border-radius: 3px 6px 6px 3px; box-shadow: var(--shadow-book); }
.hero__books a:nth-child(1) { left: 0%;  transform: rotate(-9deg) translateY(4%); z-index: 1; }
.hero__books a:nth-child(2) { left: 19.5%; transform: rotate(-3deg) translateY(-6%); z-index: 2; }
.hero__books a:nth-child(3) { left: 39%; transform: rotate(3deg) translateY(-9%); z-index: 3; }
.hero__books a:nth-child(4) { left: 59%; transform: rotate(9deg) translateY(-2%); z-index: 2; }
.hero__books a:hover { transform: rotate(0) translateY(-14%) scale(1.03); z-index: 5; }
.hero__badge { position: absolute; z-index: 6; left: -3%; top: 0; background: var(--amber-400); color: var(--navy-900); font-family: var(--font-sans); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; text-align: center; line-height: 1.25; transform: rotate(10deg); box-shadow: 0 10px 24px rgba(0,0,0,.3); }
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__books { height: clamp(260px, 70vw, 420px); max-width: 560px; width: 100%; margin-inline: auto; }
  .hero__moon { top: 3%; right: 4%; }
}

/* ---------- Page header (inner pages) ---------- */
.page-hero { background: linear-gradient(180deg, #151E31, #1E2A40); color: var(--cream-100); padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 72px); position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: radial-gradient(1px 1px at 20% 30%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 70% 20%, #fff 50%, transparent 51%), radial-gradient(1.3px 1.3px at 85% 70%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 40% 80%, #fff 50%, transparent 51%); background-size: 520px 300px; }
.page-hero h1 { color: #FFF8EC; margin-bottom: .3em; }
.page-hero .lede { color: #C9CEDA; max-width: 42em; margin-bottom: 0; }
.page-hero .eyebrow { color: var(--amber-300); }
.breadcrumb { font-family: var(--font-sans); font-size: .82rem; margin: 0 0 1.4rem; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; opacity: .85; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Book cover ---------- */
.cover { display: block; position: relative; }
.cover img { width: 100%; border-radius: 2px 5px 5px 2px; box-shadow: var(--shadow-book); }
.cover--spine img { box-shadow: inset 6px 0 8px -6px rgba(0,0,0,.35), var(--shadow-book); }

/* ---------- Status badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-sans); font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; line-height: 1; white-space: nowrap; }
.badge--live { background: #E4F2E8; color: #1F5C37; }
.badge--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2F9E5B; box-shadow: 0 0 0 3px rgba(47, 158, 91, .2); }
.badge--soon { background: #FFF1DA; color: #7A4608; }
.badge--soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber-500); }
.badge--series { background: rgba(30,42,64,.07); color: var(--ink-soft); }

/* ---------- Book cards ---------- */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 232px), 1fr)); gap: clamp(28px, 3.5vw, 44px) clamp(20px, 2.6vw, 32px); }
.book-card { display: flex; flex-direction: column; gap: 14px; position: relative; }
.book-card__shelf { position: relative; height: 290px; display: flex; align-items: flex-end; justify-content: center; padding: 18px 18px 0; background: linear-gradient(180deg, transparent 0, transparent 70%, rgba(30,42,64,.05) 100%); border-radius: var(--radius) var(--radius) 0 0; }
.book-card__shelf::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: -8px; height: 8px; border-radius: 0 0 6px 6px; background: linear-gradient(180deg, #CDB894, #B99F77); box-shadow: 0 6px 10px rgba(30,42,64,.12); }
.book-card__shelf a { display: block; max-height: 100%; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.book-card__shelf img { max-height: 272px; width: auto; max-width: 100%; margin-inline: auto; border-radius: 2px 5px 5px 2px; box-shadow: var(--shadow-book); }
.book-card:hover .book-card__shelf a { transform: translateY(-6px) rotate(-1deg); }
.book-card__badges { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; gap: 6px; }
.book-card__body { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; flex: 1; }
.book-card__series { font-family: var(--font-sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin: 0; display: flex; align-items: center; gap: 8px; }
.book-card__series i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.book-card__title { font-size: 1.22rem; margin: 0; }
.book-card__title a { text-decoration: none; }
.book-card__title a:hover { text-decoration: underline; }
.book-card__title a::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 290px; }
.book-card__kind { font-family: var(--font-sans); font-size: .84rem; color: var(--ink-soft); margin: 0; }
.book-card__hook { font-size: .98rem; color: var(--ink); font-style: italic; margin: 2px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.book-card__buy { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.book-card__price { font-family: var(--font-sans); font-weight: 500; font-size: .95rem; }
.book-card__buy .btn { position: relative; z-index: 2; }

.swatch-owlbrook-puzzles { background: #F2A541; }
.swatch-owlbrook-noir { background: #D9463B; }
.swatch-owlbrook-oddities { background: #8FA640; }
.swatch-owlbrook-legends { background: #D4A646; }
.swatch-owlbrook-grim-tales { background: #9C80C8; }

/* Horizontal scroll shelf */
.shelf-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 200px); gap: 24px; overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.shelf-scroll > * { scroll-snap-align: start; }
.mini-book { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.mini-book__img { height: 250px; display: flex; align-items: flex-end; justify-content: center; }
.mini-book__img img { max-height: 250px; width: auto; border-radius: 2px 4px 4px 2px; box-shadow: var(--shadow-book); transition: transform .25s ease; }
.mini-book:hover .mini-book__img img { transform: translateY(-5px); }
.mini-book__t { font-weight: 600; font-size: 1rem; line-height: 1.3; }
.mini-book__s { font-family: var(--font-sans); font-size: .76rem; color: var(--t-soft, var(--ink-soft)); letter-spacing: .04em; }

/* ---------- Series cards ---------- */
.series-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.series-card { grid-column: span 2; display: flex; flex-direction: column; border-radius: var(--radius-l); overflow: hidden; background: var(--t-bg); color: var(--t-ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; border: 1px solid var(--t-line); }
.series-card:nth-child(4), .series-card:nth-child(5) { grid-column: span 3; }
.series-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15,22,38,.2); }
.series-card__img { aspect-ratio: 2400 / 1256; overflow: hidden; }
.series-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.series-card:hover .series-card__img img { transform: scale(1.03); }
.series-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.series-card__label { font-family: var(--font-sans); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--t-accent-text); margin: 0; }
.series-card h3 { margin: 0; font-size: 1.45rem; }
.series-card p { margin: 0; color: var(--t-soft); font-size: .98rem; }
.series-card__meta { margin-top: auto !important; padding-top: 12px; font-family: var(--font-sans); font-size: .82rem; display: flex; justify-content: space-between; gap: 10px; color: var(--t-soft); }
.series-card__meta b { color: var(--t-accent-text); font-weight: 500; }
@media (max-width: 1000px) { .series-grid { grid-template-columns: 1fr 1fr; } .series-card, .series-card:nth-child(4), .series-card:nth-child(5) { grid-column: span 1; } .series-card:nth-child(5) { grid-column: span 2; } }
@media (max-width: 640px) { .series-grid { grid-template-columns: 1fr; } .series-card:nth-child(5) { grid-column: span 1; } }

/* ---------- Feature pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 22px; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 26px 24px; box-shadow: var(--shadow-s); }
.pillar__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--navy-700); color: var(--amber-300); display: grid; place-items: center; margin-bottom: 16px; }
.pillar__icon svg { width: 26px; height: 26px; }
.pillar h3 { font-size: 1.2rem; margin-bottom: .35em; }
.pillar p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* ---------- Callout / band ---------- */
.band { border-radius: var(--radius-l); padding: clamp(28px, 5vw, 56px); background: var(--navy-800); color: var(--cream-100); position: relative; overflow: hidden; }
.band h2, .band h3 { color: #FFF8EC; }
.band .lede, .band p { color: #C9CEDA; }
.band--amber { background: linear-gradient(135deg, #F7C274, #F2A541); color: var(--navy-900); }
.band--amber h2, .band--amber h3 { color: var(--navy-900); }
.band--amber p, .band--amber .lede { color: #3A3120; }
.band__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 820px) { .band__grid { grid-template-columns: 1fr; } }
.band__owl { position: absolute; right: -20px; bottom: -30px; width: 180px; opacity: .08; pointer-events: none; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label, .label { font-family: var(--font-sans); font-size: .86rem; font-weight: 500; }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: #fff; color: var(--ink); font-family: var(--font-sans); font-size: 1rem; }
.textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--amber-500); box-shadow: 0 0 0 4px rgba(242,165,65,.22); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231E2A40' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 38px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; line-height: 1.45; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--amber-500); }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form .input { flex: 1 1 240px; }
.form-note { font-size: .82rem; opacity: .8; margin: 0; }
.form-msg { font-family: var(--font-sans); font-size: .92rem; border-radius: 10px; padding: 12px 14px; margin: 0; }
.form-msg--ok { background: #E4F2E8; color: #1F5C37; }
.form-msg--err { background: #FBE6E3; color: #8A2A20; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.band .input, .section--themed .input { border-color: transparent; }

/* ---------- Book page ---------- */
.book-hero { background: var(--t-bg); color: var(--t-ink); padding-block: clamp(32px, 5vw, 56px) clamp(48px, 7vw, 88px); position: relative; overflow: hidden; }
.book-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 500px at 15% 30%, rgba(255,255,255,.07), transparent 60%); pointer-events: none; }
.book-hero .breadcrumb { color: var(--t-soft); }
.book-hero__grid { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; position: relative; }
.book-hero__cover { position: sticky; top: calc(var(--header-h) + 24px); }
.book-hero__cover .cover { max-width: 420px; margin-inline: auto; }
.book-hero__series { font-family: var(--font-sans); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--t-accent-text); margin: 0 0 .8rem; }
.book-hero__series a { text-decoration: none; }
.book-hero h1 { margin-bottom: .25em; }
.book-hero__subtitle { font-style: italic; color: var(--t-soft); font-size: 1.12rem; margin-bottom: 1.3rem; }
.book-hero__hook { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); line-height: 1.45; border-left: 3px solid var(--t-accent); padding-left: 16px; margin: 0 0 1.6rem; }
.specs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.6rem; padding: 0; list-style: none; }
.specs li { font-family: var(--font-sans); font-size: .82rem; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--t-line); color: var(--t-soft); }
.specs li b { color: var(--t-ink); font-weight: 500; }
@media (max-width: 820px) { .book-hero__grid { grid-template-columns: 1fr; } .book-hero__cover { position: static; } .book-hero__cover .cover { max-width: 280px; } }

/* Buy box */
.buybox { background: var(--cream-50); color: var(--ink); border-radius: var(--radius-l); padding: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.18); display: grid; gap: 14px; max-width: 560px; }
.buybox__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.buybox__price { font-family: var(--font-sans); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.buybox__price small { display: block; font-size: .72rem; font-weight: 400; color: var(--ink-soft); margin-top: 6px; letter-spacing: .02em; }
.buybox__note { font-size: .84rem; color: var(--ink-soft); margin: 0; font-family: var(--font-sans); }
.buybox .btn { font-size: 1rem; min-height: 52px; }
.market { display: flex; align-items: center; gap: 8px; font-family: var(--font-sans); font-size: .82rem; }
.market select { appearance: none; -webkit-appearance: none; min-height: 36px; padding: 6px 30px 6px 10px; border-radius: 8px; font-family: var(--font-sans); font-size: .84rem; border: 1px solid var(--line-strong); background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231E2A40' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 10px; color: var(--ink); }
.market--dark select { background-color: rgba(255,255,255,.08); color: var(--cream-100); border-color: rgba(244,233,216,.25); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23F4E9D8' stroke-width='1.6'/%3E%3C/svg%3E"); }
.market--dark select option { color: var(--ink); }

.look-inside { margin: 0; }
.look-inside img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); cursor: zoom-in; }
.look-inside figcaption { font-family: var(--font-sans); font-size: .84rem; color: var(--ink-soft); margin-top: 10px; }

.prose { font-size: 1.08rem; }
.prose h3 { font-size: 1.3rem; margin-top: 1.8em; }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 28px; margin-bottom: .55em; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 10px; height: 10px; border-radius: 2px; background: var(--amber-400); box-shadow: 0 0 0 3px rgba(242,165,65,.2); }
.prose > p:first-child b:first-child, .prose > p:first-child strong:first-child { font-size: 1.15em; }

.detail-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 24px; box-shadow: var(--shadow-s); }
.card h3 { font-size: 1.2rem; }
.card h3 svg { width: 22px; height: 22px; display: inline-block; vertical-align: -4px; margin-right: 6px; color: var(--amber-700); }
.card--casefile { background: #FBF3E3 repeating-linear-gradient(180deg, transparent 0 31px, rgba(30,42,64,.06) 31px 32px); border-color: #E5D4B3; position: relative; }
.card--casefile::before { content: "From the back cover"; position: absolute; top: -12px; left: 18px; background: var(--navy-700); color: var(--cream-100); font-family: var(--font-sans); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: 4px; }
.card--casefile p { font-style: italic; margin: 8px 0 0; line-height: 2; font-size: 1rem; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: .98rem; line-height: 1.5; }
.checklist svg { width: 20px; height: 20px; color: var(--ok); margin-top: 2px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; font-family: var(--font-sans); font-size: .9rem; }
.kv dt { color: var(--ink-soft); }
.kv dd { margin: 0; font-weight: 500; }

.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--font-sans); font-size: .85rem; }
.share a, .share button { display: inline-flex; gap: 6px; align-items: center; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; text-decoration: none; font-size: .82rem; }
.share a:hover, .share button:hover { border-color: var(--amber-500); }
.share svg { width: 15px; height: 15px; }

/* ---------- Store toolbar ---------- */
.toolbar { position: sticky; top: var(--header-h); z-index: 20; background: rgba(253,249,242,.94); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .toolbar { background: rgba(253,249,242,.82); backdrop-filter: blur(10px); } }
.toolbar__inner { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; padding-block: 14px; }
.toolbar__search { flex: 1 1 220px; position: relative; }
.toolbar__search .input { padding-left: 42px; min-height: 44px; border-radius: 999px; }
.toolbar__search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-soft); pointer-events: none; }
.toolbar .select { min-height: 44px; border-radius: 999px; width: auto; font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--font-sans); font-size: .84rem; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; color: var(--ink); display: inline-flex; gap: 8px; align-items: center; line-height: 1.1; }
.chip:hover { border-color: var(--navy-600); }
.chip[aria-pressed="true"] { background: var(--navy-700); border-color: var(--navy-700); color: var(--cream-100); }
.chip i { width: 9px; height: 9px; border-radius: 2px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; padding: 20px 0 8px; }
.filter-row .label { color: var(--ink-soft); margin-right: 4px; }
.result-count { font-family: var(--font-sans); font-size: .88rem; color: var(--ink-soft); margin: 18px 0 26px; }
.empty-state { text-align: center; padding: 60px 20px; border: 2px dashed var(--line-strong); border-radius: var(--radius-l); }

/* ---------- Series page ---------- */
.series-hero { background: var(--t-bg); color: var(--t-ink); }
.series-hero__banner { display: block; width: 100%; max-width: 1600px; height: auto; margin-inline: auto; }
.series-intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .series-intro { grid-template-columns: 1fr; } }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.facts li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.facts svg { width: 22px; height: 22px; color: var(--t-accent); margin-top: 3px; }
.facts b { display: block; font-family: var(--font-sans); font-weight: 500; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--t-accent-text); }
.reading-list { display: grid; gap: 22px; counter-reset: rl; }
.reading-item { display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: center; background: var(--t-bg2); border: 1px solid var(--t-line); border-radius: var(--radius-l); padding: 22px; }
.reading-item__cover img { border-radius: 2px 4px 4px 2px; box-shadow: var(--shadow-book); }
.reading-item h3 { margin: 4px 0 6px; }
.reading-item h3 a { text-decoration: none; }
.reading-item h3 a:hover { text-decoration: underline; }
.reading-item p { color: var(--t-soft); margin-bottom: .6em; }
.reading-item__num { font-family: var(--font-sans); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--t-accent-text); }
@media (max-width: 640px) { .reading-item { grid-template-columns: 96px 1fr; gap: 16px; padding: 16px; } .reading-item p.hide-sm { display: none; } }
.start-here { border: 2px solid var(--t-accent); border-radius: var(--radius-l); padding: 24px; background: var(--t-bg2); }

.compare { width: 100%; border-collapse: collapse; font-family: var(--font-sans); font-size: .9rem; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-s); }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--navy-800); color: var(--cream-100); font-weight: 500; font-size: .82rem; letter-spacing: .06em; }
.compare tbody th { font-weight: 500; white-space: nowrap; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); }

/* ---------- About ---------- */
.portrait { position: relative; aspect-ratio: 4/5; border-radius: 24px; overflow: hidden; background: radial-gradient(circle at 50% 35%, #2B3A55, #151E31); box-shadow: var(--shadow); display: grid; place-items: center; }
.portrait img.portrait__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.portrait__cap { z-index: 2; }
.portrait__owl { width: 42%; }
.portrait__cap { position: absolute; left: 16px; right: 16px; bottom: 16px; background: rgba(15,22,38,.72); color: var(--cream-100); border-radius: 14px; padding: 12px 14px; font-family: var(--font-sans); font-size: .85rem; backdrop-filter: blur(6px); }
.portrait__cap strong { display: block; font-size: 1rem; font-weight: 500; }
.promise-list { counter-reset: p; display: grid; gap: 18px; list-style: none; padding: 0; }
.promise-list li { position: relative; padding-left: 56px; }
.promise-list li::before { counter-increment: p; content: counter(p); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--navy-700); color: var(--amber-300); font-family: var(--font-sans); font-weight: 700; display: grid; place-items: center; }
.promise-list h3 { font-size: 1.15rem; margin-bottom: .25em; }
.promise-list p { margin: 0; color: var(--ink-soft); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding-bottom: 22px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--line-strong); }
.timeline li:last-child::before { display: none; }
.timeline .step { width: 44px; height: 44px; border-radius: 50%; background: var(--amber-400); color: var(--navy-900); display: grid; place-items: center; font-family: var(--font-sans); font-weight: 700; }
.timeline h3 { font-size: 1.1rem; margin: 8px 0 4px; }
.timeline p { margin: 0; color: var(--ink-soft); }

/* ---------- FAQ / details ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; box-shadow: var(--shadow-s); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 600; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-family: var(--font-sans); font-size: 1.5rem; font-weight: 400; color: var(--amber-700); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 0 18px; color: var(--ink-soft); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Puzzles ---------- */
.puzzle { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow); }
.puzzle__head { background: var(--t-bg); color: var(--t-ink); padding: 22px 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; }
.puzzle__head h2, .puzzle__head h3 { margin: 0; font-size: 1.55rem; }
.puzzle__meta { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-sans); font-size: .76rem; }
.puzzle__meta span { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--t-line); color: var(--t-soft); letter-spacing: .04em; }
.puzzle__body { padding: clamp(20px, 3vw, 32px); display: grid; gap: 22px; }
.puzzle__intro { margin: 0; font-size: 1.05rem; }
.puzzle__controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.puzzle__result { min-height: 1.5em; font-family: var(--font-sans); font-weight: 500; margin: 0; }
.puzzle__result.ok { color: var(--ok); }
.puzzle__result.bad { color: var(--bad); }
.puzzle__foot { border-top: 1px solid var(--line); padding: 18px 26px; background: var(--cream-100); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; font-family: var(--font-sans); font-size: .9rem; }
.puzzle__foot img { width: 44px; border-radius: 2px; box-shadow: 0 3px 8px rgba(0,0,0,.2); }
.puzzle__foot .pf { display: flex; gap: 14px; align-items: center; }
.clue-list { margin: 0; padding-left: 1.4em; display: grid; gap: 8px; }
.clue-list li { padding-left: 4px; }
.clue-list li.done { text-decoration: line-through; opacity: .55; }
.puzzle-toc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 12px; }
.puzzle-toc a { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--radius); background: var(--t-bg); color: var(--t-ink); text-decoration: none; border: 1px solid var(--t-line); transition: transform .2s ease; }
.puzzle-toc a:hover { transform: translateY(-3px); }
.puzzle-toc b { font-family: var(--font-serif); font-size: 1.05rem; }
.puzzle-toc small { font-family: var(--font-sans); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--t-accent-text); }

/* logic grid */
.lg-wrap { overflow-x: auto; }
.lg { border-collapse: collapse; font-family: var(--font-sans); font-size: .8rem; margin: 0 auto; }
.lg th { font-weight: 500; padding: 4px 6px; color: var(--ink-soft); }
.lg thead th { height: 118px; vertical-align: bottom; }
.lg thead th span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; display: inline-block; }
.lg tbody th { text-align: right; white-space: nowrap; }
.lg td { padding: 0; border: 1px solid var(--line-strong); }
.lg td.gap { border: 0; background: transparent; }
.lg .sep-r { border-right: 2.5px solid var(--navy-700); }
.lg .sep-b { border-bottom: 2.5px solid var(--navy-700); }
.lg button { width: 40px; height: 40px; border: 0; background: #fff; font-size: 1.1rem; font-weight: 700; display: grid; place-items: center; }
.lg button:hover { background: var(--cream-100); }
.lg button[data-v="x"] { color: var(--bad); }
.lg button[data-v="o"] { color: var(--ok); background: #EAF6EE; }
.answer-table { display: grid; gap: 10px; }
.answer-row { display: grid; grid-template-columns: 150px 1fr 1fr; gap: 10px; align-items: center; font-family: var(--font-sans); font-size: .92rem; }
.answer-row .select { min-height: 42px; font-size: .9rem; }
@media (max-width: 560px) { .answer-row { grid-template-columns: 1fr 1fr; } .answer-row b { grid-column: 1 / -1; } }

/* cipher */
.cipher-text { font-family: "Courier New", ui-monospace, monospace; font-size: clamp(1.05rem, .9rem + .8vw, 1.45rem); letter-spacing: .12em; line-height: 1.7; background: #F7F1E3; border: 1px dashed #CDBA95; border-radius: var(--radius); padding: 18px 20px; word-break: break-word; }
.cipher-text.solved { background: #EAF6EE; border-color: #7FBF96; }
.dial { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; font-family: var(--font-sans); }
.dial input[type=range] { width: 100%; accent-color: var(--amber-500); }
.dial output { font-weight: 700; min-width: 3.2em; text-align: center; padding: 6px 10px; border-radius: 8px; background: var(--navy-700); color: var(--cream-100); }
.alphabet { display: grid; grid-template-columns: repeat(13, 1fr); gap: 2px; font-family: "Courier New", monospace; font-size: .8rem; text-align: center; }
.alphabet span { padding: 3px 0; border-radius: 4px; background: var(--cream-100); }
.alphabet span b { display: block; color: var(--amber-700); }

/* ghosts */
.ghosts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.ghost { border: 1.5px solid var(--line-strong); border-radius: var(--radius); padding: 16px; background: #FAF7FD; display: grid; gap: 8px; text-align: left; align-content: start; }
.ghost__name { font-weight: 600; font-size: 1.05rem; }
.ghost__says { font-style: italic; margin: 0; }
.ghost__toggle { justify-self: start; font-family: var(--font-sans); font-size: .82rem; font-weight: 500; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; }
.ghost__toggle[data-v="candid"] { background: #EAF6EE; border-color: #7FBF96; color: #1F5C37; }
.ghost__toggle[data-v="fibber"] { background: #FBE6E3; border-color: #E0A197; color: #8A2A20; }
.ghost svg { width: 34px; height: 34px; }

/* number grids (towers, sudoku) */
.ngrid { display: grid; gap: 0; margin: 0 auto; font-family: var(--font-sans); user-select: none; }
.ngrid input { width: 100%; height: 100%; border: 0; text-align: center; font-size: 1.35rem; font-weight: 500; background: #fff; color: var(--navy-700); caret-color: var(--amber-500); padding: 0; border-radius: 0; }
.ngrid input:focus { outline: none; background: #FFF4DF; }
.ngrid .given { font-weight: 700; color: var(--ink); background: var(--cream-100); display: grid; place-items: center; font-size: 1.35rem; }
.ngrid .cell { width: 52px; height: 52px; border: 1px solid var(--line-strong); }
.ngrid .clue { width: 52px; height: 52px; display: grid; place-items: center; font-weight: 700; color: var(--amber-700); font-size: 1.1rem; }
.ngrid .bad input { color: var(--bad); background: #FDECEA; }
.sudoku .cell.br { border-right: 2.5px solid var(--navy-700); }
.sudoku .cell.bb { border-bottom: 2.5px solid var(--navy-700); }
.sudoku { border: 2.5px solid var(--navy-700); width: max-content; }
@media (max-width: 420px) { .ngrid .cell, .ngrid .clue { width: 44px; height: 44px; } }

/* knocks */
.knocks { display: grid; gap: 14px; }
.knock-word { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 14px; border-radius: var(--radius); background: #F6F1FA; border: 1px solid #DCCDEA; }
.knock { display: inline-flex; gap: 6px; align-items: center; padding: 6px 9px; background: #fff; border-radius: 8px; border: 1px solid #E3D8EE; }
.knock i { display: inline-flex; gap: 3px; }
.knock i::before { content: attr(data-dots); letter-spacing: 1px; font-style: normal; color: #5A3D7A; font-size: .9rem; }
.knock em { font-style: normal; opacity: .35; }
.tap-square { border-collapse: collapse; font-family: "Courier New", monospace; font-weight: 700; margin: 0; }
.tap-square th, .tap-square td { width: 36px; height: 36px; text-align: center; border: 1px solid var(--line-strong); }
.tap-square th { background: var(--navy-700); color: var(--cream-100); font-family: var(--font-sans); font-size: .8rem; }

/* ---------- Quiz ---------- */
.quiz { background: #fff; border-radius: var(--radius-l); box-shadow: var(--shadow); overflow: hidden; }
.quiz__progress { height: 6px; background: var(--cream-200); }
.quiz__progress span { display: block; height: 100%; background: var(--amber-400); width: 0; transition: width .3s ease; }
.quiz__body { padding: clamp(22px, 4vw, 44px); }
.quiz__q { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); margin-bottom: 1rem; }
.quiz__opts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.quiz__opt { text-align: left; padding: 16px 18px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--cream-50); display: grid; gap: 4px; font-family: var(--font-serif); font-size: 1.05rem; transition: border-color .15s ease, transform .15s ease; }
.quiz__opt small { font-family: var(--font-sans); font-size: .8rem; color: var(--ink-soft); }
.quiz__opt:hover { border-color: var(--amber-500); transform: translateY(-2px); }
.quiz__nav { display: flex; justify-content: space-between; margin-top: 22px; font-family: var(--font-sans); font-size: .88rem; }
.quiz__nav button { background: none; border: 0; text-decoration: underline; color: var(--ink-soft); }
.quiz-result { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; }
@media (max-width: 640px) { .quiz-result { grid-template-columns: 1fr; } .quiz-result .cover { max-width: 200px; } }

/* ---------- Gift guide ---------- */
.gift-block { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(20px, 4vw, 48px); padding-block: 36px; border-top: 1px solid var(--line); }
.gift-block:first-of-type { border-top: 0; }
.gift-block h2 { font-size: 1.7rem; }
@media (max-width: 820px) { .gift-block { grid-template-columns: 1fr; } }
.occasions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.occasion { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 20px; }
.occasion b { font-family: var(--font-sans); font-weight: 500; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-700); }
.occasion h3 { font-size: 1.12rem; margin: 6px 0 6px; }
.occasion p { margin: 0; font-size: .95rem; color: var(--ink-soft); }

/* ---------- Puzzle guide ---------- */
.type-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.type { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.type h3 { font-size: 1.18rem; margin-bottom: .3em; }
.type p { font-size: .98rem; color: var(--ink-soft); margin-bottom: .7em; }
.type .in { font-family: var(--font-sans); font-size: .82rem; }
.type .in a { color: var(--amber-700); }
.az { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Dialog / toast / lightbox ---------- */
dialog { border: 0; padding: 0; border-radius: var(--radius-l); max-width: min(560px, calc(100vw - 32px)); width: 100%; box-shadow: 0 30px 80px rgba(0,0,0,.45); color: var(--ink); background: var(--cream-50); }
dialog::backdrop { background: rgba(10, 14, 24, .66); backdrop-filter: blur(3px); }
.dialog__body { padding: 30px 28px 26px; }
.dialog__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(30,42,64,.07); font-size: 1.4rem; line-height: 1; }
.dialog__close:hover { background: rgba(30,42,64,.14); }
.dialog__book { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.dialog__book img { width: 64px; border-radius: 2px; box-shadow: 0 4px 10px rgba(0,0,0,.25); }
dialog.lightbox { max-width: min(1100px, calc(100vw - 24px)); background: transparent; box-shadow: none; }
dialog.lightbox img { border-radius: var(--radius); width: 100%; }
dialog.lightbox .dialog__close { background: rgba(255,255,255,.9); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 300; background: var(--navy-800); color: var(--cream-100); padding: 14px 18px; border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.35); font-family: var(--font-sans); font-size: .92rem; display: flex; gap: 12px; align-items: center; max-width: min(520px, calc(100vw - 32px)); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.toast.show { transform: translate(-50%, 0); }
.toast svg { width: 30px; height: 36px; flex: none; }
.toast a { color: var(--amber-300); }

/* Owl hunt */
.hidden-owl { position: absolute; width: 22px; height: 26px; padding: 0; border: 0; background: none; opacity: .5; z-index: 5; transition: transform .2s ease, opacity .2s ease; cursor: pointer; }
.hidden-owl:hover, .hidden-owl:focus-visible { opacity: 1; transform: scale(1.35) rotate(-8deg); }
.hidden-owl svg { width: 100%; height: 100%; }
.hidden-owl.found { opacity: .18; cursor: default; transform: none; }
.pos-rel { position: relative; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #C7CCD8; padding-block: 64px 32px; font-family: var(--font-sans); font-size: .9rem; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand p { font-family: var(--font-serif); font-style: italic; color: #D9DDE6; max-width: 26em; }
.site-footer h2 { font-family: var(--font-sans); font-size: .76rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--amber-300); margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { text-decoration: none; color: #E4E7EE; }
.site-footer a:hover { color: var(--amber-300); text-decoration: underline; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(244,233,216,.1); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; font-size: .8rem; color: #9AA3B6; }
.footer-bottom p { margin: 0; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(244,233,216,.2); }
.social svg { width: 16px; height: 16px; }

/* ---------- Misc ---------- */
.tag-pill { display: inline-block; font-family: var(--font-sans); font-size: .74rem; padding: 4px 10px; border-radius: 999px; background: var(--cream-200); color: var(--ink-soft); }
.notice { background: #FFF6E6; border: 1px solid #F3D29B; border-radius: var(--radius); padding: 16px 18px; font-size: .95rem; }
.legal h2 { font-size: 1.45rem; margin-top: 2em; }
.legal h3 { font-size: 1.15rem; margin-top: 1.6em; }
.kit { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.kit a { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; font-family: var(--font-sans); font-size: .85rem; }
.kit a:hover { border-color: var(--amber-500); }
.kit img { height: 90px; width: auto; }
.num-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 16px; text-align: center; }
.num-strip b { display: block; font-family: var(--font-serif); font-size: clamp(2rem, 1.6rem + 1.6vw, 2.8rem); color: var(--amber-300); line-height: 1.1; }
.num-strip span { font-family: var(--font-sans); font-size: .82rem; letter-spacing: .06em; color: #C9CEDA; }
.divider-owl { display: flex; align-items: center; gap: 16px; justify-content: center; margin: 0 auto 26px; color: var(--t-accent-text, var(--amber-700)); }
.divider-owl::before, .divider-owl::after { content: ""; height: 1px; width: 64px; background: currentColor; opacity: .5; }
.divider-owl svg { width: 22px; height: 26px; }

/* ---------- Print (puzzles and legal pages print cleanly) ---------- */
@media print {
  .site-header, .site-footer, .toolbar, .puzzle__controls, .puzzle__foot, .no-print, .hidden-owl, .skip-link, .toast, .share, .band { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .page-hero { background: none; color: #000; padding: 0 0 12pt; }
  .page-hero h1 { color: #000; }
  .puzzle { box-shadow: none; border: 1px solid #999; break-inside: avoid; margin-bottom: 18pt; }
  .puzzle__head { background: #fff !important; color: #000 !important; border-bottom: 1px solid #999; }
  .section { padding: 0; }
  a { text-decoration: none; }
  body.print-one .puzzle:not(.print-me) { display: none !important; }
  body.print-one .page-hero, body.print-one .puzzle-toc, body.print-one .section-head { display: none !important; }
  .puzzle::after { content: "Free puzzle from Owlbrook Puzzles · owlbrookpuzzles.com"; display: block; text-align: center; font-family: var(--font-sans); font-size: 9pt; color: #555; padding: 8pt 0 10pt; border-top: 1px solid #ccc; }
  .puzzle__result { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.book-card .book-card__buy .badge { display: none; }
@media (max-width: 600px) {
  .hero__moon { width: 64px; top: 12px; right: 10px; opacity: .75; }
  .hero .eyebrow { max-width: 78%; }
  .hero__badge { width: 84px; height: 84px; font-size: .68rem; left: -1%; }
}
.gift-block > div, .detail-grid > *, .grid > * { min-width: 0; }

@media (max-width: 700px) { .toolbar { position: static; } .toolbar .select, .market select { width: 100%; } .toolbar__inner > * { flex: 1 1 100%; } }
