/* ================================
   CRITICAL CSS - Corey's Bookshop Homepage
   Consolidated: colors + typography + effects + theme-base + book-covers + index
   Single render-blocking file for minimal HTTP requests
   ================================ */

/* ================================
   COLOR TOKENS
   ================================ */

:root {
  --color-parchment: #F5F0E8;
  --color-old-paper: #E8DCB8;
  --color-warm-white: #FFFDF8;
  --color-deep-ink: #2C2418;
  --color-faded-ink: #5C4D3C;
  --color-gilded: #B8860B;
  --color-leather: #6B3A2A;
  --color-moorland: #4A5D4A;
  --color-bookshelf: #3B2F25;
  --color-dustjacket: #8C8078;

  --color-burgundy-deep: #2E1118;
  --color-burgundy-dark: #4A1C28;
  --color-burgundy-mid: #6B2D3C;
  --color-burgundy-light: #7D3A4A;
  --color-green-deep: #0F2318;
  --color-green-dark: #1C3D2E;
  --color-green-mid: #2D4A3E;
  --color-green-light: #3D5A4E;

  --color-spine-dark: #1A1412;
  --color-spine-mid: #2C2420;
  --color-spine-light: #3D332C;
  --color-desk-dark: #3D2E24;
  --color-desk-mid: #5C4A3A;
  --color-desk-light: #6B5A4A;

  --bg-page: var(--color-parchment);
  --bg-surface: var(--color-warm-white);
  --bg-surface-dark: var(--color-bookshelf);
  --bg-card: var(--color-warm-white);

  --text-primary: var(--color-deep-ink);
  --text-secondary: var(--color-faded-ink);
  --text-muted: #6B5D4D;
  --text-light: var(--color-parchment);
  --text-light-muted: rgba(245, 240, 232, 0.75);
  --text-heading: var(--color-deep-ink);
  --text-faded: rgba(92, 77, 60, 0.25);

  --color-cream-dark: #EDE8DC;

  --page-bg-cover: #F5F0E8;
  --page-bg-1: #F6F1E9;
  --page-bg-2: #F4EEE4;
  --page-bg-3: #F7F2EA;
  --page-bg-4: #F3EDE3;
  --page-bg-5: #F5EFE6;
  --page-bg-6: #F6F0E7;
  --page-bg-7: #F4EDE4;
  --page-bg-8: #F7F1E8;
  --page-bg-9: #F3ECE2;
  --page-bg-10: #F5EEE5;
  --page-bg-11: #F6EFE6;
  --page-bg-12: #F4EDE3;
  --page-bg-13: #F7F0E7;
  --page-bg-14: #F3EBE1;
  --page-bg-15: #F5EDE4;
  --page-bg-back: #F2EAE0;

  --accent-primary: var(--color-gilded);
  --accent-secondary: var(--color-moorland);
  --accent-hover: #9A7209;

  --border-subtle: rgba(139, 128, 120, 0.2);
  --border-medium: rgba(139, 128, 120, 0.35);
  --border-strong: var(--color-dustjacket);
  --border-gold: var(--color-gilded);

  --button-primary-bg: var(--color-leather);
  --button-primary-text: var(--color-warm-white);
  --button-primary-hover: #7D4535;
  --button-secondary-bg: transparent;
  --button-secondary-text: var(--color-leather);
  --button-secondary-border: var(--color-gilded);

  --nav-bg: var(--color-bookshelf);
  --nav-text: var(--color-parchment);
  --nav-text-muted: rgba(245, 240, 232, 0.75);
  --nav-accent: var(--color-gilded);

  --card-bg: var(--color-warm-white);
  --card-border: var(--border-subtle);
  --card-border-hover: var(--color-gilded);
  --card-shadow: rgba(44, 36, 24, 0.1);

  --footer-bg: var(--color-bookshelf);
  --footer-text: var(--color-parchment);
  --footer-text-muted: rgba(245, 240, 232, 0.7);

  --input-bg: var(--color-warm-white);
  --input-border: var(--border-medium);
  --input-border-focus: var(--color-gilded);
  --input-text: var(--color-deep-ink);
  --input-placeholder: var(--color-dustjacket);

  --color-error: #B44444;
  --color-success: var(--color-moorland);
  --color-info: var(--color-gilded);

  --link-color: var(--color-gilded);
  --link-hover: #9A7209;
  --link-visited: var(--color-leather);
}

/* ================================
   TYPOGRAPHY TOKENS
   ================================ */

:root {
  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  --line-height-tight: 1.2;
  --line-height-snug: 1.3;
  --line-height-normal: 1.7;
  --line-height-relaxed: 1.8;

  --letter-spacing-tight: -0.01em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.02em;
  --letter-spacing-wider: 0.04em;

  --text-xs: clamp(0.75rem, 0.7vw + 0.5rem, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8vw + 0.5rem, 1rem);
  --text-base: clamp(1rem, 0.9vw + 0.6rem, 1.125rem);
  --text-lg: clamp(1.1rem, 1vw + 0.7rem, 1.25rem);
  --text-xl: clamp(1.25rem, 1.2vw + 0.8rem, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.5vw + 1rem, 2rem);
  --text-3xl: clamp(1.75rem, 2vw + 1rem, 2.5rem);
  --text-4xl: clamp(2rem, 2.5vw + 1rem, 3rem);
  --text-5xl: clamp(2.5rem, 3vw + 1rem, 3.5rem);
}

/* ================================
   EFFECT TOKENS
   ================================ */

:root {
  --radius-sm: 2px;
  --radius-md: 3px;
  --radius-lg: 4px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(44, 36, 24, 0.08);
  --shadow-md: 0 2px 8px rgba(44, 36, 24, 0.1), 0 1px 3px rgba(44, 36, 24, 0.06);
  --shadow-lg: 0 4px 16px rgba(44, 36, 24, 0.12), 0 2px 6px rgba(44, 36, 24, 0.08);
  --shadow-xl: 0 8px 24px rgba(44, 36, 24, 0.15), 0 4px 12px rgba(44, 36, 24, 0.1);

  --shadow-card: 0 2px 8px rgba(44, 36, 24, 0.1), 0 4px 16px rgba(44, 36, 24, 0.08);
  --shadow-card-hover: 0 4px 12px rgba(44, 36, 24, 0.15), 0 8px 24px rgba(44, 36, 24, 0.1);

  --shadow-book: 2px 2px 8px rgba(44, 36, 24, 0.15), 4px 4px 16px rgba(44, 36, 24, 0.1);
  --shadow-spine: inset -2px 0 4px rgba(0, 0, 0, 0.3), 2px 0 6px rgba(0, 0, 0, 0.2);

  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
  --transition-page: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  --lift-sm: translateY(-2px);
  --lift-md: translateY(-3px);

  --z-base: 1;
  --z-dropdown: 10;
  --z-sticky: 100;
  --z-fixed: 500;
  --z-overlay: 900;
  --z-modal: 1000;

  --spine-width: 22px;
  --page-edge-width: 38px;
  --nav-height: 60px;
  --spine-width-mobile: 16px;
  --page-edge-width-mobile: 28px;

  --focus-ring: 0 0 0 2px var(--color-gilded);
  --focus-ring-offset: 0 0 0 4px var(--color-warm-white);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0.01ms;
    --transition-base: 0.01ms;
    --transition-slow: 0.01ms;
    --transition-page: 0.01ms;
  }
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/libre-baskerville-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Libre Baskerville';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/libre-baskerville-400i-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/libre-baskerville-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ================================
   THEME BASE
   ================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  line-height: var(--line-height-normal);
  color: var(--text-primary);
  background: var(--bg-page);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: var(--line-height-tight);
  font-weight: var(--weight-semibold);
}

h1 { font-size: var(--text-4xl); font-weight: var(--weight-bold); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover { color: var(--link-hover); }

a:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

li { margin-bottom: 0.5rem; }

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

::selection {
  background: var(--color-gilded);
  color: var(--color-warm-white);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-old-paper); }
::-webkit-scrollbar-thumb { background: var(--color-dustjacket); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--color-faded-ink); }

body.page-home { background: var(--color-parchment); }
body.page-inner { background: var(--color-old-paper); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  background: var(--color-bookshelf);
  color: #FFFFFF;
  padding: 8px 16px;
  z-index: 10000;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
  width: 1px;
  height: 1px;
}

.skip-link:focus {
  clip: auto;
  clip-path: none;
  overflow: visible;
  white-space: normal;
  width: auto;
  height: auto;
}

@media (max-width: 768px) {
  html { font-size: 15px; }
}

/* ================================
   BOOK COVERS
   ================================ */

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 10000;
}

.book-cover-burgundy {
  position: relative;
  display: flex;
  z-index: 10;
}

.cover-spine {
  width: var(--spine-width);
  flex-shrink: 0;
  position: relative;
  background: linear-gradient(
    90deg,
    var(--color-spine-dark) 0%,
    var(--color-spine-mid) 40%,
    var(--color-spine-light) 60%,
    var(--color-spine-mid) 80%,
    var(--color-spine-dark) 100%
  );
  box-shadow:
    inset -2px 0 4px rgba(0, 0, 0, 0.4),
    2px 0 6px rgba(0, 0, 0, 0.3);
}

.cover-spine::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0px,
      transparent 2px,
      rgba(0, 0, 0, 0.08) 2px,
      rgba(0, 0, 0, 0.04) 3px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 3px,
      rgba(255, 255, 255, 0.02) 3px,
      rgba(255, 255, 255, 0.02) 4px
    );
}

.cover-spine::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.1;
  mix-blend-mode: overlay;
}

.cover-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cover-surface-burgundy {
  padding: 1rem 2rem;
  position: relative;
  background:
    radial-gradient(
      ellipse 120% 80% at 50% 40%,
      transparent 0%,
      rgba(0, 0, 0, 0.15) 100%
    ),
    radial-gradient(
      ellipse 80% 50% at 50% 20%,
      var(--color-burgundy-light) 0%,
      transparent 60%
    ),
    linear-gradient(
      180deg,
      var(--color-burgundy-dark) 0%,
      var(--color-burgundy-mid) 30%,
      var(--color-burgundy-mid) 60%,
      var(--color-burgundy-dark) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.cover-surface-burgundy::before,
.cover-surface-green::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 1px,
      rgba(0, 0, 0, 0.06) 1px,
      rgba(0, 0, 0, 0.03) 2px,
      transparent 2px,
      transparent 3px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 2px,
      rgba(0, 0, 0, 0.04) 2px,
      rgba(0, 0, 0, 0.02) 3px,
      transparent 3px,
      transparent 5px
    );
  pointer-events: none;
}

.cover-surface-burgundy::after,
.cover-surface-green::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.09;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.cover-edge-bottom {
  height: 8px;
  background: linear-gradient(
    180deg,
    var(--color-burgundy-deep) 0%,
    var(--cover-board) 30%,
    var(--cover-board-light) 50%,
    var(--cover-board) 70%,
    #2A231C 100%
  );
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    0 4px 8px rgba(0, 0, 0, 0.15),
    0 8px 16px rgba(0, 0, 0, 0.1);
}

.book-cover-green {
  position: relative;
  display: flex;
  z-index: 10;
  margin-top: auto;
}

.cover-edge-top {
  height: 8px;
  background: linear-gradient(
    0deg,
    var(--color-green-deep) 0%,
    var(--cover-board) 30%,
    var(--cover-board-light) 50%,
    var(--cover-board) 70%,
    #2A231C 100%
  );
  box-shadow:
    0 -2px 4px rgba(0, 0, 0, 0.15),
    0 -4px 8px rgba(0, 0, 0, 0.1),
    0 -8px 16px rgba(0, 0, 0, 0.05);
}

.cover-surface-green {
  padding: 1.5rem 2rem;
  text-align: center;
  position: relative;
  background:
    radial-gradient(
      ellipse 120% 80% at 50% 60%,
      transparent 0%,
      rgba(0, 0, 0, 0.15) 100%
    ),
    radial-gradient(
      ellipse 80% 50% at 50% 80%,
      var(--color-green-light) 0%,
      transparent 60%
    ),
    linear-gradient(
      0deg,
      var(--color-green-dark) 0%,
      var(--color-green-mid) 30%,
      var(--color-green-mid) 60%,
      var(--color-green-dark) 100%
    );
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(0, 0, 0, 0.1);
}

.page-spine {
  width: var(--spine-width);
  flex-shrink: 0;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 50;
  background: linear-gradient(
    90deg,
    var(--color-spine-dark) 0%,
    var(--color-spine-mid) 40%,
    var(--color-spine-light) 60%,
    var(--color-spine-mid) 80%,
    var(--color-spine-dark) 100%
  );
  box-shadow:
    inset -2px 0 4px rgba(0, 0, 0, 0.4),
    4px 0 12px rgba(0, 0, 0, 0.2);
}

.page-spine::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0px,
      transparent 2px,
      rgba(0, 0, 0, 0.08) 2px,
      rgba(0, 0, 0, 0.04) 3px
    );
}

.page-edges {
  width: var(--page-edge-width);
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 50;
  background: var(--color-parchment);
  box-shadow:
    inset 2px 0 8px rgba(0, 0, 0, 0.08),
    -4px 0 12px rgba(0, 0, 0, 0.05);
  border-right: var(--spine-width) solid var(--color-green-deep);
}

.page-edges::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 16px;
  background: repeating-linear-gradient(
    90deg,
    rgba(60, 50, 40, 0.25) 0px,
    rgba(60, 50, 40, 0.25) 0.5px,
    transparent 0.5px,
    transparent 1.5px,
    rgba(60, 50, 40, 0.18) 1.5px,
    rgba(60, 50, 40, 0.18) 2px,
    transparent 2px,
    transparent 3.5px,
    rgba(60, 50, 40, 0.22) 3.5px,
    rgba(60, 50, 40, 0.22) 4px,
    transparent 4px,
    transparent 6px,
    rgba(60, 50, 40, 0.15) 6px,
    rgba(60, 50, 40, 0.15) 6.5px,
    transparent 6.5px,
    transparent 9px,
    rgba(60, 50, 40, 0.2) 9px,
    rgba(60, 50, 40, 0.2) 9.5px,
    transparent 9.5px,
    transparent 12px,
    rgba(60, 50, 40, 0.12) 12px,
    rgba(60, 50, 40, 0.12) 12.5px,
    transparent 12.5px,
    transparent 16px
  );
}

.page-edges::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 20px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.03) 40%,
    transparent 100%
  );
  pointer-events: none;
}

.page-content-wrapper {
  flex: 1;
  margin-left: var(--spine-width);
  margin-right: var(--page-edge-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
  box-shadow: inset 20px 0 30px -20px rgba(0, 0, 0, 0.1);
}

.quote-top {
  position: fixed;
  left: calc(var(--spine-width) + 2rem);
  right: calc(var(--page-edge-width) + 2rem);
  top: 1rem;
  text-align: center;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--text-sm);
  color: rgba(107, 93, 77, 0.6);
  z-index: 40;
  pointer-events: none;
}

.quote-bottom { display: none; }

:root {
  --cover-board: #3D3028;
  --cover-board-light: #5A4D40;
}

.page-home .page-edges,
.page-visit .page-edges { display: none; }

.page-home .page-spine { display: none; }

.page-home .page-content-wrapper,
.page-visit .page-content-wrapper { margin-right: 0; }

@media (max-width: 768px) {
  :root {
    --spine-width: 8px;
    --page-edge-width: 28px;
  }

  .cover-surface-burgundy,
  .cover-surface-green { padding: 1rem 1.5rem; }

  .quote-top,
  .quote-bottom { display: none; }
}

/* ================================
   INDEX PAGE
   ================================ */

.page-home {
  background: var(--color-parchment);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-home::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 70% at 50% 50%,
      transparent 0%,
      transparent 40%,
      rgba(44, 36, 24, 0.15) 60%,
      rgba(44, 36, 24, 0.30) 80%,
      rgba(44, 36, 24, 0.45) 100%
    );
  pointer-events: none;
  z-index: 1;
}

.nav-on-cover {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--text-light-muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: color 0.2s ease;
}

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

.nav-logo-space {
  width: 220px;
  text-align: center;
  flex-shrink: 0;
}

.mobile-nav-icons {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
  z-index: 1;
}

.nav-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-icon:hover { color: var(--text-light); }

.nav-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.sticky-title {
  position: sticky;
  top: 0;
  z-index: 201;
  text-align: center;
  padding: 3rem 2rem 2rem;
  pointer-events: none;
}

.sticky-title h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  display: inline-block;
  pointer-events: auto;
  letter-spacing: 0.02em;
  transition: font-size 0.3s ease, letter-spacing 0.3s ease;
}

.sticky-title.stuck { padding: 0.75rem 2rem; }
.sticky-title.stuck h1 { font-size: 1.4rem; letter-spacing: 0.01em; }

.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  background: transparent;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.sticky-nav.scrolled {
  background-color: var(--color-parchment);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  pointer-events: auto;
  opacity: 1;
}

.sticky-nav-content {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: auto;
}

.sticky-nav .nav-links a {
  color: var(--text-muted);
  text-shadow: none;
}

.sticky-nav .nav-links a:hover { color: var(--color-burgundy-mid); }

.sticky-mobile-icons {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.sticky-nav .sticky-mobile-icons .nav-icon { color: var(--text-muted); }
.sticky-nav .sticky-mobile-icons .nav-icon:hover { color: var(--color-burgundy-mid); }

.desk-content {
  flex: 1;
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  padding: 4rem 2rem;
  gap: 5rem;
}

.hero {
  background: #f5f5f5;
  max-width: 100%;
  width: 100%;
  padding: 3rem 2rem;
  margin: 0 auto;
}

.hero-content {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.tagline {
  font-style: italic;
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 1.25rem;
  margin: 0 0 1.5rem;
  text-align: left;
}

.hero-text .story-text { text-align: left; }

.shop-image-container {
  position: relative;
  width: 45%;
  flex-shrink: 0;
}

.shop-image {
  width: 100%;
  height: auto;
  display: block;
}

.hero .literary-quote {
  max-width: 900px;
  margin: 2.5rem auto 0;
  text-align: center;
}

.story-hook {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
}

.literary-quote {
  position: relative;
  margin: 0 0 2.5rem;
  padding: 1rem 2rem;
}

.literary-quote p {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0;
}

.quote-mark {
  font-family: 'Times New Roman', Times, serif;
  font-size: 5rem;
  font-weight: 700;
  color: var(--color-gilded);
  opacity: 0.5;
  line-height: 1;
  position: absolute;
}

.quote-mark.open { top: -0.25rem; left: -0.75rem; }
.quote-mark.close { bottom: -1rem; right: -0.75rem; }

.literary-quote cite {
  display: block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-style: normal;
  color: var(--text-muted);
  margin-top: 1rem;
}

.story-text { text-align: left; }

.story-text p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.story-text p:first-child {
  font-size: 1.15rem;
  color: var(--text-primary);
}

.story-cta {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-leather);
  text-decoration: none;
  border-bottom: 2px solid var(--color-gilded);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.story-cta:hover {
  color: var(--color-gilded);
  border-color: var(--color-leather);
}

.atmosphere-image {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.atmosphere-image img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.1);
}

.curator-section {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.curator-header {
  text-align: center;
  margin-bottom: 2rem;
}

.curator-header h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 0.25rem;
}

.curator-subtitle {
  font-style: italic;
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
}

.curator-pick {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  align-items: start;
  background: rgba(245, 240, 232, 0.7);
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.curator-book-image img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  box-shadow:
    2px 2px 8px rgba(0, 0, 0, 0.15),
    4px 4px 16px rgba(0, 0, 0, 0.1);
}

.curator-book-details h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 0.25rem;
}

.curator-author {
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 1.25rem;
}

.curator-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 1rem;
}

.curator-note {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
  padding-left: 1rem;
  border-left: 3px solid var(--color-gilded);
  margin: 0 0 1.5rem;
}

.btn-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-leather);
  text-decoration: none;
  border-bottom: 2px solid var(--color-gilded);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.btn-text:hover {
  color: var(--color-gilded);
  border-color: var(--color-leather);
}

.featured-section {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.featured-section h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 0.25rem;
}

.section-intro {
  font-style: italic;
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0 0 2rem;
}

.featured-books {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.featured-book {
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: transform 0.2s ease;
}

.featured-book:hover { transform: translateY(-4px); }

.featured-book img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  margin-bottom: 0.75rem;
  box-shadow:
    2px 2px 8px rgba(0, 0, 0, 0.15),
    4px 4px 16px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
}

.featured-book:hover img {
  box-shadow:
    4px 4px 12px rgba(0, 0, 0, 0.2),
    6px 6px 24px rgba(0, 0, 0, 0.15);
}

.featured-book h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 0.25rem;
}

.featured-book .author {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.featured-category {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--color-leather);
  background: rgba(139, 90, 43, 0.1);
  padding: 0.25rem 0.5rem;
  letter-spacing: 0.02em;
}

.featured-cta { margin-top: 1rem; }

.btn-primary {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-warm-white);
  background: var(--color-leather);
  border: 2px solid var(--color-leather);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--color-bookshelf);
  border-color: var(--color-bookshelf);
}

.gateway-section {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.gateway-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.gateway-header h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 0.75rem;
}

.gateway-subtitle {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
}

.gateway-books {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.gateway-book {
  background: rgba(245, 240, 232, 0.7);
  padding: 1.75rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.gateway-quote {
  margin: 0 0 1.25rem;
  padding: 0;
  flex: 1;
}

.gateway-quote p {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0;
  position: relative;
  padding-left: 1.5rem;
}

.gateway-quote p::before {
  content: '\201C';
  font-family: 'Times New Roman', Times, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-gilded);
  opacity: 0.6;
  position: absolute;
  left: -0.25rem;
  top: -0.5rem;
  line-height: 1;
}

.gateway-book-info h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 0.25rem;
}

.gateway-author {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

.gateway-leads {
  font-size: 0.85rem;
  color: var(--color-leather);
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(139, 90, 43, 0.2);
}

.gateway-message {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.gateway-message p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 1rem;
}

.home-sections-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  padding-bottom: 2rem;
}

.section-separator {
  text-align: center;
  margin: 3rem 0;
  position: relative;
}

.section-separator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--color-gilded),
    transparent
  );
  opacity: 0.4;
}

.section-separator-icon {
  position: relative;
  display: inline-block;
  padding: 0 1rem;
  background: var(--color-parchment);
  color: var(--color-gilded);
  font-size: 1rem;
}

.home-sections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.home-section {
  background: var(--color-parchment);
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.1),
    0 4px 16px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-section:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.1);
}

.home-section h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.home-section p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.section-link {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-leather);
  transition: color 0.2s ease;
}

.home-section:hover .section-link { color: var(--color-gilded); }

.reading-area-section {
  position: relative;
  width: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.reading-area-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.reading-area-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(44, 36, 24, 0.5) 0%,
    rgba(44, 36, 24, 0.65) 100%
  );
}

.reading-area-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 500px;
  padding: 3rem 2rem;
}

.reading-area-content h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--text-light);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.reading-area-content p {
  font-size: 1rem;
  color: var(--text-light-muted);
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.reading-area-content .mailing-list-form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.reading-area-content .form-input {
  flex: 1;
  max-width: 250px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}

.reading-area-content .form-input::placeholder { color: var(--text-muted); }

.footer-content {
  position: relative;
  z-index: 1;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.footer-nav a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--text-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: color 0.2s ease;
}

.footer-nav a:hover { color: var(--color-gilded); }

.footer-divider {
  color: rgba(245, 241, 232, 0.3);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.4em;
}

.copyright {
  font-size: 0.75rem;
  color: var(--text-light-muted);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.copyright .shop-name {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-light);
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 299;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--color-parchment);
  z-index: 300;
  padding: 4rem 2rem 2rem;
  transition: right 0.3s ease;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
}

.mobile-menu.open { right: 0; }

.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
}

.mobile-menu-close svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.5;
}

.mobile-menu-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu-links li { margin-bottom: 1.25rem; }

.mobile-menu-links a {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-primary);
  text-decoration: none;
}

.mobile-menu-links a:hover { color: var(--color-burgundy-mid); }

.btn-light {
  background: var(--color-warm-white);
  color: var(--color-bookshelf);
  border: 2px solid var(--color-warm-white);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-light:hover {
  background: var(--color-parchment);
  border-color: var(--color-parchment);
}

@media (max-width: 768px) {
  .nav-links,
  .nav-logo-space { display: none; }

  .mobile-nav-icons { display: flex; }

  .sticky-title { padding: 2rem 1rem 1.5rem; }
  .sticky-title.stuck { padding: 0.5rem 1rem; }
  .sticky-title h1 { font-size: 2.2rem; }
  .sticky-title.stuck h1 { font-size: 1.15rem; }

  .desk-content {
    padding: 2rem 1.5rem;
    gap: 3rem;
  }

  .home-sections {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .section-separator { margin: 2rem 0; }

  .hero { padding: 2rem 1.5rem; }

  .hero-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  .shop-image-container {
    width: 100%;
    order: -1;
  }

  .tagline { text-align: center; }

  .literary-quote { padding: 0.5rem 1.5rem; }
  .literary-quote p { font-size: 1.25rem; }
  .quote-mark { font-size: 3.5rem; }
  .quote-mark.open { left: -0.25rem; top: 0; }
  .quote-mark.close { right: -0.25rem; bottom: -0.75rem; }

  .story-text p { font-size: 1rem; }
  .story-text p:first-child { font-size: 1.05rem; }

  .curator-pick {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .curator-book-image {
    max-width: 180px;
    margin: 0 auto;
  }

  .curator-book-details { text-align: center; }
  .curator-note { text-align: left; }

  .featured-books {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .featured-book h3 { font-size: 1rem; }

  .reading-area-section { min-height: 350px; }
  .reading-area-content { padding: 2rem 1.5rem; }

  .reading-area-content .mailing-list-form {
    flex-direction: column;
    align-items: center;
  }

  .reading-area-content .form-input {
    max-width: 100%;
    width: 100%;
  }

  .footer-nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  .sticky-nav {
    height: 50px;
    padding: 0 1rem;
  }

  .sticky-nav .nav-links,
  .sticky-nav .nav-logo-space { display: none; }

  .sticky-mobile-icons { display: flex; }

  .gateway-books {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .gateway-book { padding: 1.5rem; }
  .gateway-quote p { font-size: 1rem; }
}
