/* ==========================================================================
   Dragon's Hoard Junk Shop: website mockup
   Look: cozy curiosity shop meets dragon's den. Paper, ink, tape, treasure.

   Squarespace port:
   - Everything in this file is CSS, which Squarespace allows on every plan
     (Website > Pages > Custom Code > Custom CSS).
   - Motion lives in js/motion.js and needs Code Injection (Core plan+).
     The site looks complete without it.
   - Each <section> in the HTML maps to one Squarespace section.
   ========================================================================== */

:root {
  /* Her palette (sampled from her wax-print fan swatches) */
  --cream: #FFEDC0;
  --paper: #FFF6E0;
  --sage: #99AD89;
  --ink: #684239;      /* "brown": text, lines, shadows */
  --vermilion: #EF5940;
  --magenta: #B82D74;
  --purple: #AE5CC3;
  --slate: #486283;
  --white: #FFFFFF;
  /* One supporting accent for treasure only (coins, sparkles). Never text. */
  --gold: #F0B23E;
  --wood: #8B5E3C;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Nunito', system-ui, sans-serif;
  --font-hand: 'Caveat', 'Segoe Print', cursive;

  --line: 2.5px solid var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);
  --r-card: 26px 34px 24px 30px;
  --r-card-2: 34px 24px 32px 26px;
  --r-btn: 30px 26px 28px 24px;
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  background-color: var(--paper);
  /* paper fibres: two soft dot layers */
  background-image:
    radial-gradient(rgba(104, 66, 57, .07) 1px, transparent 1.2px),
    radial-gradient(rgba(174, 92, 195, .05) 1px, transparent 1.2px);
  background-size: 22px 22px, 31px 31px;
  background-position: 0 0, 11px 7px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* film grain over everything */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  opacity: .32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .41 0 0 0 0 .26 0 0 0 0 .22 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--magenta); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px dashed var(--magenta); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.section { padding: 120px 0; position: relative; }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-weight: 900;
  line-height: .95;
  letter-spacing: -0.015em;
  margin: 0;
}
.display em {
  font-style: italic; font-weight: 400;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  color: var(--magenta);
}
h1.display { font-size: clamp(54px, 7.4vw, 112px); }
h2.display { font-size: clamp(42px, 5vw, 76px); }
h3.display { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.02; }
.hand { font-family: var(--font-hand); font-weight: 600; line-height: 1.1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--slate);
}
.eyebrow img { width: 18px; }
.lede { font-size: 21px; max-width: 36ch; margin: 0; }

.scribble-under { position: relative; display: inline-block; white-space: nowrap; }
.scribble-under::after {
  content: ''; position: absolute; left: -4%; right: -4%; bottom: -.12em; height: .3em;
  background: url(../images/underline.svg) center / 100% 100% no-repeat; z-index: -1;
}
.scribble-circle { position: relative; display: inline-block; isolation: isolate; }
.scribble-circle::after { /* gold marker swash behind the word */
  content: ''; position: absolute; inset: .42em -.12em .02em; pointer-events: none; z-index: -1;
  background: var(--gold); opacity: .55; border-radius: 6px 14px 8px 18px / 12px 6px 14px 8px; transform: rotate(-1.5deg);
}

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: 64px; }
.section-head .lede { margin-top: 18px; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center .lede { margin-left: auto; margin-right: auto; }
.note {
  font-family: var(--font-hand); font-weight: 600; font-size: 28px; line-height: 1.05; color: var(--ink);
  display: inline-flex; align-items: flex-start; gap: 8px;
}
.note img { width: 92px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 30px;
  font: inherit; font-weight: 800; font-size: 18px; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  border: var(--line); border-radius: var(--r-btn);
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn--primary { background: var(--magenta); color: var(--white); }
.btn--primary:hover { color: var(--white); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: var(--cream); color: var(--ink); }
.btn svg { width: 20px; height: 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }

/* Washi tape */
.tape::before {
  content: ''; position: absolute; top: -16px; left: 50%; width: 112px; height: 32px; z-index: 3;
  transform: translateX(-50%) rotate(-4deg);
  background: repeating-linear-gradient(45deg, rgba(174, 92, 195, .55) 0 8px, rgba(174, 92, 195, .32) 8px 16px);
  border-left: 2px dashed rgba(255, 246, 224, .9); border-right: 2px dashed rgba(255, 246, 224, .9);
  box-shadow: 0 1px 0 rgba(104, 66, 57, .15);
}
.tape--sage::before { background: repeating-linear-gradient(45deg, rgba(153, 173, 137, .75) 0 8px, rgba(153, 173, 137, .5) 8px 16px); transform: translateX(-50%) rotate(3deg); }
.tape--verm::before { background: repeating-linear-gradient(45deg, rgba(239, 89, 64, .6) 0 8px, rgba(239, 89, 64, .38) 8px 16px); transform: translateX(-50%) rotate(-2deg); }

/* Photo / art placeholders, made to look like a sketch pad */
.ph {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-align: center; padding: 18px;
  background-color: var(--cream);
  background-image: repeating-linear-gradient(-45deg, rgba(104, 66, 57, .08) 0 2px, transparent 2px 12px);
  color: var(--ink);
}
.ph .hand { font-size: 24px; }
.ph small { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }

/* ---------- Announcement bar ---------- */

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 246, 224, .92); backdrop-filter: blur(6px); border-bottom: var(--line); }
.site-header .wrap { max-width: none; padding-left: clamp(20px, 3.2vw, 56px); padding-right: clamp(20px, 3.2vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.logo-slot {
  width: 58px; height: 58px; flex: none; border-radius: 50%; border: 2.5px dashed var(--ink); background: var(--cream);
  display: grid; place-items: center; font-family: var(--font-hand); font-size: 18px; font-weight: 700; transform: rotate(-8deg);
}
.wordmark { display: flex; flex-direction: column; line-height: .9; }
.wordmark b { font-family: var(--font-display); font-weight: 900; font-size: 30px; font-variation-settings: 'SOFT' 100, 'WONK' 1; letter-spacing: -.01em; }
.wordmark span { font-weight: 800; font-size: 11px; letter-spacing: .42em; text-transform: uppercase; color: var(--magenta); margin-top: 6px; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 28px; font-weight: 700; font-size: 17px; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 0; background: no-repeat 0 100% / 0 8px; transition: background-size .3s ease; }
.nav a:hover, .nav a:focus-visible {
  background-size: 100% 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 8'%3E%3Cpath d='M0 4 Q5 0 10 4 T20 4 T30 4 T40 4' fill='none' stroke='%23EF5940' stroke-width='2.4'/%3E%3C/svg%3E");
  background-size: 20px 8px; background-repeat: repeat-x;
}
.satchel {
  position: relative; display: inline-grid; place-items: center; width: 48px; height: 48px;
  border: var(--line); border-radius: 16px 18px 14px 20px; background: var(--gold); box-shadow: var(--shadow-sm);
}
.satchel:hover { background-image: none !important; transform: rotate(-6deg); }
.satchel svg { width: 24px; height: 24px; }
.satchel em { position: absolute; top: -9px; right: -9px; font-style: normal; font-size: 12px; font-weight: 800; min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--magenta); color: var(--white); border: 2px solid var(--ink); }

.menu-btn { display: none; align-items: center; gap: 8px; font: inherit; font-weight: 800; font-size: 16px; color: var(--ink); background: var(--paper); border: var(--line); border-radius: var(--r-btn); box-shadow: var(--shadow-sm); padding: 8px 16px; min-height: 44px; cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; position: relative; z-index: 2; }
.stamp {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px;
  background: var(--paper); border: var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
  font-weight: 800; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; transform: rotate(-2deg);
}
.stamp img { width: 26px; }
.hero h1 { position: relative; }
.hero-art { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 620px; justify-self: center; }
.hero-art > img { position: absolute; }
.hero-tail, .hero-ring { inset: 0; width: 100%; height: 100%; }
.hero-photo { left: 16.29%; top: 16.29%; width: 67.43%; height: 67.43%; border-radius: 50%; object-fit: cover; }
.tail-wrap { position: absolute; inset: 0; transform-origin: 50% 50%; }
.spark { position: absolute; width: 40px; animation: twinkle 3.2s ease-in-out infinite; }
.spark--1 { top: 2%; left: 10%; }
.spark--2 { top: 16%; right: -2%; width: 30px; animation-delay: -1.1s; }
.spark--3 { bottom: 2%; left: 46%; width: 26px; animation-delay: -2s; }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(.7) rotate(25deg); } }

/* Rotating "one of a kind" badge */
.badge { position: absolute; right: -4%; bottom: 4%; width: 150px; height: 150px; z-index: 3; }
.badge-ring { width: 100%; height: 100%; animation: spin 22s linear infinite; }
.badge-core {
  position: absolute; inset: 27%; border-radius: 50%; background: var(--magenta); border: var(--line);
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.badge-core img { width: 58%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Marquee ---------- */
.marquee-clip { overflow: hidden; padding: 14px 0; margin: -14px 0; position: relative; z-index: 4; }
.marquee { background: var(--magenta); color: var(--white); border-top: var(--line); border-bottom: var(--line); overflow: hidden; transform: rotate(-1.2deg); margin: 0 -20px; position: relative; z-index: 4; }
.marquee__track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee__group { display: flex; align-items: center; gap: 34px; padding: 18px 17px; }
.marquee span { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(26px, 3vw, 38px); white-space: nowrap; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.marquee img { width: 30px; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Corners (3 flap cards) ---------- */
.corners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.flap {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 44px 34px 34px;
  background: var(--paper); border: var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-lg);
  color: var(--ink); text-decoration: none; transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s;
}
.flap:nth-child(1) { transform: rotate(-2deg); }
.flap:nth-child(2) { transform: rotate(1.4deg) translateY(28px); border-radius: var(--r-card-2); background: var(--cream); }
.flap:nth-child(3) { transform: rotate(-1deg); }
.flap:hover { transform: rotate(0) translateY(-8px); box-shadow: 12px 12px 0 var(--ink); }
.flap__num { font-family: var(--font-hand); font-size: 30px; font-weight: 700; color: var(--magenta); }
.flap__icon { width: 84px; height: 84px; border-radius: 50%; border: var(--line); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.flap__icon svg { width: 40px; height: 40px; }
.flap p { margin: 0; }
.flap__where { margin-top: auto; padding-top: 10px; border-top: 2px dashed rgba(104, 66, 57, .4); font-weight: 800; display: flex; justify-content: space-between; align-items: center; }
.flap__where svg { width: 22px; transition: transform .2s; }
.flap:hover .flap__where svg { transform: translateX(6px); }

/* ---------- Book nook: the living shelf (js/shelf.js) ---------- */
.nook { background: var(--slate); color: var(--cream); border-top: var(--line); border-bottom: var(--line); overflow: hidden; }
.nook .display em { color: var(--gold); }
.nook .eyebrow { color: var(--cream); }
.nook-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; margin-bottom: 56px; }
.nook-copy { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; max-width: 620px; }
.nook-copy .lede { color: rgba(255, 237, 192, .92); max-width: 44ch; }
.nook-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.nook-actions .btn svg { width: 20px; }
.nook-count { font-family: var(--font-hand); font-weight: 700; font-size: 24px; color: var(--gold); }
.bookcase { /* a real bookcase: wooden frame, books recessed into dark, softly lit cubbies */
  --row-pad: 16px;
  position: relative; display: flex; flex-direction: column; gap: 0; padding: 14px 14px 0;
  background: #8B5E3C linear-gradient(90deg, rgba(0,0,0,.08), rgba(255,255,255,.06) 40%, rgba(0,0,0,.1));
  border: var(--line); border-radius: 10px 10px 6px 6px; box-shadow: var(--shadow-lg);
}
.bookcase::before { /* crown moulding */
  content: ''; position: absolute; left: -12px; right: -12px; top: -16px; height: 18px; border: var(--line); border-radius: 6px;
  background: #A0704A linear-gradient(rgba(255,255,255,.18), rgba(0,0,0,.12)); box-shadow: 0 4px 0 rgba(0,0,0,.18);
}
.bookcase:empty { display: none; }
.shelf-row { position: relative; }
.shelf-books {
  display: flex; align-items: flex-end; gap: 4px; padding: 26px var(--row-pad) 0; min-height: 150px;
  border: 2.5px solid var(--ink); border-bottom: 0; border-radius: 4px 4px 0 0;
  background:
    radial-gradient(ellipse 70% 90% at 50% 0, rgba(240, 178, 62, .16), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 2px, transparent 2px 38px),
    linear-gradient(#24170F, #3A261C 70%, #2C1D16);
  box-shadow: inset 0 18px 22px -6px rgba(0, 0, 0, .7), inset 14px 0 18px -10px rgba(0, 0, 0, .65), inset -14px 0 18px -10px rgba(0, 0, 0, .65);
}
.shelf-board { /* the shelf the books stand on, part of the frame */
  height: 26px; position: relative; z-index: 2; margin: 0 -2px 12px;
  background: #A0704A linear-gradient(rgba(255,255,255,.22), rgba(255,255,255,0) 30%, rgba(0,0,0,.18));
  border: var(--line); border-radius: 3px; box-shadow: 0 7px 8px -2px rgba(0, 0, 0, .35);
}
.shelf-row:last-child .shelf-board { margin-bottom: 14px; }
.shelf-decor { flex: none; align-self: flex-end; }
.shelf-decor svg { display: block; width: 100%; }
/* books cast a little shadow on the back wall */
.bookcase .spine { box-shadow: inset -7px 0 0 rgba(0, 0, 0, .13), inset 4px 0 0 rgba(255, 255, 255, .2), 6px 0 10px -2px rgba(0, 0, 0, .45); }
.bookcase .spine--more { box-shadow: none; border-color: rgba(255, 237, 192, .55); }

.spine {
  flex: none; position: relative; height: var(--h); width: var(--w);
  background: var(--bg); color: var(--fg); text-decoration: none;
  border: 2.5px solid var(--ink); border-bottom-width: 0; border-radius: 5px 5px 0 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset -7px 0 0 rgba(0, 0, 0, .13), inset 4px 0 0 rgba(255, 255, 255, .2);
  transform: rotate(var(--tilt)); transform-origin: 50% 100%;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.spine__title { display: flex; flex-direction: column; gap: 1px; writing-mode: vertical-rl; font-family: var(--font-display); font-weight: 800; font-size: var(--fs, 16px); line-height: 1.08; letter-spacing: .01em; text-align: center; max-height: calc(100% - 56px); overflow: hidden; }
.spine__title span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* trims: a little variety in the printed bands */
.spine::before, .spine::after { content: ''; position: absolute; left: 6px; right: 6px; pointer-events: none; }
.trim-0::before, .trim-0::after { height: 5px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; opacity: .55; }
.trim-0::before { top: 14px; } .trim-0::after { bottom: 14px; }
.trim-1::before, .trim-1::after { height: 14px; left: 0; right: 0; background: currentColor; opacity: .22; }
.trim-1::before { top: 10px; } .trim-1::after { bottom: 10px; }
.trim-2::before { top: 12px; left: 50%; width: 12px; height: 12px; margin-left: -6px; background: currentColor; opacity: .7; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.trim-2::after { bottom: 14px; height: 3px; background: currentColor; opacity: .5; border-radius: 2px; }
.trim-3::before { top: 0; height: 22px; left: 0; right: 0; background: rgba(0, 0, 0, .14); border-bottom: 2px solid rgba(0, 0, 0, .18); }
.trim-3::after { bottom: 12px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; border: 2px solid currentColor; opacity: .6; }
.spine--lean { transform: rotate(-6deg); transform-origin: 0 100%; margin-left: calc(var(--h) * .1); }
.spine--more { --bg: transparent; --fg: var(--cream); border: 2.5px dashed rgba(255, 237, 192, .7); border-bottom-width: 0; box-shadow: none; }
.spine--more .spine__title { font-family: var(--font-hand); font-size: 22px; }
.spine:hover, .spine:focus-visible { transform: translateY(-14px) rotate(-1.5deg); z-index: 5; }
.spine--lean:hover, .spine--lean:focus-visible { transform: rotate(-3deg) translateY(-10px); }
.spine:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* hover tag: cover, title, author, price + condition */
.spine__tag {
  position: absolute; bottom: calc(100% + 12px); left: 50%; z-index: 10; width: 250px; margin-left: -125px;
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; text-align: left;
  background: var(--paper); color: var(--ink); border: var(--line); border-radius: 14px 16px 12px 18px; box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(8px) rotate(-2deg) scale(.92); pointer-events: none;
  transition: opacity .18s ease, transform .25s cubic-bezier(.34, 1.56, .64, 1);
}
.spine__tag img { flex: none; width: 52px; height: 70px; object-fit: cover; border: 2px solid var(--ink); border-radius: 4px; background: var(--cream); }
.spine__tag b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 16px; line-height: 1.15; }
.spine__tag i { display: block; font-style: normal; font-size: 14px; margin-top: 2px; }
.spine__tag em { display: block; font-style: normal; font-weight: 800; font-size: 14px; color: var(--magenta); margin-top: 4px; }
@media (hover: hover) {
  .spine:hover .spine__tag, .spine:focus-visible .spine__tag { opacity: 1; transform: translateY(0) rotate(-2deg); }
}
.shelf-row:first-child .spine__tag { bottom: auto; top: 30%; }
@media (hover: none) { .spine__tag { display: none; } }
/* touch: first tap lifts the book and opens a preview card at the bottom of the screen */
.spine.is-peek { transform: translateY(-14px) rotate(-1.5deg); z-index: 5; outline: 3px solid var(--gold); outline-offset: 3px; }
.book-peek {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; max-width: 460px; margin: 0 auto;
  display: grid; gap: 14px; padding: 16px 16px 16px; color: var(--ink);
  background: var(--paper); border: var(--line); border-radius: 18px 22px 16px 24px; box-shadow: var(--shadow);
  transform: translateY(calc(100% + 40px)) rotate(-1deg); visibility: hidden;
  transition: transform .32s cubic-bezier(.34, 1.4, .64, 1), visibility 0s .32s;
}
.book-peek.is-open { transform: translateY(0) rotate(-1deg); visibility: visible; transition: transform .32s cubic-bezier(.34, 1.4, .64, 1); }
.book-peek__body { display: flex; gap: 14px; align-items: flex-start; padding-right: 30px; }
.book-peek__body img { flex: none; width: 78px; height: 104px; object-fit: cover; border: 2px solid var(--ink); border-radius: 5px; background: var(--cream); box-shadow: 3px 3px 0 var(--ink); }
.book-peek__body b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 19px; line-height: 1.15; }
.book-peek__body i { display: block; font-style: normal; font-size: 15px; margin-top: 4px; }
.book-peek__body em { display: block; font-style: normal; font-weight: 800; font-size: 15px; color: var(--magenta); margin-top: 6px; }
.book-peek__go { justify-content: center; width: 100%; }
.book-peek__x { position: absolute; top: 8px; right: 10px; width: 34px; height: 34px; border: 0; background: none; color: var(--ink); font-size: 30px; line-height: 1; cursor: pointer; }
@media (hover: hover) { .book-peek { display: none; } }

/* first appearance: books drop onto their shelves */
.bookcase.will-drop:not(.is-shown) .spine { opacity: 0; }
.bookcase.will-drop.is-shown .spine { animation: book-drop .7s cubic-bezier(.34, 1.4, .64, 1) backwards; animation-delay: calc(var(--i) * 45ms); }
@keyframes book-drop { from { opacity: 0; transform: translateY(-90px) rotate(-6deg); } to { opacity: 1; } }

@media (max-width: 700px) {
  .nook-actions { align-items: flex-start; }
  .bookcase { --row-pad: 8px; padding: 8px 8px 0; }
  .bookcase::before { left: -8px; right: -8px; }
  .shelf-books { padding-top: 20px; }
  .shelf-board { height: 20px; margin-bottom: 8px; }
  .shelf-row:last-child .shelf-board { margin-bottom: 8px; }
  .spine { border-width: 2px; border-bottom-width: 0; }
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.frame {
  position: relative; padding: 10px; background: var(--gold); border: var(--line);
  border-radius: 46% 46% 10px 10px / 30% 30% 10px 10px; box-shadow: var(--shadow-lg);
  transform: rotate(-1.5deg);
}
.frame::before { content: ''; position: absolute; inset: 4px; border: 2px dashed var(--ink); border-radius: inherit; opacity: .5; pointer-events: none; z-index: 2; }
.frame .ph { aspect-ratio: 4 / 4.6; border: var(--line); border-radius: 44% 44% 6px 6px / 27% 27% 6px 6px; background-color: var(--cream); gap: 14px; padding: 48px 36px; }
.frame .ph b { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.05; }
.frame .ph span { max-width: 32ch; font-size: 16px; }
.frame .sticker {
  position: absolute; right: -26px; top: 18%; transform: rotate(10deg);
  background: var(--vermilion); color: var(--ink); border: var(--line); border-radius: 50%; width: 112px; height: 112px;
  display: grid; place-items: center; text-align: center; font-family: var(--font-hand); font-weight: 700; font-size: 24px; line-height: .95; box-shadow: var(--shadow-sm);
}
.about-copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.about-copy h2 { line-height: 1.08; }
.about-copy p { margin: 0; max-width: 46ch; }
.signature { font-family: var(--font-hand); font-size: 46px; font-weight: 700; color: var(--magenta); line-height: 1; transform: rotate(-3deg); }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.facts li { padding: 8px 16px; border: 2px solid var(--ink); border-radius: 999px; font-weight: 700; font-size: 15px; background: var(--paper); }
.facts li:nth-child(2n) { background: var(--cream); transform: rotate(-2deg); }

/* ---------- Hoard Notes (blog) ---------- */
.notes-bg { background: var(--cream); border-top: var(--line); border-bottom: var(--line); }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.post {
  position: relative; display: flex; flex-direction: column; color: var(--ink); text-decoration: none;
  background: var(--paper); border: var(--line); border-radius: 6px 6px 22px 6px; box-shadow: var(--shadow-lg);
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}
.post:nth-child(1) { transform: rotate(-1.2deg); }
.post:nth-child(2) { transform: rotate(1deg) translateY(18px); }
.post:nth-child(3) { transform: rotate(-.6deg); }
.post:hover { transform: rotate(0) translateY(-8px); color: var(--ink); }
.post .ph { aspect-ratio: 16 / 11; border-bottom: var(--line); border-radius: 4px 4px 0 0; }
.post__body {
  padding: 22px 26px 30px 54px; display: flex; flex-direction: column; gap: 10px; flex: 1;
  background-image: linear-gradient(90deg, transparent 38px, rgba(239, 89, 64, .55) 38px 40px, transparent 40px),
    repeating-linear-gradient(transparent 0 31px, rgba(72, 98, 131, .22) 31px 32px);
  background-position: 0 0, 0 14px;
}
.post__tag { align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--white); background: var(--slate); padding: 4px 12px; border-radius: 999px; }
.post__title { font-family: var(--font-display); font-weight: 800; font-size: 29px; line-height: 1.06; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.post p { margin: 0; font-size: 16px; }
.post__more { margin-top: auto; font-family: var(--font-hand); font-size: 24px; font-weight: 700; color: var(--magenta); }

/* ---------- Newsletter letter ---------- */
.letter-bg { background: linear-gradient(rgba(58, 80, 110, .84), rgba(58, 80, 110, .84)), url(../images/wax-fans.jpg) center / cover; border-top: var(--line); border-bottom: var(--line); position: relative; overflow: hidden; }
.letter {
  position: relative; max-width: 860px; margin: 0 auto; padding: 64px 64px 56px;
  background: var(--paper); border: var(--line); border-radius: 8px; box-shadow: var(--shadow-lg); transform: rotate(-1deg);
  background-image: repeating-linear-gradient(transparent 0 35px, rgba(72, 98, 131, .16) 35px 36px);
}
.seal {
  position: absolute; top: -40px; right: 56px; width: 92px; height: 92px; border-radius: 47% 53% 50% 50% / 52% 48% 52% 48%;
  background: radial-gradient(circle at 35% 30%, #d0458c, var(--magenta) 60%, #8f1f58);
  border: var(--line); display: grid; place-items: center; box-shadow: var(--shadow-sm); transform: rotate(12deg);
}
.seal img { width: 46%; filter: brightness(0) invert(1) opacity(.85); }
.letter .hand.dear { font-size: 34px; color: var(--magenta); }
.letter h2 { margin: 6px 0 16px; }
.letter p { margin: 0 0 26px; max-width: 52ch; }
.signup { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.signup label { flex: 1 1 280px; display: flex; flex-direction: column; gap: 6px; font-weight: 800; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.signup input {
  font: inherit; font-size: 18px; letter-spacing: 0; text-transform: none; padding: 12px 4px; min-height: 52px;
  border: 0; border-bottom: 3px solid var(--ink); background: transparent; color: var(--ink); border-radius: 0;
}
.signup input:focus { outline: none; border-bottom-color: var(--magenta); }
.signup-msg { flex-basis: 100%; margin: 0; min-height: 1.4em; font-family: var(--font-hand); font-size: 26px; color: var(--magenta); }
.letter .ps { font-family: var(--font-hand); font-size: 26px; margin: 8px 0 0; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--ink); color: var(--cream); padding: 110px 0 40px; margin-top: 0; }
.site-footer::before { /* scalloped edge */
  content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 28px;
  background: radial-gradient(circle at 20px -6px, var(--slate) 22px, transparent 23px) 0 0 / 40px 28px repeat-x;
}
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-word { font-family: var(--font-display); font-weight: 900; font-size: clamp(44px, 5.4vw, 80px); line-height: .9; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.footer-word em { font-style: italic; font-weight: 400; color: var(--gold); display: block; }
.site-footer h4 { margin: 0 0 14px; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--cream); text-decoration: none; font-weight: 700; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-bottom { margin-top: 72px; padding-top: 22px; border-top: 2px dashed rgba(255, 237, 192, .35); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 15px; }
.footer-bottom .hand { font-size: 24px; color: var(--gold); }

/* ---------- Link-in-bio page ---------- */
.lib { min-height: 100vh; }
.lib-banner { position: relative; height: 210px; overflow: hidden; }
.lib-banner img.photo { width: 100%; height: 100%; object-fit: cover; }
.lib-banner img.photo { display: block; }
/* ripped-paper edge: fixed-size repeating tile (white torn fibres under the paper), so it looks the same at any width */
.paper-rip { position: absolute; left: 0; right: 0; bottom: 0; height: 56px; pointer-events: none; filter: drop-shadow(0 -2px 3px rgba(104, 66, 57, .3)); }
.paper-rip::before, .paper-rip::after { content: ''; position: absolute; inset: 0; -webkit-mask: var(--m) 0 100% / 600px 56px repeat-x; mask: var(--m) 0 100% / 600px 56px repeat-x; }
.paper-rip::before { --m: url(../images/paper-rip-fibre.svg); background: #FFFFFF; }
.paper-rip::after { --m: url(../images/paper-rip.svg); background-color: var(--paper);
  background-image: radial-gradient(rgba(104, 66, 57, .07) 1px, transparent 1.2px), radial-gradient(rgba(174, 92, 195, .05) 1px, transparent 1.2px);
  background-size: 22px 22px, 31px 31px; background-position: 0 0, 11px 7px; }
.lib-main { max-width: 500px; margin: 0 auto; padding: 0 22px 64px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; position: relative; }
.lib-logo { width: 124px; height: 124px; margin-top: -72px; position: relative; z-index: 3; border-radius: 50%; border: 3px dashed var(--ink); background: var(--cream); display: grid; place-items: center; font-family: var(--font-hand); font-size: 26px; font-weight: 700; transform: rotate(-6deg); box-shadow: var(--shadow); }
.lib-main h1 { font-size: 44px; margin-top: 4px; }
.lib-main > p { margin: 0; max-width: 34ch; }
.lib-links { width: 100%; display: flex; flex-direction: column; gap: 16px; margin-top: 14px; }
.lib-link {
  display: flex; align-items: center; gap: 16px; text-align: left; padding: 14px 20px; min-height: 64px;
  background: var(--paper); border: var(--line); border-radius: var(--r-btn); box-shadow: var(--shadow);
  color: var(--ink); text-decoration: none; transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s;
}
.lib-link:nth-child(odd) { transform: rotate(-.8deg); }
.lib-link:nth-child(even) { transform: rotate(.8deg); }
.lib-link:hover { transform: rotate(0) translate(-2px, -2px); box-shadow: var(--shadow-lg); color: var(--ink); }
.lib-link .dot { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; }
.lib-link .dot svg { width: 22px; height: 22px; }
.lib-link b { display: block; font-size: 18px; }
.lib-link small { display: block; font-size: 14px; font-weight: 600; }
.lib-link--primary { background: var(--magenta); color: var(--white); }
.lib-link--primary:hover { color: var(--white); }
.lib-foot { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lib-foot .hand { font-size: 26px; }

/* ---------- Mockup-only page switcher ---------- */

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero .wrap, .nook-grid, .about-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-art { max-width: 520px; }
  .corners, .posts { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; }
  .flap:nth-child(2), .post:nth-child(2) { transform: rotate(1.2deg); }
  .tags { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 70px; }
  .tags-string { display: none; }
  .tag-holder::after { display: none; }
  .tag-holder { margin-top: 0 !important; }
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-word { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .wrap { padding: 0 20px; }
  .section { padding: 84px 0; }
  .site-header { position: static; }
  .site-header .wrap { flex-wrap: wrap; }
  .menu-btn { display: inline-flex; margin-left: auto; }
  .site-header .wrap { gap: 10px; }
  .brand { gap: 10px; }
  .wordmark b { font-size: 22px; }
  .wordmark span { font-size: 10px; letter-spacing: .32em; }
  .logo-mark { height: 40px; }
  .site-header .logo { width: 46px; height: 46px; }
  .site-header .logo b { font-size: 14px; }
  .menu-btn { padding: 6px 12px; font-size: 15px; }
    .nav { width: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0; font-size: 20px; padding: 8px 0 4px; }
  .nav a { padding: 12px 4px; border-top: 2px dashed rgba(104, 66, 57, .3); font-family: var(--font-display); font-weight: 800; }
  .nav a.satchel { display: none; }
  .site-header.nav-open .nav { display: flex; }
  .stamp { letter-spacing: .1em; font-size: 12px; }
  .tag .ph { aspect-ratio: 1 / 1; }
  .frame .sticker { top: -30px; right: -6px; }
  .hero { padding: 40px 0 72px; }
  .badge { width: 112px; height: 112px; right: 0; bottom: 0; }
  .map-pin { display: none; }
  .map-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 28px; }
  .map-list a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border: var(--line); border-radius: var(--r-btn); background: var(--paper); box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; }
  .map-list b { font-family: var(--font-display); font-size: 22px; }
  .map-list span { font-size: 14px; font-weight: 700; text-align: right; }
  .letter { padding: 56px 24px 36px; }
  .seal { right: 20px; width: 76px; height: 76px; }
  .strip .caption { font-size: 24px; right: 5%; }
  .frame .sticker { right: -8px; width: 92px; height: 92px; font-size: 20px; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .tags { grid-template-columns: minmax(0, 1fr); max-width: 320px; margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Logo (concept mark + live monogram)
   ========================================================================== */
.logo { position: relative; width: 62px; height: 62px; flex: none; display: grid; place-items: center; }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.logo b { position: relative; font-family: var(--font-display); font-weight: 900; font-size: 19px; letter-spacing: -.02em; color: var(--ink); margin-top: 3px; }
.brand:hover .logo img { transform: rotate(-8deg); transition: transform .3s; }
.lib-logo-mark { width: 132px; height: 132px; margin-top: -76px; position: relative; z-index: 3; filter: drop-shadow(5px 5px 0 var(--ink)); }
.lib-logo-mark b { font-size: 40px; margin-top: 6px; }
.lib-logo-mark::before { content: ''; position: absolute; inset: 12%; border-radius: 50%; background: var(--cream); }

/* Illustrations replacing placeholders */
.frame__art { width: 100%; aspect-ratio: 610 / 420; border: var(--line); border-radius: 44% 44% 6px 6px / 30% 30% 6px 6px; background: var(--cream); object-fit: cover; padding: 34px 10px 0; }
.post__img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-bottom: var(--line); border-radius: 4px 4px 0 0; }


/* ---------- Link-out chips on the adventure cards ---------- */
.flap__links { margin-top: auto; padding-top: 16px; border-top: 2px dashed rgba(104, 66, 57, .4); display: flex; flex-wrap: wrap; gap: 10px; }
.chip-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--magenta); color: var(--white);
  font-weight: 800; font-size: 16px; text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s;
}
.chip-link svg { width: 16px; height: 16px; }
.chip-link:hover { color: var(--white); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.chip-link--quiet { background: var(--paper); color: var(--ink); }
.chip-link--quiet:hover { color: var(--ink); background: var(--cream); }
.chip-link--soon { background: transparent; color: var(--ink); border-style: dashed; box-shadow: none; font-family: var(--font-hand); font-size: 22px; font-weight: 700; }
.nav-cta { padding: 8px 16px !important; border: var(--line); border-radius: var(--r-btn); background: var(--gold) !important; box-shadow: var(--shadow-sm); }
.nav-cta:hover { background-image: none !important; transform: translate(-1px, -1px); }
.map-pin--soon { border-style: dashed; background: var(--cream); box-shadow: none; transform: translate(-50%, 34px) rotate(-3deg); }
.map-pin--soon:hover { transform: translate(-50%, 34px) rotate(-3deg); box-shadow: none; }
.map-pin--soon b { color: var(--purple); color: #8a3fa0; }
.map-list__soon { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border: 2.5px dashed var(--ink); border-radius: var(--r-btn); background: var(--cream); }
.map-list__soon b { font-family: var(--font-display); font-size: 22px; }
.map-list__soon span { font-family: var(--font-hand); font-size: 22px; font-weight: 700; color: var(--magenta); }
.site-footer .soon { color: var(--cream); opacity: .85; font-weight: 700; }

.lib-link--soon { border-style: dashed; background: var(--cream); box-shadow: none; }
.lib-link--soon:hover { transform: rotate(-.8deg); box-shadow: none; }

/* ==========================================================================
   The quest: map + adventure cards (one section)
   Desktop: hovering a card or an X marks that spot and draws the route to it.
   Phone: the map sticks to the top and the route advances as you scroll the cards.
   js/quest.js sets data-active on [data-quest]. Without JS everything shows, route fully drawn.
   ========================================================================== */
.quest { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (min-width: 901px) { .quest .wrap, .quest-sec .wrap { max-width: 1340px; } }
.quest-map { position: sticky; top: 124px; --tilt: 0deg; --lag: 0px; --lift: 0; }
.quest-map__inner {
  position: relative; transform-origin: 50% 0;
  transform: translateY(var(--lag)) rotate(var(--tilt));
  transition: box-shadow .35s ease;
}
/* tape strips that "hold" the map while it's dragged down the page */
.map-tape {
  position: absolute; top: -12px; width: 92px; height: 28px; z-index: 3; pointer-events: none;
  background: rgba(240, 178, 62, .55); border-left: 2px dashed rgba(104, 66, 57, .25); border-right: 2px dashed rgba(104, 66, 57, .25);
  box-shadow: 0 1px 2px rgba(104, 66, 57, .2);
  opacity: 0; transform: translateY(-10px) rotate(var(--r)) scale(.7);
  transition: opacity .25s ease, transform .4s cubic-bezier(.34, 1.56, .64, 1);
}
.map-tape--l { left: 13%; top: 15%; --r: -32deg; }
.map-tape--r { right: 21%; top: 9%; --r: 24deg; }
.quest-map.is-docked .map-tape { opacity: 1; transform: rotate(var(--r)); }
.quest-map.is-docked .map-tape--r { transition-delay: .08s; }
.quest-map__inner > img { width: 100%; display: block; }
.quest-route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.quest-route .seg { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; stroke-dasharray: .1 16; }
.quest-route .seg-4 { stroke-dasharray: .1 12; opacity: .55; }
.quest-route .seg-mask { fill: none; stroke: #fff; stroke-width: 14; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .6s ease; }
.spot-x path { stroke: var(--vermilion); stroke-width: 7; stroke-linecap: round; fill: none; transition: stroke .25s; }
.spot-x--4 path { stroke: var(--purple); stroke-dasharray: 6 5; }
.spot-x { transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); transform-box: fill-box; transform-origin: center; cursor: pointer; }
.spot-ring { fill: rgba(255, 246, 224, .0); stroke: var(--magenta); stroke-width: 4; stroke-dasharray: 8 7; opacity: 0; transition: opacity .25s; }
.spot-label {
  position: absolute; transform: translate(-50%, 30px) rotate(-3deg) scale(.82); opacity: .92; pointer-events: none;
  font-family: var(--font-hand); font-weight: 700; font-size: 24px; line-height: 1; white-space: nowrap;
  background: var(--paper); border: var(--line); border-radius: 12px 14px 10px 16px; padding: 6px 12px; box-shadow: var(--shadow-sm);
  transition: opacity .2s, transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.lair-tag {
  position: absolute; left: 12.5%; top: 74%; transform: translateX(-50%) rotate(-4deg); pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 2px; white-space: nowrap;
  background: var(--ink); color: var(--cream); border: 2.5px solid var(--ink); border-radius: 14px 18px 12px 16px;
  padding: 5px 14px 6px; box-shadow: 3px 3px 0 rgba(104, 66, 57, .35);
}
.lair-tag b { font-family: var(--font-display); font-weight: 800; font-size: 19px; line-height: 1; letter-spacing: .01em; }
.lair-tag small { font-family: var(--font-body); font-weight: 800; font-size: 11px; line-height: 1; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.lair-tag::before { /* little pointer up to the cave */
  content: ''; position: absolute; top: -9px; left: 50%; width: 14px; height: 14px; margin-left: -7px;
  background: var(--ink); transform: rotate(45deg); border-radius: 3px 0 0 0;
}

/* active spot (1-4): route drawn up to it, its X marked */
.quest:not([data-active="0"]) .spot-label { opacity: .55; }
.quest[data-active="1"] .seg-mask-2, .quest[data-active="1"] .seg-mask-3, .quest[data-active="1"] .seg-mask-4,
.quest[data-active="2"] .seg-mask-3, .quest[data-active="2"] .seg-mask-4,
.quest[data-active="3"] .seg-mask-4 { stroke-dashoffset: 1; }
.quest[data-active="1"] .spot-x--1, .quest[data-active="2"] .spot-x--2, .quest[data-active="3"] .spot-x--3, .quest[data-active="4"] .spot-x--4 { transform: scale(1.35) rotate(-8deg); }
.quest[data-active="1"] .spot-x--1 path, .quest[data-active="2"] .spot-x--2 path, .quest[data-active="3"] .spot-x--3 path { stroke: var(--magenta); }
.quest[data-active="1"] .spot-x--1 .spot-ring, .quest[data-active="2"] .spot-x--2 .spot-ring, .quest[data-active="3"] .spot-x--3 .spot-ring, .quest[data-active="4"] .spot-x--4 .spot-ring { opacity: 1; animation: ring-spin 6s linear infinite; }
.quest[data-active="1"] .spot-label--1, .quest[data-active="2"] .spot-label--2, .quest[data-active="3"] .spot-label--3, .quest[data-active="4"] .spot-label--4 { opacity: 1; transform: translate(-50%, 34px) rotate(-3deg) scale(1.08); background: var(--magenta); color: var(--white); }
.quest.is-scrolly[data-active="0"] .spot-label { opacity: 0; }
@keyframes ring-spin { to { stroke-dashoffset: -60; } }

.quest-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.quest-card {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 16px; align-items: start;
  padding: 18px 20px 18px 18px; background: var(--paper); border: var(--line); border-radius: var(--r-card); box-shadow: var(--shadow);
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s, background-color .25s;
}
.quest-card:nth-child(odd) { transform: rotate(-.8deg); }
.quest-card:nth-child(even) { transform: rotate(.8deg); }
.quest-card .flap__icon { grid-row: 1 / span 2; width: 64px; height: 64px; }
.quest-card .flap__icon svg { width: 32px; height: 32px; }
.quest-card__no { grid-column: 2; font-family: var(--font-hand); font-weight: 700; font-size: 22px; color: var(--magenta); line-height: 1; }
.quest-card__body { grid-column: 2; display: flex; flex-direction: column; gap: 8px; }
.quest-card__body p { margin: 0; font-size: 16px; }
.quest-card .flap__links { margin-top: 4px; padding-top: 10px; gap: 8px; }
.quest-card .chip-link { min-height: 40px; padding: 6px 14px; font-size: 15px; }
.quest-card h3.display { font-size: 28px; }
.quest-card--soon { border-style: dashed; background: var(--cream); }
.quest[data-active="1"] .quest-card[data-spot="1"], .quest[data-active="2"] .quest-card[data-spot="2"],
.quest[data-active="3"] .quest-card[data-spot="3"], .quest[data-active="4"] .quest-card[data-spot="4"] {
  transform: rotate(0) translateX(-6px); box-shadow: var(--shadow-lg); background: #FFF9EC;
}

@media (max-width: 900px) {
  .quest { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .quest-map { top: 0; z-index: 5; margin: 0 -20px; padding: 10px 12px 12px; background: transparent; }
  .quest-map::before { /* paper backing that slides in under the map once it docks */
    content: ''; position: absolute; inset: 0; z-index: -1; background: var(--paper);
    border-bottom: 2.5px solid var(--ink); box-shadow: 0 6px 0 rgba(104, 66, 57, .12);
    transform: scaleY(0); transform-origin: 50% 0; transition: transform .45s cubic-bezier(.34, 1.4, .64, 1);
  }
  .quest-map.is-docked::before { transform: scaleY(1); }
  .map-tape { width: 56px; height: 18px; }
  .spot-label { font-size: 18px; padding: 3px 8px; transform: translate(-50%, 18px) rotate(-3deg) scale(.7); }
  .quest[data-active="1"] .spot-label--1, .quest[data-active="2"] .spot-label--2, .quest[data-active="3"] .spot-label--3, .quest[data-active="4"] .spot-label--4 { transform: translate(-50%, 18px) rotate(-3deg) scale(1); }
  .lair-tag { padding: 3px 9px 4px; top: 75%; } .lair-tag b { font-size: 14px; } .lair-tag small { font-size: 9px; letter-spacing: .12em; }
  .lair-tag::before { top: -6px; width: 10px; height: 10px; margin-left: -5px; }
  .quest-list { gap: 18px; padding-bottom: 18vh; }
  .quest-card .flap__icon { width: 52px; height: 52px; }
}

/* ==========================================================================
   "Entering the lair" intro: the dotted route draws across the map to the cave,
   X marks pop, the cave's eyes glow. Once the page has fully loaded (and at least
   ~1.8s have passed), js/intro.js adds .intro-leave and the sheet wipes up with a
   torn paper edge, revealing a page that is already in place.
   ========================================================================== */
.intro { display: none; }
html.intro-on { overflow: hidden; }
html.intro-on .intro {
  position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(104, 66, 57, .07) 1px, transparent 1.2px);
  background-size: 22px 22px;
  transition: transform .85s cubic-bezier(.76, 0, .24, 1);
}
html.intro-on .intro::after { /* torn paper edge hanging off the bottom of the sheet */
  content: ''; position: absolute; left: 0; right: 0; top: calc(100% - 1px); height: 44px;
  background: url(../images/torn-top-paper.svg) center top / 100% 100% no-repeat;
  filter: drop-shadow(0 6px 4px rgba(104, 66, 57, .25));
}
html.intro-on .intro.intro-leave { transform: translateY(calc(-100% - 60px)); }
.lair-map { position: relative; width: min(860px, 94vw); animation: map-in .45s ease-out both; }
.lair-map > img { width: 100%; display: block; }
.lair-route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route-dots { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round; stroke-dasharray: .1 16; }
.route-mask { fill: none; stroke: #fff; stroke-width: 16; stroke-dasharray: 1; stroke-dashoffset: 1; animation: route-draw 1.05s ease-in-out .3s forwards; }
.ix path { fill: none; stroke: var(--vermilion); stroke-width: 7; stroke-linecap: round; }
.ix { transform-box: fill-box; transform-origin: center; opacity: 0; animation: x-pop .35s cubic-bezier(.34, 1.56, .64, 1) var(--d) forwards; }
.lair-eyes circle { fill: var(--gold); filter: drop-shadow(0 0 6px rgba(240, 178, 62, 1)); }
.lair-eyes { transform-box: fill-box; transform-origin: center; opacity: 0; animation: eyes-glow .3s ease-out 1.3s forwards, blink .2s ease-in-out 1.6s 1; }
.lair__text { margin: 0; font-family: var(--font-hand); font-weight: 700; font-size: clamp(28px, 3.6vw, 40px); color: var(--ink); animation: text-in .35s ease-out .15s both; }
.lair__text span { animation: dot 1s steps(1) infinite; }
.lair__text span:nth-child(2) { animation-delay: .2s; }
.lair__text span:nth-child(3) { animation-delay: .4s; }
@keyframes map-in { from { opacity: 0; transform: scale(.94) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
@keyframes route-draw { to { stroke-dashoffset: 0; } }
@keyframes x-pop { from { opacity: 0; transform: scale(.2) rotate(-40deg); } to { opacity: 1; transform: none; } }
@keyframes eyes-glow { to { opacity: 1; } }
@keyframes blink { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.1); } }
@keyframes text-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes dot { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.quest.is-scrolly .seg-mask { transition: none; }

/* ==========================================================================
   Treasure-hunter cursor (mouse only; js/cursor.js adds .has-cursor).
   Sparkle trail + coin burst on click; both skipped for reduced motion.
   ========================================================================== */
html.has-cursor, html.has-cursor body { cursor: url(../images/cursor.svg) 4 3, auto; }
html.has-cursor a, html.has-cursor button, html.has-cursor .spot-x, html.has-cursor label[for], html.has-cursor [role="button"] { cursor: url(../images/cursor-hover.svg) 4 3, pointer; }
html.has-cursor input, html.has-cursor textarea { cursor: text; }
.cursor-fx { position: fixed; inset: 0; pointer-events: none; z-index: 2000; overflow: hidden; }
.cursor-fx i { position: absolute; display: block; animation: fx-drift ease-out forwards; }
.fx-spark { width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; background: var(--c); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.fx-coin { width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--gold); border: 2px solid var(--ink); }
.fx-coin { animation-name: fx-fling; animation-timing-function: cubic-bezier(.2, .7, .4, 1); }
@keyframes fx-drift { from { opacity: 1; transform: translate(0, 0) scale(1) rotate(0); } to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.3) rotate(90deg); } }
@keyframes fx-fling { 0% { opacity: 1; transform: translate(0, 0) scale(.6); } 60% { opacity: 1; transform: translate(var(--dx), var(--dy)) scale(1); } 100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 40px)) scale(.8); } }

/* ---------- Readability + fit pass ---------- */
.quest-card .chip-link--soon { font-size: 21px; min-height: 40px; }
/* tablet widths: switch to the menu button before the nav would wrap onto a second row */
@media (min-width: 761px) and (max-width: 960px) {
  .menu-btn { display: inline-flex; margin-left: auto; }
  .nav { width: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0; font-size: 20px; padding: 8px 0 4px; }
  .nav a { padding: 12px 4px; border-top: 2px dashed rgba(104, 66, 57, .3); font-family: var(--font-display); font-weight: 800; }
  .site-header.nav-open .nav { display: flex; }
  .nav-cta { margin-top: 8px; text-align: center; }
}
@media (max-width: 760px) { .nav-cta { margin-top: 8px; text-align: center; } }

/* ==========================================================================
   Exploration: tall map (map-tall.html + js/quest-tall.js)
   The map runs the full height of the card list and scrolls with the page.
   ========================================================================== */
.tq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: stretch; }
.tq-map { position: relative; align-self: stretch; width: 100%; min-width: 0; aspect-ratio: 560 / 1150; border: var(--line); border-radius: 18px 26px 22px 30px; background: #E8DCC0; box-shadow: var(--shadow-lg); overflow: hidden; }
.tq-map > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.tq-route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tq-seg { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; stroke-dasharray: .1 15; }
.tq-seg--soon { opacity: .55; }
.tq-mask { fill: none; stroke: #fff; stroke-width: 16; stroke-dasharray: 1; stroke-dashoffset: 1; }
.tq .lair-tag { top: auto; left: auto; transform: translateY(-100%) rotate(-4deg); transform-origin: 0 100%; z-index: 3; }
.tq .lair-tag::before { display: none; }
.lair-arrow { position: absolute; left: -46px; top: calc(100% - 6px); width: 62px; height: 62px; overflow: visible; }
.lair-arrow path { fill: none; stroke: var(--ink); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.tq-x { position: absolute; width: 56px; height: 56px; margin: -28px 0 0 -28px; padding: 0; border: 0; background: none; cursor: pointer; z-index: 2; }
.tq-x svg { width: 100%; height: 100%; overflow: visible; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); transform: scale(.4) rotate(-30deg); opacity: .35; }
.tq-x path { fill: none; stroke: var(--vermilion); stroke-width: 5.5; stroke-linecap: round; }
.tq-x--4 path { stroke: var(--purple); stroke-dasharray: 5 4; }
.tq-ring { fill: none; stroke: var(--magenta); stroke-width: 3; stroke-dasharray: 6 5; opacity: 0; transition: opacity .25s; }
.tq-label {
  position: absolute; top: 50%; left: calc(100% + 4px); transform: translateY(-50%) rotate(-3deg); white-space: nowrap;
  font-family: var(--font-hand); font-weight: 700; font-size: 24px; line-height: 1; color: var(--ink);
  background: var(--paper); border: var(--line); border-radius: 12px 14px 10px 16px; padding: 5px 12px; box-shadow: var(--shadow-sm);
  opacity: 0; transition: opacity .25s, transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.tq-x--2 .tq-label, .tq-x--4 .tq-label { left: auto; right: calc(100% + 4px); transform: translateY(-50%) rotate(3deg); }
/* an X pops in once the route reaches it */
.tq[data-reached="1"] .tq-x--1 svg, .tq[data-reached="2"] .tq-x:is(.tq-x--1, .tq-x--2) svg,
.tq[data-reached="3"] .tq-x:not(.tq-x--4) svg, .tq[data-reached="4"] .tq-x svg { transform: none; opacity: 1; }
.tq[data-reached="1"] .tq-x--1 .tq-label, .tq[data-reached="2"] .tq-x:is(.tq-x--1, .tq-x--2) .tq-label,
.tq[data-reached="3"] .tq-x:not(.tq-x--4) .tq-label, .tq[data-reached="4"] .tq-x .tq-label { opacity: 1; }
/* hover / focus marks the spot */
.tq[data-active="1"] .tq-x--1 svg, .tq[data-active="2"] .tq-x--2 svg, .tq[data-active="3"] .tq-x--3 svg, .tq[data-active="4"] .tq-x--4 svg { transform: scale(1.3) rotate(-8deg); opacity: 1; }
.tq[data-active="1"] .tq-x--1 .tq-ring, .tq[data-active="2"] .tq-x--2 .tq-ring, .tq[data-active="3"] .tq-x--3 .tq-ring, .tq[data-active="4"] .tq-x--4 .tq-ring { opacity: 1; animation: ring-spin 6s linear infinite; }
.tq[data-active="1"] .tq-x--1 .tq-label, .tq[data-active="2"] .tq-x--2 .tq-label, .tq[data-active="3"] .tq-x--3 .tq-label, .tq[data-active="4"] .tq-x--4 .tq-label { opacity: 1; background: var(--magenta); color: var(--white); }
.tq-list { justify-content: space-between; gap: 32px; padding: 0; }  /* first card level with the map's top edge, last card with its bottom edge */
.tq-cave { display: none; }
.tq[data-active="1"] .quest-card[data-spot="1"], .tq[data-active="2"] .quest-card[data-spot="2"],
.tq[data-active="3"] .quest-card[data-spot="3"], .tq[data-active="4"] .quest-card[data-spot="4"] { transform: rotate(0) translateX(-6px); box-shadow: var(--shadow-lg); background: #FFF9EC; }
@media (max-width: 900px) {
  /* phones: the map becomes a narrow trail down the left edge */
  .tq { grid-template-columns: 58px minmax(0, 1fr); gap: 14px; }
  .tq-map { aspect-ratio: auto; min-height: 0; border-radius: 14px; box-shadow: var(--shadow-sm); background: var(--cream) radial-gradient(rgba(104, 66, 57, .1) 1px, transparent 1.3px) 0 0 / 12px 12px; }
  .tq-map > img { display: none; }
  .tq-cave { display: block; position: absolute; top: 8px; left: 50%; width: 44px; margin-left: -22px; z-index: 1; }
  .tq .lair-tag { display: none; }
  .tq-x { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .tq-label { display: none; }
  .tq-list { gap: 26px; padding: 64px 0 20px; }
  .tq .quest-card { padding: 16px 14px; grid-template-columns: minmax(0, 1fr); }
  .tq .quest-card .flap__icon { display: none; }
  .tq .quest-card__no, .tq .quest-card__body { grid-column: 1; }
}

/* ---------- Logo (chest mark) + about art ---------- */
.logo-mark { position: relative; display: block; height: 52px; aspect-ratio: 470 / 284; flex: none; }
.logo-mark img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* hover: the dragon's tail wiggles out of the chest (pivots where it tucks under the lid) */
.logo-mark__tail { transform-origin: 66% 31%; }
.brand:hover .logo-mark__tail, .lib-logo:hover .logo-mark__tail { animation: tail-wiggle .9s ease-in-out; }
@keyframes tail-wiggle { 0%, 100% { transform: rotate(0); } 18% { transform: rotate(-11deg); } 38% { transform: rotate(9deg); } 58% { transform: rotate(-6deg); } 78% { transform: rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .brand:hover .logo-mark__tail, .lib-logo:hover .logo-mark__tail { animation: none; } }
.lib-logo .logo-mark { height: auto; width: 96px; }
.frame-art { display: block; aspect-ratio: 3 / 4; border: var(--line); border-radius: 45% 45% 6px 6px / 29% 29% 6px 6px; overflow: hidden; background: #EFE3C8; }
.frame-art img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); transform-origin: 50% 54%; }  /* crop the paper margins so the dragon fills the arch */

/* the lair card: the start of the trail, above the four spots */
.lair-card {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 16px; align-items: start;
  padding: 18px 20px 18px 18px; background: var(--ink); color: var(--cream);
  border: var(--line); border-radius: var(--r-card-2); box-shadow: 5px 5px 0 #3E2723; transform: rotate(.6deg);
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}
.lair-card:hover { transform: rotate(0) translateX(-6px); }
.lair-card__icon { grid-row: 1 / span 2; width: 64px; height: 64px; background: var(--cream); }
.lair-card__icon svg { width: 40px; height: auto; }
.lair-card .quest-card__body { grid-column: 2; }
.lair-card__here { font-family: var(--font-hand); font-weight: 700; font-size: 22px; line-height: 1; color: var(--gold); }
.lair-card h3.display { font-size: 28px; color: var(--cream); }
.lair-card p { margin: 0; font-size: 16px; color: rgba(255, 237, 192, .9); }
.lair-card__link { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 800; font-size: 15px; color: var(--gold); text-decoration: none; }
.lair-card__link svg { width: 18px; transition: transform .2s; }
.lair-card__link:hover { color: var(--cream); }
.lair-card__link:hover svg { transform: translateX(4px); }
/* hovering the lair card nudges the "you are here" tag on the map */
.tq:has(.lair-card:hover) .lair-tag { transform: translateY(-100%) rotate(-1deg) scale(1.08); }
.tq .lair-tag { transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
@media (max-width: 900px) {
  .tq-list { padding-top: 0; }
  .lair-card { padding: 16px 14px; grid-template-columns: minmax(0, 1fr); }
  .lair-card__icon { display: none; }
  .lair-card .quest-card__body { grid-column: 1; }
}

/* full-bleed bookcase: the shelves run off both sides of the page; books stay within the content width */
.bookcase--bleed {
  --content: 1176px; --row-pad: 32px;  /* books line up with the page's text column */
  margin-inline: calc(50% - 50vw); padding: 14px 0 0;
  border-left: 0; border-right: 0; border-radius: 0; box-shadow: 0 8px 0 rgba(0, 0, 0, .18);
}
.bookcase--bleed::before { left: 0; right: 0; border-left: 0; border-right: 0; border-radius: 0; }
.bookcase--bleed .shelf-books { border-left: 0; border-right: 0; border-radius: 0; padding-inline: var(--side, 16px); }
.bookcase--bleed .shelf-board { margin-inline: 0; border-left: 0; border-right: 0; border-radius: 0; }
.nook:has(.bookcase--bleed) { padding-bottom: 0; }
.nook:has(.bookcase--bleed) .shelf-row:last-child .shelf-board { margin-bottom: 0; }
@media (max-width: 760px) { .bookcase--bleed { --row-pad: 20px; } }

/* knick-knacks: at the end of a shelf, and clustered in the space either side of the books */
.shelf-books { position: relative; }
.shelf-end { flex: none; margin-left: auto; display: flex; align-items: flex-end; gap: 12px; padding-left: 12px; }
.shelf-gutter { position: absolute; bottom: 0; display: flex; align-items: flex-end; justify-content: center; gap: 14px; pointer-events: none; }
.shelf-gutter--l { left: 0; } .shelf-gutter--r { right: 0; }
.shelf-decor svg { display: block; width: 100%; height: auto; filter: drop-shadow(5px 0 6px rgba(0, 0, 0, .35)); }
.bookcase.will-drop:not(.is-shown) .shelf-decor { opacity: 0; }
.bookcase.will-drop.is-shown .shelf-decor { animation: book-drop .7s cubic-bezier(.34, 1.4, .64, 1) backwards .5s; }

/* full-width footer, lined up with the full-width header */
.site-footer .wrap { max-width: none; padding-left: clamp(20px, 3.2vw, 56px); padding-right: clamp(20px, 3.2vw, 56px); }
@media (min-width: 1021px) {
  .footer-top { grid-template-columns: minmax(0, 1fr) repeat(3, auto); column-gap: clamp(48px, 6vw, 120px); }
}

/* ---------- Hoard Notes: coming soon ---------- */
.post--soon { position: relative; pointer-events: none; }

/* ---------- Inner pages (contact, policies) ---------- */
.page-hero { padding: 72px 0 40px; }
.page-hero .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.page-hero h1 { font-size: clamp(44px, 6vw, 84px); margin: 0; }
.page-hero h1 em { color: var(--magenta); }
.contact-sec, .policies-sec { padding-top: 24px; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.contact-letter { margin: 0; max-width: none; }
.contact-form { display: flex; flex-direction: column; gap: 20px; margin-top: 18px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 800; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-size: 17px; letter-spacing: 0; text-transform: none; color: var(--ink);
  background: rgba(255, 255, 255, .55); border: 2px solid rgba(104, 66, 57, .45); border-radius: 12px; padding: 12px 14px; min-height: 48px;
}
.contact-form textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(184, 45, 116, .18); background: #fff; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.contact-actions .btn:disabled { opacity: .6; cursor: progress; }
.form-msg { margin: 0; font-weight: 700; }
.form-msg.is-ok { color: #3F6B3A; }
.form-msg.is-err { color: #B23A23; }
.contact-letter .ps { margin-top: 26px; }
.contact-aside { display: flex; flex-direction: column; gap: 22px; }
.aside-card { padding: 24px; background: var(--paper); border: var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); }
.aside-card--soft { background: var(--cream); transform: rotate(-.8deg); }
.aside-card h2 { font-size: 26px; margin: 0 0 8px; }
.aside-card p { margin: 0 0 14px; font-size: 16px; }
.aside-card .flap__links { display: flex; flex-wrap: wrap; gap: 8px; }
.aside-link { font-weight: 800; color: var(--magenta); }

.policies-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.policy-toc { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: var(--paper); border: var(--line); border-radius: var(--r-card-2); box-shadow: var(--shadow-sm); }
.policy-toc .hand { font-size: 24px; color: var(--magenta); line-height: 1; margin-bottom: 6px; }
.policy-toc a { color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; padding: 5px 0; }
.policy-toc a:hover { color: var(--magenta); text-decoration: underline; }
.policy-body { max-width: 70ch; }
.policy-body article { padding: 28px 0; border-bottom: 2px dashed rgba(104, 66, 57, .3); scroll-margin-top: 100px; }
.policy-body article:first-child { padding-top: 0; }
.policy-body h2 { font-size: 32px; margin: 0 0 12px; }
.policy-body p, .policy-body li { font-size: 17px; }
.policy-body ul { padding-left: 1.1em; display: flex; flex-direction: column; gap: 10px; }
.policy-body a { color: var(--magenta); font-weight: 700; }
.policy-updated { margin-top: 28px; font-size: 15px; opacity: .85; }

@media (max-width: 900px) {
  .contact-grid, .policies-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .policy-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px 16px; }
  .policy-toc .hand { width: 100%; }
}
@media (max-width: 600px) {
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .page-hero { padding: 48px 0 24px; }
}
@media (max-width: 760px) { .site-header .logo-mark { height: 38px; } .site-header .wrap { flex-wrap: nowrap; } .site-header.nav-open .wrap { flex-wrap: wrap; } }
@media (max-width: 360px) { .wordmark b { font-size: 19px; } }
@media (max-width: 440px) {
  .site-header .logo-mark { height: 34px; }
  .brand { gap: 8px; }
  .wordmark b { font-size: 20px; }
  .wordmark span { font-size: 9px; letter-spacing: .28em; }
  .menu-btn { padding: 6px 12px; gap: 6px; font-size: 14px; min-height: 40px; }
  .site-header .wrap { gap: 8px; }
}
@media (max-width: 380px) { .site-header .logo-mark { height: 30px; } .wordmark b { font-size: 18px; } .wordmark span { letter-spacing: .22em; } .menu-btn { padding: 6px 10px; } }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup-msg.is-ok { color: #3F6B3A; font-weight: 800; }
.signup-msg.is-err { color: #B23A23; font-weight: 800; }

/* blank "coming soon" blog cards */
.post__blank { aspect-ratio: 16 / 11; border-bottom: var(--line); border-radius: 4px 4px 0 0; display: grid; place-items: center;
  background: var(--cream) radial-gradient(rgba(104, 66, 57, .12) 1.2px, transparent 1.4px) 0 0 / 16px 16px; }
.post__blank img { width: 34px; opacity: .55; }
.post--soon .post__body { justify-content: center; align-items: center; min-height: 150px; }
.soon-label { font-family: var(--font-hand); font-weight: 700; font-size: 34px; line-height: 1; color: var(--magenta); transform: rotate(-3deg); }
/* the red "shh! she's napping" sticker sits above the frame's dotted line */
.frame .sticker { z-index: 3; }

/* the fan photo sits back inside the ring so the dragon reads in front of it */
.hero-photo { filter: saturate(.75) brightness(.95) contrast(.96); }
.hero-shade { position: absolute; left: 16.29%; top: 16.29%; width: 67.43%; height: 67.43%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 50% 45%, rgba(255, 237, 192, .08) 40%, rgba(62, 39, 35, .25) 79%, rgba(62, 39, 35, .56) 100%); }
