/* ============================================
   THE BASE BOOKS — MAIN STYLESHEET
   style.css
   ============================================ */

/* ============ CSS VARIABLES ============ */
:root {
  /* Colors */
  --bg:           #FAF8F4;
  --surface:      #F3EEE5;
  --text-primary: #1E1E1E;
  --text-secondary:#5F5F5F;
  --border:       #DDD6CA;
  --accent-gold:  #C59A47;
  --accent-green: #7C9173;
  --accent-brown: #6A5647;
  --white:        #FFFFFF;

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-quote:   'Instrument Serif', Georgia, serif;

  /* Spacing */
  --section-gap:  120px;
  --container-max:1200px;
  --container-pad:48px;

  /* Radii */
  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    24px;

  /* Shadows */
  --shadow-sm:    0 2px 12px rgba(106,86,71,0.06);
  --shadow-md:    0 8px 32px rgba(106,86,71,0.10);
  --shadow-lg:    0 20px 60px rgba(106,86,71,0.12);

  /* Transitions */
  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);
}

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

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

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
}

input, textarea, select {
  font-family: var(--font-body);
}

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 16px;
}

.section-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-primary);
  margin-bottom: 24px;
}

.section-body {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 520px;
}

.text-center {
  text-align: center;
}

/* ============ LAYOUT ============ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 14px 32px;
  border-radius: 50px;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: #2a2a2a;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 14px 24px;
}

.btn-ghost:hover {
  color: var(--text-primary);
}

/* ============ LAUNCH BANNER ============ */
.launch-banner {
  background: var(--text-primary);
  color: var(--bg);
  text-align: center;
  padding: 12px 48px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  position: relative;
  z-index: 100;
}

.banner-close {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bg);
  font-size: 1.2rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.banner-close:hover {
  opacity: 1;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;   /* Increase this */
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--text-primary);
}

.nav-links{
    display:flex;
    align-items:center;
    gap:40px;

    margin-left:auto;
}
.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-gold);
  transition: width 0.3s var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-subscribe {
  margin-left: auto;
  padding: 10px 24px;
  font-size: 0.8rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: 16px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ============ HERO ============ */
.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(250,248,244,0.82) 0%, rgba(250,248,244,0.93) 55%, rgba(250,248,244,0.98) 100%),
    linear-gradient(180deg, rgba(250,248,244,0.55) 0%, rgba(250,248,244,0.85) 100%);
}

.hero .hero-content,
.hero .scroll-indicator {
  position: relative;
  z-index: 1;
}

/* ============ PHOTO BANNER (reusable library imagery band) ============ */
.photo-banner {
  padding: 0 0 var(--section-gap);
}

.photo-banner-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  height: 380px;
  position: relative;
}

.photo-banner-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-banner-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 36px;
  background: linear-gradient(0deg, rgba(20,16,12,0.62) 0%, rgba(20,16,12,0) 100%);
  color: var(--white);
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--container-pad);

  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 80px; /* 👈 slightly increased for breathing space */
  align-items: center;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 20px;
}

.hero-headline {
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.08;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.hero-headline em {
  font-style: italic;
  color: var(--accent-brown);
}

.hero-subheading {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-image {
  display: flex;
  justify-content: center; /* was flex-end */
  align-items: center;
}

.hero-image img {
  width: 130%;
  max-width: 1100px;   /* Increase to 800px if you want it even larger */
  height: auto;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  color: var(--text-secondary);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.8); }
}

/* ============ PHILOSOPHY ============ */
.philosophy {
  padding: var(--section-gap) 0;
  background: var(--surface);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: center;
}

/* ============ FEATURED BOOK ============ */
.featured-book {
  padding: var(--section-gap) 0;
}

.featured-book-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 80px;
  border: 1px solid var(--border);
}

.book-mockup {
  display: flex;
  justify-content: center;
}

.book-mockup svg {
  max-width: 280px;
  filter: drop-shadow(0 20px 50px rgba(106,86,71,0.12));
}

/* ============ VALUES ============ */
.values {
  padding: var(--section-gap) 0;
  background: var(--surface);
}

.values .section-eyebrow {
  display: block;
  margin-bottom: 64px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.value-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 48px 40px;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.value-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 28px;
}

.value-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.value-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ============ QUOTE SECTION ============ */
.quote-section {
  padding: var(--section-gap) 0;
  text-align: center;
}

.quote-inner {
  max-width: 820px;
  margin: 0 auto;
}

.main-quote {
  font-family: var(--font-quote);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 36px;
  font-weight: 400;
}

.quote-decoration {
  display: flex;
  justify-content: center;
  opacity: 0.7;
}

/* ============ JOURNAL PREVIEW ============ */
.journal-preview {
  padding: var(--section-gap) 0;
  background: var(--surface);
}

.section-header {
  margin-bottom: 64px;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 56px;
}

.journal-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.journal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.journal-card-inner {
  padding: 40px 36px;
}

.journal-category {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.journal-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 14px;
}

.journal-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
}

.journal-read-time {
  font-size: 0.78rem;
  color: var(--text-secondary);
  opacity: 0.7;
  letter-spacing: 0.04em;
}

.section-cta {
  text-align: center;
}

/* ============ NEWSLETTER ============ */
.newsletter {
  padding: var(--section-gap) 0;
}

.newsletter-inner {
  background: var(--text-primary);
  border-radius: var(--radius-lg);
  padding: 80px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 64px;
  align-items: center;
  color: var(--bg);
}

.newsletter-text .section-eyebrow {
  color: var(--accent-gold);
}

.newsletter-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--bg);
  margin-bottom: 16px;
}

.newsletter-desc {
  font-size: 0.95rem;
  color: rgba(250, 248, 244, 0.7);
  line-height: 1.75;
}

.newsletter-illustration {
  opacity: 0.5;
}

.newsletter-illustration svg {
  width: 200px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  gap: 0;
}

.form-group .form-input {
  flex: 1;
  border-radius: 50px 0 0 50px;
  border-right: none;
}

.form-group .btn {
  border-radius: 0 50px 50px 0;
  background: var(--accent-gold);
  color: var(--text-primary);
}

.form-group .btn:hover {
  background: #d4aa55;
  transform: none;
}

.form-note {
  font-size: 0.78rem;
  color: rgba(250, 248, 244, 0.5);
}

.form-message {
  font-size: 0.85rem;
  min-height: 20px;
}

.form-message.success {
  color: #7C9173;
}

.form-message.error {
  color: #e07070;
}

/* ============ FORM INPUTS (shared) ============ */
.form-input {
  width: 100%;
  padding: 14px 20px;
  background: rgba(250,248,244,0.08);
  border: 1.5px solid rgba(250,248,244,0.15);
  border-radius: 50px;
  color: var(--bg);
  font-size: 0.9rem;
  transition: border-color 0.2s;
  outline: none;
}

.form-input::placeholder {
  color: rgba(250,248,244,0.4);
}

.form-input:focus {
  border-color: var(--accent-gold);
}

/* ============ VISITOR FORM SECTION ============ */
.visitor-form-section {
  padding: var(--section-gap) 0;
  background: var(--surface);
}

.visitor-form-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.visitor-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-group label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* Override input styles for visitor form (light bg) */
.visitor-form .form-input,
.visitor-form .form-textarea {
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}

.visitor-form .form-input::placeholder,
.visitor-form .form-textarea::placeholder {
  color: rgba(30,30,30,0.35);
}

.visitor-form .form-input:focus,
.visitor-form .form-textarea:focus {
  border-color: var(--accent-gold);
  outline: none;
}

.form-textarea {
  width: 100%;
  resize: vertical;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.6;
}

.visitor-form .form-message.success {
  color: var(--accent-green);
}
.visitor-form .form-message.error {
  color: #c0392b;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--text-primary);
  color: var(--bg);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(250,248,244,0.1);
  margin-bottom: 32px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.16em;
  font-weight: 500;
  color: var(--bg);
  display: block;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 0.88rem;
  color: rgba(250,248,244,0.55);
  line-height: 1.75;
  max-width: 280px;
  margin-bottom: 28px;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.social-link {
  color: rgba(250,248,244,0.5);
  transition: color 0.2s;
}

.social-link:hover {
  color: var(--accent-gold);
}

.footer-nav-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250,248,244,0.4);
  margin-bottom: 20px;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  font-size: 0.9rem;
  color: rgba(250,248,244,0.65);
  transition: color 0.2s;
}

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

.footer-email {
  display: block;
  font-size: 0.88rem;
  color: var(--accent-gold);
  margin-bottom: 24px;
  word-break: break-all;
}

.footer-tagline {
  font-size: 0.8rem;
  color: rgba(250,248,244,0.35);
  font-style: italic;
}

.footer-bottom {
  font-size: 0.78rem;
  color: rgba(250,248,244,0.3);
}

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--text-primary);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 80;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #2a2a2a;
  transform: translateY(-2px);
}

/* ============ ABOUT PAGE ============ */
.page-hero {
  padding: 120px 0 80px;
  text-align: center;
}

.page-hero-headline {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 24px;
}

.page-hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

.about-story {
  padding: var(--section-gap) 0;
}

.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-story-text p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 24px;
}

.about-story-photo {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.about-values {
  padding: var(--section-gap) 0;
  background: var(--surface);
}

.about-quote {
  padding: var(--section-gap) 0;
  text-align: center;
  background: var(--text-primary);
  color: var(--bg);
}

.about-quote .main-quote {
  color: var(--bg);
}

.about-contact-cta {
  padding: var(--section-gap) 0;
  text-align: center;
}

.about-contact-cta .section-body {
  margin: 0 auto 36px;
  text-align: center;
}

/* ============ BOOKS PAGE ============ */
.books-hero {
  padding: 120px 0 80px;
  text-align: center;
}

.books-grid {
  padding: var(--section-gap) 0;
}

.books-empty {
  text-align: center;
  padding: 80px 0;
}

.books-empty-text {
  font-family: var(--font-quote);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.books-empty-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  opacity: 0.7;
}

/* ============ JOURNAL PAGE ============ */
.journal-hero {
  padding: 120px 0 80px;
  text-align: center;
}

.journal-full-grid {
  padding: var(--section-gap) 0;
}

.journal-full-grid .journal-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* ============ CONTACT PAGE ============ */
.contact-hero {
  padding: 120px 0 60px;
  text-align: center;
}

.contact-body {
  padding: var(--section-gap) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-info-item {
  margin-bottom: 32px;
}

.contact-info-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 6px;
}

.contact-info-value {
  font-size: 1.05rem;
  color: var(--text-primary);
}

.contact-info-value a {
  color: var(--text-primary);
  transition: color 0.2s;
}

.contact-info-value a:hover {
  color: var(--accent-gold);
}

.contact-note {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-top: 24px;
}

/* ============ PAPER TEXTURE OVERLAY ============ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
  z-index: 1000;
}

/* ============ LIBRARY SHOWCASE (hero companion image) ============ */
.library-showcase {
  padding: 8px 0 var(--section-gap);
}

.library-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.library-frame svg,
.library-frame img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 560px;
  object-fit: cover;
}

/* Solo/centered hero variant (no side illustration) */
.hero-content.hero-content--solo {
  grid-template-columns: 1fr;
  max-width: 760px;
  text-align: center;
}

.hero-content--solo .hero-subheading {
  margin-left: auto;
  margin-right: auto;
}

.hero-content--solo .hero-actions {
  justify-content: center;
}

/* ============ BOOK LIBRARY GRID (books.html) ============ */
.book-library {
  padding: var(--section-gap) 0;
  background: var(--surface);
}

.book-library-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px 24px;
  margin-top: 56px;
}

.lib-book {
  position: relative;
  width: 100%;
  text-align: left;
  padding: 0;
  background: none;
  border: none;
  font-family: var(--font-body);
}

.lib-book-cover {
  position: relative;
  display: block;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(106, 86, 71, 0.2);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.lib-book:hover .lib-book-cover,
.lib-book:focus-visible .lib-book-cover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: var(--shadow-lg);
}

.lib-book-cover svg {
  width: 100%;
  display: block;
}

.lib-book-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 18, 14, 0.55);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.lib-book:hover .lib-book-overlay,
.lib-book:focus-visible .lib-book-overlay {
  opacity: 1;
}

.lib-book-notify {
  color: #FAF8F4;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(250, 248, 244, 0.6);
  padding: 9px 18px;
  border-radius: 50px;
}

.lib-book-title {
  display: block;
  margin-top: 16px;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.3;
}

.lib-book-meta {
  display: block;
  font-size: 0.74rem;
  color: var(--text-secondary);
  opacity: 0.7;
  margin-top: 3px;
  letter-spacing: 0.02em;
}

.book-library-note {
  margin-top: 56px;
  text-align: center;
}

/* ============ NOTIFY MODAL ============ */
.notify-overlay {
  position: fixed;
  inset: 0;
  background: rgba(24, 20, 16, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-out), visibility 0.35s;
}

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

.notify-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.96);
  width: min(460px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 201;
  padding: 44px 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), visibility 0.35s;
}

.notify-modal.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.notify-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s;
}

.notify-close:hover {
  background: var(--surface);
  color: var(--text-primary);
}

.notify-modal .section-eyebrow {
  margin-bottom: 8px;
}

.notify-heading {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  margin-bottom: 10px;
  padding-right: 20px;
}

.notify-sub {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.65;
}

.notify-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.notify-form.is-hidden {
  display: none;
}

.notify-form .field-group label {
  color: var(--text-secondary);
}

.notify-form .form-input {
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 13px 18px;
}

.notify-form .form-input::placeholder {
  color: rgba(30, 30, 30, 0.35);
}

.notify-form .form-input:focus {
  border-color: var(--accent-gold);
  outline: none;
}

.notify-submit {
  width: 100%;
  margin-top: 4px;
}

.notify-submit[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

.notify-success {
  display: none;
  text-align: center;
  padding: 8px 0 4px;
}

.notify-success.show {
  display: block;
}

.notify-success-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
}

.notify-success h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.notify-success p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.notify-error {
  font-size: 0.85rem;
  color: #c0392b;
  min-height: 18px;
}
