/* =====================================================================
   Delia Hartwell — site styles (mobile-first, built to the website spec)
   70% warm neutral · 20% product imagery · 10% brand accents
   ===================================================================== */
@font-face { font-family: "Fraunces"; src: url(/assets/fonts/fraunces-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(/assets/fonts/fraunces-latin-wght-italic.woff2) format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(/assets/fonts/dm-sans-latin-wght-normal.woff2) format("woff2"); font-weight: 100 1000; font-display: swap; }

:root {
  --nl: color-mix(in srgb, #9CAA8E 22%, #FBF7F0); --foot: #EFE6D9;
  --cream: #FBF7F0; --paper: #FFFDF9; --soft: #F5EEE4; --line: #E8DFD2;
  --ink: #292725; --muted: #6B645C;
  --terra: #C96F55;       /* brand — decorative, large elements */
  --terra-deep: #AD5840;  /* brand on text & buttons (WCAG AA with white / on cream) */
  --terra-dark: #954834;
  --sage: #9CAA8E; --mustard: #D9A441; --blush: #E7B9AD;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1280px; --gutter: 20px;
  --r-sm: 10px; --r: 18px; --r-lg: 28px;
  --shadow-book: 0 1px 2px rgba(41,39,37,.08), 0 8px 18px -6px rgba(41,39,37,.22), 0 22px 40px -18px rgba(41,39,37,.28);
  --ease: cubic-bezier(.2,.8,.2,1);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1280px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--cream); color: var(--ink); font: 400 1rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
@media (min-width: 768px) { body { font-size: 1.0625rem; } }
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--terra-deep); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 .45em; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 8.5vw, 4.25rem); }
h2 { font-size: clamp(1.7rem, 5.2vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.sr, .hp { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--cream); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--terra-deep); margin: 0 0 1.1em; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent; font: 600 1rem/1.1 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--terra-deep); color: #fff; box-shadow: 0 6px 16px -8px rgba(173,88,64,.7); }
.btn-primary:hover { background: var(--terra-dark); }
.btn-outline { border-color: var(--ink); background: transparent; }
.btn-ghost { background: transparent; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; padding: 0 12px; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 1.05rem; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn.is-disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 1.8em; }
.link-arrow { font-weight: 600; color: var(--terra-deep); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; white-space: nowrap; }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(251,247,240,.92); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px -18px rgba(41,39,37,.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
@media (min-width: 1024px) { .header-inner { min-height: 80px; } }
.logo { font-family: var(--serif); font-weight: 700; font-size: 1.8rem; letter-spacing: -0.03em; text-decoration: none; line-height: 1; display: inline-flex; align-items: baseline; }
.logo::after { content: ""; width: .2em; height: .2em; margin-left: .08em; border-radius: 50%; background: var(--terra); flex: none; }
@media (min-width: 1024px) { .logo { font-size: 2.15rem; } }
.nav-desktop { display: none; }
@media (min-width: 1024px) {
  .nav-desktop { display: flex; align-items: center; gap: 6px; }
  .nav-desktop > a:not(.btn) { font-weight: 500; text-decoration: none; padding: 10px 16px; border-radius: 999px; }
  .nav-desktop > a:not(.btn):hover { background: var(--soft); }
  .nav-desktop > a[aria-current] { background: var(--soft); }
  .nav-desktop .btn { margin-left: 10px; }
}
.menu-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; margin-right: -10px; }
.menu-btn svg { width: 26px; height: 26px; }
.menu-btn:hover { background: var(--soft); }
@media (min-width: 1024px) { .site-header .menu-btn { display: none; } }
.menu { position: fixed; inset: 0; z-index: 40; background: var(--cream); display: flex; flex-direction: column; overflow: hidden; }
.menu[hidden] { display: none; }
.menu-top { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.menu-nav { display: flex; flex-direction: column; gap: 4px; padding-top: 24px; }
.menu-nav a:not(.btn) { font-family: var(--serif); font-size: 2.3rem; font-weight: 600; text-decoration: none; padding: 8px 0; letter-spacing: -0.02em; }
.menu-nav .btn { margin-top: 28px; }
.menu-sprig { position: absolute; right: -10px; bottom: 40px; width: 180px; color: var(--sage); opacity: .6; }

/* ---------- decor ---------- */
.sprig { display: block; }
.edge { position: absolute; left: 0; width: 100%; display: block; pointer-events: none; z-index: 1; }
.edge-top { bottom: calc(100% - 1px); }
.edge-bottom { top: calc(100% - 1px); transform: scale(-1, -1); }
.edge-A { height: clamp(26px, 4.4vw, 64px); }
.edge-B { height: clamp(32px, 5.5vw, 80px); }
.edge-C { height: 18px; }
.edge-D { height: 14px; }
.section-soft, .newsletter, .site-footer { position: relative; }
.section-soft .edge { color: var(--soft); }
.newsletter .edge { color: var(--nl); }
.site-footer > .edge { color: var(--foot); }
/* E — no bands: coloured sections become soft organic panels */
.edge-mode-E .section-soft, .edge-mode-E .newsletter { margin: 0 clamp(8px, 2.2vw, 28px); border-radius: clamp(36px, 6vw, 96px) clamp(28px, 4.5vw, 72px) clamp(44px, 7vw, 110px) clamp(30px, 5vw, 80px) / clamp(30px, 5vw, 80px) clamp(40px, 6vw, 96px) clamp(28px, 4.5vw, 70px) clamp(44px, 6.5vw, 100px); }
.edge-mode-E .section-soft { overflow: hidden; }
.edge-mode-E .newsletter { margin-top: 40px; margin-bottom: 72px; }
.edge-mode-E .section-soft + .section-soft, .edge-mode-E .section-soft + .newsletter { margin-top: 24px; }
.blob { position: absolute; border-radius: 58% 42% 55% 45% / 48% 58% 42% 52%; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 28px 0 56px; overflow: hidden; }
@media (min-width: 1024px) { .hero { padding: 56px 0 96px; } }
.hero-shapes { position: absolute; inset: 0; pointer-events: none; }
.blob-1 { width: 420px; height: 380px; right: -150px; top: 46%; background: var(--blush); opacity: .38; }
.blob-2 { display: none; width: 200px; height: 180px; background: var(--sage); opacity: .25; border-radius: 45% 55% 40% 60% / 55% 45% 55% 45%; }
@media (min-width: 1024px) { .blob-1 { width: 620px; height: 540px; right: -40px; top: 4%; } .blob-2 { display: block; left: 44%; top: 62%; } }
.hero-inner { position: relative; display: grid; gap: 36px; }
@media (min-width: 1024px) { .hero-inner { grid-template-columns: 45fr 55fr; gap: 48px; align-items: center; } }
.hero h1 { margin-bottom: .4em; }
.hl { position: relative; white-space: nowrap; }
.hl-line { position: absolute; left: -2%; right: -3%; bottom: -.08em; height: .28em; color: var(--terra); }
.scribble { display: block; width: 100%; height: 100%; }
.js .scribble path { stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 1.1s .35s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-copy { font-size: 1.1rem; color: var(--muted); max-width: 30em; margin-bottom: 1.6em; }
@media (min-width: 768px) { .hero-copy { font-size: 1.2rem; } }
.hero-books { position: relative; width: 100%; max-width: 640px; margin: 0 auto; aspect-ratio: 1 / .92; }
@media (min-width: 1024px) { .hero-books { aspect-ratio: 1 / .84; } }
.hero-books--square { aspect-ratio: 1 / .74; }
.hero-books--square .hb-l, .hero-books--square .hb-r { top: 12%; }
@media (min-width: 1024px) { .hero-books--square { aspect-ratio: 1 / .7; } .hero-books--square .hb-main { width: 60%; left: 20%; } .hero-books--square .hb-l, .hero-books--square .hb-r { width: 42%; } }
.hb { position: absolute; display: block; transition: transform .45s var(--ease); }
.hb img { width: 100%; border-radius: 3px; box-shadow: var(--shadow-book); }
.hb-main { width: 56%; left: 22%; top: 0; z-index: 3; }
.hb-l { width: 40%; left: 0; top: 16%; z-index: 1; transform: rotate(-6deg); }
.hb-r { width: 40%; right: 0; top: 16%; z-index: 2; transform: rotate(6deg); }
.hb-main:hover { transform: translateY(-8px); }
.hero-books:hover .hb-l { transform: rotate(-8deg) translateX(-6px); }
.hero-books:hover .hb-r { transform: rotate(8deg) translateX(6px); }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
@media (min-width: 1024px) { .section { padding: 96px 0; } }
.section-tight { padding-top: 8px; }
.section-soft { background: var(--soft); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 4px 24px; margin-bottom: 28px; }
.section-head h2 { margin: 0; max-width: 18em; }
.section-sub { margin: 0; color: var(--muted); width: 100%; }
@media (min-width: 768px) { .section-sub { width: auto; } }

/* ---------- product cards ---------- */
.card { min-width: 0; }
.card-link { display: flex; flex-direction: column; text-decoration: none; height: 100%; }
.card-cover { position: relative; aspect-ratio: 1 / 1.15; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 16px; }
.cover-frame { position: relative; display: block; transition: transform .4s var(--ease); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; box-shadow: var(--shadow-book); transition: box-shadow .4s var(--ease); }
.card-link:hover .cover-frame { transform: translateY(-8px); }
.card-link:hover .card-cover img { box-shadow: 0 2px 4px rgba(41,39,37,.08), 0 18px 30px -10px rgba(41,39,37,.3), 0 36px 50px -24px rgba(41,39,37,.3); }
.badge { position: absolute; top: -10px; left: -8px; z-index: 2; background: var(--paper); color: var(--terra-deep); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; box-shadow: 0 2px 8px rgba(41,39,37,.12); }
.badge-soon { color: #5d6b51; }
.card-title { font-size: 1.15rem; line-height: 1.2; margin: 0 0 4px; }
.card-meta { font-size: .9rem; color: var(--muted); margin: 0 0 10px; }
.card-cta { margin-top: auto; font-size: .95rem; font-weight: 600; color: var(--terra-deep); display: inline-flex; gap: 6px; min-height: 28px; align-items: center; }
.card-link:hover .card-cta span { transform: translateX(4px); }
.card-cta span { transition: transform .2s var(--ease); }

/* horizontal scroller on mobile -> grid on desktop */
.scroller-wrap { width: 100%; }
.scroller, .peek { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 18px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); padding: 12px var(--gutter) 18px; margin: -12px 0 0; list-style: none; scrollbar-width: none; }
.scroller::-webkit-scrollbar, .peek::-webkit-scrollbar { display: none; }
.scroller > *, .peek > * { scroll-snap-align: start; }
@media (min-width: 600px) { .scroller, .peek { grid-auto-columns: 40%; } }
@media (min-width: 1024px) {
  .scroller { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; gap: 32px; max-width: var(--wrap); margin: -12px auto 0; }
  .peek { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); overflow: visible; gap: 22px; max-width: var(--wrap); margin: -12px auto 0; }
}

/* catalog grid */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 24px; } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 32px; } }
.card[hidden] { display: none; }

/* ---------- moods ---------- */
.moods { display: grid; gap: 16px; }
@media (min-width: 768px) { .moods { grid-template-columns: 1fr 1fr; gap: 20px; } }
.mood { position: relative; display: flex; align-items: center; gap: 18px; min-height: 168px; padding: 22px; text-decoration: none; border-radius: 30px 22px 34px 24px; background: color-mix(in srgb, var(--tint) 22%, var(--paper)); transition: background .3s, transform .3s var(--ease); overflow: hidden; }
.mood:nth-child(2) { border-radius: 22px 34px 24px 30px; } .mood:nth-child(3) { border-radius: 34px 24px 30px 22px; } .mood:nth-child(4) { border-radius: 24px 30px 22px 34px; }
.mood:hover { background: color-mix(in srgb, var(--tint) 34%, var(--paper)); transform: translateY(-3px); }
.mood-covers { position: relative; flex: none; width: 104px; height: 124px; }
@media (min-width: 1024px) { .mood { min-height: 200px; padding: 28px 30px; gap: 28px; } .mood-covers { width: 136px; height: 156px; } }
.mc { position: absolute; bottom: 0; width: 68%; transition: transform .35s var(--ease); }
.mc img { border-radius: 2px; box-shadow: var(--shadow-book); }
.mc-1 { left: 16%; z-index: 3; } .mc-2 { left: 0; z-index: 2; transform: rotate(-9deg); } .mc-3 { right: 0; z-index: 1; transform: rotate(9deg); }
.mood:hover .mc-2 { transform: rotate(-13deg) translateX(-4px); } .mood:hover .mc-3 { transform: rotate(13deg) translateX(4px); } .mood:hover .mc-1 { transform: translateY(-4px); }
.mood-text { display: flex; flex-direction: column; }
.mood-title { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; line-height: 1.1; letter-spacing: -0.02em; }
.mood-copy { color: var(--muted); font-size: .95rem; margin-top: 6px; }
.mood-link { font-weight: 600; color: var(--terra-deep); margin-top: 12px; font-size: .95rem; }

/* ---------- featured ---------- */
.feature-inner { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .feature-inner { grid-template-columns: 1fr 1fr; gap: 88px; } }
.feature-cover { position: relative; display: block; width: 72%; max-width: 420px; margin: 0 auto; transform: rotate(-3deg); transition: transform .45s var(--ease); }
.feature-cover::before { content: ""; position: absolute; inset: -14% -22% -10% -18%; z-index: -1; background: var(--blush); opacity: .5; border-radius: 55% 45% 50% 50% / 45% 55% 45% 55%; transform: rotate(8deg); }
.feature-cover img { border-radius: 3px; box-shadow: var(--shadow-book); }
.feature-cover:hover { transform: rotate(-1deg) translateY(-6px); }
.feature-text p:not(.eyebrow) { color: var(--muted); max-width: 34em; }
.highlights { list-style: none; padding: 0; margin: 1.4em 0 0; display: grid; gap: 10px; }
.highlights li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.highlights li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 5px color-mix(in srgb, var(--sage) 25%, transparent); flex: none; }

/* ---------- peek / gallery ---------- */
.peek li { min-width: 0; }
.peek-item { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #fff; border-radius: 6px; cursor: zoom-in; box-shadow: 0 1px 2px rgba(41,39,37,.08), 0 10px 24px -14px rgba(41,39,37,.35); transition: transform .35s var(--ease); overflow: hidden; }
.peek-item img { width: 100%; height: auto; display: block; }
.peek--home .peek-item img { aspect-ratio: 1; object-fit: contain; background: #fff; padding: 8px; }
.peek { align-items: start; }
.peek-item:hover { transform: translateY(-5px); }
.peek-tag { position: absolute; left: 8px; bottom: 8px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; background: rgba(255,253,249,.95); padding: 5px 10px; border-radius: 999px; color: var(--muted); }
.peek--home .peek-tag { position: static; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 0; background: #fff; padding: 6px 10px 12px; text-align: center; font-size: .8rem; font-weight: 600; letter-spacing: 0; line-height: 1.3; }

/* ---------- about preview ---------- */
.about-inner { display: grid; gap: 36px; align-items: center; }
@media (min-width: 1024px) { .about-inner { grid-template-columns: 1.05fr .95fr; gap: 80px; } }
.about-art img { width: 100%; border-radius: 40px 28px 44px 30px; }
.about-text p { color: var(--muted); max-width: 34em; }

/* ---------- newsletter ---------- */
.newsletter { background: var(--nl); padding: 64px 0 72px; margin-top: 40px; }
.nl-inner { position: relative; display: grid; gap: 22px; }
@media (min-width: 1024px) { .nl-inner { grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; } .newsletter { padding: 96px 0 88px; } }
.nl-sprig { display: none; position: absolute; right: var(--gutter); top: -44px; width: 64px; color: #6f7d63; }
@media (min-width: 1024px) { .nl-sprig { display: block; } }
.nl-text p { color: var(--muted); max-width: 30em; margin: 0; }
.nl-row { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 480px) { .nl-row { flex-direction: row; } }
.nl-row input { flex: 1; }
.nl-small { font-size: .82rem; color: var(--muted); margin: 12px 0 0; }

/* ---------- forms ---------- */
.form input[type=email], .form input[type=text], .form select, .form textarea { width: 100%; min-height: 52px; padding: 12px 18px; font: 400 1rem var(--sans); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; transition: border-color .2s, box-shadow .2s; }
.nl-form input[type=email] { border-radius: 999px; padding: 0 22px; border-color: transparent; }
.form textarea { resize: vertical; min-height: 160px; }
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23292725' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; padding-right: 48px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--terra-deep); box-shadow: 0 0 0 4px color-mix(in srgb, var(--terra) 22%, transparent); }
.form [aria-invalid="true"] { border-color: #b3261e; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-weight: 600; font-size: .95rem; }
.field-row { display: grid; gap: 0 20px; }
@media (min-width: 768px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-status { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; font-weight: 600; }
.form-status.is-ok { background: color-mix(in srgb, var(--sage) 30%, var(--paper)); color: #3f4a36; }
.form-status.is-err { background: #fbe9e5; color: #8e2f1d; }
.form.is-sending button[type=submit] { opacity: .6; pointer-events: none; }
.cf-turnstile { margin: 8px 0 4px; }
.contact-form { background: var(--paper); border-radius: var(--r-lg); padding: 24px; box-shadow: 0 1px 2px rgba(41,39,37,.05), 0 20px 40px -28px rgba(41,39,37,.35); }
@media (min-width: 768px) { .contact-form { padding: 40px; } }
.contact-alt { color: var(--muted); margin-top: 24px; }

/* ---------- page head / breadcrumbs ---------- */
.page-head { padding: 24px 0 24px; }
@media (min-width: 1024px) { .page-head { padding: 40px 0 36px; } }
.page-sub { font-size: 1.1rem; color: var(--muted); max-width: 34em; }
.crumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }

/* ---------- books toolbar / filters ---------- */
.toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.toolbar > .chips { gap: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.toolbar > .chips { display: none; }
.chip { min-height: 44px; padding: 0 15px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 500; font-size: .95rem; cursor: pointer; transition: background .2s, border-color .2s; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.filter-btn svg { width: 20px; height: 20px; }
.sort { display: none; }
@media (min-width: 1024px) {
  .toolbar > .chips { display: flex; }
  .filter-btn { display: none; }
  .sort { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); white-space: nowrap; }
  .sort select { font: 500 .95rem var(--sans); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; min-height: 44px; padding: 0 14px; }
}
.result-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 4px 0 28px; }
.result-count { color: var(--muted); font-size: .92rem; margin: 0; }
.empty { text-align: center; color: var(--muted); padding: 48px 0; }

/* bottom sheet */
.sheet { width: 100%; max-width: 100%; margin: auto 0 0; padding: 0; border: 0; border-radius: 26px 26px 0 0; background: var(--cream); color: var(--ink); max-height: 88vh; }
.sheet::backdrop { background: rgba(41,39,37,.45); }
.sheet[open] { animation: sheet-up .32s var(--ease); }
@keyframes sheet-up { from { transform: translateY(100%); } }
.sheet-inner { padding: 12px 20px 28px; }
.sheet-inner::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 10px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head h2 { font-size: 1.5rem; margin: 0; }
.sheet-label { font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
.chips-sheet { margin-bottom: 4px; }
.sheet .btn-block { margin-top: 28px; }

/* ---------- product page ---------- */
.product { padding: 16px 0 56px; }
@media (min-width: 1024px) { .product { padding: 32px 0 88px; } }
.product-inner { display: grid; gap: 20px; }
@media (min-width: 1024px) { .product-inner { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; } }
.product-cover { position: relative; }
.product-cover::before { content: ""; position: absolute; left: 50%; top: 50%; width: 92%; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(12deg); background: var(--blush); opacity: .35; border-radius: 58% 42% 52% 48% / 46% 56% 44% 54%; z-index: 0; }
.cover-btn { position: relative; z-index: 1; display: block; width: 66%; max-width: 460px; margin: 0 auto; padding: 0; border: 0; background: none; cursor: zoom-in; }
@media (min-width: 1024px) { .cover-btn { width: 86%; } }
.cover-btn img { width: 100%; border-radius: 3px; box-shadow: var(--shadow-book); }
.tags { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--terra-deep); margin: 0 0 12px; }
.product-info h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); margin-bottom: .25em; }
.product-sub { font-size: 1rem; color: var(--muted); margin-bottom: .7em; }
@media (min-width: 1024px) { .product-sub { font-size: 1.15rem; } }
.product-short { font-size: 1.08rem; max-width: 32em; }
.buy { margin: 18px 0 22px; max-width: 460px; }
@media (min-width: 1024px) { .buy { margin-top: 28px; } }
.price { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin: 0 0 12px; line-height: 1; }
@media (min-width: 1024px) { .price { font-size: 1.9rem; } }
.price span { font-family: var(--sans); font-size: .95rem; font-weight: 500; color: var(--muted); margin-left: 6px; }
.buy-note { font-size: .88rem; color: var(--muted); margin: 10px 0 0; text-align: center; }
@media (min-width: 1024px) { .buy .btn-block { width: auto; min-width: 300px; } .buy-note { text-align: left; } }
.quick { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.quick li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; font-weight: 500; }
.quick svg, .perfect svg { width: 18px; height: 18px; color: #6f7d63; flex: none; }
.two-col { display: grid; gap: 40px; }
@media (min-width: 1024px) { .two-col { grid-template-columns: 1.4fr 1fr; gap: 88px; align-items: start; } }
.prose p { max-width: 36em; }
.prose h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-top: 1.2em; }
.prose h2:first-child { margin-top: 0; }
.prose a { color: var(--terra-deep); }
.prose-lg p { font-size: 1.12rem; line-height: 1.75; }
.features { padding-left: 1.2em; color: var(--muted); }
.features li { margin-bottom: .4em; }
.perfect { background: var(--paper); border-radius: 30px 22px 34px 24px; padding: 28px; box-shadow: 0 1px 2px rgba(41,39,37,.05), 0 18px 40px -30px rgba(41,39,37,.4); }
.perfect h2 { font-size: 1.6rem; }
.perfect ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.perfect li { display: flex; gap: 12px; align-items: flex-start; }
.perfect li svg { margin-top: 3px; }

/* sticky buy bar (mobile, appears once the main Amazon button scrolls away) */
.buy-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(251,247,240,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 -1px 0 var(--line), 0 -10px 30px -20px rgba(41,39,37,.4); transform: translateY(110%); transition: transform .3s var(--ease); }
.buy-bar.is-on { transform: none; }
.buy-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: var(--wrap); margin: 0 auto; }
.buy-bar-title { font-family: var(--serif); font-weight: 600; font-size: 1.02rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.buy-bar .btn { flex: none; }
@media (min-width: 1024px) { .buy-bar { display: none; } }

/* ---------- about page ---------- */
.about-hero { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1024px) { .about-hero { grid-template-columns: 1fr 1fr; gap: 72px; } }
.about-hero-art img { width: 100%; border-radius: 40px 28px 44px 30px; }
.values { display: grid; gap: 16px; }
@media (min-width: 900px) { .values { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.value { background: var(--paper); border-radius: var(--r-lg); padding: 28px; }
.value-num { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--terra-deep); }
.value h3 { font-size: 1.45rem; margin: 10px 0 8px; }
.value p { color: var(--muted); margin: 0; }
.notfound { padding: 72px 0 24px; }

/* ---------- lightbox ---------- */
.lightbox { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: rgba(28,26,24,.94); color: #fff; }
.lightbox[open] { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; }
.lightbox::backdrop { background: rgba(0,0,0,.5); }
.lb-fig { grid-column: 2; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.lb-fig img { max-height: 80vh; max-width: 100%; width: auto; background: #fff; border-radius: 4px; }
.lb-fig figcaption { font-size: .92rem; opacity: .85; text-align: center; padding: 0 8px; }
.lb-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; justify-self: center; }
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { position: absolute; top: 14px; right: 14px; }
@media (max-width: 600px) { .lightbox[open] { grid-template-columns: 0 1fr 0; } .lb-prev, .lb-next { position: absolute; bottom: 18px; } .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); } .lb-fig img { max-height: 72vh; } }

/* ---------- footer ---------- */
.site-footer { margin-top: 0; color: var(--ink); }
.newsletter + .site-footer { margin-top: 0; }
main > :last-child:not(.newsletter) { margin-bottom: 64px; }
.footer-body { background: var(--foot); padding: 40px 0 28px; }
.footer-inner { display: grid; gap: 28px; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1.5fr 1fr 1fr; align-items: start; } }
.logo-footer { font-size: 2.2rem; }
.footer-micro { color: var(--muted); margin-top: 12px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
@media (min-width: 768px) { .footer-nav { flex-direction: column; } }
.footer-nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; font-weight: 500; }
@media (min-width: 768px) { .footer-nav a { min-height: 32px; } }
.footer-nav a:hover { color: var(--terra-deep); }
.footer-legal { margin-top: 28px; padding-top: 24px; font-size: .85rem; color: var(--muted); position: relative; }
.footer-legal::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 8'%3E%3Cpath d='M0 4C10 0 20 0 30 4S50 8 60 4' fill='none' stroke='%23D8CBB8' stroke-width='1.5'/%3E%3C/svg%3E") repeat-x left center / 60px 8px; }
.footer-legal p { margin: 0; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .scribble path { stroke-dashoffset: 0; }
}

/* ---------- A+ "see it colored" row ---------- */
.aplus { margin-top: 36px; }
.aplus-title { font-size: 1.35rem; margin: 0 0 16px; }
.aplus-row { display: grid; gap: 16px; }
@media (min-width: 768px) { .aplus-row { grid-template-columns: 1fr 1fr; gap: 24px; } }
.aplus-item { border-radius: var(--r); }
.aplus-item img { width: 100%; height: auto; aspect-ratio: auto; border-radius: var(--r); }

/* ---------- seasonal promo banner ---------- */
.promo-link { position: relative; display: block; border-radius: 34px 26px 40px 28px; overflow: hidden; box-shadow: 0 2px 4px rgba(41,39,37,.06), 0 24px 50px -30px rgba(41,39,37,.5); transition: transform .35s var(--ease); }
.promo-link:hover { transform: translateY(-4px); }
.promo-link img { width: 100%; height: auto; }
.promo-cta { position: absolute; right: 16px; bottom: 16px; background: var(--paper); color: var(--terra-deep); font-weight: 700; font-size: .95rem; padding: 10px 18px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
@media (max-width: 600px) { .promo-cta { position: static; display: block; text-align: center; border-radius: 0; box-shadow: none; } }
