/* Joy's online diary: site styles. Tokens and rules from Blueprint G8 (v1.2). Loads after scroll-moments.css and motion.css. */

@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-opsz-wght500-700-soft100.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-wght400-500.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("/fonts/caveat-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --cream: #F7F1E6; --paper: #EFE6D4; --ink: #2B2118; --muted: #6B5E52;
  --gold: #E9B64A; --gold-deep: #DCA83C; --sage: #7E9470; --terra: #C8673B; --land: #E2D6BD;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --text: "Figtree", "Segoe UI", system-ui, sans-serif;
  --hand: "Caveat", "Segoe Print", "Segoe Script", cursive;
  --gutter: clamp(16px, 4vw, 40px);
  --wrap: 72rem;
  --edge: rgba(43, 33, 24, .12);
  --noise: 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.17 0 0 0 0 0.13 0 0 0 0 0.09 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --mo-dur: .7s; --mo-ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  background-color: var(--cream);
  background-image: var(--noise);
  background-size: 220px 220px;
  color: var(--ink);
  scroll-padding-top: 16px;
}
body { margin: 0; font: 400 17px/1.6 var(--text); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
img { max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-reading { max-width: calc(42rem + 2 * var(--gutter)); }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 60; background: var(--ink); color: var(--cream); padding: 10px 14px; border-radius: 4px; text-decoration: none; }
.skip:focus { top: 12px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.005em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); line-height: 1.15; margin: 0 0 1em; }
h3 { font-size: 1.25rem; line-height: 1.25; }
.lede { font-size: clamp(1.0625rem, .9rem + .8vw, 1.3125rem); line-height: 1.5; max-width: 36em; margin: 0 0 1em; }
.note { font-size: 15px; line-height: 1.45; color: var(--muted); margin: 10px 2px 0; }
.note .textlink { color: var(--ink); }
.note-sep { margin: 0 4px; }
.textlink { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 5px; font-weight: 500; }
.textlink:hover { text-decoration-color: var(--gold-deep); }
.textlink:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 4px;
  font: 500 16px/1 var(--text); letter-spacing: .01em; text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--gold); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 2px 0 rgba(43, 33, 24, .25); }
.btn-primary:hover { background: var(--gold-deep); }
.btn-ink { background: var(--ink); color: var(--cream); box-shadow: 0 2px 0 rgba(43, 33, 24, .35); }
.btn-ink:hover { background: #3A2D21; }
.btn-secondary { background: var(--cream); color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--paper); }
.btn:active { transform: translateY(1px); }
.playmark { display: inline-block; width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-right: 10px; }

/* ---------- header ---------- */
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gutter); }
.hdr--over { position: absolute; top: 0; left: 0; right: 0; z-index: 3; color: var(--cream); }
.hdr--page { color: var(--ink); border-bottom: 1px solid var(--edge); }
.wordmark { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -.01em; color: inherit; text-decoration: none; }
.nav { display: flex; gap: clamp(14px, 2vw, 26px); font-size: 15px; font-weight: 500; }
.nav a { position: relative; color: inherit; text-decoration: none; padding: 10px 0; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 1px; right: -2px; bottom: 4px; height: 3px; background: var(--ink); transform: rotate(-.6deg); border-radius: 1px; }
.hdr--over .nav a[aria-current="page"]::after { background: var(--gold); }
.hdr--over a:focus-visible, .hdr--over button:focus-visible { outline-color: var(--cream); }
.menu-btn { display: none; min-height: 48px; padding: 0 16px; background: transparent; border: 1.5px solid currentColor; color: inherit; border-radius: 4px; font: 500 15px/1 var(--text); cursor: pointer; }
@media (max-width: 899px) { .nav { display: none; } .menu-btn { display: inline-flex; align-items: center; } }

.sheet { display: none; position: fixed; inset: 0; z-index: 40; background: var(--paper); color: var(--ink); padding: 14px var(--gutter) 32px; overflow: auto; }
.sheet.open { display: block; animation: sheet-up .3s ease-out; }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
.sheet-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.sheet nav a { display: block; font: 500 20px/1.2 var(--text); padding: 16px 0; border-top: 1px solid var(--edge); color: inherit; text-decoration: none; }
.sheet nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--ink); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.sheet nav a:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }

/* ---------- the hero: M7 SCROLL-SCRUBBED on the shipped engine (S2). Defaults below are the static equivalent. ---------- */
.hero { background: var(--ink); color: var(--cream); }
.hero .sm-stage { position: relative; min-height: 100vh; min-height: 100svh; }
.hero .sm-safe { position: relative; z-index: 2; height: 100vh; height: 100svh; }
.hero .sm-media { position: absolute; inset: 0; z-index: 1; overflow: clip; }
.hero .sm-media picture { display: block; position: absolute; inset: 0; }
.hero .sm-poster { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero .sm-canvas { display: none; }
html[data-sm="live"] .hero:not([data-sm-state="static"]) .sm-media picture { display: contents; }
.sm-persistent {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter);
  bottom: calc(56px + env(safe-area-inset-bottom, 0px)); max-width: 620px; box-sizing: border-box;
}
.hero h1 { font-size: clamp(2.4rem, min(9vw, 11vh), 5.5rem); line-height: 1.05; letter-spacing: -.01em; margin: 0 0 .22em; white-space: nowrap; }
@media (max-width: 340px) { .hero h1 { white-space: normal; } }
.hero .lead { font-size: clamp(1.0625rem, .8rem + 1.2vw, 1.3125rem); line-height: 1.5; margin: 0 0 1.3em; max-width: 30em; }
.hero .btn:focus-visible { outline-color: var(--cream); }
.scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(43, 33, 24, .38) 0, rgba(43, 33, 24, 0) 150px),
    linear-gradient(0deg, rgba(43, 33, 24, .74) 0, rgba(43, 33, 24, .58) 260px, rgba(43, 33, 24, 0) 480px);
}
@media (max-width: 767px) {
  .sm-persistent { bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
  .scrim { background: linear-gradient(180deg, rgba(43, 33, 24, .38) 0, rgba(43, 33, 24, 0) 150px), linear-gradient(0deg, rgba(43, 33, 24, .7) 0, rgba(43, 33, 24, .55) 300px, rgba(43, 33, 24, 0) 520px); }
}
/* the take's note: her posting date (hand) and her own caption; one note per take, shown by width */
.take-note {
  position: absolute; top: 84px; right: var(--gutter); z-index: 3; max-width: 300px;
  background: rgba(247, 241, 230, .94); color: var(--ink); border: 1px solid rgba(43, 33, 24, .25);
  padding: 10px 14px 12px; transform: rotate(1.2deg);
}
.take-note p { margin: 0; }
.take-date { font: 500 19px/1.15 var(--hand); margin-bottom: 3px; }
.take-time { font: 500 13px/1 var(--text); letter-spacing: .04em; color: var(--muted); margin-left: 8px; white-space: nowrap; }
.take-time:empty { display: none; }
.take-cap { font-size: 14px; line-height: 1.35; }
@media (max-width: 767px) {
  .take-note { top: 76px; max-width: min(270px, calc(100% - 2 * var(--gutter))); }
}
html:not([data-sm="live"]) .take-time, .hero[data-sm-state="static"] .take-time { display: none; }
/* the take's progress line: a thin gold rule along the stage bottom, driven by the engine's --sm-p (live only) */
html[data-sm="live"] .hero:not([data-sm-state="static"]) .sm-stage::after {
  content: ""; position: absolute; left: 0; bottom: 0; z-index: 3; height: 3px; width: 100%;
  background: var(--gold); transform: scaleX(var(--sm-p, 0)); transform-origin: 0 50%;
}

/* ---------- page heroes (Blueprint v1.3): the Home hero's grammar, shorter, one of her own takes per page ---------- */
.hero-page h1, .hero-wall h1 { white-space: normal; font-size: clamp(2.4rem, min(11vw, 10vh), 5rem); text-wrap: balance; }
.hero-page .lead, .hero-wall .lead { margin-bottom: 0; }
.hero .stamp-hero { font: 500 clamp(1.9rem, 6vw, 3.25rem)/1 var(--hand); color: var(--gold); margin: 0 0 .2em; }
/* her vertical takes sit in a polaroid-style frame over a blurred copy of themselves; keep the words left of the frame */
@media (min-width: 900px) { .hero-framed .sm-persistent { max-width: calc(37vw - var(--gutter)); } }
.hero-framed .sm-poster { object-position: 50% 50%; }
.hero-page .sm-persistent { bottom: calc(48px + env(safe-area-inset-bottom, 0px)); }
/* a bright take (the wedding close-up: skin, water, white) needs a deeper floor under the date stamp, headline and lede */
.hero-page.hero-bright .scrim { background: linear-gradient(180deg, rgba(43, 33, 24, .62) 0, rgba(43, 33, 24, .3) 80px, rgba(43, 33, 24, 0) 170px), linear-gradient(0deg, rgba(43, 33, 24, .84) 0, rgba(43, 33, 24, .68) 300px, rgba(43, 33, 24, .3) 460px, rgba(43, 33, 24, 0) 620px); }
.hero-page .scrim { background: linear-gradient(180deg, rgba(43, 33, 24, .62) 0, rgba(43, 33, 24, .3) 80px, rgba(43, 33, 24, 0) 170px), linear-gradient(0deg, rgba(43, 33, 24, .72) 0, rgba(43, 33, 24, .5) 260px, rgba(43, 33, 24, 0) 480px); }
/* the headline, lede and date stamp are on screen from first paint; they rise in with a CSS animation (never an observer, so nothing waits for a scroll) */
@keyframes hero-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: no-preference) {
  .hero-page .sm-persistent > *, .hero-wall .sm-persistent > * { animation: hero-in .7s cubic-bezier(.2, .7, .2, 1) backwards; }
  .hero-page .sm-persistent > :nth-child(2), .hero-wall .sm-persistent > :nth-child(2) { animation-delay: .08s; }
  .hero-page .sm-persistent > :nth-child(3), .hero-wall .sm-persistent > :nth-child(3) { animation-delay: .16s; }
}
@media (max-width: 767px) {
  .hero-page .sm-persistent { bottom: calc(36px + env(safe-area-inset-bottom, 0px)); }
  .hero-page .scrim { background: linear-gradient(180deg, rgba(43, 33, 24, .62) 0, rgba(43, 33, 24, .3) 80px, rgba(43, 33, 24, 0) 170px), linear-gradient(0deg, rgba(43, 33, 24, .8) 0, rgba(43, 33, 24, .6) 300px, rgba(43, 33, 24, 0) 540px); }
  .hero-page.hero-bright .scrim { background: linear-gradient(180deg, rgba(43, 33, 24, .62) 0, rgba(43, 33, 24, .3) 80px, rgba(43, 33, 24, 0) 170px), linear-gradient(0deg, rgba(43, 33, 24, .86) 0, rgba(43, 33, 24, .7) 300px, rgba(43, 33, 24, .3) 480px, rgba(43, 33, 24, 0) 640px); }
}

/* the Videos hero: her channel as a wall of tilted posters that slide as the page scrolls, over a light that moves from morning to evening */
.hero-wall .sm-chapter { position: absolute; inset: 0; margin: 0; }
.wall-bg { position: absolute; inset: 0; }
.wall-dawn .wall-bg { background: radial-gradient(60% 70% at 72% 28%, #E9B64A 0, rgba(233, 182, 74, 0) 70%), linear-gradient(160deg, #5A4B2E 0, #3B3322 60%, #2B2118 100%); }
.wall-dusk .wall-bg { background: radial-gradient(62% 72% at 70% 70%, #C8673B 0, rgba(200, 103, 59, 0) 72%), linear-gradient(200deg, #4A2F2B 0, #2F2119 55%, #231A14 100%); }
.hero-wall .wall-dusk { opacity: 0; }
.wall-rows { position: absolute; inset: -14% -8%; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; transform: rotate(-7deg); pointer-events: none; }
.wall-row { display: flex; gap: 14px; width: max-content; will-change: transform; }
.wall-row-1 { transform: translateX(calc(-6% - var(--sm-p, 0) * 22%)); }
.wall-row-2 { transform: translateX(calc(-30% + var(--sm-p, 0) * 22%)); }
.wall-row-3 { transform: translateX(calc(-12% - var(--sm-p, 0) * 22%)); }
.wall-card { display: block; flex: none; height: clamp(150px, 27vh, 300px); aspect-ratio: 9 / 16; background: var(--paper); padding: 6px; box-sizing: border-box; border: 1px solid rgba(247, 241, 230, .5); box-shadow: 3px 4px 0 rgba(0, 0, 0, .3); }
.wall-card:nth-child(3n+1) { transform: rotate(-1.6deg); } .wall-card:nth-child(3n+2) { transform: rotate(1.2deg) translateY(6px); } .wall-card:nth-child(3n) { transform: rotate(-.6deg) translateY(-5px); }
.wall-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.scrim-left { background: linear-gradient(90deg, rgba(43, 33, 24, .9) 0, rgba(43, 33, 24, .72) 34%, rgba(43, 33, 24, 0) 68%), linear-gradient(0deg, rgba(43, 33, 24, .7) 0, rgba(43, 33, 24, 0) 360px), linear-gradient(180deg, rgba(43, 33, 24, .8) 0, rgba(43, 33, 24, .5) 72px, rgba(43, 33, 24, 0) 170px); }
@media (max-width: 767px) {
  .wall-card { height: clamp(120px, 21vh, 190px); padding: 4px; }
  .scrim-left { background: linear-gradient(0deg, rgba(43, 33, 24, .92) 0, rgba(43, 33, 24, .78) 280px, rgba(43, 33, 24, 0) 520px), linear-gradient(180deg, rgba(43, 33, 24, .55) 0, rgba(43, 33, 24, 0) 140px); }
}
@media (prefers-reduced-motion: reduce) { .wall-row { transform: translateX(-12%); } }

/* ---------- Home flow ---------- */
.home-flow { display: flex; flex-direction: column; }
.o-latest { order: 1; } .o-profile { order: 2; } .o-index { order: 3; } .o-map { order: 4; } .o-watch { order: 5; } .o-final { order: 6; }
@media (max-width: 767px) { .o-index { order: 2; } .o-profile { order: 3; } }
.latest, .profile, .index, .home-map, .watch, .sec { padding-block: clamp(40px, 7vw, 96px); }
.sec { padding-block: clamp(28px, 5vw, 64px); }
.page-head { padding: clamp(36px, 6vw, 80px) 0 clamp(8px, 2vw, 24px); }
.page-head h1, .notice h1 { font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.08; margin: 0 0 .3em; }

/* ---------- entries (LF2) and mounts ---------- */
.entries { list-style: none; margin: 0; padding: 0; display: grid; gap: 44px; }
.entry { display: grid; grid-template-columns: 12rem 1fr; gap: 24px; align-items: start; border-top: 1px solid var(--edge); padding-top: 28px; }
.date { font: 500 21px/1.2 var(--hand); color: var(--muted); margin: .15em 0 0; }
.date time { background: linear-gradient(transparent 72%, var(--gold) 72%, var(--gold) 92%, transparent 92%); padding: 0 2px; }
.date-lg { font-size: 26px; margin: 0 0 8px; }
.entry .body { max-width: 42rem; }
/* desktop: the poster sits beside its title and tags instead of above them, so the row uses its width */
@media (min-width: 900px) {
  .entry .body { max-width: none; display: grid; grid-template-columns: 440px minmax(0, 36rem); grid-template-rows: auto 1fr; column-gap: 32px; align-items: start; }
  .entry .body:has(.p916) { grid-template-columns: 230px minmax(0, 36rem); }
  .entry .body > .poster { grid-column: 1; grid-row: 1 / span 2; width: 100%; }
  .entry .body > h2, .entry .body > h3 { grid-column: 2; grid-row: 1; margin: 6px 0 10px; }
  .entry .body > .tags { grid-column: 2; grid-row: 2; align-self: start; }
}
.poster, .mount { position: relative; background: var(--paper); padding: 8px; border: 1px solid var(--edge); box-shadow: 2px 2px 0 var(--edge); margin: 0; }
.poster { width: min(100%, 440px); padding: 10px; }
.poster.p916 { width: min(100%, 230px); }
.poster::before, .mount::before, .poster::after, .mount::after { content: ""; position: absolute; width: 14px; height: 14px; background: var(--terra); opacity: .85; pointer-events: none; z-index: 2; }
.poster::before, .mount::before { left: -3px; top: -3px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.poster::after, .mount::after { right: -3px; bottom: -3px; clip-path: polygon(100% 100%, 100% 0, 0 100%); }
.mount-in { display: block; overflow: clip; }
.mount-in > img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.p916 .mount-in > img { aspect-ratio: 9 / 16; }
.entry h2, .entry h3 { font-size: 22px; line-height: 1.25; margin: 14px 0 8px; }
.entry h2 a, .entry h3 a { color: inherit; text-decoration: none; background: linear-gradient(transparent 86%, var(--gold) 86%); }
.entry h2 a:hover, .entry h3 a:hover { background: linear-gradient(transparent 70%, var(--gold) 70%); }
.tags { margin: 0; display: flex; flex-wrap: wrap; gap: 10px 12px; }
.tape { display: inline-block; font: 500 16px/1.3 var(--hand); background: var(--sage); color: var(--ink); padding: 2px 10px; transform: rotate(-1.5deg); text-decoration: none; }
.tape.gold { background: var(--gold); transform: rotate(1deg); }
a.tape:hover { filter: brightness(.96); }
.more { margin: 40px 0 0; }
@media (max-width: 767px) { .entry { grid-template-columns: 1fr; gap: 10px; } .date { margin: 0; } }

/* ---------- Home sections ---------- */
.card { display: grid; gap: 24px; background: var(--paper); border: 1px solid var(--edge); box-shadow: 2px 2px 0 var(--edge); padding: clamp(18px, 3vw, 32px); position: relative; }
@media (min-width: 768px) { .card { grid-template-columns: 14rem 1fr; } }
.card-photo { aspect-ratio: 1 / 1; background: var(--cream); border: 1px solid var(--edge); display: grid; place-items: center; padding: 16px; text-align: center; max-width: 14rem; width: 100%; }
.card-photo p { margin: 0; font: 500 20px/1.2 var(--hand); color: var(--muted); }
.card-rows { margin: 0; }
.card-rows > div { display: grid; grid-template-columns: 9rem 1fr; gap: 12px; padding: 10px 0; border-top: 1px dashed rgba(43, 33, 24, .22); }
.card-rows > div:first-child { border-top: 0; padding-top: 0; }
.card-rows dt { font: 500 19px/1.3 var(--hand); color: var(--muted); }
.card-rows dd { margin: 0; }
@media (max-width: 767px) { .card-rows > div { grid-template-columns: 1fr; gap: 2px; } }

.idx { list-style: none; margin: 0; padding: 0; max-width: 46rem; border-bottom: 1px solid var(--edge); }
.idx a { position: relative; display: block; min-height: 56px; padding: 15px 30px 15px 6px; border-top: 1px solid var(--edge); color: var(--ink); text-decoration: none; line-height: 1.4; }
.idx a:hover { background: var(--paper); }
.idx b { font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.idx span { color: var(--muted); }
.idx a::after { content: ""; position: absolute; right: 10px; top: 50%; width: 9px; height: 9px; margin-top: -6px; border-right: 2px solid var(--ink); border-top: 2px solid var(--ink); transform: rotate(45deg); }
.idx a:focus-visible { outline-offset: -3px; }

.map-frame { max-width: 60rem; background: var(--paper); border: 1px solid var(--edge); box-shadow: 2px 2px 0 var(--edge); padding: 12px; }
.map-frame img { display: block; width: 100%; height: auto; }
.watch-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 768px) { .watch-grid { grid-template-columns: 1fr minmax(0, 20rem); } }
.watch-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin: 1.2em 0 0; }
.watch-frame .mount { max-width: 300px; }

.final { --mo-band-bg: var(--gold); padding: clamp(64px, 10vw, 140px) 0; color: var(--ink); }
.final h2 { font-size: clamp(2rem, 5vw, 3.6rem); margin: 0 0 .6em; }
.final p { margin: 0; }

/* ---------- filters (tape strips) ---------- */
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 14px; }
.filter-l { font: 500 19px/1 var(--hand); color: var(--muted); }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; }
/* equal-width cells: the number of buttons per row no longer depends on which font is showing, so a late font moves nothing */
@media (min-width: 768px) { .filter-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); flex: 1 1 100%; } .tape-btn { padding: 0 8px; white-space: nowrap; } }
.tape-btn { min-height: 44px; padding: 0 14px; background: var(--paper); color: var(--ink); border: 1px solid var(--edge); border-radius: 2px; font: 500 17px/1 var(--hand); cursor: pointer; box-shadow: 1px 1px 0 var(--edge); }
.tape-btn:hover { background: #E8DDC6; }
.tape-btn[aria-pressed="true"] { background: var(--sage); border-color: rgba(43, 33, 24, .35); }
html:not(.js) .filter { display: none; }
@media (max-width: 767px) { .filter-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); } .tape-btn { flex: none; } }
.empty { font: 500 22px/1.3 var(--hand); color: var(--muted); }

/* ---------- walls and embeds ---------- */
.wall { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px 20px; }
.wall-916 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wall-169 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .wall-916 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .wall-169 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .wall-916 { grid-template-columns: repeat(5, minmax(0, 1fr)); } .wall-169 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.vcard .mount { padding: 6px; }
.vtitle { font-size: 15px; line-height: 1.35; margin: 10px 2px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.embed { position: relative; background: var(--ink); }
.embed-169 { aspect-ratio: 16 / 9; } .embed-916 { aspect-ratio: 9 / 16; }
.embed-play { display: block; position: relative; width: 100%; height: 100%; overflow: hidden; }
.embed-play img { display: block; width: 100%; height: 100%; object-fit: cover; }
.embed-916 .embed-play img { transform: scale(1.03); } /* the Shorts posters are cropped from a pillarboxed frame; a hair of scale hides its edge */
.embed-btn { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px var(--cream); transition: transform .2s ease; }
.embed-btn::after { content: ""; position: absolute; left: 22px; top: 17px; border-left: 17px solid var(--cream); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.embed-play:hover .embed-btn { transform: scale(1.07); }
.embed-play:focus-visible { outline: 3px solid var(--cream); outline-offset: -6px; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed > div { position: absolute; inset: 0; }
.embed-fail { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; text-align: center; color: var(--cream); background-size: cover; background-position: center; }
.embed-fail::before { content: ""; position: absolute; inset: 0; background: rgba(43, 33, 24, .82); }
.embed-fail > * { position: relative; margin: 0; }
.embed-fail p { font: 500 17px/1.3 var(--text); }
.embed-916 .embed-fail p { font-size: 15px; } .embed-916 .embed-fail .btn { min-height: 44px; padding: 0 12px; font-size: 14px; }
.embed-note { margin-top: 18px; }
.feature { max-width: 52rem; } .feature .mount { padding: 10px; }
.wall-few { margin-top: 0; }

/* ---------- entry page ---------- */
.entry-page { padding: clamp(24px, 4vw, 56px) 0 clamp(36px, 6vw, 80px); }
.back { margin: 0 0 18px; }
.sheet-paper { background: var(--paper); border: 1px solid var(--edge); box-shadow: 2px 2px 0 var(--edge); padding: clamp(20px, 4vw, 40px); }
.entry-title { font-size: clamp(1.7rem, 4.5vw, 2.6rem); line-height: 1.15; margin: 0 0 22px; overflow-wrap: anywhere; }
.entry-title.long { font-size: clamp(1.35rem, 3.4vw, 1.9rem); line-height: 1.25; }
.entry-media { margin: 0 0 24px; }
.entry-media .mount { background: var(--cream); }
.entry-media.m-916 .mount { max-width: 340px; } .entry-media.m-169 .mount { max-width: 640px; }
.entry-meta { margin: 0; } .entry-meta > div { display: grid; grid-template-columns: 5rem 1fr; gap: 10px; padding: 10px 0; border-top: 1px dashed rgba(43, 33, 24, .22); align-items: baseline; }
.entry-meta dt { font: 500 19px/1.3 var(--hand); color: var(--muted); } .entry-meta dd { margin: 0; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; }

/* ---------- story, notice, about ---------- */
.stamp { font: 500 clamp(3rem, 12vw, 8rem)/1 var(--hand); margin: 0 0 .08em; color: var(--ink); }
.note-card { background: var(--paper); border: 1px solid var(--edge); box-shadow: 2px 2px 0 var(--edge); padding: 20px 24px; max-width: 36rem; transform: rotate(-.4deg); }
.note-card p { margin: 0 0 .8em; } .note-card p:last-child { margin-bottom: 0; }
.notice-sec { padding: clamp(40px, 9vw, 120px) 0; } .notice .lede { margin-bottom: .6em; }
.about-intro { display: grid; gap: 24px; align-items: center; }
@media (min-width: 768px) { .about-intro { grid-template-columns: 14rem 1fr; gap: 40px; } }
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 2px solid var(--ink); display: grid; gap: 22px; max-width: 40rem; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -37px; top: 12px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 2px solid var(--ink); }
.stamp-place { font: 500 28px/1.2 var(--hand); }
.stamp-note { margin-left: .5em; color: var(--muted); }
.link-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

/* ---------- Travel map: a full-width interactive stage (canvas, pins, chips, controls, a sheet that opens beside it) ---------- */
.legend { list-style: none; margin: 14px 0 0; padding: 0; display: flex; gap: 8px 22px; flex-wrap: wrap; font-size: 15px; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.sw, .pinmark { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1.6px solid var(--ink); flex: none; }
.sw-lived, .clink.lived .pinmark { background: var(--gold); } .sw-visited, .clink.visited .pinmark { background: var(--terra); }
.map-section { padding: 0 0 clamp(28px, 5vw, 64px); }
/* the map is the page's hero: it fills the first screen under the header, with the title on a note over it */
.map-hero { padding: 0; }
.map-hero .map-stage { height: calc(100vh - 73px); height: calc(100svh - 73px); min-height: 560px; border-top: 0; }
.map-title { position: absolute; z-index: 3; left: 14px; top: 72px; width: min(24rem, calc(100% - 28px)); box-sizing: border-box; padding: 16px 20px 18px; background: rgba(247, 241, 230, .95); border: 1px solid var(--edge); box-shadow: 3px 3px 0 var(--edge); transform: rotate(-.5deg); pointer-events: none; }
.map-title h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.05; margin: 0 0 .22em; }
.map-title .lede { font-size: 1.0625rem; line-height: 1.45; margin: 0; }
.map-title .legend { margin-top: 12px; }
@media (max-width: 759px) {
  .map-title { padding: 12px 16px 14px; left: 12px; top: 66px; width: calc(100% - 24px); }
  .map-title h1 { font-size: 2rem; }
  .map-title .lede { font-size: 15px; line-height: 1.4; }
  .map-title .legend { margin-top: 8px; font-size: 14px; }
  .map-stage.has-moved .map-title .lede { display: none; }
  .map-stage.has-sheet .map-title { display: none; }
}
html:not(.js) .map-hero .map-stage, .map-stage.map-failed { height: auto; min-height: 0; }
html:not(.js) .map-title, .map-stage.map-failed .map-title { position: static; width: auto; box-shadow: none; transform: none; margin: 0 var(--gutter) 16px; pointer-events: auto; }
.map-stage {
  position: relative; height: clamp(540px, 82vh, 860px); height: clamp(540px, 82svh, 860px); overflow: hidden; background: #D9E3E0;
  border-block: 1px solid var(--edge); user-select: none; -webkit-user-select: none; touch-action: pan-x pan-y; outline-offset: -4px; cursor: grab;
}
.map-stage.is-dragging { cursor: grabbing; } .map-stage.is-over:not(.is-dragging) { cursor: pointer; }
.map-stage:focus-visible { outline: 3px solid var(--ink); }
.map-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; box-shadow: inset 0 0 90px rgba(43, 33, 24, .14);
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.17 0 0 0 0 0.13 0 0 0 0 0.09 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 220px 220px; }
.map-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map-pins { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

/* pins */
.pin { position: absolute; left: 0; top: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px; padding: 0; border-radius: 50%; border: 2px solid var(--ink); background: var(--gold); cursor: pointer; pointer-events: auto; box-shadow: 0 1px 0 rgba(43, 33, 24, .35); transition: box-shadow .15s ease; }
.pin.visited { background: var(--terra); }
.pin-country { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
.pin::before { content: ""; position: absolute; inset: -11px; }   /* a 44 px target around the dot */
.pin:hover, .pin.is-selected { box-shadow: 0 0 0 4px rgba(247, 241, 230, .9), 0 0 0 6px var(--ink); }
.pin:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.pin-l { position: absolute; left: 100%; top: 50%; margin-left: 8px; transform: translateY(-50%); font: 500 14px/1.2 var(--text); color: var(--ink); background: rgba(247, 241, 230, .94); border: 1px solid var(--edge); padding: 3px 8px; white-space: nowrap; pointer-events: none; }
.pin-country .pin-l { font-size: 15px; font-weight: 500; }
.pin-l.is-left { left: auto; right: 100%; margin: 0 8px 0 0; }

/* chips, controls, hint */
.map-chips { position: absolute; z-index: 4; left: 12px; right: 12px; top: 12px; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.map-chips::-webkit-scrollbar { display: none; }
.has-sheet .map-chips { right: calc(26rem + 24px); }
@media (max-width: 759px) { .has-sheet .map-chips { right: 12px; } }
.clink { flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; background: rgba(247, 241, 230, .96); border: 1px solid var(--edge); border-radius: 4px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; box-shadow: 0 1px 0 var(--edge); }
.clink:hover, .clink.is-active { background: var(--paper); border-color: rgba(43, 33, 24, .45); }
.clink .rel { font: 500 16px/1 var(--hand); color: var(--muted); }
.clink:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.map-controls { position: absolute; z-index: 4; left: 14px; bottom: 76px; display: grid; gap: 8px; }
.mbtn { width: 48px; height: 48px; display: grid; place-items: center; background: rgba(247, 241, 230, .96); border: 1.5px solid var(--ink); border-radius: 4px; color: var(--ink); font: 500 26px/1 var(--text); cursor: pointer; box-shadow: 0 2px 0 rgba(43, 33, 24, .25); padding: 0; }
.mbtn:hover { background: var(--paper); } .mbtn:active { transform: translateY(1px); } .mbtn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.map-actions { position: absolute; z-index: 4; left: 14px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.map-actions .btn-primary.is-on { background: var(--ink); color: var(--cream); }
.map-hint { position: absolute; z-index: 7; left: 50%; bottom: 24px; transform: translateX(-50%); margin: 0; padding: 10px 16px; background: var(--ink); color: var(--cream); border-radius: 4px; font-size: 15px; pointer-events: none; text-align: center; max-width: calc(100% - 32px); }
.has-sheet .map-hint { left: calc(50% - 13rem); }
@media (max-width: 759px) { .has-sheet .map-hint { left: 50%; bottom: calc(50% + 14px); } }

/* the sheet that opens beside the map (a bottom sheet on phones) */
.map-sheet { position: absolute; z-index: 6; background: var(--paper); padding: 16px 18px 28px; outline: none; overflow: auto; overscroll-behavior: contain; touch-action: pan-y; }
@media (min-width: 760px) { .map-sheet { top: 0; right: 0; bottom: 0; width: min(26rem, 100%); border-left: 1px solid var(--edge); box-shadow: -10px 0 30px rgba(43, 33, 24, .16); animation: drawer-in .22s ease-out; } }
@keyframes drawer-in { from { transform: translateX(28px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 759px) { .map-sheet { left: 0; right: 0; bottom: 0; height: 50%; border-top: 1px solid var(--edge); border-radius: 8px 8px 0 0; box-shadow: 0 -10px 30px rgba(43, 33, 24, .2); animation: sheet-up .22s ease-out; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); } }
.ms-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; position: sticky; top: -16px; background: var(--paper); padding: 4px 0 8px; z-index: 1; }
.ms-top h2 { margin: 0; font-size: 1.5rem; }
.from-l { font: 500 17px/1.2 var(--hand); color: var(--muted); margin: 14px 0 6px; }
.panel { padding: 24px 0; border-top: 1px solid var(--edge); }
.panel-title { font-size: 1.6rem; margin: 0 0 4px; } .panel-rel { font: 500 19px/1.2 var(--hand); color: var(--muted); margin: 0 0 14px; }
.place-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.place h3 { font-size: 1.1rem; margin: 0 0 2px; } .place-date { font: 500 19px/1.2 var(--hand); color: var(--muted); margin: 0; }
.place.is-focus h3 { background: linear-gradient(transparent 70%, var(--gold) 70%); display: inline; }
.none { color: var(--muted); margin: 8px 0 0; font-size: 15px; }
.mini-wall { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
.mini-wall .v169 { grid-column: 1 / -1; } .mini-wall .mount { padding: 5px; }
/* with the map running, the plain list is only its data; without it, the list is the page */
html.map-js .panels { display: none; }
.map-stage.map-failed { height: auto; background: transparent; border: 0; cursor: auto; }
.map-stage.map-failed .map-canvas, .map-stage.map-failed .map-controls, .map-stage.map-failed .map-actions, .map-stage.map-failed::after { display: none; }
.map-stage.map-failed .map-chips { position: static; flex-wrap: wrap; padding: 0 var(--gutter); }
html:not(.js) .map-stage { height: auto; background: transparent; border: 0; cursor: auto; }
html:not(.js) .map-canvas, html:not(.js) .map-controls, html:not(.js) .map-actions, html:not(.js) .map-stage::after { display: none; }
html:not(.js) .map-chips { position: static; flex-wrap: wrap; padding: 0 var(--gutter); }

/* ---------- footer ---------- */
.ftr { background: var(--ink); color: var(--cream); padding: 56px 0 28px; margin-top: 0; }
.ftr a { color: var(--cream); }
.ftr-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .ftr-grid { grid-template-columns: 1.1fr 1fr 1fr; } }
.ftr .wordmark { font-size: 26px; display: inline-block; margin-bottom: 8px; }
.ftr-id p { margin: 0; color: #D9D0C0; }
.ftr-nav { display: grid; gap: 4px; align-content: start; }
.ftr-nav a { text-decoration: none; padding: 6px 0; min-height: 36px; }
.ftr-nav a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.ftr h2 { font-size: 1.15rem; margin: 0 0 12px; }
.ftr-links { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.ftr-links a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; display: inline-block; padding: 6px 0; }
.ftr .btn-secondary { color: var(--ink); } .ftr a:focus-visible { outline-color: var(--cream); }
.ftr-copy { margin-top: 32px !important; margin-bottom: 0; color: #CFC6B6; font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  .sheet.open, .map-sheet { animation: none; }
  .pin { transition: none; }
  .btn:active { transform: none; } .embed-btn { transition: none; }
}

/* =====================================================================================================================================
   BODY UPGRADE (Blueprint v1.4): the sunlit scrapbook below the hero. Polaroid cards on a tilt with washi tape, torn paper edges between
   bands of cream, sage, ink and gold, a poster marquee, passport stamps, a post-it, a film strip. All decoration is CSS or inline SVG,
   no copy is added, and everything that moves is switched off under prefers-reduced-motion.
   ===================================================================================================================================== */
:root {
  --sage-soft: #DDE5D2; --gold-soft: #F7E6B8; --terra-soft: #F2DAC9; --card: #FBF7EE; --ink-2: #3A2D21;
  --lift: 0 1px 0 rgba(43, 33, 24, .08), 0 16px 28px -14px rgba(43, 33, 24, .42);
  --tear: polygon(0 12px, 2% 4px, 4% 10px, 7% 2px, 10% 9px, 13% 3px, 17% 11px, 20% 4px, 24% 9px, 27% 2px, 31% 10px, 34% 5px, 38% 11px, 41% 3px, 45% 9px, 48% 2px, 52% 10px, 55% 4px, 59% 11px, 62% 3px, 66% 9px, 69% 5px, 73% 11px, 76% 2px, 80% 9px, 83% 4px, 87% 11px, 90% 3px, 94% 9px, 97% 4px, 100% 10px, 100% 100%, 0 100%);
  --tear-up: polygon(0 100%, 0 62%, 2% 40%, 4% 58%, 7% 30%, 10% 54%, 13% 34%, 17% 60%, 20% 38%, 24% 56%, 27% 32%, 31% 58%, 34% 36%, 38% 60%, 41% 34%, 45% 54%, 48% 30%, 52% 58%, 55% 38%, 59% 60%, 62% 34%, 66% 56%, 69% 36%, 73% 62%, 76% 32%, 80% 54%, 83% 38%, 87% 60%, 90% 34%, 94% 56%, 97% 40%, 100% 58%, 100% 100%);
  --squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='14' viewBox='0 0 120 14'%3E%3Cpath d='M2 8 Q12 1 22 8 T42 8 T62 8 T82 8 T102 8 T118 8' fill='none' stroke='%23E9B64A' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
  --sun: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='%23E9B64A' stroke-width='6' stroke-linecap='round'%3E%3Ccircle cx='110' cy='110' r='38' fill='%23F7E6B8'/%3E%3Cpath d='M110 22v26M110 172v26M22 110h26M172 110h26M48 48l18 18M154 154l18 18M172 48l-18 18M66 154l-18 18'/%3E%3C/g%3E%3C/svg%3E");
}

/* torn paper: a band whose top edge is torn; the notches show the page behind it */
.tear-top { clip-path: var(--tear); margin-top: -12px; padding-top: calc(clamp(40px, 7vw, 96px) + 12px); }
.band-sage { background-color: var(--sage-soft); }
.band-paper { background-color: var(--paper); }
.band-ink { background-color: var(--ink); color: var(--cream); }
.band-ink .lede, .band-ink .note { color: #E7DFD0; }
.band-ink a:focus-visible { outline-color: var(--cream); }
.band-ink .textlink { color: var(--cream); }
/* every hero ends on a torn edge of the page */
.hero { position: relative; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 30px; z-index: 6; background-color: var(--cream); background-image: var(--noise); clip-path: var(--tear-up); pointer-events: none; }

/* headings: a hand-drawn gold squiggle that draws itself in */
.h-scrap { position: relative; display: inline-block; padding-bottom: 18px; margin-bottom: .7em; }
.h-scrap::after { content: ""; position: absolute; left: 0; bottom: 0; height: 14px; width: min(100%, 11rem); background: var(--squiggle) repeat-x left center / 120px 14px; }
.mo-on .h-scrap::after { width: 0; transition: width 1s var(--mo-ease) .35s; }
.mo-on .h-scrap.mo-in::after { width: min(100%, 11rem); }
.band-ink .h-scrap { color: var(--cream); }

/* ---------- polaroid cards (Home latest, Diary, Videos, Fitness) ---------- */
.entries-cards { grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 52px 34px; padding: 18px 0 8px; align-items: start; }
.entries-cards .entry, .pola { position: relative; display: flex; flex-direction: column; border: 0; background: var(--card); padding: 12px 12px 18px; box-shadow: var(--lift); transform: rotate(var(--tilt, 0deg)); transition: transform .4s var(--mo-ease), box-shadow .4s var(--mo-ease); }
.entries-cards .entry .body { display: contents; max-width: none; }
.entries-cards .entry .poster { order: 1; width: 100%; padding: 0; border: 0; box-shadow: none; background: none; }
.entries-cards .entry .poster::before, .entries-cards .entry .poster::after { display: none; }
.entries-cards .entry .mount-in { background: var(--paper); }
.entries-cards .entry .mount-in > img, .entries-cards .entry .p916 .mount-in > img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; height: auto; }
.entries-cards .entry .date { order: 2; margin: 12px 0 0; font-size: 22px; }
.entries-cards .entry h2, .entries-cards .entry h3 { order: 3; margin: 6px 0 12px; font-size: 1.2rem; line-height: 1.28; }
.entries-cards .entry .tags { order: 4; margin-top: auto; }
.entries-cards .entry::before, .pola::before { content: ""; position: absolute; top: -13px; left: 50%; width: 88px; height: 28px; margin-left: -44px; z-index: 3; transform: rotate(var(--tape-tilt, -3deg)); background-color: color-mix(in srgb, var(--tape, var(--gold)) 78%, transparent); background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 5px, transparent 5px 10px); box-shadow: 0 1px 0 rgba(43, 33, 24, .1); clip-path: polygon(0 8%, 3% 0, 6% 10%, 9% 0, 100% 0, 97% 50%, 100% 100%, 8% 100%, 5% 90%, 2% 100%, 0 92%, 3% 50%); pointer-events: none; }
.entries-cards .entry:nth-child(4n+1), .wall .vcard:nth-child(4n+1) { --tilt: -1.8deg; --tape: var(--gold); --tape-tilt: -4deg; }
.entries-cards .entry:nth-child(4n+2), .wall .vcard:nth-child(4n+2) { --tilt: 1.3deg; --tape: var(--sage); --tape-tilt: 3deg; }
.entries-cards .entry:nth-child(4n+3), .wall .vcard:nth-child(4n+3) { --tilt: -.8deg; --tape: var(--terra); --tape-tilt: -2deg; }
.entries-cards .entry:nth-child(4n), .wall .vcard:nth-child(4n) { --tilt: 1.9deg; --tape: var(--gold); --tape-tilt: 5deg; }
@media (min-width: 900px) { .entries-cards .entry:nth-child(3n+2) { margin-top: 30px; } .entries-cards .entry:nth-child(3n) { margin-top: 12px; } }
.entries-cards .entry:hover, .entries-cards .entry:focus-within { transform: translateY(-8px) rotate(0deg); box-shadow: 0 1px 0 rgba(43, 33, 24, .08), 0 26px 34px -14px rgba(43, 33, 24, .5); z-index: 4; }
.entries-cards .entry:hover .mount-in img { transform: scale(1.05); }
.entries-cards .entry .mount-in img { transition: transform .7s var(--mo-ease); }
.latest .entries-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 899px) { .latest .entries-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 22px; } .entries-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; } }
@media (max-width: 560px) { .latest .entries-cards, .entries-cards { grid-template-columns: minmax(0, 1fr); gap: 40px; } .entries-cards .entry { max-width: 26rem; margin-inline: auto; width: 100%; } }
/* the cards are dealt onto the page as they come into view (progressive: browsers with scroll-driven animation) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .entries-cards .entry, .wall .vcard, .tiles .tile { animation: deal linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
}
@keyframes deal { from { opacity: 0; translate: 0 56px; rotate: calc(var(--tilt, 0deg) * 1.8); } }

/* ---------- Home ---------- */
.latest { position: relative; overflow-x: clip; }
.latest::after { content: ""; position: absolute; right: max(2vw, 8px); top: 28px; width: clamp(90px, 14vw, 190px); aspect-ratio: 1; background: var(--sun) center / contain no-repeat; opacity: .95; pointer-events: none; }
.latest .more, .watch .watch-links { position: relative; z-index: 1; }
.profile .card { background: var(--card); box-shadow: var(--lift); border: 0; transform: rotate(-.5deg); }
.profile .card::before { content: ""; position: absolute; top: -14px; left: 14%; width: 110px; height: 30px; transform: rotate(-4deg); background-color: color-mix(in srgb, var(--gold) 80%, transparent); background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 5px, transparent 5px 10px); box-shadow: 0 1px 0 rgba(43, 33, 24, .1); }
.profile .card-photo { transform: rotate(2deg); background: var(--paper); box-shadow: var(--lift); border: 0; position: relative; }
.profile .card-photo::before { content: ""; position: absolute; top: -12px; left: 50%; width: 70px; height: 24px; margin-left: -35px; transform: rotate(-3deg); background-color: color-mix(in srgb, var(--sage) 80%, transparent); background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 5px, transparent 5px 10px); }
.card-rows > div:nth-last-child(2) dd { font-family: var(--display); font-size: clamp(1.1rem, 2.2vw, 1.4rem); line-height: 1.4; font-weight: 500; }
.card-rows > div:nth-last-child(2) { background: linear-gradient(transparent 60%, color-mix(in srgb, var(--gold) 28%, transparent) 60%); padding-inline: 8px; margin-inline: -8px; }

.tiles { list-style: none; margin: 0; padding: 14px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 28px; } }
.tile { --tilt: 0deg; }
.tile:nth-child(4n+1) { --tilt: -1.6deg; --tape: var(--gold); } .tile:nth-child(4n+2) { --tilt: 1.2deg; --tape: var(--sage); } .tile:nth-child(4n+3) { --tilt: -.9deg; --tape: var(--terra); } .tile:nth-child(4n) { --tilt: 1.7deg; --tape: var(--gold); }
.tile a { position: relative; display: block; height: 100%; background: var(--card); padding: 10px 10px 16px; box-shadow: var(--lift); color: var(--ink); text-decoration: none; transform: rotate(var(--tilt)); transition: transform .4s var(--mo-ease), box-shadow .4s var(--mo-ease); }
.tile a::before { content: ""; position: absolute; top: -12px; left: 50%; width: 72px; height: 24px; margin-left: -36px; z-index: 3; transform: rotate(calc(var(--tilt) * -2)); background-color: color-mix(in srgb, var(--tape, var(--gold)) 78%, transparent); background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 5px, transparent 5px 10px); }
.tile a:hover, .tile a:focus-visible { transform: translateY(-8px) rotate(0deg); box-shadow: 0 1px 0 rgba(43, 33, 24, .08), 0 26px 34px -14px rgba(43, 33, 24, .5); }
.tile-art { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.tile-art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--mo-ease); }
.tile a:hover .tile-art img { transform: scale(1.07); }
.tile-map .tile-art img { object-fit: contain; padding: 8px; background: var(--land); }
.tile-fan { display: flex; align-items: center; justify-content: center; gap: 0; background: var(--ink); }
.tile-fan img { width: auto; height: 82%; aspect-ratio: 9 / 16; border: 3px solid var(--card); margin-inline: -9%; box-shadow: 0 6px 12px rgba(0, 0, 0, .35); }
.tile-fan img:nth-child(1) { transform: rotate(-9deg); } .tile-fan img:nth-child(2) { transform: translateY(-4%) scale(1.08); z-index: 1; } .tile-fan img:nth-child(3) { transform: rotate(9deg); }
.tile a:hover .tile-fan img { transform: none; }
.tile b { display: block; margin: 14px 2px 2px; font: 600 clamp(1.2rem, 2vw, 1.5rem)/1.15 var(--display); }
.tile-sub { display: block; margin: 0 2px; font-size: 15px; line-height: 1.4; color: var(--muted); }

.home-map .map-frame { position: relative; max-width: 62rem; background: var(--card); border: 0; padding: 14px; box-shadow: 0 22px 40px -18px rgba(0, 0, 0, .7); transform: rotate(-.6deg); }
.home-map .map-frame::before { content: ""; position: absolute; top: -13px; left: 50%; width: 96px; height: 28px; margin-left: -48px; transform: rotate(2deg); background-color: color-mix(in srgb, var(--gold) 80%, transparent); background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 5px, transparent 5px 10px); z-index: 2; }
.home-map .map-frame img { border: 1px solid var(--edge); }
.home-map { overflow-x: clip; }

/* poster marquee */
.strip { overflow: hidden; padding: 10px 0 34px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.strip-row { display: flex; gap: 16px; width: max-content; padding: 0 8px 14px; animation: strip-run 80s linear infinite; }
.strip-row + .strip-row { animation-direction: reverse; animation-duration: 96s; margin-top: 4px; }
.strip:hover .strip-row { animation-play-state: paused; }
.strip-card { flex: none; display: block; width: clamp(96px, 11vw, 140px); aspect-ratio: 9 / 16; background: var(--card); padding: 5px; box-shadow: 0 10px 18px -8px rgba(43, 33, 24, .5); transform: rotate(var(--r, 0deg)); }
.strip-card:nth-child(3n+1) { --r: -2deg; } .strip-card:nth-child(3n+2) { --r: 1.5deg; margin-top: 10px; } .strip-card:nth-child(3n) { --r: -.8deg; margin-top: -4px; }
.strip-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
@keyframes strip-run { to { transform: translateX(calc(-50% - 8px)); } }
@media (prefers-reduced-motion: reduce) { .strip { overflow-x: auto; } .strip-row { animation: none; } .strip-row .dup { display: none; } }
.watch .wrap { position: relative; }
.watch-frame .mount { background: var(--card); box-shadow: var(--lift); border: 0; transform: rotate(1.2deg); }

/* ---------- Diary and lists ---------- */
.feed-sec { padding-top: clamp(28px, 4vw, 48px); }
.filter-sec .filter, .feed-sec .filter { background: var(--card); padding: 14px 16px 6px; box-shadow: var(--lift); transform: rotate(-.3deg); }
.tape-btn { border-radius: 3px; transition: transform .2s var(--mo-ease), background-color .2s; }
.tape-btn:hover { transform: translateY(-2px) rotate(-1deg); }
.tape-btn[aria-pressed="true"] { transform: rotate(-1.2deg); box-shadow: 2px 3px 0 rgba(43, 33, 24, .25); }

/* ---------- Videos, Wedding clips, Fitness: the walls as polaroids ---------- */
.wall .vcard { position: relative; background: var(--card); padding: 10px 10px 14px; box-shadow: var(--lift); transform: rotate(var(--tilt, 0deg)); transition: transform .4s var(--mo-ease), box-shadow .4s var(--mo-ease); }
.wall .vcard::before { content: ""; position: absolute; top: -12px; left: 50%; width: 74px; height: 24px; margin-left: -37px; z-index: 3; transform: rotate(var(--tape-tilt, -3deg)); background-color: color-mix(in srgb, var(--tape, var(--gold)) 78%, transparent); background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 5px, transparent 5px 10px); pointer-events: none; }
.wall .vcard .mount { padding: 0; border: 0; box-shadow: none; background: none; }
.wall .vcard .mount::before, .wall .vcard .mount::after { display: none; }
.wall .vcard:hover, .wall .vcard:focus-within { transform: translateY(-6px) rotate(0deg); box-shadow: 0 26px 34px -14px rgba(43, 33, 24, .5); z-index: 4; }
.wall { gap: 40px 26px; padding-top: 10px; }
.vtitle { margin: 12px 2px 0; }
.wall-sec h2, .sec h2 { display: inline-block; }
.wall-sec h2::after, .sec > .wrap > h2::after { content: ""; display: block; width: min(100%, 11rem); height: 14px; margin-top: 6px; background: var(--squiggle) repeat-x left center / 120px 14px; }

/* the clips of the wedding as a strip of film */
.reel-band { position: relative; background: var(--ink); padding: 54px 0 50px; margin-block: 8px; color: var(--cream); }
.reel-band::before, .reel-band::after { content: ""; position: absolute; left: 0; right: 0; height: 18px; background: radial-gradient(circle at 12px 9px, var(--cream) 0 5px, transparent 5.5px) 0 0 / 34px 18px repeat-x; opacity: .9; }
.reel-band::before { top: 16px; } .reel-band::after { bottom: 16px; }
.reel-band .wall { grid-template-columns: repeat(6, minmax(150px, 1fr)); overflow-x: auto; padding: 10px var(--gutter) 22px; gap: 18px; scroll-snap-type: x proximity; }
.reel-band .vcard { scroll-snap-align: start; background: #17110C; box-shadow: none; transform: none; padding: 6px 6px 10px; border: 1px solid rgba(247, 241, 230, .18); }
.reel-band .vcard::before { display: none; }
.reel-band .vtitle { color: #E7DFD0; }
.reel-band .vcard:hover { transform: translateY(-4px); }
@media (max-width: 767px) { .reel-band .wall { grid-template-columns: repeat(6, 56vw); } }
@media (prefers-reduced-motion: reduce) { .reel-band .wall { scroll-snap-type: none; } }

/* Fitness: three bands */
.fit-band { position: relative; }
.fit-band + .fit-band { margin-top: 0; }
.fit-band.fit-spartan { background-color: var(--sage-soft); clip-path: var(--tear); margin-top: -12px; padding-top: calc(clamp(28px, 5vw, 64px) + 12px); }
.fit-band.fit-hills { background-color: var(--ink); color: var(--cream); clip-path: var(--tear); margin-top: -12px; padding-top: calc(clamp(28px, 5vw, 64px) + 12px); padding-bottom: clamp(48px, 7vw, 96px); }
.fit-hills h2::after { background-image: var(--squiggle); }
.fit-ico { display: inline-block; width: 1.1em; height: 1.1em; margin-right: .35em; vertical-align: -.12em; stroke: var(--terra); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fit-hills .fit-ico { stroke: var(--gold); }

/* ---------- About: a passport of places, a post-it, stickers ---------- */
.intro-sec .about-intro { position: relative; }
.intro-sec .card-photo { transform: rotate(-2.5deg); background: var(--card); box-shadow: var(--lift); border: 0; position: relative; }
.intro-sec .card-photo::before { content: ""; position: absolute; top: -12px; left: 50%; width: 80px; height: 26px; margin-left: -40px; transform: rotate(3deg); background-color: color-mix(in srgb, var(--gold) 80%, transparent); background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 5px, transparent 5px 10px); }
.intro-sec .lede { font-family: var(--display); font-weight: 500; font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.45; max-width: 34em; }
.timeline { max-width: none; border-left: 0; padding: 0; position: relative; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 800px) {
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; }
  .timeline li:nth-child(even) { margin-top: 44px; }
  .timeline::before { content: ""; position: absolute; left: 50%; top: 20px; bottom: 20px; border-left: 3px dashed rgba(43, 33, 24, .28); }
}
.timeline li { position: relative; display: block; background: var(--card); padding: 18px 20px 20px; box-shadow: var(--lift); border: 2px solid rgba(43, 33, 24, .75); border-radius: 6px; transform: rotate(var(--tilt, 0deg)); outline: 2px dashed rgba(43, 33, 24, .35); outline-offset: -9px; }
.timeline li:nth-child(odd) { --tilt: -1.4deg; } .timeline li:nth-child(even) { --tilt: 1.2deg; }
.timeline li::before { content: ""; position: absolute; left: auto; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); border: 0; opacity: .85; transform: none; }
.timeline li:nth-child(3n+2)::before { background: var(--sage); } .timeline li:nth-child(3n)::before { background: var(--terra); }
.stamp-place { display: block; font: 500 34px/1.1 var(--hand); }
.stamp-note { display: block; margin: 6px 0 0; color: var(--muted); }
.sec .note-card { background: var(--gold-soft); border: 0; box-shadow: var(--lift); transform: rotate(-1.2deg); padding: 28px 30px 30px; position: relative; max-width: 34rem; }
.sec .note-card::before { content: ""; position: absolute; top: -14px; left: 50%; width: 92px; height: 28px; margin-left: -46px; transform: rotate(-3deg); background-color: color-mix(in srgb, var(--terra) 70%, transparent); background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 5px, transparent 5px 10px); }
.sec .note-card p { font-family: var(--display); font-weight: 500; font-size: 1.2rem; line-height: 1.5; }
.link-row .btn { border-radius: 999px; padding: 0 26px; box-shadow: 2px 3px 0 rgba(43, 33, 24, .28); transition: transform .25s var(--mo-ease); }
.link-row .btn:nth-child(odd) { transform: rotate(-1.4deg); } .link-row .btn:nth-child(even) { transform: rotate(1.2deg); }
.link-row .btn:hover { transform: translateY(-3px) rotate(0deg); background: var(--gold); }

/* ---------- notice pages (Podcast, Guestbook): a post-it with a doodle ---------- */
.notice-sec .note-card { background: var(--gold-soft); border: 0; box-shadow: var(--lift); transform: rotate(-1deg); padding: 30px 34px; position: relative; max-width: 38rem; margin-inline: auto; }
.notice-sec .note-card::before { content: ""; position: absolute; top: -14px; left: 50%; width: 100px; height: 28px; margin-left: -50px; transform: rotate(2deg); background-color: color-mix(in srgb, var(--sage) 72%, transparent); background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 5px, transparent 5px 10px); }
.notice-sec .note-card p { font-family: var(--display); font-weight: 500; font-size: 1.3rem; line-height: 1.5; }
.notice-sec .note-card .btn { font-family: var(--text); }
.doodle { display: block; width: 84px; height: 84px; margin: 0 0 14px; stroke: var(--ink); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.doodle .fill { fill: var(--gold); }

/* ---------- footer ---------- */
.ftr { position: relative; padding-top: 72px; }
.ftr::before { content: ""; position: absolute; left: 0; right: 0; top: 18px; border-top: 3px dashed rgba(233, 182, 74, .55); }
.ftr .wordmark { font-size: clamp(2rem, 5vw, 3.2rem); }
.ftr-links a { text-decoration-thickness: 3px; }

/* ---------- entry page and map page keep their paper ---------- */
@media (prefers-reduced-motion: reduce) {
  .entries-cards .entry, .wall .vcard, .tile a, .tape-btn, .link-row .btn { transition: none; }
}

/* ---------- entry page (v1.4): the entry is a sheet pinned to the page ---------- */
.entry-page { position: relative; overflow-x: clip; }
.entry-page::before { content: ""; position: absolute; right: max(2vw, 8px); top: 18px; width: clamp(80px, 12vw, 150px); aspect-ratio: 1; background: var(--sun) center / contain no-repeat; pointer-events: none; }
.sheet-paper { position: relative; background: var(--card); border: 0; box-shadow: var(--lift); transform: rotate(-.25deg); }
.sheet-paper::before { content: ""; position: absolute; top: -14px; left: 50%; width: 110px; height: 30px; margin-left: -55px; transform: rotate(-2.5deg); background-color: color-mix(in srgb, var(--gold) 80%, transparent); background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 5px, transparent 5px 10px); box-shadow: 0 1px 0 rgba(43, 33, 24, .1); }
.entry-media .mount { background: var(--paper); box-shadow: var(--lift); border: 0; }

/* tilted cards and the start of their deal-in reach a few pixels past the screen edge on a phone; clip them (clip, not hidden: nothing becomes a scroll container, the pinned heroes keep working) */
main { overflow-x: clip; }

/* ---------- page transitions (Blueprint v1.5): the paper slide, and a picture that grows into its hero ---------- */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root), ::view-transition-new(root) { mix-blend-mode: normal; animation-duration: 640ms; animation-timing-function: cubic-bezier(.2, .7, .2, 1); animation-fill-mode: both; }
  ::view-transition-old(root) { animation-name: paper-dim; }
  ::view-transition-new(root) { animation-name: paper-up; z-index: 5; filter: drop-shadow(0 -18px 26px rgba(43, 33, 24, .38)); }
  html[data-astro-transition="back"]::view-transition-old(root) { animation-name: paper-down; z-index: 5; filter: drop-shadow(0 -18px 26px rgba(43, 33, 24, .38)); }
  html[data-astro-transition="back"]::view-transition-new(root) { animation-name: paper-undim; z-index: 1; filter: none; }
  html[data-grow]::view-transition-old(root) { animation-name: vt-out; animation-duration: 520ms; }
  html[data-grow]::view-transition-new(root) { animation-name: vt-in; animation-duration: 520ms; filter: none; z-index: 1; }
  ::view-transition-group(hero-pic) { animation-duration: 760ms; animation-timing-function: cubic-bezier(.2, .7, .2, 1); z-index: 8; }
  ::view-transition-old(hero-pic), ::view-transition-new(hero-pic) { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
}
@keyframes paper-dim { to { transform: scale(.97); filter: brightness(.78); } }
@keyframes paper-up { from { transform: translateY(100%); } }
@keyframes paper-down { to { transform: translateY(100%); } }
@keyframes paper-undim { from { transform: scale(.97); filter: brightness(.78); } }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ---------- Joy's mixtape (Blueprint v1.5 A): a cassette, bottom right ---------- */
.mixtape { position: fixed; right: 14px; bottom: 14px; z-index: 30; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.mixtape > * { pointer-events: auto; }
.mx-btn { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 14px 6px 8px; background: var(--card); color: var(--ink); border: 1.5px solid rgba(43, 33, 24, .7); border-radius: 8px; box-shadow: 2px 4px 0 rgba(43, 33, 24, .3), var(--lift); cursor: pointer; font: 500 20px/1 var(--hand); transform: rotate(-1.5deg); transition: transform .3s var(--mo-ease), box-shadow .3s var(--mo-ease); }
.mx-btn:hover { transform: rotate(0deg) translateY(-3px); }
.mx-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.cassette { width: 64px; height: 43px; flex: none; }
.cassette .c-body { fill: #3A2D21; stroke: var(--ink); stroke-width: 2; }
.cassette .c-label { fill: var(--gold-soft); stroke: var(--ink); stroke-width: 1.5; }
.cassette .c-lines { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.cassette .c-window { fill: #17110C; stroke: var(--cream); stroke-width: 1.5; }
.cassette .reel circle { fill: none; stroke: var(--cream); stroke-width: 2; }
.cassette .reel path { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; }
.cassette .reel { transform-box: fill-box; transform-origin: center; }
.mixtape.is-playing .reel { animation: reel-spin 2.4s linear infinite; }
@keyframes reel-spin { to { transform: rotate(360deg); } }
.mixtape.is-playing .mx-btn { background: var(--gold-soft); }
.mixtape.is-resume .mx-btn { animation: mx-nudge 2.6s ease-in-out infinite; }
@keyframes mx-nudge { 0%, 60%, 100% { transform: rotate(-1.5deg); } 70% { transform: rotate(1.5deg) translateY(-3px); } 80% { transform: rotate(-2.5deg); } }
.mx-now { margin: 0; padding: 6px 12px; background: var(--ink); color: var(--cream); border-radius: 6px; font-size: 14px; line-height: 1.3; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; pointer-events: none !important; max-width: 16rem; }
.mx-now-l { font: 500 16px/1 var(--hand); color: var(--gold); margin-right: 4px; }
.mixtape.is-now .mx-now, .mixtape:hover .mx-now, .mixtape:focus-within .mx-now { opacity: 1; transform: none; }
.mixtape:not(.is-playing) .mx-now { display: none; }
@media (max-width: 767px) {
  .mixtape { right: 10px; bottom: 10px; }
  .mx-btn { padding: 4px; min-height: 48px; border-radius: 50%; width: 62px; height: 62px; justify-content: center; }
  .mx-name { display: none; }
  .cassette { width: 50px; height: 34px; }
}
/* out of the way of the map's own controls and sheet */
.map-stage ~ * { }
body:has(.map-stage.has-sheet) .mixtape { right: calc(26rem + 28px); }
@media (max-width: 759px) { body:has(.map-stage.has-sheet) .mixtape { right: 10px; bottom: calc(50% + 12px); } }
.ftr-credit { margin-top: 10px !important; margin-bottom: 0; color: #CFC6B6; font-size: 15px; }
.ftr-credit a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .mixtape.is-playing .reel, .mixtape.is-resume .mx-btn { animation: none; } .mx-btn, .mx-now { transition: none; } }

/* ---------- testimonials (Blueprint v1.5 C): ruled index cards ---------- */
.o-testi { order: 3; } .o-index { order: 4; } .o-map { order: 5; } .o-watch { order: 6; } .o-final { order: 7; }
@media (max-width: 767px) { .o-index { order: 2; } .o-profile { order: 3; } .o-testi { order: 4; } }
.tcards { list-style: none; margin: 0; padding: 22px 0 8px; display: grid; gap: 34px 26px; }
.tcard { position: relative; transform: rotate(var(--r, 0deg)); transition: transform .45s var(--mo-ease), box-shadow .45s var(--mo-ease); }
.tcard article { position: relative; height: 100%; background-color: #FFFDF6; background-image: repeating-linear-gradient(transparent 0 1.85rem, rgba(95, 135, 180, .3) 1.85rem calc(1.85rem + 1px)); background-position: 0 3.1rem; background-repeat: repeat; box-shadow: var(--lift); padding: 3.1rem 22px 18px 34px; outline-offset: 4px; }
.tcard article::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2.7rem; background: var(--terra-soft); border-bottom: 2px solid color-mix(in srgb, var(--terra) 70%, transparent); }
.tcard article::after { content: ""; position: absolute; left: 22px; top: 2.7rem; bottom: 0; border-left: 2px solid color-mix(in srgb, var(--terra) 55%, transparent); }
.tcard::before { content: ""; position: absolute; top: -13px; left: 50%; width: 84px; height: 26px; margin-left: -42px; z-index: 3; transform: rotate(calc(var(--r, 0deg) * -1.5)); background-color: color-mix(in srgb, var(--gold) 78%, transparent); background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 5px, transparent 5px 10px); }
.tcard:nth-child(3n+2)::before { background-color: color-mix(in srgb, var(--sage) 78%, transparent); } .tcard:nth-child(3n)::before { background-color: color-mix(in srgb, var(--terra) 70%, transparent); }
.tc-text { margin: 0 0 .9rem; font: 500 1.2rem/1.85rem var(--display); }
.tc-who { margin: 0; line-height: 1.85rem; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.tc-name { font: 500 26px/1.1 var(--hand); }
.tcard.tc-sample article { outline: 2px dashed color-mix(in srgb, var(--ink) 45%, transparent); outline-offset: -9px; }
@media (min-width: 900px) {
  .tcards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tcards-pile { position: relative; display: block; height: 25rem; max-width: 56rem; margin-inline: auto; padding: 0; }
  .tcards-pile .tcard { position: absolute; width: min(22rem, 31%); top: calc(var(--i) * 1.6rem + 1rem); left: calc(2% + var(--i) * 33%); z-index: calc(3 - var(--i)); cursor: pointer; }   /* final ZEUS audit: the first version overlapped so much that a card's words were hidden at rest */
  .tcards-pile .tcard.is-front { z-index: 9; transform: rotate(0deg) translateY(-14px) scale(1.04); }
  .tcards-pile .tcard:hover:not(.is-front) { transform: rotate(calc(var(--r) * .4)) translateY(-8px); }
  .tcards-pile .tcard.is-front article { box-shadow: 0 1px 0 rgba(43, 33, 24, .08), 0 30px 40px -16px rgba(43, 33, 24, .55); }
}
@media (max-width: 899px) {
  .tcards-pile { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 26px var(--gutter) 22px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: thin; }
  .tcards-pile .tcard { flex: 0 0 min(82%, 22rem); scroll-snap-align: center; }
  .tcards-grid { grid-template-columns: minmax(0, 1fr); }
  .tc-hint { display: none; }
}
.tc-hint { margin: 18px 0 0; font: 500 19px/1.3 var(--hand); color: var(--muted); text-align: center; }
.testi .more { text-align: center; }
@media (prefers-reduced-motion: reduce) { .tcard { transition: none; } }

/* final ZEUS audit, polish (2026-10-16): on a phone the round cassette sits bottom right over the hero; keep the headline block clear of it */
@media (max-width: 767px) {
  .hero .sm-persistent { right: calc(var(--gutter) + 62px); }
}
/* on the map page on a phone the map's own buttons run along the bottom; the cassette rides above them, on the free right side */
@media (max-width: 759px) {
  body:has(.map-hero) .mixtape { bottom: 76px; }
}
