/* ==========================================================================
   MĂNÂNCĂ! - Mihai Ivașcu
   Bespoke Editorial & Theatrical Monograph Architecture
   Synthesis: Tactile Munken Monograph + Nude Paper Canvas + Candied Cherry Red
   Bespoke Typography: Cormorant Garamond + Plus Jakarta Sans + Caveat + JetBrains Mono
   Strict Anti-Slop: Zero AI generic cards, zero em-dashes, 100% authentic to the book
   ========================================================================== */

/* -------------------- 1. DESIGN TOKENS & SYSTEM -------------------- */
:root {
  /* Paper-like (Nude) Atmosphere & Monograph Canvas */
  --bg-stage: #F5EFEB;
  --bg-stage-deep: #EDE6DE;
  --bg-stage-subtle: #FAF6F0;
  --bg-stage-elevation: #E8E1D6;

  /* Tactile Munken Print Cream Paper (Arctic Paper Suedia) */
  --bg-paper: #FFFDF9;
  --bg-paper-pure: #FAF7F0;
  --bg-paper-aged: #EFEBE0;
  --bg-paper-spine: #E5DFD1;

  /* Typographic Inks (Rich Charcoal & Archival Inks) */
  --ink-light: #181614;
  --ink-light-muted: #5A544A;
  --ink-light-dim: #7E776D;
  
  --ink-dark: #181614;
  --ink-dark-soft: #383430;
  --ink-dark-muted: #5A544A;

  /* Candied Cherry Accent (From the cover cherries) */
  --color-cherry: #96281B;
  --color-cherry-hover: #7E1E14;
  --color-cherry-glow: rgba(150, 40, 27, 0.22);
  --color-cherry-subtle: rgba(150, 40, 27, 0.08);

  /* Fountain Pen Ink for Handwritten Notes & Inscriptions */
  --color-pen-blue: #1D3557;
  --color-pen-blue-light: #2A4D7C;

  /* Archival Gold / Seal */
  --color-gold: #9B7829;
  --color-gold-tint: rgba(155, 120, 41, 0.12);

  /* Hairlines & Grid Dividers */
  --rule-stage: rgba(24, 22, 20, 0.09);
  --rule-stage-strong: rgba(24, 22, 20, 0.18);
  --rule-paper: rgba(24, 22, 20, 0.08);
  --rule-paper-strong: rgba(24, 22, 20, 0.18);

  /* Typographic Font Families */
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-hand: 'Caveat', cursive, serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spatial Scales */
  --header-height: 74px;
  --shell-width: min(1280px, calc(100vw - 48px));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* -------------------- 2. RESET & BASE -------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  background-color: var(--bg-stage);
}

section[id],
.hero-theatrical,
.section-spread,
.section-edition,
.section-author,
.section-checkout {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

body {
  background-color: var(--bg-stage);
  color: var(--ink-light);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font: inherit;
  color: inherit;
}

.shell {
  width: var(--shell-width);
  margin-inline: auto;
}

/* -------------------- 3. BUTTONS & CONTROLS -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 13px 28px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.22s var(--ease), background-color 0.22s, border-color 0.22s, color 0.22s, box-shadow 0.22s;
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.99);
}

.btn--cherry {
  background-color: var(--color-cherry);
  border-color: var(--color-cherry);
  color: #FFFFFF;
  box-shadow: 0 4px 18px var(--color-cherry-glow);
}

.btn--cherry:hover {
  background-color: var(--color-cherry-hover);
  border-color: var(--color-cherry-hover);
  box-shadow: 0 6px 24px rgba(150, 40, 27, 0.35);
}

.btn--ghost {
  background-color: #FAF6F0;
  border-color: rgba(24, 22, 20, 0.18);
  color: var(--ink-light);
  box-shadow: 0 2px 8px rgba(24, 22, 20, 0.04);
}

.btn--ghost:hover {
  border-color: rgba(24, 22, 20, 0.35);
  background-color: #EDE6DE;
  color: var(--ink-light);
}

.btn--header {
  min-height: 42px;
  padding: 8px 18px;
  font-size: 0.78rem;
  border-radius: 999px;
  background-color: var(--color-cherry);
  border-color: var(--color-cherry);
  color: #FFFFFF;
}

.btn--header:hover {
  background-color: var(--color-cherry-hover);
  border-color: var(--color-cherry-hover);
}

.btn--large {
  min-height: 58px;
  padding-inline: 34px;
  font-size: 0.92rem;
}

.btn--full {
  width: 100%;
}

.header-price-tag {
  background-color: rgba(0, 0, 0, 0.18);
  padding: 2px 7px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.arrow-symbol {
  font-size: 1.1rem;
  transition: transform 0.2s;
}

.btn:hover .arrow-symbol {
  transform: translateY(2px);
}

/* -------------------- 4. BESPOKE EDITORIAL HEADER -------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: var(--header-height);
  background: rgba(245, 239, 235, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule-stage);
  z-index: 100;
  transition: background-color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.site-header.is-scrolled {
  background: rgba(245, 239, 235, 0.98);
  border-bottom-color: rgba(24, 22, 20, 0.12);
  box-shadow: 0 4px 20px rgba(24, 22, 20, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.brand-author {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.brand-slash {
  color: var(--ink-light-dim);
  font-size: 0.85rem;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-cherry);
}

.brand-tagline {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--ink-light-muted);
  border-left: 1px solid var(--rule-stage);
  padding-left: 8px;
  margin-left: 2px;
}

@media (min-width: 900px) {
  .brand-tagline {
    display: inline-block;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 36px);
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-light-muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--ink-light);
}

/* -------------------- 5. SECTION 1: HERO THEATRICAL & MONOGRAPH -------------------- */
.hero-theatrical {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--header-height) + 50px);
  padding-bottom: clamp(60px, 8vw, 100px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--bg-stage);
  background-image: radial-gradient(circle at 75% 40%, rgba(150, 40, 27, 0.08) 0%, transparent 60%);
}

.hero-bg-stage {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.5) 0%, transparent 40%),
    linear-gradient(to bottom, transparent 60%, rgba(237, 230, 222, 0.5) 100%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  position: relative;
  z-index: 10;
}

.curatorial-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light-muted);
  margin-bottom: 22px;
}

.badge-dot {
  color: var(--color-cherry);
  font-size: 0.6rem;
}

.badge-tag {
  color: var(--color-cherry);
  font-weight: 700;
}

.badge-sep {
  color: var(--rule-stage-strong);
}

.hero-h1 {
  font-family: var(--font-serif);
  font-size: clamp(4.4rem, 9.5vw, 8.8rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: #181614;
  margin-bottom: 12px;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.25;
  color: var(--color-cherry);
  margin-bottom: 6px;
}

.hero-byline {
  font-size: 0.95rem;
  color: var(--ink-light-muted);
  margin-bottom: 22px;
}

.author-name-hero {
  color: #181614;
  font-weight: 600;
}

/* Handwritten Inscription Pill */
.handwritten-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FAF6F0;
  border: 1px dashed rgba(24, 22, 20, 0.2);
  border-radius: 4px;
  padding: 8px 16px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(24, 22, 20, 0.04);
  transform: rotate(-0.5deg);
  transition: transform 0.2s var(--ease), border-color 0.2s;
}

.handwritten-hero-pill:hover {
  transform: rotate(0deg) scale(1.01);
  border-color: rgba(24, 22, 20, 0.4);
}

.note-quote {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--color-pen-blue);
}

.note-signature {
  font-family: var(--font-hand);
  font-size: 1.15rem;
  color: var(--color-cherry);
  font-weight: 700;
}

.hero-argument {
  font-size: clamp(1.02rem, 1.25vw, 1.15rem);
  line-height: 1.7;
  color: #443E38;
  max-width: 580px;
  margin-bottom: 34px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 38px;
}

.hero-specs-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-stage);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-light-muted);
}

.spec-node {
  display: inline-flex;
  gap: 6px;
}

.spec-title {
  color: var(--ink-light-dim);
}

.spec-detail {
  color: #181614;
  font-weight: 600;
}

.spec-pipe {
  color: var(--rule-stage);
}

/* Real Physical Hardcover Book Showcase in Hero */
.hero-book-col {
  display: flex;
  justify-content: center;
}

.book-pedestal {
  position: relative;
  width: min(420px, 88vw);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.book-ambient-halo {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130%;
  height: 120%;
  background: radial-gradient(circle, rgba(150, 40, 27, 0.14) 0%, transparent 68%);
  filter: blur(55px);
  pointer-events: none;
  z-index: 0;
}

.book-360-wrapper {
  position: relative;
  width: 100%;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  transition: transform 0.35s var(--ease);
  z-index: 1;
}

.book-360-wrapper:active {
  cursor: grabbing;
}

.book-360-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 750 / 950;
  filter: drop-shadow(0 20px 32px rgba(28, 20, 14, 0.26)) drop-shadow(0 4px 10px rgba(28, 20, 14, 0.14));
  transition: filter 0.3s var(--ease);
}

.book-360-wrapper:hover .book-360-canvas {
  filter: drop-shadow(0 26px 42px rgba(28, 20, 14, 0.32)) drop-shadow(0 6px 14px rgba(28, 20, 14, 0.18));
}

.book-fallback-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 750 / 950;
  object-fit: contain;
}

/* Realistic Ground Contact Shadow on the warm paper surface */
.book-ground-shadow {
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  width: 72%;
  height: 24px;
  background: radial-gradient(ellipse at center, rgba(35, 24, 16, 0.38) 0%, rgba(35, 24, 16, 0.14) 55%, transparent 80%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

/* Floating interactive cue badge */
.turntable-drag-badge {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(245, 239, 235, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(24, 22, 20, 0.14);
  border-radius: 999px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-light);
  box-shadow: 0 4px 14px rgba(24, 20, 16, 0.12);
  pointer-events: none;
  opacity: 0.92;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  white-space: nowrap;
  z-index: 2;
}

.turntable-drag-badge .badge-icon {
  font-size: 0.85rem;
  color: var(--cherry-light);
  display: inline-block;
  animation: spinSlow 8s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.book-360-wrapper.is-dragging .turntable-drag-badge {
  opacity: 0.25;
  transform: translateX(-50%) scale(0.95);
}

/* Play/Pause toggle */
.turntable-play-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(245, 239, 235, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(24, 22, 20, 0.15);
  color: var(--ink-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(24, 20, 16, 0.1);
  transition: all 0.2s var(--ease);
  z-index: 3;
}

.turntable-play-toggle:hover {
  background: #FFFFFF;
  transform: scale(1.08);
  border-color: var(--cherry-light);
  color: var(--cherry-light);
}

/* Multi-angle physical showcase switcher */
.book-angles-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  position: relative;
  z-index: 2;
}

.angle-btn {
  background: #FAF6F0;
  border: 1px solid rgba(24, 22, 20, 0.14);
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-light-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s var(--ease);
}

.angle-btn .btn-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFFFFF;
  margin-right: 6px;
  animation: pulseDot 1.8s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

.angle-btn:hover {
  border-color: rgba(24, 22, 20, 0.35);
  color: #181614;
  background: #EDE6DE;
}

.angle-btn.active {
  background: var(--color-cherry);
  border-color: var(--color-cherry);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(150, 40, 27, 0.25);
}

/* -------------------- 6. SECTION 2: OPEN BOOK SPREAD ON MUNKEN PAPER -------------------- */
.section-spread {
  padding: clamp(80px, 9vw, 130px) 0;
  background-color: #EDE6DE;
  border-top: 1px solid var(--rule-stage);
  border-bottom: 1px solid var(--rule-stage);
}

.spread-intro-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.section-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.eyebrow--cherry {
  color: var(--color-cherry);
}

.section-serif-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.05;
  color: #181614;
  letter-spacing: -0.01em;
}

/* Scene Selector Tabs */
.scene-tabs-control {
  display: inline-flex;
  background: #FAF6F0;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(24, 22, 20, 0.12);
  box-shadow: 0 2px 8px rgba(24, 22, 20, 0.04);
}

.scene-tab-btn {
  background: transparent;
  border: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-light-muted);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.scene-tab-btn.active {
  background: var(--color-cherry);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(150, 40, 27, 0.25);
}

/* The Open Munken Book Spread Container */
.munken-spread-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  background-color: var(--bg-paper);
  color: var(--ink-dark);
  border-radius: 6px;
  box-shadow: 
    0 0 0 7px #1A1816,
    0 0 0 8px rgba(155, 120, 41, 0.4),
    0 28px 70px -12px rgba(24, 20, 16, 0.32),
    0 10px 25px -5px rgba(24, 20, 16, 0.16);
  overflow: hidden;
}

/* Realistic Central Sewn Binding Gutter */
.spread-spine-gutter {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 44px;
  transform: translateX(-50%);
  background: linear-gradient(to right, 
    rgba(24, 22, 20, 0.05) 0%, 
    rgba(24, 22, 20, 0.2) 48%, 
    rgba(24, 22, 20, 0.28) 50%, 
    rgba(24, 22, 20, 0.2) 52%, 
    rgba(24, 22, 20, 0.05) 100%
  );
  pointer-events: none;
  z-index: 5;
}

.gutter-thread-stitch {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background-image: repeating-linear-gradient(to bottom, rgba(24, 22, 20, 0.4) 0px, rgba(24, 22, 20, 0.4) 6px, transparent 6px, transparent 12px);
}

.spread-page {
  padding: clamp(34px, 4.5vw, 60px) clamp(30px, 4.5vw, 56px);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.spread-page--left {
  background: linear-gradient(to right, #FAF7F0 0%, #FAF6EE 90%, #EDE7DC 100%);
  border-right: 1px solid rgba(24, 22, 20, 0.08);
}

.spread-page--right {
  background: linear-gradient(to left, #FFFDF8 0%, #FAF7F0 90%, #EDE7DC 100%);
  border-left: 1px solid rgba(24, 22, 20, 0.08);
}

.page-top-folio,
.page-bottom-folio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--ink-dark-muted);
}

.page-top-folio {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule-paper);
  margin-bottom: 24px;
}

.page-bottom-folio {
  padding-top: 18px;
  border-top: 1px solid var(--rule-paper);
  margin-top: 32px;
}

/* Scene Panes Switcher */
.scene-content-pane {
  display: none;
}

.scene-content-pane.active {
  display: block;
}

.scene-heading-box {
  margin-bottom: 20px;
}

.scene-act-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-cherry);
}

.scene-h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink-dark);
  margin-top: 4px;
  margin-bottom: 8px;
}

.scene-stage-direction {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-dark-muted);
  border-left: 2px solid rgba(150, 40, 27, 0.35);
  padding-left: 12px;
}

.scene-stage-mid {
  margin: 16px 0;
}

/* Script Dialogue Flow */
.script-lines-flow {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.98rem;
  line-height: 1.6;
}

.script-cue {
  display: grid;
  grid-template-columns: 85px 1fr;
  gap: 12px;
  align-items: baseline;
}

.char-id {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-cherry);
}

.char-line {
  color: var(--ink-dark);
}

/* Monologue Dropcap */
.monologue-drop {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-dark);
}

.drop-letter {
  float: left;
  font-family: var(--font-serif);
  font-size: 3.4rem;
  line-height: 0.8;
  padding-top: 4px;
  padding-right: 8px;
  font-weight: 700;
  color: var(--color-cherry);
}

/* Authentic Handwritten Director Marginalia */
.director-marginalia {
  margin-top: 24px;
  padding: 12px 16px;
  background: rgba(29, 53, 87, 0.05);
  border-left: 3px solid var(--color-pen-blue);
  border-radius: 0 4px 4px 0;
  transform: rotate(-0.3deg);
}

.director-marginalia--right {
  margin-top: 22px;
  transform: rotate(0.4deg);
  background: rgba(29, 53, 87, 0.04);
}

.handwritten-text {
  display: block;
  font-family: var(--font-hand);
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--color-pen-blue);
}

.handwritten-author {
  display: block;
  font-family: var(--font-hand);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-pen-blue-light);
  margin-top: 4px;
}

/* Spread Script Footnote */
.spread-script-footnote {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px dashed var(--rule-paper-strong);
}

.footnote-mark {
  color: var(--color-cherry);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.footnote-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.4;
  color: var(--ink-dark-soft);
}

/* -------------------- 7. SECTION 3: MATERIALITATE MUNKEN -------------------- */
.section-edition {
  padding: clamp(80px, 9vw, 130px) 0;
  background-color: var(--bg-stage);
  border-top: 1px solid var(--rule-stage);
}

.edition-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.still-photo-wrap {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 45px -10px rgba(24, 20, 16, 0.22);
}

.still-photo-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.still-photo-wrap:hover .still-photo-image {
  transform: scale(1.02);
}

.photo-badge-archival {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(250, 246, 240, 0.94);
  backdrop-filter: blur(10px);
  padding: 6px 12px;
  border-radius: 2px;
  border: 1px solid rgba(24, 22, 20, 0.12);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: #181614;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.archival-dot {
  color: var(--color-cherry);
  font-size: 0.55rem;
}

.edition-editorial-prose {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 26px;
}

.edition-editorial-prose p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #443E38;
}

.endorsement-theatrical {
  padding: 20px 24px;
  background: #FAF6F0;
  border-left: 3px solid var(--color-cherry);
  border-top: 1px solid var(--rule-stage);
  border-right: 1px solid var(--rule-stage);
  border-bottom: 1px solid var(--rule-stage);
  border-radius: 0 4px 4px 0;
  margin-bottom: 28px;
}

.endorsement-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
  color: #181614;
  margin-bottom: 10px;
}

.endorsement-author-line {
  font-size: 0.85rem;
  color: var(--ink-light-muted);
}

/* -------------------- 8. SECTION 4: DESPRE AUTOR (TRIPTYCH & BIOGRAFIE) -------------------- */
.section-author {
  padding: clamp(80px, 9vw, 130px) 0;
  background-color: #EDE6DE;
  border-top: 1px solid var(--rule-stage);
}

/* Reconstructed 3-Image Author Gallery (Triptych) */
.author-triptych-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 30px);
  margin-bottom: clamp(36px, 5vw, 54px);
}

.triptych-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 16px 36px -8px rgba(24, 20, 16, 0.18);
  border: 1px solid rgba(24, 22, 20, 0.08);
  background: #FAF6F0;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.triptych-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -8px rgba(24, 20, 16, 0.24);
}

.triptych-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.author-bio-editorial {
  max-width: 820px;
  margin: 0 auto;
}

.author-prose {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #3A3530;
  margin-bottom: 28px;
}

.author-prose em {
  font-style: italic;
}

.author-prose .bio-book-title {
  font-style: italic;
  display: inline-block;
  margin-right: 0.28em;
}

.author-press-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 0;
  border-top: 1px solid var(--rule-stage);
  border-bottom: 1px solid var(--rule-stage);
  margin-bottom: 26px;
}

.press-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-light-dim);
  text-transform: uppercase;
}

.press-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.press-tags span {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  background: #FAF6F0;
  border: 1px solid rgba(24, 22, 20, 0.12);
  border-radius: 2px;
  color: #2C2824;
}

.author-direct-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
}

.c-k {
  color: var(--ink-light-dim);
}

.c-v {
  color: #181614;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.c-v:hover {
  color: var(--color-cherry);
}

/* -------------------- 9. SECTION 5: DIRECT ORDER (FIȘĂ PRINCEPS) -------------------- */
.section-checkout {
  padding: clamp(80px, 9vw, 130px) 0;
  background-color: var(--bg-stage);
  border-top: 1px solid var(--rule-stage);
}

.checkout-header-bar {
  margin-bottom: 38px;
}

.checkout-header-bar--centered {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 36px;
}

.checkout-header-sub {
  font-size: 0.96rem;
  color: var(--ink-light-muted);
  margin-top: 8px;
  line-height: 1.55;
}

.checkout-main-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(34px, 5vw, 68px);
  align-items: start;
}

.checkout-main-grid--centered {
  display: block;
  max-width: 620px;
  margin: 0 auto;
}

/* Guarantees List */
.checkout-guarantees-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guarantee-card {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  padding: 18px 20px;
  background: #FAF6F0;
  border: 1px solid rgba(24, 22, 20, 0.1);
  border-radius: 4px;
}

.guarantee-card--accent {
  border-color: rgba(150, 40, 27, 0.25);
  background: rgba(150, 40, 27, 0.05);
}

.g-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-cherry);
}

.g-h {
  font-size: 0.95rem;
  font-weight: 600;
  color: #181614;
  margin-bottom: 4px;
}

.g-p {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--ink-light-muted);
}

/* The Order Form Surface */
.checkout-form-surface {
  background: #FAF7F2;
  border: 1px solid rgba(24, 22, 20, 0.14);
  border-radius: 6px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 24px 50px -12px rgba(24, 20, 16, 0.14);
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row-config {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule-stage);
}

.field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-light-muted);
  margin-bottom: 8px;
}

.qty-pill {
  display: inline-flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid rgba(24, 22, 20, 0.16);
  border-radius: 4px;
  height: 44px;
}

.qty-btn {
  width: 40px;
  height: 100%;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: #181614;
  cursor: pointer;
  transition: background-color 0.2s;
}

.qty-btn:hover {
  background: #F5EFEB;
}

.qty-pill input {
  width: 44px;
  background: transparent;
  border: none;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  color: #181614;
}

.payment-pills {
  display: flex;
  gap: 8px;
}

.pay-option {
  flex: 1;
  position: relative;
  cursor: pointer;
}

.pay-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pay-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 10px;
  background: #FFFFFF;
  border: 1px solid rgba(24, 22, 20, 0.16);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-light-muted);
  transition: all 0.2s;
}

.pay-option input:checked + span {
  background: rgba(150, 40, 27, 0.08);
  border-color: var(--color-cherry);
  color: var(--color-cherry);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-dual-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-input {
  height: 48px;
  background: #FFFFFF;
  border: 1px solid rgba(24, 22, 20, 0.16);
  border-radius: 4px;
  padding: 0 14px;
  font-size: 16px; /* Prevents auto-zoom on iOS Safari */
  color: #181614;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-cherry);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(150, 40, 27, 0.1);
}

select.form-input {
  cursor: pointer;
}

.field-error {
  font-size: 0.74rem;
  color: #C0392B;
  margin-top: 4px;
  min-height: 16px;
}

/* Autograph Section with Live Fountain-Pen Handwriting Preview */
.autograph-section {
  padding: 16px;
  background: rgba(29, 53, 87, 0.04);
  border: 1px dashed rgba(29, 53, 87, 0.35);
  border-radius: 4px;
}

.autograph-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.autograph-checkbox-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-indicator {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(24, 22, 20, 0.25);
  border-radius: 3px;
  background: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.autograph-checkbox-label input:checked ~ .check-indicator {
  background: var(--color-cherry);
  border-color: var(--color-cherry);
}

.autograph-checkbox-label input:checked ~ .check-indicator::after {
  content: '✓';
  font-size: 0.75rem;
  color: #FFFFFF;
  font-weight: 700;
}

.check-text {
  font-size: 0.86rem;
  font-weight: 600;
  color: #181614;
}

.autograph-input-drawer {
  display: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(24, 22, 20, 0.08);
}

.autograph-input-drawer.is-open {
  display: block;
}

.autograph-live-preview {
  margin-top: 14px;
}

.preview-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-light-dim);
  margin-bottom: 6px;
}

.preview-handwriting-card {
  padding: 14px 18px;
  background: #FAF7F0;
  border-radius: 3px;
  border: 1px solid rgba(24, 22, 20, 0.08);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.03);
}

.preview-text {
  font-family: var(--font-hand);
  font-size: 1.45rem;
  line-height: 1.25;
  color: var(--color-pen-blue);
}

.preview-sig {
  display: block;
  font-family: var(--font-hand);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-pen-blue-light);
  margin-top: 4px;
}

/* Order Summary Box */
.order-summary-box {
  padding: 16px;
  background: #F2ECE4;
  border: 1px solid rgba(24, 22, 20, 0.08);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  color: var(--ink-light-muted);
}

.summary-val {
  font-family: var(--font-mono);
  color: #181614;
  font-weight: 600;
}

.summary-total-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 10px;
  border-top: 1px solid rgba(24, 22, 20, 0.12);
  margin-top: 4px;
}

.total-title {
  font-weight: 700;
  color: #181614;
}

.total-number {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-cherry);
}

.btn--submit {
  border-radius: 4px;
  font-size: 0.95rem;
  background-color: var(--color-cherry);
  color: #FFFFFF;
}

.btn--submit:hover {
  background-color: var(--color-cherry-hover);
  box-shadow: 0 6px 24px rgba(150, 40, 27, 0.35);
}

.submit-pill-total {
  background: rgba(0, 0, 0, 0.15);
  padding: 3px 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #FFFFFF;
}

.legal-notice {
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--ink-light-dim);
  text-align: center;
}

/* Success State Pane (Strictly hidden until form submission) */
.order-success-pane {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 0;
}

.order-success-pane.is-active {
  display: flex;
}

.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid #2ECC71;
  color: #27AE60;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.success-title {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  color: #181614;
  margin-bottom: 8px;
}

.success-lead {
  font-size: 0.95rem;
  color: var(--ink-light-muted);
  max-width: 420px;
  margin-bottom: 24px;
}

.success-details-card {
  width: 100%;
  background: #FAF6F0;
  border: 1px solid rgba(24, 22, 20, 0.1);
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 24px;
  text-align: left;
}

.s-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(24, 22, 20, 0.08);
}

.s-detail-row:last-child {
  border-bottom: none;
}

.s-detail-label {
  color: var(--ink-light-dim);
}

.s-detail-val {
  font-family: var(--font-mono);
  color: #181614;
  font-weight: 600;
}

/* -------------------- 10. SITE FOOTER -------------------- */
.site-footer {
  padding: 60px 0 40px;
  background-color: #E8E0D5;
  border-top: 1px solid var(--rule-stage);
  color: var(--ink-light-muted);
  font-size: 0.84rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.footer-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: #181614;
  letter-spacing: 0.04em;
}

.footer-sub {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-light-muted);
  margin-top: 2px;
}

.footer-h {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light-dim);
  margin-bottom: 6px;
}

.footer-col-agency {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.agency-fiscal-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.45;
}

.agency-legal-name {
  color: #181614;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.agency-sub-entity {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-light-dim);
  letter-spacing: 0.02em;
}

.agency-fiscal-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-light-muted);
}

.fiscal-label {
  color: var(--ink-light-dim);
  font-weight: 500;
}

.isbn-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 3px 8px;
  background: rgba(24, 22, 20, 0.05);
  border: 1px solid rgba(24, 22, 20, 0.12);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-obsidian);
  width: fit-content;
}

.isbn-badge strong {
  color: var(--color-cherry);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer-col-watermark {
  display: flex;
  align-items: center;
}

.maybe-svg-wrap {
  display: inline-flex;
  align-items: center;
}

.maybe-svg-wrap svg {
  width: clamp(140px, 16vw, 190px);
  height: auto;
  fill: rgba(24, 22, 20, 0.3);
  transition: fill 0.3s ease, transform 0.3s ease;
}

.maybe-svg-wrap svg:hover {
  fill: rgba(24, 22, 20, 0.8);
  transform: translateY(-1px);
}

/* -------------------- 10. LEGAL & POLICY PAGES & ANPC FOOTER -------------------- */
.page-legal {
  background-color: var(--bg-stage);
  color: var(--ink-light);
}

.legal-main {
  padding-top: calc(var(--header-height) + 32px);
  padding-bottom: clamp(60px, 8vw, 100px);
}

.legal-shell {
  max-width: 860px;
  margin: 0 auto;
}

.legal-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--ink-light-muted);
  margin-bottom: 28px;
}

.legal-breadcrumbs a {
  color: var(--color-cherry);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-article {
  background: #FAF7F0;
  border: 1px solid rgba(24, 22, 20, 0.12);
  border-radius: 6px;
  padding: clamp(28px, 5vw, 56px);
  box-shadow: 0 16px 40px -10px rgba(24, 20, 16, 0.08);
}

.legal-header {
  border-bottom: 1px solid var(--rule-stage);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.legal-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: #181614;
  margin-top: 8px;
  margin-bottom: 10px;
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-light-muted);
}

.legal-section {
  margin-bottom: 32px;
}

.legal-section h2 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: #181614;
  margin-bottom: 12px;
  border-left: 3px solid var(--color-cherry);
  padding-left: 12px;
}

.legal-section p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #3A3530;
  margin-bottom: 14px;
}

.legal-section ul {
  list-style: none;
  margin: 14px 0 18px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-section ul li {
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #3A3530;
}

.legal-section ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--color-cherry);
  font-size: 0.7rem;
  top: 3px;
}

.legal-section a {
  color: var(--color-cherry);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

/* Return Withdrawal Form Card */
.return-form-card {
  background: #FFFDF9;
  border: 1px solid rgba(150, 40, 27, 0.2);
  border-radius: 6px;
  padding: clamp(20px, 4vw, 36px);
  margin-top: 14px;
  box-shadow: 0 8px 24px rgba(150, 40, 27, 0.06);
}

.return-form-intro {
  font-size: 0.95rem;
  color: var(--ink-light-muted);
  margin-bottom: 22px;
}

/* Footer Legal Navigation & ANPC Banners */
.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-legal-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-legal-nav a {
  font-size: 0.82rem;
  color: var(--ink-light-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.footer-legal-nav a:hover,
.footer-legal-nav a.active {
  color: var(--color-cherry);
}

.footer-col-anpc {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.anpc-badges-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.anpc-badge-link {
  display: inline-block;
  transition: transform 0.2s, opacity 0.2s;
}

.anpc-badge-link:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.anpc-badge-link img {
  width: 250px;
  height: 50px;
  object-fit: contain;
  background: transparent;
  display: block;
}

.btn--return-policy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(150, 40, 27, 0.08);
  border: 1px solid rgba(150, 40, 27, 0.25);
  color: var(--color-cherry);
  padding: 8px 14px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 6px;
  transition: all 0.2s;
}

.btn--return-policy:hover {
  background: var(--color-cherry);
  color: #FFFFFF;
  border-color: var(--color-cherry);
}

/* -------------------- 11. RESPONSIVE QUERIES -------------------- */
@media (max-width: 960px) {
  .hero-theatrical {
    min-height: auto;
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 54px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .hero-copy-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-book-col {
    order: 0;
    margin-bottom: 0;
  }

  .book-pedestal {
    width: min(320px, 80vw);
  }

  .hero-h1 {
    font-size: clamp(3.2rem, 14vw, 5rem);
    line-height: 0.95;
    margin-bottom: 12px;
  }

  .hero-subtitle {
    font-size: clamp(1.15rem, 4.2vw, 1.45rem);
    margin-bottom: 8px;
    text-align: center;
  }

  .hero-byline {
    font-size: 0.92rem;
    margin-bottom: 18px;
    text-align: center;
  }

  .hero-argument {
    font-size: 0.98rem;
    line-height: 1.6;
    max-width: 540px;
    margin-bottom: 24px;
    text-align: center;
  }

  .hero-cta-group {
    justify-content: center;
    width: 100%;
    margin-bottom: 0;
  }

  .hero-cta-group .btn {
    width: 100%;
    max-width: 320px;
  }

  /* Munken Reading Spread on Mobile: Seamless Single-Flow Reading */
  .munken-spread-container {
    grid-template-columns: 1fr;
    background: #FAF7F0;
    border-radius: 6px;
    box-shadow: 0 10px 30px -5px rgba(24, 20, 16, 0.2);
  }

  .spread-spine-gutter {
    display: none;
  }

  .spread-page {
    padding: 24px 20px;
    background: transparent;
  }

  .spread-page--left {
    border-right: none;
    border-bottom: 1px dashed rgba(24, 22, 20, 0.15);
    padding-bottom: 24px;
  }

  .spread-page--right {
    border-left: none;
    padding-top: 24px;
  }

  /* Hide duplicate folio header cutting into dialogue on mobile */
  .spread-page--right .page-top-folio {
    display: none;
  }

  .director-marginalia {
    margin: 16px 0;
    width: 100%;
  }

  .edition-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .author-grid {
    grid-template-columns: 1fr;
  }

  /* Author 3-Portrait Triptych on Tablet & Mobile: Always all 3 visible */
  .author-triptych-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 32px;
  }

  .triptych-card {
    border-radius: 4px;
  }

  .checkout-main-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 58px;
    --shell-width: calc(100vw - 32px);
  }

  .site-header {
    height: 58px;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .brand-group {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    overflow: hidden;
  }

  .brand-link {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    max-width: 100%;
  }

  .brand-author {
    font-size: 0.70rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
  }

  .brand-slash {
    font-size: 0.70rem;
    color: var(--ink-light-dim);
  }

  .brand-title {
    font-size: 0.98rem;
    white-space: nowrap;
  }

  .header-cta-wrap {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .btn--header {
    min-height: 32px;
    padding: 5px 12px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(150, 40, 27, 0.25);
  }

  .header-price-tag {
    display: none;
  }

  .nav-links {
    display: none;
  }

  @media (max-width: 370px) {
    .brand-author,
    .brand-slash {
      display: none;
    }
  }

  .hero-h1 {
    font-size: clamp(2.8rem, 13vw, 3.8rem);
  }

  .handwritten-hero-pill {
    padding: 6px 12px;
    margin-bottom: 18px;
  }

  .note-quote {
    font-size: 1.15rem;
  }

  /* Compact 3-portrait row on phone */
  .author-triptych-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 24px;
  }

  .spread-page {
    padding: 20px 14px;
  }

  .checkout-header-bar--centered {
    margin-bottom: 24px;
  }

  .checkout-form-surface {
    padding: 20px 14px;
    border-radius: 6px;
  }

  .form-row-config {
    grid-template-columns: 1fr;
  }

  .form-dual-row {
    grid-template-columns: 1fr;
  }

  .pay-option span {
    height: 46px;
    font-size: 0.78rem;
    padding: 0 6px;
  }

  .btn--submit {
    min-height: 52px;
    font-size: 0.92rem;
  }

  .script-cue {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .char-id {
    color: var(--color-cherry);
  }
}

/* ==================== 14. GDPR COOKIE CONSENT BANNER & MODAL ==================== */
.cookie-banner-wrap {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(94vw, 980px);
  background: #181614;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  color: #F5EFE6;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  z-index: 999999;
  padding: 22px 26px;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.cookie-banner-wrap.is-visible {
  display: block !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1 1 480px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.55;
  color: #DDD6CC;
}

.cookie-banner-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 700;
  color: #FFFDF9;
  margin-bottom: 6px;
}

.cookie-banner-title .cookie-emoji {
  font-size: 1.15rem;
}

.cookie-banner-text p {
  margin: 0;
}

.cookie-banner-text a {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.cookie-banner-text a:hover {
  color: #FFA599;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: none;
  text-decoration: none;
}

/* Equal prominence per GDPR / EDPB guidelines */
.cookie-btn--reject {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.cookie-btn--reject:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
}

.cookie-btn--customize {
  background: transparent;
  color: #DDD6CC;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.cookie-btn--customize:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.35);
}

.cookie-btn--accept {
  background: var(--color-cherry);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(150, 40, 27, 0.35);
}

.cookie-btn--accept:hover {
  background: var(--color-cherry-hover);
  box-shadow: 0 6px 18px rgba(150, 40, 27, 0.5);
  transform: translateY(-1px);
}

/* Preferences Modal */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 12, 10, 0.74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cookie-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cookie-modal-card {
  background: #1C1A18;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  width: min(94vw, 620px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  color: #F5EFE6;
  overflow: hidden;
  transform: scale(0.96) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-modal-backdrop.is-open .cookie-modal-card {
  transform: scale(1) translateY(0);
}

.cookie-modal-header {
  padding: 22px 26px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cookie-modal-title {
  font-family: var(--font-sans);
  font-size: 1.18rem;
  font-weight: 700;
  color: #FFFDF9;
  margin: 0 0 4px;
}

.cookie-modal-subtitle {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: #B5ACA0;
  margin: 0;
}

.cookie-modal-close {
  background: transparent;
  border: none;
  color: #A8A095;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s;
}

.cookie-modal-close:hover {
  color: #FFFFFF;
}

.cookie-modal-body {
  padding: 20px 26px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cookie-pref-item {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cookie-pref-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cookie-pref-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cookie-pref-name {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: #FFFDF9;
}

.cookie-pref-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #DDD6CC;
  display: inline-block;
  width: fit-content;
}

.cookie-pref-badge--locked {
  background: rgba(150, 40, 27, 0.25);
  color: #FFA599;
  border: 1px solid rgba(150, 40, 27, 0.4);
}

.cookie-pref-desc {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  line-height: 1.5;
  color: #A8A095;
  margin: 0;
}

/* Custom Accessible Toggle Switch */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.16);
  transition: 0.25s;
  border-radius: 24px;
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s;
  border-radius: 50%;
}

.cookie-switch input:checked + .cookie-slider {
  background-color: var(--color-cherry);
}

.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(20px);
}

.cookie-switch input:disabled + .cookie-slider {
  cursor: not-allowed;
  opacity: 0.7;
  background-color: var(--color-cherry);
}

.cookie-modal-footer {
  padding: 16px 26px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

/* Floating Re-open Button (GDPR Right to Withdraw Consent) */
.cookie-floating-badge {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 9990;
  background: rgba(24, 22, 20, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #DDD6CC;
  padding: 7px 13px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
  opacity: 0.85;
}

.cookie-floating-badge:hover {
  opacity: 1;
  color: #FFFFFF;
  background: rgba(24, 22, 20, 0.98);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.cookie-floating-badge .badge-icon {
  font-size: 0.9rem;
}

.btn-link-inline {
  background: transparent;
  border: none;
  color: var(--color-cherry);
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
  display: inline;
}

.btn-link-inline:hover {
  color: var(--color-cherry-hover);
}

/* Mobile Adjustments */
@media (max-width: 640px) {
  .cookie-banner-wrap {
    bottom: max(12px, env(safe-area-inset-bottom, 12px));
    left: 10px;
    right: 10px;
    transform: none;
    width: auto;
    max-width: calc(100vw - 20px);
    border-radius: 12px;
    padding: 16px 14px 14px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75);
  }

  .cookie-banner-wrap.is-visible {
    display: block !important;
  }

  .cookie-banner-content {
    gap: 12px;
  }

  .cookie-banner-text {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .cookie-banner-title {
    font-size: 0.92rem;
    margin-bottom: 4px;
  }

  .cookie-banner-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
  }

  .cookie-btn--accept {
    grid-column: span 2;
    order: -1;
    min-height: 44px;
  }

  .cookie-btn {
    width: 100%;
    min-height: 42px;
    font-size: 0.8rem;
    padding: 8px 10px;
  }

  body.cookie-banner-active .cookie-floating-badge {
    display: none !important;
  }

  .cookie-modal-card {
    max-height: 88vh;
    border-radius: 14px;
  }

  .cookie-modal-body {
    padding: 16px;
    gap: 12px;
  }

  .cookie-pref-item {
    padding: 12px;
  }

  .cookie-modal-footer {
    flex-direction: column;
    padding: 14px 16px;
  }

  .cookie-modal-footer .cookie-btn {
    width: 100%;
    min-height: 44px;
  }

  .cookie-floating-badge {
    bottom: max(12px, env(safe-area-inset-bottom, 12px));
    left: 12px;
    padding: 6px 12px;
    font-size: 0.72rem;
  }
}

body.cookie-modal-open {
  overflow: hidden !important;
}

