/* ============================================
   SELF-HOSTED FONTS
   Downloaded from Google Fonts (SIL OFL license)
   Variable fonts — single file covers multiple weights
   ============================================ */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
  src: url(/fonts/cormorant-garamond-300-italic.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: 300 500;
  font-display: swap;
  src: url(/fonts/cormorant-garamond-300.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: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/inter-400.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: 'Lora';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url(/fonts/lora-400-italic.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: 'Lora';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/lora-400.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;
}

/* ============================================
   LYN GARDNER — HOMEPAGE STYLES
   Mobile-first, semantic, accessible
   ============================================ */

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

:root {
  /* ============================================
     THEME TOKENS — Deep steel blue, sophisticated dark
     ============================================ */
  --bg: #0D1520;
  --bg-2: #1E2B40;
  --surface: rgba(30, 43, 64, 0.72);
  --surface-2: rgba(40, 56, 80, 0.72);
  --text: #E8EDF4;
  --muted: #8B9BB5;
  --border: rgba(232, 237, 244, 0.12);
  --accent: #334663;
  --accent-2: #5A7DA0;
  --accent-hover: #3D5275;
  --gold: #B79A63;

  /* Derived (keep color usage centralized) */
  --panel: rgba(232, 237, 244, 0.08);
  --panel-border: rgba(232, 237, 244, 0.14);
  --text-strong: rgba(232, 237, 244, 0.92);
  --text-soft: rgba(232, 237, 244, 0.72);
  --muted-soft: rgba(139, 155, 181, 0.75);
  --shadow: rgba(0, 0, 0, 0.35);
  --shadow-lg: rgba(0, 0, 0, 0.55);
  --focus-ring: rgba(183, 154, 99, 0.55);
  --focus-glow: rgba(183, 154, 99, 0.18);
  --gold-underline: rgba(183, 154, 99, 0.55);
  --nav-surface: rgba(13, 21, 32, 0.88);
  --nav-mobile-surface: rgba(13, 21, 32, 0.92);
  --overlay-strong: rgba(13, 21, 32, 0.92);
  --overlay-mid: rgba(13, 21, 32, 0.55);
  --accent-soft: rgba(90, 125, 160, 0.14);
  --accent-soft-2: rgba(51, 70, 99, 0.12);
  --page-vignette: radial-gradient(1200px 900px at 50% 50%, rgba(30, 43, 64, 0.38), rgba(13, 21, 32, 0.92));
  --page-wash: radial-gradient(1400px 1000px at 50% 50%, rgba(30, 43, 64, 0.22), transparent 62%);

  /* Back-compat aliases used throughout the site CSS */
  --color-bg: var(--bg);
  --color-bg-alt: var(--bg-2);
  --color-bg-warm: rgba(232, 237, 244, 0.06);
  --color-text: var(--text);
  --color-text-muted: var(--muted);
  --color-text-light: var(--muted-soft);
  --color-accent: var(--accent);
  --color-accent-hover: var(--accent-hover);
  --color-accent-light: var(--accent-2);
  --color-accent-warm: var(--gold);
  --color-border: var(--border);
  --color-white: rgba(13, 21, 32, 0.55);
  --color-shadow: var(--shadow);
  --color-shadow-lg: var(--shadow-lg);
  --color-section-accent: var(--bg-2);
  --color-section-accent-deep: var(--bg);

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Layout */
  --max-width: 1200px;
  --header-height: 64px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-normal: 0.35s var(--ease-out);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background:
    repeating-linear-gradient(
      45deg,
      rgba(232, 237, 244, 0.012) 0,
      rgba(232, 237, 244, 0.012) 1px,
      transparent 1px,
      transparent 6px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(0, 0, 0, 0.04) 0,
      rgba(0, 0, 0, 0.04) 1px,
      transparent 1px,
      transparent 7px
    ),
    var(--page-wash),
    radial-gradient(900px 500px at 15% 10%, rgba(90,125,160,0.22), transparent 60%),
    radial-gradient(700px 450px at 85% 20%, rgba(51,70,99,0.18), transparent 55%),
    radial-gradient(900px 650px at 50% 95%, rgba(183,154,99,0.12), transparent 60%),
    var(--page-vignette),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--accent-2);
  text-decoration: none;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

a:hover {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--gold-underline);
}

.btn:hover,
.btn-pill:hover,
.carousel-btn:hover,
.social-link:hover,
.site-logo:hover,
.nav-list a:hover,
.nav-dropdown a:hover {
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 6px;
}

input[type="text"],
input[type="email"],
input[type="search"],
textarea {
  background: rgba(13, 21, 32, 0.55);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 14px;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="search"]::placeholder,
textarea::placeholder {
  color: var(--muted-soft);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
textarea:focus {
  border-color: rgba(232, 237, 244, 0.22);
  box-shadow: 0 0 0 3px var(--focus-glow);
  outline: none;
}

p,
.section-intro {
  color: var(--muted);
}

/* --- UTILITIES --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Honeypot field — visually hidden but not via display:none (bots detect that) */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.section-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.section-intro {
  color: var(--color-text-muted);
  max-width: 580px;
  margin-bottom: var(--space-lg);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* --- BUTTONS --- */
.btn[hidden] { display: none; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  text-decoration: none;
  line-height: 1.3;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px var(--focus-glow);
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: var(--text);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(180deg, rgba(90, 125, 160, 0.98), var(--accent-hover));
  color: var(--text);
  border-color: rgba(232, 237, 244, 0.22);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: rgba(232, 237, 244, 0.22);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

/* Submit controls without .btn class (no build tools; keep styling consistent) */
button[type="submit"]:not(.btn),
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  cursor: pointer;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: var(--text);
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  line-height: 1.3;
  white-space: nowrap;
}

button[type="submit"]:not(.btn):hover,
input[type="submit"]:hover {
  background: linear-gradient(180deg, rgba(90, 125, 160, 0.98), var(--accent-hover));
  border-color: rgba(232, 237, 244, 0.22);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}

button[type="submit"]:not(.btn):active,
input[type="submit"]:active {
  transform: translateY(1px);
}

button[type="submit"]:not(.btn):focus-visible,
input[type="submit"]:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px var(--focus-glow);
}

.text-link {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.text-link:hover {
  color: var(--text);
  border-bottom-color: var(--gold-underline);
}

/* --- HEADER --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-surface);
  border-bottom: 3px solid;
  border-image: linear-gradient(90deg, var(--gold), var(--accent-2), var(--accent)) 1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: var(--header-height);
  display: flex;
  align-items: center;
}


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

.site-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-logo:hover {
  color: var(--accent-2);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 110;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition-normal), opacity var(--transition-fast);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-list {
  list-style: none;
  position: fixed;
  top: calc(var(--header-height) + 0.6rem);
  right: 1rem;
  width: min(320px, calc(100vw - 2rem));
  height: auto;
  max-height: calc(100dvh - var(--header-height) - 1.2rem);
  background: var(--nav-mobile-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform var(--transition-normal), opacity var(--transition-fast);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nav-list.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-list a,
.nav-dropdown-toggle {
  position: relative;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color var(--transition-fast);
}

.nav-list a:hover,
.nav-dropdown-toggle:hover {
  color: var(--accent-2);
}

.nav-list a::after,
.nav-dropdown-toggle::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--gold-underline);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after,
.nav-dropdown-toggle:hover::after,
.nav-dropdown-toggle:focus-visible::after {
  transform: scaleX(1);
}

/* --- NAV DROPDOWN --- */
.nav-item-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-sans);
}

.dropdown-chevron {
  transition: transform var(--transition-fast);
}

.nav-dropdown-toggle[aria-expanded="true"] .dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown {
  list-style: none;
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem 0 0.5rem 1rem;
}

.nav-dropdown.open {
  display: flex;
}

.nav-dropdown a {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--muted);
  padding: 0.25rem 0;
  display: block;
}

.nav-dropdown a:hover {
  color: var(--accent-2);
}

.nav-dropdown-divider {
  border-top: 1px solid var(--border);
  margin: 0.35rem 0;
}

.nav-dropdown-all {
  font-weight: 500 !important;
  color: var(--accent-2) !important;
}

/* --- MAIN CONTENT AREA --- */
main {
  background: var(--bg-2);
}

/* --- HERO --- */
.hero {
  position: relative;
  padding: var(--space-lg) 0 var(--space-sm);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.hero .about-photo-wrapper {
  flex-shrink: 0;
}

.hero .about-photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 32px var(--color-shadow-lg);
}

.hero-text {
  max-width: 600px;
  text-align: left;
}

.hero-headline {
  margin-bottom: var(--space-sm);
}

.hero-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.15;
  color: var(--color-text);
  letter-spacing: 0.01em;
  margin-bottom: 0.2rem;
}

.hero-subtitle {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(0.75rem, 1.8vw, 0.95rem);
  font-weight: 400;
  color: var(--text-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.65;
  margin-bottom: 0.5rem;
}

.hero-sub:last-of-type {
  margin-bottom: var(--space-md);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: flex-start;
}

@media (max-width: 639px) {
  .hero-text {
    text-align: center;
  }

  .hero-ctas {
    justify-content: center;
  }

}

/* --- BOOKS CAROUSEL --- */
.carousel-wrapper {
  position: relative;
}

.carousel-track-container {
  overflow: hidden;
  width: 100%;
  -webkit-user-select: none;
  user-select: none;
}

.carousel-track {
  position: relative;
  min-height: 340px;
}

.book-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 200px;
  list-style: none;
  transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out);
  will-change: transform, opacity;
}

.book-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.book-cover-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--color-shadow), 0 1px 3px var(--color-shadow);
  aspect-ratio: 2 / 3;
  background: var(--color-bg-warm);
}

.book-card.active .book-cover-wrapper {
  box-shadow: 0 16px 48px var(--color-shadow-lg), 0 4px 12px var(--color-shadow);
}

.book-card.active:hover .book-cover-wrapper,
.book-card.active:focus-within .book-cover-wrapper {
  box-shadow: 0 20px 56px var(--color-shadow-lg), 0 6px 16px var(--color-shadow);
}

.book-cover-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Book overlay on hover/focus — only on active card */
.book-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem;
  background: linear-gradient(to top, var(--overlay-strong) 0%, var(--overlay-mid) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity var(--transition-normal);
  min-height: 50%;
}

.book-card.active:hover .book-overlay,
.book-card.active:focus-within .book-overlay {
  opacity: 1;
}

.book-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.4rem;
}

.book-rating .stars {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.book-rating .rating-text {
  font-size: 0.75rem;
  color: var(--text-soft);
  font-weight: 400;
}

.book-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.book-badge {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
  background: rgba(232, 237, 244, 0.14);
  color: var(--text-strong);
  line-height: 1.3;
  backdrop-filter: blur(4px);
}

.book-badge.gold {
  background: rgba(183, 154, 99, 0.22);
  color: rgba(232, 237, 244, 0.94);
}

.book-badge.winner {
  background: var(--accent-soft);
  color: rgba(232, 237, 244, 0.94);
}

.book-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 0.65rem;
  text-align: center;
  transition: opacity 0.3s var(--ease-out);
}

.book-card:not(.active) .book-title {
  opacity: 0;
  pointer-events: none;
  color: var(--color-text);
  transition: opacity 0.5s var(--ease-out);
}

/* Carousel dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 0.25rem;
}

.carousel-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.carousel-dot:hover::after {
  background: var(--color-accent-light);
}

.carousel-dot.active::after {
  background: var(--accent-2);
  transform: scale(1.25);
}

/* Carousel buttons */
.carousel-btn {
  display: flex;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: background var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast);
}

.carousel-btn:hover {
  background: var(--surface-2);
  border-color: rgba(232, 237, 244, 0.22);
}

.carousel-btn-prev {
  left: 0.5rem;
}

.carousel-btn-next {
  right: 0.5rem;
}

/* --- ABOUT (in hero) --- */

/* --- LATEST NEWS --- */
.working-on {
  padding: var(--space-xl) 0 var(--space-2xl);
}

.working-on-inner {
  max-width: 900px;
}

.working-on-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.working-on-img {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--color-shadow);
}

.working-on-text p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.working-on-text {
  background: rgba(13, 21, 32, 0.45);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
}

/* Signup form */
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
}

.signup-input {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(13, 21, 32, 0.55);
  color: var(--text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  width: 100%;
}

.signup-input::placeholder {
  color: var(--muted-soft);
}

.signup-input:focus {
  border-color: rgba(232, 237, 244, 0.22);
  box-shadow: 0 0 0 3px var(--focus-glow);
  outline: none;
}

.signup-btn {
  align-self: center;
}

.signup-note {
  font-size: 0.85rem;
  color: var(--muted-soft);
  line-height: 1.5;
}

.signup-confirmation {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold);
  background: rgba(183, 154, 99, 0.1);
  border: 1px solid rgba(183, 154, 99, 0.25);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  animation: signup-fade-in 0.4s ease;
}

.signup-confirm-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(183, 154, 99, 0.2);
  color: var(--gold);
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

@keyframes signup-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- AWARD BADGES (below carousel) --- */
.awards-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  justify-items: center;
  align-items: center;
  margin-top: var(--space-md);
  padding: 0 var(--space-sm);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.award-badge-img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

@media (min-width: 640px) {
  .awards-badges {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: var(--space-md);
    max-width: none;
    padding: 0;
  }
}

/* --- BOOKING --- */
.booking {
  padding: var(--space-2xl) 0;
  background: var(--bg);
}

.booking-inner {
  max-width: 520px;
  text-align: center;
  margin: 0 auto;
}

.booking-inner p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

/* --- FOOTER --- */
.site-footer {
  padding: var(--space-xl) 0 var(--space-lg);
  background: var(--nav-surface);
  color: var(--text-soft);
  border-top: 3px solid;
  border-image: linear-gradient(90deg, var(--gold), var(--accent-2), var(--accent)) 1;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.footer-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.footer-col-about,
.footer-col:nth-child(4) {
  grid-column: 1 / -1;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: var(--space-xs);
}

.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: var(--space-sm);
}

.footer-col-title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-soft);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-2);
}

.footer-all-books {
  color: var(--accent-2) !important;
  font-weight: 500;
  margin-top: 0.25rem;
  display: inline-block;
}

.footer-signup-text {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.signup-form-footer {
  align-items: stretch;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0.75rem;
}

.signup-form-footer .signup-input {
  background: rgba(13, 21, 32, 0.55);
  border-color: rgba(232, 237, 244, 0.25);
  color: var(--text-strong);
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
}

.signup-form-footer .signup-input::placeholder {
  color: rgba(139, 155, 181, 0.9);
}

.signup-form-footer .signup-input:focus {
  border-color: rgba(232, 237, 244, 0.22);
  box-shadow: 0 0 0 3px var(--focus-glow);
}


.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-soft);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.social-link svg {
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity var(--transition-fast);
}

.social-link:hover {
  color: var(--text-strong);
}

.social-link:hover svg {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--space-md);
  text-align: center;
}

.footer-copy {
  font-size: 0.875rem;
  color: rgba(139, 155, 181, 0.55);
  line-height: 1.6;
}

.footer-credit {
  margin-top: 0.15rem;
  font-size: 0.825rem;
  color: rgba(139, 155, 181, 0.35);
}

.footer-credit a {
  color: inherit;
  text-decoration: none;
}

.footer-credit a:hover {
  color: rgba(139, 155, 181, 0.65);
}

/* Footer social — responsive layouts */
@media (max-width: 639px) {
  /* Mobile: horizontal icon-only row */
  .footer-social {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.1rem;
  }

  .social-link span {
    display: none;
  }

  .social-link svg {
    width: 22px;
    height: 22px;
    opacity: 0.85;
  }
}

@media (min-width: 640px) and (max-width: 1199px) {
  /* Tablet: 2-column grid with icon + handle */
  .footer-social {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 2rem;
  }
}

/* --- SCROLL REVEAL --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================
   RESPONSIVE — TABLET (640px+)
   ============================================ */
@media (min-width: 640px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .signup-form {
    flex-direction: row;
    align-items: center;
  }

  .signup-form-footer {
    flex-direction: column;
  }

  .signup-input {
    flex: 1;
  }

  .signup-form .signup-input {
    max-width: 320px;
  }

  .signup-form-footer .signup-input {
    max-width: none;
  }

  .signup-btn {
    align-self: auto;
  }

  .signup-form-footer .signup-btn {
    align-self: flex-start;
  }

  .working-on-row {
    flex-direction: row;
    align-items: stretch;
  }

  .working-on-img-wrapper {
    flex: 0 0 40%;
    order: 0;
  }

  .working-on-text {
    flex: 1;
    min-width: 0;
    order: 0;
  }

  .working-on-img {
    max-width: none;
    height: 100%;
    aspect-ratio: auto;
  }

  .book-card {
    width: 250px;
  }

  .carousel-track {
    min-height: 430px;
  }

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

/* Mobile header: centered logo + keep hamburger available to close the menu */
@media (max-width: 959px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .site-logo {
    grid-column: 2;
    justify-self: center;
  }

  .site-nav {
    grid-column: 3;
    justify-self: end;
  }

  .nav-toggle {
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(13, 21, 32, 0.35);
  }
}


/* ============================================
   RESPONSIVE — DESKTOP (960px+)
   ============================================ */
@media (min-width: 960px) {
  :root {
    --header-height: 72px;
  }

  .header-inner {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .nav-list {
    position: static;
    width: auto;
    height: auto;
    max-height: none;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    flex-direction: row;
    gap: var(--space-lg);
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    overflow: visible;
  }

  .nav-list a,
  .nav-dropdown-toggle {
    font-size: 0.9rem;
  }

  .nav-item-dropdown {
    position: relative;
  }

  .nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--nav-surface);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 24px var(--color-shadow-lg);
    padding: 0.5rem 0;
    min-width: 200px;
    gap: 0;
    margin-top: 0.75rem;
    z-index: 200;
  }

  /* Invisible bridge so hover doesn't break crossing the gap */
  .nav-dropdown::before {
    content: '';
    position: absolute;
    top: -0.75rem;
    left: 0;
    right: 0;
    height: 0.75rem;
  }

  .nav-dropdown a {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .nav-dropdown a:hover {
    background: rgba(232, 237, 244, 0.06);
  }

  .nav-dropdown-divider {
    margin: 0.25rem 0.75rem;
  }

  /* Show dropdown on hover (desktop) */
  .nav-item-dropdown:hover .nav-dropdown,
  .nav-item-dropdown:focus-within .nav-dropdown {
    display: flex;
  }

  .hero {
    padding: var(--space-md) 0 var(--space-sm);
  }

  .hero-inner {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-sm);
  }

  .hero .about-photo {
    width: 220px;
    height: 220px;
  }

  .book-card {
    width: 240px;
  }

  .carousel-track {
    min-height: 416px;
  }

  .carousel-btn-prev {
    left: 1.5rem;
  }

  .carousel-btn-next {
    right: 1.5rem;
  }

  .footer-columns {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }

  .footer-col-about,
  .footer-col:nth-child(4) {
    grid-column: auto;
  }

  .footer-col-about {
    padding-right: var(--space-lg);
  }
}


/* ============================================
   RESPONSIVE — WIDE (1200px+)
   ============================================ */
@media (min-width: 1200px) {
  .hero .about-photo {
    width: 260px;
    height: 260px;
  }

  .book-card {
    width: 272px;
  }

  .carousel-track {
    min-height: 464px;
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
