:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-hero: clamp(3rem, 1rem + 6vw, 6.5rem);
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.25rem;
  --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem; --space-16: 4rem;
  --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-xl: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: 'Gambetta', 'Georgia', serif;
  --font-body: 'General Sans', 'Helvetica Neue', sans-serif;
  --content: 1180px;
}
:root, [data-theme='light'] {
  --color-bg: oklch(0.975 0.014 85);
  --color-surface: oklch(0.993 0.006 85);
  --color-surface-2: oklch(0.945 0.022 82);
  --color-text: oklch(0.27 0.06 262);
  --color-text-muted: oklch(0.45 0.04 262);
  --color-border: oklch(0.3 0.05 262 / 0.14);
  --color-navy: oklch(0.33 0.11 262);
  --color-red: oklch(0.5 0.17 25);
  --color-red-hover: oklch(0.44 0.16 25);
  --color-gold: oklch(0.62 0.11 75);
  --color-green: oklch(0.52 0.08 140);
  --color-on-dark: oklch(0.97 0.014 85);
  --band: oklch(0.31 0.1 262);
  --shadow: 0 1px 2px oklch(0.3 0.05 60 / 0.08), 0 12px 32px -12px oklch(0.3 0.06 60 / 0.25);
}
[data-theme='dark'] {
  --color-bg: oklch(0.2 0.03 262);
  --color-surface: oklch(0.24 0.035 262);
  --color-surface-2: oklch(0.27 0.04 262);
  --color-text: oklch(0.94 0.015 85);
  --color-text-muted: oklch(0.76 0.02 85);
  --color-border: oklch(0.9 0.02 85 / 0.12);
  --color-navy: oklch(0.8 0.08 255);
  --color-red: oklch(0.62 0.17 25);
  --color-red-hover: oklch(0.68 0.16 25);
  --color-gold: oklch(0.78 0.11 80);
  --color-green: oklch(0.72 0.09 140);
  --color-on-dark: oklch(0.97 0.014 85);
  --band: oklch(0.16 0.04 262);
  --shadow: 0 1px 2px oklch(0 0 0 / 0.3), 0 12px 32px -12px oklch(0 0 0 / 0.6);
}

body { background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); font-size: var(--text-base); line-height: 1.6; }
.wrap { width: min(100% - 2 * var(--space-6), var(--content)); margin-inline: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
p { text-wrap: pretty; max-width: 62ch; }
.amp { font-style: italic; color: var(--color-gold); font-weight: 400; }
.eyebrow { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-gold); margin-bottom: var(--space-3); display: inline-flex; gap: var(--space-2); align-items: center; }
.muted { color: var(--color-text-muted); }

.skip { position: absolute; left: -999px; top: 0; background: var(--color-surface); padding: var(--space-3) var(--space-4); z-index: 100; }
.skip:focus { left: var(--space-4); }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: oklch(from var(--color-bg) l c h / 0.88); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.header.scrolled { border-bottom-color: var(--color-border); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-height: 68px; }
.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--color-text); }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-name { font-family: var(--font-display); font-size: 1.25rem; line-height: 1; }
.brand-sub { display: block; font-family: var(--font-body); font-size: var(--text-xs); color: var(--color-text-muted); letter-spacing: 0.04em; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: var(--space-6); }
.nav a { font-size: var(--text-sm); color: var(--color-text-muted); text-decoration: none; font-weight: 500; transition: color .2s; }
.nav a:hover { color: var(--color-text); }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--color-text); background: transparent; border: 1px solid var(--color-border); cursor: pointer; }
.icon-btn:hover { background: var(--color-surface-2); }
.menu-btn { display: none; }

.btn { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 48px; padding: 0 var(--space-6); border-radius: 999px; font-weight: 600; font-size: var(--text-sm); text-decoration: none; transition: background .2s var(--ease), transform .2s var(--ease); }
.btn-primary { background: #2e7d32; color: #fff; font-weight: 700; }
.btn-primary:hover { background: #256b29; }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { color: var(--color-text); border: 1px solid var(--color-border); }
.btn-ghost:hover { background: var(--color-surface-2); }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(var(--space-12), 6vw, var(--space-20)) 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--space-8); align-items: end; }
.hero-copy { padding-bottom: clamp(var(--space-12), 7vw, var(--space-24)); }
.hero h1 { font-size: var(--text-hero); line-height: 0.95; margin-bottom: var(--space-6); }
.hero h1 .amp { display: inline-block; padding-inline: 0.04em; }
.hero-lede { font-size: var(--text-lg); line-height: 1.45; color: var(--color-text-muted); margin-bottom: var(--space-8); max-width: 34ch; }
.triad { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-bottom: var(--space-8); font-family: var(--font-display); font-style: italic; font-size: var(--text-lg); }
.triad span:nth-child(1) { color: var(--color-navy); }
.triad span:nth-child(2) { color: var(--color-red); }
.triad span:nth-child(3) { color: var(--color-green); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero-art { position: relative; align-self: end; }
.hero-art::before { content: ''; position: absolute; inset: 12% -10% 0 -6%; background: radial-gradient(ellipse at 50% 100%, oklch(from var(--color-gold) l c h / 0.28), transparent 65%); z-index: -1; }
.hero-art img { width: 100%; max-width: 560px; margin-inline: auto; height: auto; filter: drop-shadow(0 18px 24px oklch(0.3 0.05 60 / 0.25)); }
.ground { height: 14px; background: var(--color-surface-2); border-top: 1px solid var(--color-border); }

/* Verse band */
.verse { background: var(--band); color: var(--color-on-dark); padding-block: clamp(var(--space-16), 9vw, var(--space-32)); text-align: center; }
.verse blockquote { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.35; max-width: 30ch; margin-inline: auto; }
.verse blockquote em { color: oklch(0.82 0.11 80); font-style: italic; }
.verse cite { display: block; margin-top: var(--space-6); font-style: normal; font-size: var(--text-xs); letter-spacing: 0.18em; text-transform: uppercase; color: oklch(0.82 0.11 80); }
.verse .paws { color: oklch(0.82 0.11 80); width: 64px; margin: 0 auto var(--space-6); }

/* Meet */
.section { padding-block: clamp(var(--space-16), 9vw, var(--space-32)); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: end; margin-bottom: var(--space-12); }
.section-head p { color: var(--color-text-muted); }
.pups { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.pup { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: var(--space-8); display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--space-6); align-items: end; box-shadow: var(--shadow); overflow: hidden; }
.pup-imgs { display: flex; align-items: flex-end; gap: var(--space-2); }
.pup-imgs img { height: auto; }
.pup-imgs img:first-child { width: 48%; }
.pup-imgs img:last-child { width: 58%; margin-left: -10%; }
.pup h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); margin-bottom: var(--space-1); }
.pup .role { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; margin-bottom: var(--space-4); }
.pup.justice .role { color: var(--color-navy); }
.pup.mercy .role { color: var(--color-red); }
.pup ul { list-style: none; display: grid; gap: var(--space-2); font-size: var(--text-sm); color: var(--color-text-muted); }
.pup li { display: flex; gap: var(--space-2); }
.pup li svg { flex: none; width: 16px; height: 16px; margin-top: 4px; color: var(--color-gold); }
.together { margin-top: var(--space-6); display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-8); align-items: center; background: var(--color-surface-2); border-radius: var(--radius-xl); padding: var(--space-8) var(--space-10); }
.together img { width: 100%; max-width: 480px; height: auto; justify-self: center; }
.together p { font-size: var(--text-base); }
.together .sig { font-family: var(--font-display); font-style: italic; font-size: var(--text-lg); margin-top: var(--space-4); color: var(--color-text); }

/* Bookmarks */
.collection { background: var(--color-surface); border-block: 1px solid var(--color-border); }
.marks { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.mark { display: flex; flex-direction: column; gap: var(--space-4); }
.mark figure { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .4s var(--ease); background: var(--color-surface-2); }
.mark:hover figure { transform: translateY(-6px) rotate(-0.6deg); }
.mark img { width: 100%; height: auto; display: block; }
.mark h3 { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: var(--text-lg); }
.mark p { font-size: var(--text-sm); color: var(--color-text-muted); }
.mark .ref { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-gold); }
.mark:nth-child(1) h3 { color: var(--color-navy); }
.mark:nth-child(2) h3 { color: var(--color-red); }
.mark:nth-child(3) h3 { color: var(--color-green); }
.mark:nth-child(4) h3 { color: var(--color-gold); }
.card-feature { margin-top: var(--space-16); display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-10); align-items: center; }
.card-feature img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.specs { list-style: none; display: grid; gap: var(--space-3); margin-top: var(--space-6); font-size: var(--text-sm); }
.specs li { display: flex; justify-content: space-between; gap: var(--space-4); padding-bottom: var(--space-3); border-bottom: 1px solid var(--color-border); }
.specs li span:first-child { color: var(--color-text-muted); }
.specs li span:last-child { font-weight: 600; text-align: right; }

/* Minis */
.minis { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-10); align-items: center; }
.minis-art { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.mini { aspect-ratio: 1 / 1.35; border-radius: var(--radius-md); background: var(--color-surface); border: 1px solid var(--color-border); display: grid; place-items: center; box-shadow: var(--shadow); }
.mini svg { width: 46%; }
.mini:nth-child(4n+1) { color: var(--color-navy); }
.mini:nth-child(4n+2) { color: var(--color-red); }
.mini:nth-child(4n+3) { color: var(--color-green); }
.mini:nth-child(4n+4) { color: var(--color-gold); }
.badge { display: inline-block; font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: var(--space-1) var(--space-3); border-radius: 999px; background: oklch(from var(--color-gold) l c h / 0.16); color: var(--color-text); margin-bottom: var(--space-4); }

/* Books */
.books-top { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-12); align-items: center; }
.book-cover { position: relative; max-width: 420px; justify-self: center; }
.book-cover img { width: 100%; height: auto; border-radius: 4px 10px 10px 4px; box-shadow: -8px 0 0 -4px oklch(0.3 0.04 60 / 0.25), var(--shadow), 0 30px 60px -24px oklch(0.3 0.05 60 / 0.4); transform: rotate(-2deg); }
.checks { list-style: none; display: grid; gap: var(--space-3); margin-block: var(--space-6); }
.checks li { display: flex; gap: var(--space-3); align-items: flex-start; }
.checks li svg { flex: none; width: 20px; height: 20px; color: var(--color-green); margin-top: 3px; }
.volumes { margin-top: var(--space-20); }
.volumes-head { display: flex; justify-content: space-between; align-items: end; gap: var(--space-6); flex-wrap: wrap; margin-bottom: var(--space-8); }
.vol-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--space-5); }
.vol { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.vol img { width: 100%; height: auto; aspect-ratio: 1020 / 714; object-fit: cover; display: block; }
.vol-body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.vol-num { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; color: var(--color-gold); }
.vol h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); }
.vol p { font-size: var(--text-sm); color: var(--color-text-muted); }
.vol.placeholder { background: var(--color-surface-2); justify-content: center; }
.vol.placeholder .big { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--color-gold); line-height: 1; }
.strip { margin-top: var(--space-16); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.strip figure { border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.strip img { width: 100%; height: auto; display: block; }
.strip figcaption { position: absolute; left: var(--space-4); bottom: var(--space-4); right: var(--space-4); background: oklch(0.99 0.006 85 / 0.92); color: oklch(0.27 0.06 262); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); font-size: var(--text-sm); line-height: 1.45; }

/* Shop */
.shop { background: var(--band); color: var(--color-on-dark); position: relative; overflow: hidden; }
.shop .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-10); align-items: center; }
.shop h2 { color: var(--color-on-dark); }
.shop p { color: oklch(0.86 0.02 85); }
.shop .eyebrow { color: oklch(0.82 0.11 80); }
.shop-list { list-style: none; display: grid; gap: var(--space-3); margin-block: var(--space-8); }
.shop-list li { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); background: oklch(1 0 0 / 0.06); border: 1px solid oklch(1 0 0 / 0.1); font-size: var(--text-sm); }
.shop-list li span:last-child { color: oklch(0.82 0.11 80); font-weight: 600; white-space: nowrap; }
.shop img { width: 100%; max-width: 520px; height: auto; justify-self: center; filter: drop-shadow(0 20px 30px oklch(0 0 0 / 0.35)); }
.shop .btn-ghost { color: var(--color-on-dark); border-color: oklch(1 0 0 / 0.25); }
.shop .btn-ghost:hover { background: oklch(1 0 0 / 0.08); }

/* Footer */
.footer { padding-block: var(--space-12); font-size: var(--text-sm); color: var(--color-text-muted); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-6); align-items: center; }
.footer nav { display: flex; gap: var(--space-5); flex-wrap: wrap; }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: var(--color-text); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Responsive */
@media (max-width: 1000px) {
  .marks { grid-template-columns: repeat(2, 1fr); }
  .pups { grid-template-columns: 1fr; }
  .vol-grid { grid-template-columns: 1fr 1fr 1fr; }
  .vol-grid .vol:first-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--color-bg); border-bottom: 1px solid var(--color-border); padding: var(--space-2) var(--space-6) var(--space-6); }
  .nav.open { display: flex; }
  .nav a { padding: var(--space-3) 0; font-size: var(--text-base); }
  .nav .btn { margin-top: var(--space-3); justify-content: center; }
  .menu-btn { display: grid; }
  .hero-grid, .section-head, .together, .card-feature, .minis, .books-top, .shop .wrap, .strip { grid-template-columns: 1fr; }
  .hero { text-align: left; }
  .hero-copy { padding-bottom: 0; }
  .hero-art img { max-width: 380px; }
  .pup { grid-template-columns: 1fr; }
  .pup-imgs { justify-content: center; max-width: 360px; margin-inline: auto; }
  .together { padding: var(--space-6); }
  .section-head { margin-bottom: var(--space-8); gap: var(--space-4); }
}
@media (max-width: 520px) {
  .marks { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
  .vol-grid { grid-template-columns: 1fr; }
  .minis-art { grid-template-columns: repeat(4, 1fr); gap: var(--space-2); }
  .strip figcaption { position: static; border-radius: 0; background: var(--color-surface-2); color: var(--color-text); }
  .header-actions .btn { display: none; }
}
.vol.placeholder .vol-body { justify-content: center; }
@media (max-width: 520px) { .brand-sub { display: none; } }
.adventures { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-12); align-items: center; }
.adv-art { position: relative; justify-self: center; max-width: 440px; }
.adv-art::before { content: ''; position: absolute; inset: 20% -8% 0; background: radial-gradient(ellipse at 50% 90%, oklch(from var(--color-navy) l c h / 0.14), transparent 65%); z-index: -1; }
.adv-art img { width: 100%; height: auto; }
@media (max-width: 820px) { .adventures { grid-template-columns: 1fr; gap: var(--space-8); } .adv-art { max-width: 300px; } }

@media (max-width: 1200px) and (min-width: 1001px) { .vol.placeholder .big { font-size: var(--text-xl); } }
@media (max-width: 640px) { .vol-grid { grid-template-columns: 1fr; } }

/* Printables */
.print-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-6); margin-top: var(--space-8); }
.print-card { background: var(--color-surface, #fff); border: 1px solid var(--color-border, #e6dccb); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 6px 24px rgba(40,30,10,.07); }
.print-card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; }
.print-body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.print-body h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); }
.print-body p { color: var(--color-text-muted, #5b5550); }
.print-body .btn { align-self: flex-start; margin-top: auto; }
.tag { align-self: flex-start; font-size: var(--text-xs, .8rem); font-weight: 600; padding: .25em .75em; border-radius: 999px; background: oklch(0.93 0.05 80); color: oklch(0.38 0.08 70); }
.tag-free { background: #e3f1e4; color: #1f5e23; }
.shop-list a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
