/* ============================================================
   Shahar Masori — Publishing Platform
   Palette: deep navy, parchment, warm sunset gold
   Type:    Fraunces (display serif) + Inter (body)
   ============================================================ */

:root {
  --ink:        #0a1428;
  --ink-deep:   #050b1a;
  --ink-soft:   #1a2540;
  --paper:      #f6efe2;
  --paper-warm: #ebe1ce;
  --paper-deep: #ddd0b8;
  --accent:     #d99948;
  --accent-2:   #c66a3a;
  --accent-3:   #8a3a1f;

  /* Series palettes */
  --giraffe:    #5a7a3a;   /* greenery for the forest/jungle series */
  --giraffe-2:  #2f4a1f;
  --ember:      #c66a3a;   /* fox orange */
  --ember-2:    #8a3a1f;
  --romance:    #a13a4a;
  --romance-2:  #5a1f2a;

  --muted:      #8a8474;
  --line:       rgba(10, 20, 40, 0.12);
  --line-light: rgba(246, 239, 226, 0.18);

  --serif: "Fraunces", "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-family: var(--serif); font-style: italic; }

.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;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  background: rgba(246, 239, 226, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  border-radius: 2px;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
}

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

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a:hover { opacity: 1; }

.nav-links a.active {
  opacity: 1;
  color: var(--accent-2);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent-2);
}

.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 10px 18px;
  border-radius: 2px;
  opacity: 1 !important;
}

.nav-cta:hover {
  background: var(--accent-2);
  color: var(--paper) !important;
}

.nav-cta::after { display: none !important; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--ink);
}

/* ============================================================
   COMMON UTILITIES
   ============================================================ */
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.diamond {
  font-size: 8px;
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--ink-deep);
}
.btn-primary:hover {
  background: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(217, 153, 72, 0.3);
}

.btn-dark {
  background: var(--ink);
  color: var(--paper);
}
.btn-dark:hover {
  background: var(--ink-deep);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.btn-ghost-light {
  background: transparent;
  color: var(--paper);
  border-color: rgba(246, 239, 226, 0.3);
}
.btn-ghost-light:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm { padding: 10px 18px; font-size: 11px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  transition: gap 0.3s ease;
}
.link-arrow:hover { gap: 14px; }

.display-h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.display-h1 em, .display-h1 .italic {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.h-section {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.h-section em { font-style: italic; color: var(--accent-2); }

/* ============================================================
   HERO (Home)
   ============================================================ */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: 100px 48px 0;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(217, 153, 72, 0.2), transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(198, 106, 58, 0.14), transparent 50%);
}

.hero-grain {
  position: absolute; inset: 0; opacity: 0.4; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: center;
  padding-bottom: 100px;
}

.hero .eyebrow {
  color: var(--accent);
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease-out both;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(52px, 8vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeUp 1s ease-out 0.1s both;
}

.hero h1 .italic { font-style: italic; color: var(--accent); }

.hero-roles {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--accent);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
  animation: fadeUp 1s ease-out 0.2s both;
}

.hero-roles .sep {
  font-style: normal;
  opacity: 0.5;
  margin: 0 14px;
  font-size: 0.7em;
}

.hero .lede {
  font-size: 19px;
  line-height: 1.6;
  max-width: 520px;
  color: rgba(246, 239, 226, 0.85);
  margin-bottom: 36px;
  animation: fadeUp 1s ease-out 0.3s both;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 1s ease-out 0.45s both;
}

.hero-visual {
  position: relative;
  animation: fadeUp 1.2s ease-out 0.5s both;
}

.hero-visual .cover-stack {
  position: relative;
  height: 480px;
}

.hero-visual .stack-book {
  position: absolute;
  border-radius: 4px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(217, 153, 72, 0.15);
  transition: transform 0.5s ease;
}

.hero-visual .stack-book.b1 {
  width: 62%;
  top: 0; right: 0;
  transform: rotate(4deg);
  z-index: 3;
}
.hero-visual .stack-book.b2 {
  width: 50%;
  top: 60px; left: 0;
  transform: rotate(-7deg);
  z-index: 2;
}
.hero-visual .stack-book.b3 {
  width: 46%;
  bottom: 0; left: 28%;
  transform: rotate(10deg);
  z-index: 1;
}

.hero-visual:hover .b1 { transform: rotate(2deg) translateY(-8px); }
.hero-visual:hover .b2 { transform: rotate(-4deg) translateY(-6px); }
.hero-visual:hover .b3 { transform: rotate(6deg) translateY(-4px); }

/* Marquee */
.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  padding: 22px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: rgba(246, 239, 226, 0.5);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  animation: marquee 35s linear infinite;
  width: fit-content;
}

.marquee-track .dot {
  color: var(--accent);
  font-size: 10px;
  font-style: normal;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   FOUR-CARD CATEGORIES (home, "show what I do in 5 seconds")
   ============================================================ */
.categories {
  padding: 100px 48px;
  background: var(--paper);
}

.categories-head {
  max-width: 1280px;
  margin: 0 auto 60px;
  text-align: center;
}

.categories-head .eyebrow {
  justify-content: center;
  margin-bottom: 20px;
}

.categories-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.cat-card {
  position: relative;
  padding: 36px 28px 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(10, 20, 40, 0.12);
}

.cat-card:hover::before { transform: scaleX(1); }

.cat-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--accent-2);
  margin-bottom: 16px;
}

.cat-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  line-height: 1.1;
}

.cat-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.cat-card .link-arrow {
  font-size: 11px;
}

/* ============================================================
   FEATURED-STRIP (home - intro narrative)
   ============================================================ */
.intro-strip {
  padding: 120px 48px;
  background: var(--paper-warm);
  position: relative;
  overflow: hidden;
}

.intro-strip::before {
  content: '';
  position: absolute;
  top: -150px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(217, 153, 72, 0.18), transparent 70%);
  border-radius: 50%;
}

.intro-grid {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 60px;
  align-items: start;
}

.intro-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 80px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.85;
}

.intro-body p {
  font-size: 19px;
  line-height: 1.7;
  max-width: 620px;
  color: var(--ink);
  opacity: 0.88;
  margin-top: 20px;
}

/* ============================================================
   NEW RELEASES SECTION
   ============================================================ */
.new-releases {
  padding: 100px 48px;
  background: var(--paper);
}

.section-head {
  max-width: 1280px;
  margin: 0 auto 60px;
  display: flex;
  align-items: baseline;
  gap: 32px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1;
  flex-shrink: 0;
}

.section-head h2 em { font-style: italic; color: var(--accent-2); }

.section-head .count {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--muted);
}

.section-head-line {
  flex: 1;
  height: 1px;
  background: var(--line);
  align-self: center;
  min-width: 60px;
}

.releases-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.release-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.release-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(10, 20, 40, 0.14);
}

.release-cover-wrap {
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
  background: var(--paper-warm);
}

.release-cover-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.release-cover-wrap .placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
}

.release-cover-wrap .placeholder span {
  font-family: var(--serif);
  font-style: italic;
  color: var(--paper);
  font-size: 24px;
  line-height: 1.1;
  position: relative;
  z-index: 1;
}

.release-cover-wrap .placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

.release-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--accent);
  color: var(--ink-deep);
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 2px;
  z-index: 2;
}

.release-tag.coming { background: var(--ink); color: var(--paper); }

.release-info {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.release-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 10px;
}

.release-info h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  line-height: 1.15;
}

.release-info p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 18px;
  flex-grow: 1;
}

/* ============================================================
   PULL QUOTE
   ============================================================ */
.pullquote {
  padding: 120px 48px;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pullquote::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(217, 153, 72, 0.14), transparent 60%);
}

.quote-mark {
  font-family: var(--serif);
  font-size: 140px;
  line-height: 0.5;
  color: var(--accent);
  opacity: 0.6;
  margin-bottom: 30px;
  position: relative;
}

.pullquote blockquote {
  position: relative;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 900px;
  margin: 0 auto 40px;
}

.quote-attr {
  position: relative;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.quote-attr em { font-style: italic; text-transform: none; letter-spacing: 0; }

/* ============================================================
   EMAIL SIGNUP — Strong, repeated on every page
   ============================================================ */
.signup {
  padding: 100px 48px;
  background: var(--paper-warm);
  position: relative;
  overflow: hidden;
}

.signup.dark {
  background: var(--ink-soft);
  color: var(--paper);
}

.signup::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(217, 153, 72, 0.18), transparent 70%);
  border-radius: 50%;
}

.signup.dark::before {
  background: radial-gradient(circle, rgba(217, 153, 72, 0.22), transparent 70%);
}

.signup-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

.signup-text .eyebrow { margin-bottom: 22px; }
.signup.dark .signup-text .eyebrow { color: var(--accent); }

.signup-text h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 50px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.signup-text h2 em { font-style: italic; color: var(--accent-2); }
.signup.dark .signup-text h2 em { color: var(--accent); }

.signup-text p {
  font-size: 17px;
  line-height: 1.65;
  opacity: 0.85;
  margin-bottom: 16px;
}

.signup-offer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  padding-left: 0;
  list-style: none;
}

.signup-offer li {
  font-size: 15px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.signup-offer li::before {
  content: '◆';
  color: var(--accent);
  font-size: 8px;
  margin-top: 8px;
  flex-shrink: 0;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--paper);
  padding: 36px;
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(10, 20, 40, 0.08);
  position: relative;
}

.signup.dark .signup-form {
  background: var(--ink);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.signup-form::before {
  content: '◆';
  position: absolute;
  top: 18px; right: 22px;
  font-size: 9px;
  color: var(--accent);
}

.signup-form label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: -8px;
}

.signup-form input {
  font-family: var(--sans);
  font-size: 16px;
  padding: 16px 20px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.signup.dark .signup-form input {
  border-color: rgba(246, 239, 226, 0.2);
  color: var(--paper);
}

.signup-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 153, 72, 0.2);
}

.signup-form input::placeholder { color: var(--muted); }
.signup.dark .signup-form input::placeholder { color: rgba(246, 239, 226, 0.4); }

.signup-form select {
  font-family: var(--sans);
  font-size: 15px;
  padding: 14px 20px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: inherit;
  cursor: pointer;
}

.signup.dark .signup-form select {
  border-color: rgba(246, 239, 226, 0.2);
  color: var(--paper);
}

.form-note {
  font-size: 14px;
  font-style: italic;
  font-family: var(--serif);
  min-height: 20px;
  color: var(--accent-2);
}

.signup.dark .form-note { color: var(--accent); }

.signup-fine {
  font-size: 12px;
  opacity: 0.6;
  margin-top: 4px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 80px 48px 40px;
  background: var(--ink-deep);
  color: var(--paper);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(246, 239, 226, 0.12);
}

.footer-brand {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 12px;
}

.footer-brand em { color: var(--accent); }

.footer-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: rgba(246, 239, 226, 0.6);
  max-width: 360px;
  line-height: 1.5;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }

.footer-col a {
  font-size: 14px;
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}

.footer-col a:hover { opacity: 1; color: var(--accent); }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  opacity: 0.55;
  letter-spacing: 0.05em;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom a { color: var(--accent); }

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 90px 48px 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(217, 153, 72, 0.16), transparent 60%);
}

.page-hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.page-hero .eyebrow {
  color: var(--accent);
  margin-bottom: 28px;
}

.page-hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 6.5vw, 80px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}

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

.page-hero p {
  font-size: 19px;
  max-width: 640px;
  opacity: 0.85;
  line-height: 1.6;
}

/* ============================================================
   CHILDREN'S BOOKS / SERIES
   ============================================================ */
.series-section {
  padding: 100px 48px;
}

.series-section.alt { background: var(--paper-warm); }

.series-head {
  max-width: 1280px;
  margin: 0 auto 60px;
}

.series-head .series-meta {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 16px;
}

.series-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 40px;
  font-weight: 300;
  color: var(--accent-2);
}

.series-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 16px;
}

.series-head h2 em { font-style: italic; color: var(--accent-2); }

.series-head .series-desc {
  font-size: 18px;
  line-height: 1.6;
  max-width: 720px;
  opacity: 0.85;
}

.books-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 40px 32px;
}

.book-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.3s ease;
}

.book-card:hover { transform: translateY(-6px); }

.book-cover-frame {
  aspect-ratio: 3/4;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(10, 20, 40, 0.18);
  position: relative;
}

.book-cover-frame.giraffe { background: linear-gradient(135deg, var(--giraffe) 0%, var(--giraffe-2) 100%); }
.book-cover-frame.ember { background: linear-gradient(135deg, var(--ember) 0%, var(--ember-2) 100%); }
.book-cover-frame.future { background: linear-gradient(135deg, #3a4a60 0%, #1a2540 100%); border: 2px dashed rgba(246, 239, 226, 0.3); }

.book-cover-frame::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.book-cover-frame .placeholder-text {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  color: var(--paper);
  position: relative;
  z-index: 1;
}

.book-cover-frame .book-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 14px;
}

.book-cover-frame .book-title-art {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 400;
}

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

.book-info h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 6px;
}

.book-info .book-num-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
  display: block;
}

.book-info p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 20px;
}

.book-buys {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.buy-link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 14px;
  border-radius: 2px;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.buy-amazon {
  background: var(--ink);
  color: var(--paper);
}
.buy-amazon:hover { background: var(--accent); color: var(--ink-deep); }

.buy-bn {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.buy-bn:hover { border-color: var(--accent-2); color: var(--accent-2); }

/* Series banner — large series intro card */
.series-banner {
  max-width: 1280px;
  margin: 0 auto 60px;
  padding: 60px;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  color: var(--paper);
}

.series-banner.giraffe-banner {
  background: linear-gradient(135deg, var(--giraffe) 0%, var(--giraffe-2) 100%);
}

.series-banner.ember-banner {
  background: linear-gradient(135deg, var(--ember) 0%, var(--ember-2) 100%);
}

.series-banner::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.series-banner-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}

.series-banner .eyebrow { color: var(--accent); margin-bottom: 14px; }

.series-banner h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.series-banner h2 em { font-style: italic; }

.series-banner p {
  font-size: 17px;
  line-height: 1.6;
  max-width: 560px;
  opacity: 0.9;
}

.series-count-badge {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  background: rgba(246, 239, 226, 0.15);
  padding: 10px 18px;
  border-radius: 100px;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

/* ============================================================
   SINGLE BOOK PAGE (We Are, Seeking Clarity)
   ============================================================ */
.book-feature {
  padding: 100px 48px;
  background: var(--paper);
}

.book-feature-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}

.book-feature-cover {
  position: sticky;
  top: 110px;
}

.book-feature-cover img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 30px 60px rgba(10, 20, 40, 0.25);
}

.book-feature-cover .placeholder {
  aspect-ratio: 2/3;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 30px 60px rgba(10, 20, 40, 0.25);
  position: relative;
  overflow: hidden;
  padding: 50px 30px;
  text-align: center;
}

.book-feature-cover .placeholder.we-are {
  background: linear-gradient(135deg, var(--romance) 0%, var(--romance-2) 100%);
}

.book-feature-cover .placeholder::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

.book-feature-cover .placeholder .ph-title {
  font-family: var(--serif);
  font-style: italic;
  color: var(--paper);
  font-size: 48px;
  line-height: 1;
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
}

.book-feature-cover .placeholder .ph-sub {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(246, 239, 226, 0.7);
  position: relative;
  z-index: 1;
}

.book-feature-text .eyebrow { margin-bottom: 22px; }

.book-feature-text h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 7vw, 80px);
  letter-spacing: -0.025em;
  line-height: 0.98;
  margin-bottom: 18px;
}

.book-feature-text h1 em { font-style: italic; color: var(--accent-2); }

.book-feature-text .subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--muted);
  margin-bottom: 36px;
}

.book-feature-text h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 40px 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.book-feature-text h3::before {
  content: '◆';
  font-size: 8px;
  color: var(--accent);
}

.book-feature-text p {
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 18px;
  color: var(--ink);
  opacity: 0.88;
}

.book-feature-text .feature-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 36px 0 10px;
}

/* Topic tags */
.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 24px;
}

.topic-tag {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 16px;
  background: var(--paper-warm);
  color: var(--ink);
  border-radius: 100px;
  border: 1px solid var(--line);
}

/* Reviews */
.reviews {
  background: var(--paper-warm);
  padding: 100px 48px;
}

.reviews-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 50px;
}

.review-card {
  background: var(--paper);
  padding: 32px;
  border-radius: 4px;
  border-left: 3px solid var(--accent);
}

.review-stars {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.review-card blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.55;
  margin-bottom: 16px;
}

.review-attr {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Sample chapter */
.sample {
  padding: 100px 48px;
  background: var(--paper);
}

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

.sample-inner h2 { margin-bottom: 16px; }
.sample-inner p { font-size: 17px; margin-bottom: 30px; opacity: 0.85; }

/* ============================================================
   ARTICLES PAGE
   ============================================================ */
.articles-section {
  padding: 100px 48px;
  background: var(--paper);
}

.article-filter {
  max-width: 1100px;
  margin: 0 auto 50px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.filter-chip {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition: all 0.25s;
  font-family: var(--sans);
  color: var(--ink);
}

.filter-chip:hover { border-color: var(--accent-2); color: var(--accent-2); }

.filter-chip.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.articles-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.article-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.article-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(10, 20, 40, 0.1);
}

.article-card:hover::before { transform: scaleY(1); }

.article-meta {
  display: flex;
  gap: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}

.article-meta .dot { color: var(--line); }
.article-meta .date { color: var(--muted); }

.article-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.article-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* External callout */
.external-callout {
  max-width: 1100px;
  margin: 60px auto 0;
  padding: 40px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}

.external-callout h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.external-callout h3 em { font-style: italic; color: var(--accent); }

.external-callout p {
  font-size: 15px;
  line-height: 1.55;
  opacity: 0.8;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-section {
  padding: 100px 48px;
  background: var(--paper);
}

.about-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.about-photo {
  position: sticky;
  top: 110px;
}

.about-photo img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 30px 60px rgba(10, 20, 40, 0.2);
}

.about-photo .caption {
  margin-top: 16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.about-text h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 28px 0 36px;
}

.about-text h1 em { font-style: italic; color: var(--accent-2); }

.about-text p {
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 22px;
  color: var(--ink);
  opacity: 0.9;
}

.about-text .drop::first-letter {
  font-family: var(--serif);
  font-size: 5em;
  float: left;
  line-height: 0.85;
  padding: 6px 12px 0 0;
  color: var(--accent-2);
  font-weight: 400;
}

.about-text h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 40px 0 14px;
  color: var(--accent-2);
}

.identity-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0;
}

.identity-list li {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  padding: 8px 18px;
  background: var(--paper-warm);
  border-radius: 100px;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section {
  padding: 100px 48px;
  background: var(--paper);
}

.contact-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-text h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}

.contact-text h1 em { font-style: italic; color: var(--accent-2); }

.contact-text p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 32px;
  opacity: 0.85;
}

.contact-details {
  list-style: none;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.contact-details li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-details .label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 6px;
}

.contact-details .value {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--paper-warm);
  padding: 40px;
  border-radius: 4px;
  position: relative;
}

.contact-form::before {
  content: '◆';
  position: absolute;
  top: 20px; right: 24px;
  font-size: 10px;
  color: var(--accent);
}

.contact-form label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: -10px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  font-family: var(--sans);
  font-size: 16px;
  padding: 14px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form textarea { min-height: 140px; resize: vertical; }

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 153, 72, 0.18);
}

.contact-form .btn { margin-top: 8px; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .releases-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav { padding: 16px 20px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--line);
    gap: 18px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .hero { padding: 60px 20px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 60px; padding-bottom: 80px; }
  .hero-visual .cover-stack { height: 360px; max-width: 380px; margin: 0 auto; }

  .categories, .new-releases, .intro-strip, .pullquote,
  .signup, .series-section, .book-feature, .reviews,
  .sample, .articles-section, .about-section, .contact-section {
    padding: 70px 20px;
  }

  .categories-grid { grid-template-columns: 1fr; }
  .releases-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }

  .intro-grid { grid-template-columns: 1fr; gap: 20px; }
  .intro-num { font-size: 56px; }

  .signup-inner { grid-template-columns: 1fr; gap: 50px; }
  .book-feature-grid { grid-template-columns: 1fr; gap: 50px; }
  .book-feature-cover { position: static; max-width: 320px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-photo { position: static; max-width: 320px; }
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .series-banner { padding: 40px 28px; }
  .series-banner-inner { grid-template-columns: 1fr; gap: 20px; }

  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-hero { padding: 60px 20px 60px; }
  .external-callout { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 480px) {
  .brand-name { display: none; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
}
