/* ==========================================================================
   Fuck Off, I'm Reading — site styles
   Palette: Endpaper Black / Foxed Page / Library Oxblood / Reading Lamp /
   Conservatory Green / Dust Jacket Mauve / Cat Smoke / Tea Stain.
   Default theme is dark ("this brand does not live in daylight"); the lamp
   toggle switches to Foxed Page paper for daytime reading.
   Mobile-first: base rules target a 360px phone; min-width layers at 641 / 901 / 961px.
   ========================================================================== */
:root {
  --ink: #17130F;
  --ink-2: #1F1A15;
  --ink-3: #2A231C;
  --page: #F4EADA;
  --oxblood: #6E1F1F;
  --oxblood-2: #85282A;
  --lamp: #D99E4A;
  --lamp-2: #E8B46A;
  --conservatory: #28382A;
  --conservatory-2: #34483A;
  --mauve: #8E6E7C;
  --smoke: #6C6660;
  --tea: #B9A183;

  --bg: var(--ink);
  --bg-2: var(--ink-2);
  --bg-3: var(--ink-3);
  --fg: var(--page);
  --fg-2: rgba(244, 234, 218, .74);
  --fg-3: rgba(244, 234, 218, .52);
  --line: rgba(244, 234, 218, .14);
  --card: var(--ink-2);
  --accent: var(--lamp);
  --link: var(--lamp-2);
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
  --radius: 6px;
  --radius-sm: 4px;
  --wrap: 1180px;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "EB Garamond", Georgia, serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-type: "Special Elite", "Courier New", monospace;
}
:root[data-theme="light"] {
  --bg: var(--page); --bg-2: #EDE2CF; --bg-3: #E4D6BE; --fg: var(--ink); --fg-2: #4A4038; --fg-3: #6C6660;
  --line: #D9CBB2; --card: #FAF3E6; --link: var(--oxblood); --shadow: 0 18px 40px -20px rgba(23, 19, 15, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-ui); font-size: clamp(1rem, .94rem + .3vw, 1.0625rem); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.015em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); font-weight: 900; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.35rem); }
h4, h5 { font-family: var(--font-ui); text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 600; color: var(--lamp); margin: 0 0 .6em; }
h1 em, h2 em { color: var(--lamp); font-style: italic; font-weight: 700; }
p { margin: 0 0 1em; }
kbd { font-family: var(--font-type); background: var(--bg-3); padding: 1px 6px; border-radius: 3px; font-size: .9em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
.section { padding-block: clamp(44px, 4vw + 28px, 72px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: var(--lamp); color: var(--ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--fg-3); }
.small { font-size: .88rem; }
.mt { margin-top: 1.4em; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.link-plain { color: var(--fg-2); font-weight: 500; display: inline-flex; align-items: center; min-height: 44px; }
/* Stretched links: the title link covers the whole card so the tap target is the card */
.card, .product-card { position: relative; }
.card-title a::after, .product-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-media, .product-media { position: relative; z-index: 2; }
.card .cat-link, .card-meta { position: relative; z-index: 2; }

/* Tones (hero / tile backgrounds) ---------------------------------------- */
.tone-ink { background: #1E1915; color: var(--page); }
.tone-oxblood { background: var(--oxblood); color: var(--page); }
.tone-conservatory { background: var(--conservatory); color: var(--page); }
.tone-mauve { background: #6F5563; color: var(--page); }
.tone-smoke { background: #4B4641; color: var(--page); }

/* Eyebrows, badges, buttons ------------------------------------------------ */
.eyebrow { display: inline-block; font-family: var(--font-ui); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--lamp); margin-bottom: 12px; }
.eyebrow-type { font-family: var(--font-type); font-weight: 400; letter-spacing: .3em; font-size: .74rem; }
.eyebrow-lamp { color: var(--lamp); }
.badge { display: inline-block; font-family: var(--font-type); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; padding: 5px 9px 4px; border-radius: 3px; background: var(--page); color: var(--ink); }
.badge-dispatch { background: var(--lamp); color: var(--ink); }
.badge-culture { background: var(--mauve); color: var(--page); }
.badge-guide { background: var(--conservatory-2); color: var(--page); }
.badge-shelf { background: var(--oxblood-2); color: var(--page); }
.badge-shop { background: var(--lamp); color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; min-height: 44px; border-radius: var(--radius-sm);
  font-family: var(--font-ui); font-weight: 600; font-size: .92rem; letter-spacing: .02em; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease; text-decoration: none !important;
}
.btn:hover { transform: translateY(-1px); }
.btn-lamp { background: var(--lamp); color: var(--ink); }
.btn-lamp:hover { background: var(--lamp-2); }
.btn-blood { background: var(--oxblood); color: var(--page); }
.btn-blood:hover { background: var(--oxblood-2); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-sm { padding: 8px 14px; font-size: .82rem; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.link-btn { background: none; border: 0; color: var(--link); font: inherit; cursor: pointer; padding: 0; }
.link-btn:hover { text-decoration: underline; }

/* Header ------------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: clamp(8px, 2vw, 20px); height: 68px; }
.brand { display: inline-flex; align-items: center; gap: clamp(6px, 1.5vw, 10px); min-height: 44px; color: inherit; text-decoration: none !important; min-width: 0; }
.brand-text { font-family: var(--font-display); font-size: clamp(1rem, .5rem + 2.2vw, 1.3rem); font-weight: 900; letter-spacing: -.02em; white-space: nowrap; }
.brand-text em { color: var(--lamp); font-weight: 700; }
.logo-mark { width: 36px; height: 36px; flex: none; }
.main-nav { display: none; align-items: center; gap: 2px; margin-left: 4px; }
.main-nav > a, .menu > summary { color: inherit; font-weight: 500; font-size: .92rem; padding: 8px 12px; border-radius: var(--radius-sm); text-decoration: none !important; cursor: pointer; list-style: none; }
.main-nav > a:hover, .main-nav > a[aria-current], .menu > summary:hover, .menu[open] > summary { background: var(--bg-3); }
.menu { position: relative; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: " ▾"; font-size: .75em; opacity: .7; }
.menu-panel { position: absolute; top: 100%; left: 0; margin-top: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; display: grid; gap: 14px; width: min(320px, calc(100vw - 32px)); z-index: 60; }
.menu-panel-wide { grid-template-columns: 1.1fr 1fr; width: min(640px, calc(100vw - 32px)); }
.menu-col h5 { margin: 4px 10px 6px; color: var(--fg-3); }
.menu-col > a { display: flex; flex-direction: column; padding: 8px 10px; border-radius: var(--radius-sm); color: inherit; text-decoration: none !important; }
.menu-col > a strong { font-weight: 600; font-size: .92rem; }
.menu-col > a span { font-size: .8rem; color: var(--fg-3); line-height: 1.35; }
.menu-col > a:hover { background: var(--bg-3); }
.menu-genres { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.menu-genres a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: var(--radius-sm); color: inherit; font-size: .88rem; text-decoration: none !important; }
.menu-genres a:hover { background: var(--bg-3); }
.menu-icon { width: 18px; height: 18px; flex: none; color: var(--lamp); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: clamp(0px, .8vw, 6px); }
.header-actions .btn { display: none; }
.icon-btn { background: none; border: 0; color: inherit; padding: 11px; min-width: 44px; min-height: 44px; border-radius: var(--radius-sm); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; position: relative; text-decoration: none !important; }
.icon-btn:hover { background: var(--bg-3); }
.cart-count { position: absolute; top: 6px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--oxblood); color: var(--page); font-size: .68rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.cart-count[hidden] { display: none; }
#theme-toggle .lamp-off { display: none; }
:root[data-theme="light"] #theme-toggle .lamp-on { display: none; }
:root[data-theme="light"] #theme-toggle .lamp-off { display: inline; }
.nav-toggle { display: inline-flex; }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 10px 16px 22px; background: var(--bg-2); max-height: calc(100vh - 68px); overflow-y: auto; }
.mobile-nav.open { display: block; }
.mobile-group { padding: 10px 0; border-bottom: 1px solid var(--line); }
.mobile-group:last-child { border-bottom: 0; }
.mobile-group h5 { margin: 6px 0 2px; color: var(--fg-3); }
.mobile-group > a { display: flex; align-items: center; min-height: 44px; padding: 4px 2px; font-weight: 500; color: inherit; font-size: 1.02rem; }
.mobile-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mobile-cats a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 2px; color: inherit; font-size: .95rem; }

/* Search overlay ---------------------------------------------------------- */
.search-overlay { position: fixed; inset: 0; z-index: 90; background: color-mix(in srgb, var(--ink) 94%, transparent); backdrop-filter: blur(6px); overflow-y: auto; padding-top: 8vh; color: var(--page); }
.search-overlay[hidden] { display: none; }
.search-box form { display: flex; gap: 8px; align-items: center; }
.search-box input { flex: 1; min-width: 0; font-size: 1.25rem; padding: 14px 18px; border-radius: var(--radius-sm); border: 1.5px solid transparent; background: var(--page); color: var(--ink); font-family: var(--font-body); }
.search-box input:focus { outline: 0; border-color: var(--lamp); }
.search-box .icon-btn { color: var(--page); font-size: 1.2rem; }
.search-results { margin-top: 18px; display: grid; gap: 8px; }
.search-hit { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 10px; border-radius: var(--radius-sm); background: var(--card); color: var(--fg); text-decoration: none !important; align-items: center; border: 1px solid var(--line); }
.search-overlay .search-hit { background: var(--ink-2); color: var(--page); }
.search-hit .hit-motif { width: 56px; height: 48px; border-radius: 3px; display: grid; place-items: center; }
.search-hit .hit-motif svg { width: 30px; height: 30px; }
.search-hit strong { display: block; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.2; }
.search-hit small { color: var(--fg-3); font-size: .78rem; }
.search-overlay .search-hit small { color: rgba(244,234,218,.6); }
.search-hit:hover { outline: 2px solid var(--lamp); }
.search-empty { opacity: .8; padding: 20px 0; font-family: var(--font-body); font-size: 1.1rem; }
.search-page-form { display: flex; flex-direction: column; gap: 10px; max-width: 700px; }
.search-page-form input { flex: 1; font-size: 1.1rem; padding: 13px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--card); color: inherit; font-family: var(--font-body); }

/* Hero -------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); color: var(--page); border-bottom: 1px solid var(--line); }
.hero-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 75% 10%, rgba(217,158,74,.18), transparent 60%), radial-gradient(90% 70% at 5% 95%, rgba(110,31,31,.35), transparent 62%); }
.hero-inner { display: grid; grid-template-columns: 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; padding-block: clamp(56px, 8vw, 96px) clamp(40px, 6vw, 72px); }
.hero h1 { font-size: clamp(3rem, 10vw, 6.4rem); line-height: .98; margin: 0 0 22px; letter-spacing: -.03em; }
.hero h1 em { color: var(--lamp); font-weight: 700; }
.hero-lede { font-family: var(--font-body); font-size: clamp(1.15rem, 2vw, 1.4rem); max-width: 540px; color: rgba(244,234,218,.8); margin: 0 0 30px; line-height: 1.5; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-ghost { color: var(--page); }
.hero-scene { max-width: 520px; margin-inline: auto; width: 100%; }
.scene { width: 100%; height: auto; display: block; }

/* Ticker ------------------------------------------------------------------ */
.ticker { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-2); font-family: var(--font-type); font-size: .74rem; letter-spacing: .28em; text-transform: uppercase; color: var(--fg-3); }
.ticker-track { display: flex; gap: 0; width: max-content; animation: ticker 70s linear infinite; }
.ticker-track span { padding: 11px 26px; white-space: nowrap; }
.ticker-track span::after { content: "·"; margin-left: 26px; color: var(--lamp); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Featured ---------------------------------------------------------------- */
.featured { padding-top: 32px; }
.featured-card { display: grid; grid-template-columns: 1fr; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: inherit; text-decoration: none !important; border: 1px solid var(--line); }
.featured-media { position: relative; min-height: 260px; display: grid; place-items: center; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.featured-body { padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; justify-content: center; }
.featured-body h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.featured-body p { color: var(--fg-2); font-family: var(--font-body); font-size: 1.12rem; }
.read-more { color: var(--lamp); font-weight: 600; margin-top: 8px; font-size: .92rem; }

/* Section heads ----------------------------------------------------------- */
.section-head { margin-bottom: 30px; }
.section-head p { margin: 0; color: var(--fg-2); font-family: var(--font-body); font-size: 1.1rem; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Category grid ----------------------------------------------------------- */
.cat-grid { display: grid; grid-template-columns: 1fr; gap: clamp(10px, 2vw, 14px); }
.cat-tile { position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; padding: 18px; border-radius: var(--radius); overflow: hidden; text-decoration: none !important; border: 1px solid rgba(244,234,218,.08); min-height: 44px; transition: transform .2s ease, box-shadow .2s ease; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-tile-motif { width: 72px; height: 72px; color: var(--lamp); display: grid; place-items: center; }
.cat-tile-motif svg { width: 60px; height: 60px; }
.cat-tile-body { display: grid; gap: 2px; min-width: 0; }
.cat-tile-name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.cat-tile-blurb { font-family: var(--font-body); font-size: 1rem; opacity: .82; line-height: 1.35; }
.cat-tile-count { font-family: var(--font-type); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; opacity: .65; margin-top: 4px; }

/* Post cards -------------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.card-media .badge { position: absolute; top: 12px; left: 12px; }
.card-motif { width: 38%; max-width: 120px; color: var(--lamp); opacity: .95; }
.card-motif svg { width: 100%; height: auto; }
.card-motif-lg { width: 36%; max-width: 180px; }
.card-stamp { position: absolute; right: 14px; bottom: 10px; font-family: var(--font-type); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; opacity: .6; }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.card-meta { font-size: .76rem; color: var(--fg-3); display: flex; gap: 6px; flex-wrap: wrap; }
.cat-link { color: var(--lamp); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.card-title { font-size: 1.32rem; margin: 0; line-height: 1.18; }
.card-title a { color: inherit; }
.card-excerpt { margin: 0; color: var(--fg-2); font-family: var(--font-body); font-size: 1.05rem; line-height: 1.45; }

/* Bands ------------------------------------------------------------------- */
.band { position: relative; }
.band-green { background: var(--conservatory); color: var(--page); }
.band-blood { background: var(--oxblood); color: var(--page); }
.band .section-head p { color: rgba(244,234,218,.78); }
.band .btn-ghost { color: var(--page); }
.band .eyebrow { color: var(--lamp); }
.story-list { display: grid; gap: 10px; }
.story-row { display: grid; grid-template-columns: 64px 1fr; gap: clamp(14px, 2vw, 20px); align-items: center; padding: 14px; border-radius: var(--radius); background: rgba(244,234,218,.04); border: 1px solid rgba(244,234,218,.1); color: var(--page); text-decoration: none !important; transition: background .2s; }
.story-row:hover { background: rgba(244,234,218,.09); }
.story-motif { width: 64px; height: 64px; border-radius: var(--radius-sm); display: grid; place-items: center; color: var(--lamp); }
.story-motif svg { width: 40px; height: 40px; }
.story-row h3 { margin: 2px 0 4px; font-size: 1.25rem; }
.story-row p { margin: 0; font-family: var(--font-body); font-size: 1.02rem; opacity: .78; }
.story-cat { font-family: var(--font-type); font-size: .68rem; text-transform: uppercase; letter-spacing: .18em; color: var(--lamp); }
.story-arrow { display: none; font-size: 1.5rem; color: var(--lamp); }

.two-up { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 72px); }
.list-plain { display: grid; gap: 2px; }
.list-row { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none !important; }
.list-row strong { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; line-height: 1.25; }
.list-row:hover strong { color: var(--lamp); }
.list-date { font-family: var(--font-type); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3); }
.list-plain .btn { justify-self: start; margin-top: 12px; }

/* Excuse desk ------------------------------------------------------------- */
.excuse-band { display: grid; grid-template-columns: 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.excuse-band p { font-family: var(--font-body); font-size: 1.1rem; opacity: .85; }
.excuse-box { background: var(--page); color: var(--ink); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.excuse-text { font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.3; margin: 0 0 20px; min-height: 2.6em; }
.excuse-text-lg { font-size: clamp(1.5rem, 3vw, 2.3rem); }
.excuse-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.excuse-box .btn-ghost { color: var(--ink); }
.excuse-box .link-plain { color: var(--oxblood); margin-left: auto; }
.excuse-box-page { max-width: 820px; margin: 0 auto 48px; }
.excuse-rules { max-width: 720px; margin-inline: auto; }

/* Subscribe band ---------------------------------------------------------- */
.subscribe-band { position: relative; margin-block: 56px 0; padding-block: 64px; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.subscribe-inner { position: relative; display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 40px); align-items: center; }
.subscribe-copy h2 { font-size: clamp(2rem, 4vw, 3rem); }
.subscribe-copy p { margin: 0; font-family: var(--font-body); font-size: 1.12rem; color: var(--fg-2); }
.subscribe-form { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: center; position: relative; z-index: 1; }
.subscribe-form input[type="email"] { padding: 14px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); font-size: 1.05rem; font-family: var(--font-body); background: var(--card); color: var(--fg); min-width: 0; }
.subscribe-form input[type="email"]:focus { outline: 0; border-color: var(--lamp); }
.form-msg { grid-column: 1 / -1; margin: 0; min-height: 1.4em; font-size: .9rem; }
.form-msg.ok { color: var(--lamp); }
.form-msg.err { color: #E39A9A; }
:root[data-theme="light"] .form-msg.err { color: var(--oxblood); }
.subscribe-cat { position: absolute; right: -20px; bottom: -40px; width: 220px; color: var(--fg); opacity: .06; pointer-events: none; }

/* Post page --------------------------------------------------------------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; }
#progress-bar { height: 100%; width: 0; background: var(--lamp); transition: width .1s linear; }
.post-hero, .listing-hero { position: relative; isolation: isolate; overflow: hidden; color: var(--page); }
.post-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -2; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(23,19,15,.35) 0%, rgba(23,19,15,.6) 55%, rgba(23,19,15,.92) 100%); }
.hero-motif { position: absolute; right: -4%; bottom: -14%; width: clamp(200px, 32vw, 420px); z-index: -1; opacity: .14; color: var(--page); pointer-events: none; }
.hero-motif svg { width: 100%; height: auto; }
.post-hero-inner { padding-block: 72px 48px; max-width: 860px; }
.post-hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); margin: 14px 0 10px; }
.post-sub { font-size: 1.25rem; opacity: .9; margin: 0 0 14px; font-family: var(--font-body); font-style: italic; }
.post-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: .88rem; opacity: .85; }
.crumbs { font-family: var(--font-type); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; display: flex; gap: 8px; margin-bottom: 18px; opacity: .8; }
.crumbs a { color: inherit; }
.crumbs-dark { color: var(--fg-2); }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 44px 24px; }
.page-layout { padding-block: 44px; max-width: 820px; }
.prose { max-width: 700px; min-width: 0; font-family: var(--font-body); font-size: clamp(1.15rem, 1.05rem + .35vw, 1.3rem); line-height: 1.62; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin-block: 0 1.2em; }
.prose h2 { margin-top: 1.9em; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.prose h3 { margin-top: 1.5em; }
.prose img { border-radius: var(--radius-sm); margin-block: 1.5em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--oxblood); font-family: var(--font-display); font-size: 1.15em; font-style: italic; color: var(--fg-2); }
.prose blockquote p { margin: 0; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.5em 0; }
.prose code { font-family: var(--font-type); background: var(--bg-3); padding: 2px 6px; border-radius: 3px; font-size: .85em; }
.prose table { border-collapse: collapse; display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-block: 1.5em; font-size: .92em; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--font-ui); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--fg-3); }
.prose a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--link) 50%, transparent); text-underline-offset: 3px; }
.disclosure-inline { font-family: var(--font-ui); font-size: .82rem; color: var(--fg-3); background: var(--bg-3); padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 1.5em !important; }
.callout { margin: 1.75em 0; padding: 18px 22px; border-radius: var(--radius-sm); background: var(--bg-3); border-left: 3px solid var(--lamp); font-size: .96em; }
.callout > :last-child { margin-bottom: 0; }
.callout-title { font-weight: 700; font-family: var(--font-display); font-size: 1.05em; margin-bottom: 6px; }
.callout-note { border-color: var(--lamp); }
.callout-warn { border-color: var(--oxblood-2); background: color-mix(in srgb, var(--oxblood) 18%, var(--bg-3)); }
.callout-aside { border-color: var(--mauve); }
.callout-evidence { font-family: var(--font-type); font-size: .82em; letter-spacing: .04em; border-color: var(--smoke); background: var(--bg-2); border: 1px dashed var(--line); border-left: 3px solid var(--smoke); }
.callout-evidence .callout-title { font-family: var(--font-type); text-transform: uppercase; letter-spacing: .2em; font-size: .85em; }
.spoiler { margin: 1.75em 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); }
.spoiler summary { cursor: pointer; padding: 14px 18px; font-family: var(--font-type); font-size: .8em; letter-spacing: .14em; text-transform: uppercase; color: var(--lamp); list-style: none; min-height: 44px; display: flex; align-items: center; }
.spoiler summary::-webkit-details-marker { display: none; }
.spoiler summary::before { content: "☠ "; }
.spoiler-body { padding: 0 18px 14px; }
.build-warning { color: #ff6b6b; font-weight: 700; }

/* Book cards -------------------------------------------------------------- */
.book-card { display: grid; grid-template-columns: 1fr; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin: 1.75em 0; box-shadow: var(--shadow); font-family: var(--font-ui); }
.book-spine { background: var(--oxblood); color: var(--page); min-height: 56px; display: flex; align-items: center; padding: 14px 18px; }
.book-spine span { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.15; }
.book-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.book-mood { align-self: flex-start; font-family: var(--font-type); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--lamp); }
.book-title { margin: 0; font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; text-transform: none; letter-spacing: 0; color: inherit; }
.book-author { margin: 0; color: var(--fg-3); font-size: .9rem; }
.book-blurb { margin: 0; font-family: var(--font-body); font-size: 1.05rem; color: var(--fg-2); line-height: 1.45; }
.book-foot { display: flex; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.book-bodies { font-family: var(--font-type); font-size: .78rem; color: var(--fg-3); margin-right: auto; }
.shelf-box { margin-top: 3em; padding-top: 2em; border-top: 1px dashed var(--line); }
.shelf-box h2 { margin-top: 0 !important; }
.book-grid .book-card { margin: 0 0 16px; }

.post-footer { margin-top: 3em; padding-top: 1.5em; border-top: 1px solid var(--line); display: grid; gap: 16px; font-family: var(--font-ui); font-size: .95rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag, .chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; min-height: 44px; border-radius: var(--radius-sm); background: var(--bg-3); color: var(--fg-2); font-size: .85rem; font-weight: 500; text-decoration: none !important; font-family: var(--font-ui); }
.tag:hover, .chip:hover { background: var(--oxblood); color: var(--page); }
.chip-icon { width: 18px; height: 18px; color: var(--lamp); }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.share { display: flex; gap: 14px; flex-wrap: wrap; font-size: .88rem; align-items: center; }
.post-side { display: grid; gap: 20px; align-content: start; }
.side-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; }
.side-box h4 { margin-bottom: 10px; }
.side-box p { margin: 0; font-size: .92rem; color: var(--fg-2); }
.side-link { display: flex; align-items: center; min-height: 44px; padding: 6px 0; border-top: 1px solid var(--line); font-size: .92rem; color: inherit; font-family: var(--font-display); font-weight: 700; line-height: 1.25; }
.side-link:first-of-type { border-top: 0; }
.side-shop .product-card { border: 0; background: transparent; }
.side-shop .product-media { background: var(--bg-3); }
.toc ul { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.toc ul ul { padding-left: 14px; }
.toc li { padding: 0; }
.toc a { display: flex; align-items: center; min-height: 44px; padding: 4px 0; color: var(--fg-2); }

/* Listing / status -------------------------------------------------------- */
.listing-hero-inner { padding-block: 64px 52px; max-width: 760px; }
.listing-hero p { font-family: var(--font-body); font-size: 1.2rem; opacity: .85; margin: 0; }
.count { margin: 0 0 20px; font-size: .82rem; font-family: var(--font-type); letter-spacing: .14em; text-transform: uppercase; }
.empty { text-align: center; padding: 48px 20px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty p { color: var(--fg-2); font-family: var(--font-body); font-size: 1.1rem; }
.status-page { display: flex; justify-content: center; min-height: 60vh; align-items: center; }
.status-card { text-align: center; max-width: 560px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 48px 32px; box-shadow: var(--shadow); }
.status-card .logo-mark { width: 64px; height: 64px; margin: 0 auto 16px; }
.status-card p { color: var(--fg-2); margin-bottom: 24px; font-family: var(--font-body); font-size: 1.15rem; }
.status-card .hero-cta { justify-content: center; }

/* Shop -------------------------------------------------------------------- */
.ribbon { background: var(--lamp); color: var(--ink); font-size: .9rem; padding: 10px 0; }
.ribbon a { color: var(--ink); text-decoration: underline; }
.coll-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 28px; }
.coll-nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); color: inherit; font-weight: 500; font-size: .9rem; text-decoration: none !important; }
.coll-nav a small { color: var(--fg-3); font-family: var(--font-type); font-size: .7rem; }
.coll-nav a:hover, .coll-nav a[aria-current] { background: var(--oxblood); border-color: var(--oxblood); color: var(--page); }
.coll-nav a[aria-current] small { color: rgba(244,234,218,.7); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 20px; }
.product-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-media { position: relative; display: block; background: var(--bg-3); padding: 10px; }
.product-media .badge { position: absolute; top: 12px; left: 12px; }
.tier-mark { position: absolute; right: 12px; bottom: 10px; font-family: var(--font-type); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3); }
.tier-mark-lg { font-size: .72rem; left: 16px; right: auto; bottom: 14px; }
.mockup { width: 100%; height: auto; display: block; }
.mockup .motif { width: 100px; height: 100px; }
.mockup .design text { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.mockup .design-italic text { font-style: italic; font-weight: 700; text-transform: none; letter-spacing: 0; }
.mockup .design-type text { font-family: var(--font-type); font-weight: 400; letter-spacing: .12em; }
.mockup .design-garamond text { font-family: var(--font-body); font-weight: 500; text-transform: none; letter-spacing: 0; font-style: italic; }
.mockup .design-small text { font-family: var(--font-type); font-weight: 400; letter-spacing: .1em; }
.product-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 5px; }
.product-coll { font-family: var(--font-type); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3); }
.product-name { margin: 0; font-size: 1.12rem; line-height: 1.2; }
.product-name a { color: inherit; display: inline-flex; align-items: center; min-height: 44px; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.product-price { font-weight: 600; }
.product-price s { color: var(--fg-3); font-weight: 400; margin-left: 4px; }
.product-swatches { display: inline-flex; gap: 5px; }
.product-swatches i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line); display: inline-block; }
.product-embed { margin: 1.75em 0; max-width: 320px; font-family: var(--font-ui); font-size: 1rem; }
.shop-notes .note-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.shop-notes p { margin: 0; font-family: var(--font-body); font-size: 1.05rem; color: var(--fg-2); }

.product-layout { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 56px); padding-block: 32px 24px; }
.product-stage { position: relative; background: var(--bg-3); border-radius: var(--radius); padding: clamp(12px, 3vw, 32px); border: 1px solid var(--line); align-self: start; }
.product-info h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 8px 0 6px; }
.product-kind { color: var(--fg-3); margin: 0 0 10px; font-size: .95rem; }
.product-price-lg { font-size: 1.6rem; font-weight: 600; margin: 0 0 22px; }
.product-price-lg s { color: var(--fg-3); font-weight: 400; font-size: 1.1rem; margin-left: 6px; }
.buy-form { display: grid; gap: 18px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.opt-group { border: 0; padding: 0; margin: 0; }
.opt-group legend { font-family: var(--font-ui); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); padding: 0; margin-bottom: 10px; }
.swatch-row, .size-row { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; min-width: 44px; }
.swatch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.swatch span { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line); display: block; }
.swatch input:checked + span { border-color: var(--lamp); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--lamp); }
.swatch small { font-size: .68rem; color: var(--fg-3); text-align: center; max-width: 80px; line-height: 1.2; }
.size { position: relative; display: inline-flex; cursor: pointer; }
.size input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.size span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem; }
.size input:checked + span { background: var(--page); color: var(--ink); border-color: var(--page); }
.buy-row { display: flex; gap: 10px; align-items: stretch; }
.qty input { width: 72px; height: 100%; min-height: 50px; padding: 0 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--bg); color: inherit; font: inherit; font-weight: 600; text-align: center; }
.buy-row .btn { flex: 1; }
.product-desc { margin-top: 28px; font-size: 1.15rem; }
.product-specs { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 24px 0 0; font-size: .92rem; padding-top: 18px; border-top: 1px solid var(--line); }
.product-specs dt { color: var(--fg-3); font-family: var(--font-type); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; padding-top: 3px; }
.product-specs dd { margin: 0; color: var(--fg-2); }

.cart-layout { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
.cart-lines { display: grid; gap: 12px; }
.cart-line { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.cart-line .cart-thumb { background: var(--bg-3); border-radius: var(--radius-sm); padding: 4px; }
.cart-line .cart-thumb svg { width: 100%; height: auto; display: block; }
.cart-line strong { font-family: var(--font-display); font-size: 1.1rem; display: block; line-height: 1.2; }
.cart-line small { color: var(--fg-3); display: block; margin-top: 2px; }
.cart-line-ctl { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.cart-line-ctl button { min-width: 44px; min-height: 44px; border: 1px solid var(--line); background: var(--bg); color: inherit; border-radius: var(--radius-sm); cursor: pointer; font: inherit; font-weight: 600; }
.cart-line-ctl .cart-q { min-width: 28px; text-align: center; font-weight: 600; }
.cart-line-ctl .cart-remove { margin-left: auto; border: 0; background: none; color: var(--fg-3); text-decoration: underline; min-height: 44px; }
.cart-line-price { font-weight: 600; grid-column: 2; justify-self: end; }
.cart-empty { padding: 40px 20px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); font-family: var(--font-body); font-size: 1.15rem; color: var(--fg-2); }
.cart-totals { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0 0 14px; font-size: .95rem; }
.cart-totals dd { margin: 0; text-align: right; }
.cart-totals .total { font-weight: 700; font-size: 1.15rem; border-top: 1px solid var(--line); padding-top: 10px; }
.cart-summary .btn { margin: 14px 0 10px; }
.cart-summary .link-plain { display: inline-flex; align-items: center; min-height: 44px; }

/* Footer ------------------------------------------------------------------ */
.site-footer { position: relative; background: var(--ink); color: var(--page); padding-block: 64px 32px; margin-top: 0; overflow: hidden; border-top: 1px solid var(--line); }
.footer-grid { position: relative; display: grid; grid-template-columns: 1fr; gap: clamp(20px, 3vw, 32px); }
.footer-brand p { opacity: .78; max-width: 380px; font-size: .95rem; font-family: var(--font-body); font-size: 1.05rem; }
.footer-tag { font-family: var(--font-type) !important; font-size: .7rem !important; letter-spacing: .3em; text-transform: uppercase; color: var(--lamp); opacity: 1 !important; margin: 10px 0 8px; }
.site-footer h4 { color: var(--lamp); }
.site-footer a { color: var(--page); }
.footer-grid > div > a { display: flex; align-items: center; min-height: 44px; padding: 4px 0; font-size: .95rem; opacity: .9; }
.social { display: flex; gap: 14px; margin-top: 8px; }
.social a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.footer-legal { position: relative; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(244,234,218,.12); font-size: .85rem; opacity: .85; }
.footer-legal p { margin: 0 0 8px; }
.disclosure { opacity: .7; max-width: 760px; }

/* Responsive: layered upward from the mobile base ---------------------------
   641px+ tablet portrait, 901px+ full header nav, 961px+ two-column layouts.
   Tested at 360 / 390 / 768 / 1024 / 1280 / 1440 / 1920 (global build standard). */
@media (min-width: 641px) {
  .hero-inner { grid-template-columns: 1.15fr 1fr; padding-block: clamp(64px, 8vw, 110px) clamp(56px, 7vw, 96px); }
  .hero-scene { max-width: none; }
  .story-row { grid-template-columns: 72px 1fr auto; }
  .story-arrow { display: block; }
  .subscribe-form { grid-template-columns: 1fr auto; }
  .book-card { grid-template-columns: 110px 1fr; }
  .book-spine { writing-mode: vertical-rl; transform: rotate(180deg); justify-content: center; padding: 16px 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .search-page-form { flex-direction: row; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-tile { grid-template-columns: 1fr; aspect-ratio: 1 / .9; align-content: space-between; padding: 22px; }
  .cat-tile-motif { width: 96px; height: 96px; }
  .cat-tile-motif svg { width: 88px; height: 88px; }
  .prose table { display: table; }
  .two-up { grid-template-columns: 1fr 1fr; }
  .excuse-band { grid-template-columns: 1fr 1.2fr; }
  .shop-notes .note-grid { grid-template-columns: 1fr 1fr; }
  .cart-line { grid-template-columns: 96px 1fr auto; }
  .cart-line-price { grid-column: auto; }
}
@media (min-width: 901px) {
  .main-nav { display: flex; }
  .header-actions .btn { display: inline-flex; }
  .nav-toggle { display: none; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 961px) {
  .post-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; }
  .post-side { position: sticky; top: 88px; }
  .featured-card { grid-template-columns: 1.2fr 1fr; }
  .featured-media { min-height: 360px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .subscribe-inner { grid-template-columns: 1.1fr 1fr; }
  .product-layout { grid-template-columns: 1.1fr 1fr; }
  .product-stage { position: sticky; top: 88px; }
  .cart-layout { grid-template-columns: 1fr 340px; }
  .shop-notes .note-grid { grid-template-columns: repeat(4, 1fr); }
}
/* Desktop keeps the compact chrome; phones and tablets get the 44px targets set in the base rules */
@media (min-width: 961px) {
  .tag, .chip, .side-link, .footer-grid > div > a, .toc a, .coll-nav a, .link-plain, .product-name a { min-height: 0; }
  .toc a { padding: 3px 0; }
  .social a { min-width: 0; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .ticker-track { flex-wrap: wrap; width: auto; }
}
