:root {
  --jungle: #17402f;
  --jungle-2: #0f2c20;
  --forest: #143524;        /* text on light surfaces: deep green, never black */
  --deep-teal: #0f4543;
  --mango: #f4b63f;
  --hibiscus: #ef7a62;
  --teal: #1f6f73;
  --cream: #fbf3e4;
  --pink: #f7c8b9;
  --mint: #cfe4d6;
  --display: "Fraunces", Georgia, serif;
  --sans: "Figtree", system-ui, sans-serif;
  --hand: "Caveat", cursive;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --r: 24px;
  --pad: clamp(1rem, 4vw, 3.5rem);
  --pop: 0 0 0 2px var(--forest), 0 6px 0 var(--forest);   /* outlined card with a hard forest edge */
  --palm: url("https://images.unsplash.com/photo-1530177150700-84cd9a3b059b?w=1800&q=60&auto=format&fit=crop");
  --dapple: url("https://images.unsplash.com/photo-1570019177956-e959fed60484?w=1800&q=60&auto=format&fit=crop");
  --grain: 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--jungle); color: var(--forest); font: 400 1.05rem/1.6 var(--sans); overflow-x: hidden; }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; background: var(--grain); opacity: .09; mix-blend-mode: multiply; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 650; line-height: 1; margin: 0; font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: clamp(2.3rem, 5.2vw, 4.4rem); }
h3 { font-size: 1.55rem; }
p { text-wrap: pretty; }
.hand { font-family: var(--hand); }
:focus-visible { outline: 3px solid var(--mango); outline-offset: 3px; }
.scribble { width: 2.2em; height: 1.5em; vertical-align: -.5em; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

section { position: relative; padding: clamp(3.5rem, 7vw, 6rem) var(--pad); }
.sec-head { margin-bottom: 2.4rem; max-width: 46rem; }
.sec-head p { margin: .9rem 0 0; font-size: 1.15rem; max-width: 38rem; }
.bento-sec > h2 { margin-bottom: 2rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer; text-decoration: none;
  font: 700 1rem var(--sans); padding: .95rem 1.6rem; border-radius: 999px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .6rem 1.15rem; font-size: .92rem; }
.btn-mango { background: var(--mango); color: var(--forest); box-shadow: 0 4px 0 #b9821f; }
.btn-mango:hover { box-shadow: 0 7px 0 #b9821f; }
.btn-forest { background: var(--jungle); color: var(--cream); box-shadow: 0 4px 0 var(--jungle-2); }
.btn-forest:hover { box-shadow: 0 7px 0 var(--jungle-2); }
.btn-line { color: inherit; box-shadow: inset 0 0 0 2px currentColor; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: .8rem; left: 50%; translate: -50% 0; z-index: 50;
  width: min(1100px, calc(100% - 1.5rem));
  display: flex; align-items: center; gap: 1.5rem;
  padding: .45rem .5rem .45rem 1.3rem; border-radius: 999px;
  background: rgba(251,243,228,.92); backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -15px rgba(15,44,32,.5);
}
.brand { font: 750 1.4rem var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: -.02em; text-decoration: none; margin-right: auto; }
.nav nav { display: flex; gap: 1.4rem; }
.nav nav a { text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav nav a:hover { color: var(--teal); }

.open-badge {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .9rem;
  padding: .4rem .9rem; border-radius: 999px; background: var(--jungle); color: var(--cream); white-space: nowrap;
}
.open-badge::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: #c9c1b0; }
.open-badge.is-open::before { background: #7ee07a; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(126,224,122,.7); } 100% { box-shadow: 0 0 0 .55rem rgba(126,224,122,0); } }

/* ---------- light & leaf shadows drifting over every wall ---------- */
main > section, .covers, .foot { position: relative; isolation: isolate; overflow: clip; }
main > section::before, .covers::before {
  content: ""; position: absolute; inset: -8%; z-index: -2; pointer-events: none;
  background: var(--shade, var(--palm)) var(--sx, 70%) var(--sy, 20%) / cover no-repeat;
  filter: grayscale(1) contrast(1.35) blur(var(--blur, 3px));
  mix-blend-mode: var(--blend, overlay); opacity: var(--so, .55);
  animation: breeze 22s ease-in-out infinite alternate;
}
@keyframes breeze {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(1.02); }
  50%  { transform: translate3d(-1.5%, 1%, 0) rotate(.6deg) scale(1.05); }
  100% { transform: translate3d(1%, -1%, 0) rotate(-.5deg) scale(1.03); }
}
main > section::after, .covers::after, .foot::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(var(--ba, 118deg), transparent 18%, rgba(255,206,140,var(--beam, .16)) 42%, rgba(255,224,170,calc(var(--beam, .16) * .5)) 58%, transparent 80%),
    radial-gradient(120% 95% at 50% 45%, transparent 50%, rgba(10,40,25,var(--vig, .3)) 100%);
}
.bento-sec, .membership, .games, .strip { --blend: multiply; --so: .3; --beam: .22; --vig: .08; --blur: 4px; }
.bento-sec, .games { --shade: var(--dapple); --sx: 20%; --sy: 60%; --ba: 240deg; }
.membership { --sx: 10%; --sy: 0%; --ba: 120deg; }
.strip { --sx: 40%; --sy: 70%; }
.hero { --beam: .2; --vig: .45; }
.books { --shade: var(--dapple); --vig: .4; --so: .4; }
.menu { --sx: 30%; --sy: 80%; --ba: 300deg; }
.visit { --shade: var(--dapple); --vig: .45; }
.covers { --so: .35; --sy: 90%; }
main > section > :not(dialog):not(.hero-bg) { position: relative; z-index: 1; }

/* ---------- hero ---------- */
.hero {
  background: var(--jungle); color: var(--cream);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center;
  min-height: min(100svh, 880px); padding-top: 7rem; padding-bottom: 3rem;
}
/* full-bleed photo of the room; z -3 keeps it under the leaf shadows (-2) and the darkening light layer (-1) */
.hero-bg { position: absolute; left: 0; top: -12%; z-index: -3; width: 100%; height: 112%; /* extra 12% for the scroll parallax */ object-fit: cover; object-position: 50% 62%; }
.hero::after { background:
  linear-gradient(90deg, rgba(8,28,19,.82) 0%, rgba(8,28,19,.55) 45%, rgba(8,28,19,.15) 85%),
  linear-gradient(transparent 60%, rgba(8,28,19,.6)),
  radial-gradient(120% 95% at 50% 45%, transparent 50%, rgba(8,28,19,.45) 100%); }
.hero-copy { text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.where { font-size: 1.8rem; color: var(--mango); margin: 0 0 .3rem; rotate: -2deg; width: fit-content; }
/* deliberately oversized: the cafe's name is the thing to remember */
.wordmark { font-weight: 800; font-size: clamp(4rem, 10.5vw, 9.2rem); line-height: .84; letter-spacing: -.035em; margin: 0 0 1.6rem; }
.wordmark span { display: block; }
.wordmark span + span { padding-left: .5em; font-style: italic; color: var(--mango); }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); max-width: 30rem; margin: 0; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }

/* ---------- covers wall + ticker ---------- */
.covers { background: var(--jungle); padding: 0 0 2.5rem; display: grid; gap: 14px; }
.covers-row { display: flex; gap: 14px; width: max-content; animation: marquee 70s linear infinite; }
.covers-row.rev { animation-direction: reverse; animation-duration: 80s; }
.covers:hover .covers-row { animation-play-state: paused; }
.covers-row img { height: clamp(150px, 16vw, 210px); width: auto; aspect-ratio: 2/3; object-fit: cover; border-radius: 8px; box-shadow: 0 10px 20px -10px rgba(5,25,15,.7); transition: transform .4s var(--ease); background: var(--jungle-2); }
.covers-row img:hover { transform: translateY(-8px) rotate(-2deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

.ticker { background: var(--mango); color: var(--forest); overflow: hidden; padding: .9rem 0; border-block: 2px solid var(--forest); }
.ticker-track { display: flex; gap: 1.6rem; width: max-content; animation: marquee 34s linear infinite; align-items: center; }
.ticker span { font: italic 700 clamp(1.4rem, 3vw, 2.2rem) var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; white-space: nowrap; }
.ticker b { font-size: 1.3rem; color: var(--teal); }

/* ---------- practical tiles ---------- */
.bento-sec { background: var(--cream); }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(200px, auto); gap: 20px; }
.tile { background: #fff8ea; border-radius: var(--r); padding: 1.5rem; position: relative; overflow: hidden; box-shadow: var(--pop); transition: transform .45s var(--ease); }
.tile:hover { transform: translateY(-4px) rotate(-.5deg); }
.tile h3 { margin-bottom: .6rem; }
.tile p { margin: 0; }
.t-hours { grid-column: span 2; grid-row: span 2; }
.tile-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 1.15rem; }
.hours-table th { text-align: left; font: 650 1.25rem var(--display); padding: .55rem 0; border-bottom: 1px dashed rgba(20,53,36,.25); }
.hours-table td { text-align: right; border-bottom: 1px dashed rgba(20,53,36,.25); font-variant-numeric: tabular-nums; }
.hours-table tr.today th, .hours-table tr.today td { color: var(--teal); font-weight: 700; }
.hours-table tr.today th::after { content: "today"; font: 600 .75rem var(--sans); background: var(--mango); color: var(--forest); padding: .1rem .5rem; border-radius: 99px; margin-left: .5rem; vertical-align: middle; }
.t-photo { padding: 0; grid-column: span 2; }
.t-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform 1.2s var(--ease); }
.t-photo:hover img { transform: scale(1.04); }
.tile-cap { position: absolute; left: .8rem; bottom: .8rem; right: .8rem; background: var(--cream); padding: .5rem .95rem; border-radius: 999px; font-weight: 600; font-size: .9rem; width: fit-content; box-shadow: 0 0 0 2px var(--forest); }
.t-mango { background: var(--mango); }
.t-teal { background: var(--teal); color: var(--cream); }
.t-hibiscus { background: var(--hibiscus); }
.t-motto { grid-column: span 2; display: flex; flex-direction: column; justify-content: center; gap: .4rem; }
.motto { font: italic 650 clamp(1.8rem, 3.2vw, 2.8rem)/1.05 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: -.02em; }
.t-motto .hand { font-size: 1.5rem; }
.tile-link { display: inline-block; margin-top: .8rem; font-weight: 700; text-underline-offset: 4px; }

/* ---------- membership ---------- */
.membership { background: var(--mango); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { border-radius: 28px; padding: 1.8rem; box-shadow: var(--pop); display: flex; flex-direction: column; transition: transform .45s var(--ease); }
.plan:hover { transform: translateY(-8px) rotate(-1deg); }
.plan:nth-child(2):hover { transform: translateY(-8px) rotate(1deg); }
.p-cream { background: var(--cream); }
.p-jungle { background: var(--jungle); color: var(--cream); }
.p-hibiscus { background: var(--hibiscus); }
.plan h3 { font-size: 1.9rem; }
.num { font: 800 clamp(5rem, 9vw, 7.5rem)/.9 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; margin: 1rem 0 0; }
.p-jungle .num { color: var(--mango); }
.num-label { font-weight: 700; font-size: 1.1rem; margin: .2rem 0 1rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.5rem; flex: 1; }
.plan li { padding: .5rem 0 .5rem 1.5rem; border-top: 1px solid rgba(20,53,36,.22); position: relative; }
.p-jungle li { border-color: rgba(251,243,228,.25); }
.plan li::before { content: "✿"; position: absolute; left: 0; color: var(--teal); }
.p-jungle li::before { color: var(--mango); }
.p-hibiscus li::before { color: var(--forest); }
.price { font: 700 1.6rem var(--display); margin: 0 0 1rem; }
.price small { font: 500 .9rem var(--sans); }
.fine { margin: 2.2rem 0 0; font-weight: 500; display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; }
.fine .hand { font-size: 1.7rem; rotate: -3deg; }

/* join dialog */
.join { border: 0; padding: 0; background: transparent; width: min(28rem, calc(100vw - 2rem)); overflow: visible; }
.join::backdrop { background: rgba(15,44,32,.7); backdrop-filter: blur(4px); }
.join[open] .join-form { animation: pop .5s var(--ease); }
@keyframes pop { from { transform: translateY(24px); opacity: 0; } }
.join-form { position: relative; background: var(--cream); color: var(--forest); padding: 2rem; border-radius: 28px; display: grid; gap: .9rem; overflow: hidden; box-shadow: var(--pop); margin: 0 4px 8px; }
.join-form h3 { font-size: 2rem; padding-right: 1.5rem; }
.join-form p { margin: 0; }
.join-form label { display: grid; gap: .3rem; font-weight: 600; font-size: .9rem; }
.join-form input, .join-form select { font: inherit; padding: .75rem .9rem; border: 2px solid var(--forest); border-radius: 14px; background: #fff; color: var(--forest); }
.x { position: absolute; top: .7rem; right: 1rem; background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: var(--forest); }
.err { color: #a32a17; font-weight: 600; font-size: .9rem; }
.stamp { position: absolute; right: 1.2rem; bottom: 4.6rem; pointer-events: none; font: 800 1rem/1.1 var(--display); text-align: center; color: #c2452d; border: 3px solid #c2452d; border-radius: 50%; padding: 1.3rem .8rem; rotate: -16deg; scale: 1.8; opacity: 0; }
.stamp.hit { animation: stamp .35s var(--ease) forwards; }
@keyframes stamp { to { scale: 1; opacity: .9; } }

/* ---------- books ---------- */
.books { background: var(--deep-teal); color: var(--cream); }
.books-head { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; margin-bottom: 2.4rem; }
.books-head p { font-size: 1.15rem; margin: .9rem 0 1.3rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { font: 600 .95rem var(--sans); padding: .55rem 1.1rem; border-radius: 99px; cursor: pointer; background: transparent; color: var(--cream); border: 2px solid rgba(251,243,228,.45); transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--cream); }
.chip.on { background: var(--mango); border-color: var(--mango); color: var(--forest); }
.snaps { display: flex; padding-right: 1rem; }
.snaps img { width: clamp(120px, 13vw, 190px); aspect-ratio: 3/4; object-fit: cover; border-radius: 14px; border: 5px solid var(--cream); box-shadow: 0 20px 30px -18px rgba(0,20,20,.8); rotate: -6deg; }
.snaps img + img { rotate: 5deg; margin-left: -1.4rem; margin-top: 1.6rem; }
.grid-books { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px 18px; }
.book { display: grid; gap: .5rem; align-content: start; }
.book .cv { aspect-ratio: 2/3; border-radius: 10px; overflow: hidden; background: #0b3331; box-shadow: 0 16px 30px -14px rgba(0,20,20,.9); transition: transform .5s var(--ease); }
.book .cv img { width: 100%; height: 100%; object-fit: cover; }
.book:hover .cv { transform: translateY(-8px) rotate(-2deg); }
.book:nth-child(even):hover .cv { transform: translateY(-8px) rotate(2deg); }
.book b { font: 650 1.05rem/1.15 var(--display); }
.book i { font-style: normal; font-size: .88rem; color: #cfe4d6; }
.book.hide { display: none; }
.book { position: relative; }
.book .tag {
  position: absolute; top: -10px; right: -8px; z-index: 2; rotate: 8deg;
  background: var(--mango); color: var(--forest); font: 700 .85rem var(--sans); white-space: nowrap;
  padding: .3rem .6rem .3rem 1.2rem; border-radius: 4px 8px 8px 4px;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%);
  filter: drop-shadow(0 3px 3px rgba(0,20,20,.5));
}
.book .tag::before { content: ""; position: absolute; left: 9px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--deep-teal); }
.book .stock { font: 600 .8rem var(--sans); display: inline-flex; align-items: center; gap: .4rem; width: fit-content; padding: .15rem .6rem; border-radius: 99px; background: rgba(251,243,228,.12); }
.book .stock::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: #7ee07a; }
.book .stock.last::before { background: var(--mango); }
.book .stock.borrow::before { background: #9fd3ff; }

/* ---------- menu: a cream menu board on teal ---------- */
.menu { background: var(--teal); color: var(--cream); }
.menu-wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.menu-side { position: sticky; top: 6.5rem; padding-top: 2rem; }
.menu-board { background: var(--cream); color: var(--forest); border-radius: 32px; padding: clamp(1.4rem, 3vw, 2.6rem); box-shadow: 0 0 0 2px var(--forest), 0 8px 0 var(--jungle-2); }
.menu-board h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin-bottom: 1.4rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.tabs button { font: 600 .95rem var(--sans); color: var(--forest); background: transparent; cursor: pointer; border: 2px solid var(--forest); padding: .55rem 1.15rem; border-radius: 99px; transition: background .2s, color .2s; }
.tabs button[aria-selected="true"] { background: var(--jungle); color: var(--cream); }
.items { list-style: none; margin: 0; padding: 0; }
.items li { display: flex; align-items: baseline; gap: .6rem; padding: .55rem .8rem; margin-inline: -.8rem; border-radius: 14px; cursor: pointer; transition: background .25s, transform .35s var(--ease); }
.items li:hover { background: rgba(244,182,63,.22); }
.items li.active { background: var(--mango); transform: translateX(6px); }
.items li.active i { border-color: rgba(20,53,36,.55); }
.items li.active small { color: var(--forest); }
.items li div { max-width: 75%; }
.items li span { font: 650 1.25rem var(--display); display: block; }
.items li small { font-size: .9rem; display: block; color: #3d5a48; }
.items li i { flex: 1; border-bottom: 2px dotted rgba(20,53,36,.3); translate: 0 -.3rem; min-width: 1rem; }
.items li b { font: 700 1.05rem var(--sans); white-space: nowrap; }
.menu-side { display: grid; justify-items: center; gap: 1rem; }
.menu-photo { width: 100%; max-width: 460px; aspect-ratio: 1; border-radius: 50%; border: 8px solid var(--cream); box-shadow: 0 30px 60px -25px rgba(0,30,30,.7); rotate: 3deg; }
.menu-photo { position: relative; overflow: hidden; }
.menu-photo .mp { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; opacity: 0; transform: scale(1.12) rotate(8deg); filter: blur(6px); transition: opacity .7s var(--ease), transform 1.1s var(--ease), filter .7s var(--ease); }
.menu-photo .mp.on { opacity: 1; transform: none; filter: none; }
.menu-note { font-size: 2.1rem; color: #ffe0a3; rotate: -3deg; margin: 0; text-align: center; }

/* ---------- board games: photo cards, not boxes ---------- */
.games { background: var(--cream); }
.games-rail { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--pad) * -1); padding: 6px var(--pad) 16px; scrollbar-width: none; cursor: grab; }
.games-rail::-webkit-scrollbar { display: none; }
.games-rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.gcard { flex: 0 0 clamp(250px, 24vw, 320px); scroll-snap-align: start; border-radius: var(--r); overflow: hidden; box-shadow: var(--pop); position: relative; display: flex; flex-direction: column; transition: transform .45s var(--ease); }
.gcard:hover { transform: translateY(-6px) rotate(-1deg); }
.gcard:nth-child(even):hover { transform: translateY(-6px) rotate(1deg); }
.gcard > img { width: 100%; aspect-ratio: 4/3; object-fit: cover; pointer-events: none; user-select: none; }
.g-shelf { flex-basis: clamp(300px, 44vw, 600px); }
.g-shelf > img { aspect-ratio: auto; height: 100%; min-height: 320px; flex: 1; }
.g-mango { background: var(--mango); }
.g-mint { background: var(--mint); }
.g-pink { background: var(--pink); }
.gcard:not(.g-shelf) { overflow: hidden; }
.drag-hint { font-size: 1.5rem; color: var(--teal); margin-left: .4rem; display: inline-block; rotate: -3deg; }
.gbody { padding: 1.1rem 1.3rem 1.4rem; position: relative; background: inherit; flex: 1; }
.gbody p { margin: .4rem 0 0; }
.when { display: inline-block; font-weight: 700; font-size: .82rem; background: var(--jungle); color: var(--cream); padding: .2rem .7rem; border-radius: 99px; margin-bottom: .6rem; }
.pins { list-style: none; margin: 0; padding: 0; position: absolute; left: 1rem; right: 1rem; bottom: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.pins li { font: 650 1.05rem var(--display); padding: .4rem .9rem; border-radius: 99px; background: var(--cream); color: var(--forest); box-shadow: 0 0 0 2px var(--forest), 0 3px 0 var(--forest); }
.pins li:nth-child(3n+1) { background: var(--mango); rotate: -3deg; }
.pins li:nth-child(3n+2) { background: var(--pink); rotate: 2deg; }
.pins li:nth-child(3n) { background: var(--mint); rotate: -1deg; }

/* ---------- photos ---------- */
.strip { background: var(--mint); padding-inline: 0; }
.strip h2 { padding-inline: var(--pad); margin-bottom: 1.2rem; }
.strip h2 .hand { font-size: clamp(1.5rem, .5em, 2.2rem); color: var(--jungle); margin-left: .6rem; display: inline-block; rotate: -4deg; }
.strip-track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 1rem var(--pad) 1.6rem; scrollbar-width: none; }
.strip-track::-webkit-scrollbar { display: none; }
.strip img { flex: 0 0 auto; height: clamp(220px, 26vw, 330px); width: auto; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r); border: 6px solid var(--cream); box-shadow: 0 18px 30px -18px rgba(15,60,40,.6); scroll-snap-align: start; }
.strip img:nth-child(odd) { rotate: -2deg; }
.strip img:nth-child(even) { rotate: 2deg; margin-top: 22px; }

/* ---------- visit + footer ---------- */
.visit { background: var(--jungle); color: var(--cream); display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.visit address { font: normal 650 1.5rem/1.4 var(--display); margin: 1.4rem 0 1.6rem; }
.visit-cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.small { margin: 1.4rem 0 0; }
.map { width: 100%; aspect-ratio: 4/3; border-radius: var(--r); border: 6px solid var(--cream); }

.foot { background: var(--jungle-2); color: var(--cream); padding: clamp(4rem, 9vw, 7rem) var(--pad) 1.5rem; text-align: center; }
/* the last page of the book: name set like a closing line, not a logo */
.foot-mark { font: italic 500 clamp(3.2rem, 11vw, 8.5rem)/.95 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: -.03em; margin: 0; }
.foot-orn { color: var(--mango); letter-spacing: .6em; margin: 1.6rem 0 .4rem; }
.foot-line { font-size: clamp(1.7rem, 3.2vw, 2.2rem); color: var(--mango); margin: 0 0 3.5rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .8rem 1.6rem; border-top: 1px solid rgba(251,243,228,.15); padding-top: 1.4rem; font-size: .95rem; }
.foot-row nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.2rem; }
.foot-row nav a { text-decoration: none; color: #d9d2bf; font-weight: 600; }
.foot-row nav a:hover { color: var(--mango); }
.foot-credit { margin: 1.4rem 0 0; font-size: .8rem; color: #9fb0a5; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .grid-books { grid-template-columns: repeat(4, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; max-width: 34rem; }
  .menu-wrap { grid-template-columns: 1fr; }
  .menu-side { order: -1; position: static; padding-top: 0; }
  .menu-photo { max-width: 300px; }
}
@media (max-width: 760px) {
  .nav nav { display: none; }
  .hero, .visit { grid-template-columns: 1fr; }
  .hero { padding-top: 6rem; }
  .bento { gap: 16px; }
  .t-hours, .t-photo, .t-motto { grid-column: span 2; }
  .t-photo { min-height: 220px; }
  .books-head { grid-template-columns: 1fr; }
  .snaps { display: none; }
  .grid-books { grid-template-columns: repeat(2, 1fr); }
  .gcard { flex-basis: 76vw; }
  .g-shelf { flex-basis: 84vw; }
  .menu-side { position: static; padding-top: 0; }
  .items li div { max-width: 68%; }
}

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