/* ==========================================================================
   BRITT HOLLAND — Author Website
   Fonts: Playfair Display (headings) | Libre Baskerville (body)
   No sans-serif — literary brand throughout.
   ========================================================================== */

/* 1 — Custom properties */
:root {
  --teal:       #1C505A;
  --gold:       #C9A84C;
  --cream:      #F5ECD7;
  --burgundy:   #5A243E;
  --charcoal:   #36454F;
  --orchid:     #944B86;
  --blush:      #E8C4C4;
  --sage:       #96C0B1;
  --steel-teal: #77ADB2;
  --white:      #FFFFFF;

  --ff-head:  'Playfair Display', Georgia, serif;
  --ff-body:  'Libre Baskerville', 'Times New Roman', serif;

  --max-w:    1160px;
  --px:       clamp(1.25rem, 5vw, 3rem);
  --py:       clamp(3.5rem, 7vw, 6rem);
  --nav-h:    72px;
}

/* 2 — Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-body);
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* 3 — Typography */
h1, h2, h3, h4, h5, h6 { font-family: var(--ff-head); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 500; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 500; }
h4 { font-size: 1rem; font-weight: 700; letter-spacing: .05em; }
p  { font-size: clamp(.95rem, 1.4vw, 1.05rem); line-height: 1.85; }

.eyebrow {
  font-family: var(--ff-body);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: .75rem;
}
.byline {
  font-family: var(--ff-head);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--charcoal);
  opacity: .75;
}

/* 4 — Navigation */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--px);
  transition: background .35s ease, box-shadow .35s ease;
}
.nav.scrolled {
  background: rgba(245, 236, 215, .97);
  box-shadow: 0 1px 0 rgba(54, 69, 79, .1);
  backdrop-filter: blur(4px);
}

.nav-logo {
  font-family: var(--ff-head);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--cream);
  transition: color .35s;
  z-index: 201;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: .55rem;
}
.nav.scrolled .nav-logo { color: var(--teal); }
.nav-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: .85;
  transition: opacity .35s;
}
.nav.scrolled .nav-logo-img {
  filter: none;
  opacity: .9;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.nav-links a {
  font-family: var(--ff-body);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(245, 236, 215, .8);
  transition: color .2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav.scrolled .nav-links a { color: var(--charcoal); }
.nav.scrolled .nav-links a:hover,
.nav.scrolled .nav-links a.active { color: var(--teal); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: .35rem;
  z-index: 201;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--cream);
  transition: transform .3s, opacity .3s;
}
.nav.scrolled .nav-toggle span { background: var(--charcoal); }
.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); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--teal);
  z-index: 199;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.nav-overlay.open { display: flex; }
.nav-overlay a {
  font-family: var(--ff-head);
  font-size: 1.9rem;
  font-style: italic;
  color: var(--cream);
  transition: color .2s;
}
.nav-overlay a:hover { color: var(--gold); }
.nav-overlay .nav-overlay-tagline {
  margin-top: 2rem;
  font-family: var(--ff-body);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
}

/* 5 — Buttons */
.btn {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .9rem 2.4rem;
  border: 1.5px solid;
  cursor: pointer;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--burgundy);
}
.btn-gold:hover {
  background: transparent;
  color: var(--gold);
}
.btn-cream-outline {
  background: transparent;
  border-color: rgba(245, 236, 215, .7);
  color: var(--cream);
}
.btn-cream-outline:hover {
  background: var(--cream);
  color: var(--teal);
  border-color: var(--cream);
}
.btn-teal-outline {
  background: transparent;
  border-color: var(--teal);
  color: var(--teal);
}
.btn-teal-outline:hover {
  background: var(--teal);
  color: var(--cream);
}
.btn-teal {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--cream);
}
.btn-teal:hover {
  background: transparent;
  color: var(--teal);
}

/* 6 — Section wrapper */
.section {
  padding: var(--py) var(--px);
}
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-teal {
  background: var(--teal);
  color: var(--cream);
}
.section-blush {
  background: var(--blush);
}
.section-cream {
  background: var(--cream);
}

/* 7 — Hero: home page (beach portrait, full-bleed) */
.hero-home {
  min-height: 100svh;
  background-image:
    linear-gradient(to top,
      rgba(28, 80, 90, .90) 0%,
      rgba(28, 80, 90, .55) 26%,
      rgba(28, 80, 90, .12) 52%,
      rgba(28, 80, 90, 0) 72%),
    linear-gradient(to right,
      rgba(28, 80, 90, .42) 0%,
      rgba(28, 80, 90, .10) 45%,
      rgba(28, 80, 90, 0) 70%),
    url('../assets/images/britt-hero-beach.jpg');
  background-size: cover;
  background-position: center 18%;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 2.5rem) var(--px) clamp(3rem, 6vh, 5rem);
  position: relative;
  overflow: hidden;
}
.hero-home-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
}
.hero-home-content {
  max-width: 540px;
  text-align: left;
}
.hero-compass {
  width: clamp(70px, 9vw, 104px);
  height: clamp(70px, 9vw, 104px);
  margin: 0 0 1.75rem;
  opacity: .95;
}
.hero-home h1 {
  color: var(--cream);
  font-style: italic;
  margin: 0 0 .75rem;
}
.hero-home h1 .tm {
  font-size: .42em;
  vertical-align: super;
  font-style: normal;
}
.hero-subtitle {
  font-family: var(--ff-body);
  font-size: clamp(.8rem, 1.1vw, .9rem);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(245, 236, 215, .7);
  margin-bottom: .5rem;
}
.hero-launch {
  font-family: var(--ff-body);
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--gold);
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.hero-edelweiss-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(28, 80, 90, .45));
}

@media (max-width: 760px) {
  .hero-home {
    background-image:
      linear-gradient(to bottom,
        rgba(28, 80, 90, .58) 0%,
        rgba(28, 80, 90, .42) 42%,
        rgba(28, 80, 90, .82) 100%),
      url('../assets/images/britt-hero-beach.jpg');
    background-position: center 18%;
    align-items: flex-end;
    padding-bottom: 3.5rem;
  }
  .hero-home-content { max-width: 100%; text-align: center; }
  .hero-compass { margin: 0 auto 1.5rem; }
  .hero-actions { justify-content: center; }
}

/* 8 — Hero: interior pages */
.hero-inner {
  background: var(--teal);
  padding: calc(var(--nav-h) + 3.5rem) var(--px) 3.5rem;
  text-align: center;
}
.hero-inner h1 {
  color: var(--cream);
  font-style: italic;
  max-width: 680px;
  margin: .5rem auto 0;
}
.hero-inner .hero-sub {
  font-family: var(--ff-body);
  font-size: clamp(.9rem, 1.4vw, 1.05rem);
  color: rgba(245, 236, 215, .65);
  max-width: 560px;
  margin: 1rem auto 0;
  line-height: 1.7;
}

/* 9 — Compass divider */
.section-divider {
  padding: 1.5rem var(--px);
}
.divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 480px;
  margin: 0 auto;
  padding: 0.75rem 0;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: .3;
}
.divider-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.section-teal .divider::before,
.section-teal .divider::after { opacity: .25; }

/* 10 — Pull quotes */
.pull-quote {
  border-left: 2px solid var(--gold);
  padding: .6rem 1.6rem;
  margin: 2rem 0;
  font-family: var(--ff-head);
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-style: italic;
  color: var(--teal);
  line-height: 1.55;
}
.pull-quote cite {
  display: block;
  margin-top: .6rem;
  font-family: var(--ff-body);
  font-size: .7rem;
  font-style: normal;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--charcoal);
  opacity: .55;
}
.section-teal .pull-quote {
  color: var(--cream);
  border-left-color: var(--gold);
}
.section-teal .pull-quote cite { color: rgba(245, 236, 215, .55); }

/* 11 — Book display */
.book-display {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(2.5rem, 5vw, 5.5rem);
  align-items: start;
}
.book-cover-wrap {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}
.book-cover-frame {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 5.5 / 8.5;
  background: var(--blush);
  border: 1px solid rgba(90, 36, 62, .12);
  box-shadow:
    6px 10px 30px rgba(28, 80, 90, .18),
    2px 4px 8px rgba(28, 80, 90, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto;
}
.book-cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.book-cover-placeholder {
  padding: 2rem;
  text-align: center;
  color: var(--burgundy);
  font-family: var(--ff-head);
  font-style: italic;
  font-size: .85rem;
  opacity: .45;
  line-height: 1.6;
}
.book-info h2 { color: var(--burgundy); margin-bottom: .4rem; }
.book-info .byline { margin-bottom: 2rem; }
.book-desc p { margin-bottom: 1rem; }
.book-desc p:last-child { margin-bottom: 0; }

/* 12 — Two / three column grids */
.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4.5rem);
}
.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}

/* 13 — Extract / read page */
.extract-wrap {
  max-width: 660px;
  margin: 0 auto;
}
.extract-wrap .chapter-label {
  font-family: var(--ff-body);
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .4rem;
}
.extract-wrap .chapter-title {
  font-family: var(--ff-head);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-style: italic;
  color: var(--burgundy);
  margin-bottom: 2.5rem;
}
.extract-body p {
  font-size: clamp(.98rem, 1.6vw, 1.1rem);
  line-height: 2;
  margin-bottom: 1.4rem;
  color: var(--charcoal);
}
.extract-placeholder {
  border: 1px dashed rgba(201, 168, 76, .45);
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
  font-family: var(--ff-head);
  font-style: italic;
  color: var(--charcoal);
  opacity: .5;
  font-size: .9rem;
  line-height: 1.6;
}
.extract-section-break {
  text-align: center;
  font-family: var(--ff-head);
  font-style: italic;
  letter-spacing: .1em;
  color: var(--gold);
  margin: 2.2rem 0 1.6rem;
  font-size: .95rem;
}
.extract-timestamp {
  font-family: var(--ff-body);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--charcoal);
  opacity: .5;
  margin: 0 0 1.4rem;
}

/* 14 — Newsletter */
.newsletter-cta {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}
.newsletter-cta p { margin-bottom: 1.8rem; }

/* 15 — Press page */
.press-quote {
  background: var(--white);
  border-left: 3px solid var(--gold);
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  font-family: var(--ff-head);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--charcoal);
  line-height: 1.6;
}
.comp-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(54, 69, 79, .1);
}
.comp-item:last-child { border-bottom: none; }
.comp-item h4 { color: var(--teal); margin-bottom: .3rem; }
.comp-item p { font-size: .92rem; }

/* 16 — Social links */
.social-links {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: center;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  font-family: var(--ff-body);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .55rem .85rem;
  border: 1px solid rgba(28, 80, 90, .25);
  color: var(--teal);
  transition: all .2s;
}
.social-links a svg {
  flex-shrink: 0;
  transition: inherit;
}
.social-links a:hover {
  background: var(--teal);
  color: var(--cream);
  border-color: var(--teal);
}
.social-links.light a {
  border-color: rgba(245, 236, 215, .3);
  color: rgba(245, 236, 215, .8);
  padding: .5rem .75rem;
}
.social-links.light a:hover {
  background: var(--cream);
  color: var(--teal);
  border-color: var(--cream);
}

/* 17 — Footer */
.footer {
  background: var(--teal);
  color: var(--cream);
  padding: 4rem var(--px) 2rem;
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto 3.5rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 5rem);
  align-items: start;
}
.footer-brand .logo {
  font-family: var(--ff-head);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: .4rem;
}
.footer-brand .tagline {
  font-family: var(--ff-body);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.footer-brand p {
  font-size: .85rem;
  color: rgba(245, 236, 215, .6);
  line-height: 1.7;
}
.footer-col h5 {
  font-family: var(--ff-body);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  font-family: var(--ff-body);
  font-size: .82rem;
  color: rgba(245, 236, 215, .65);
  margin-bottom: .5rem;
  transition: color .2s;
}
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 236, 215, .12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
}
.footer-bottom p {
  font-size: .68rem;
  color: rgba(245, 236, 215, .4);
  letter-spacing: .06em;
}
.footer-compass {
  width: 48px;
  height: 48px;
}

/* 18 — About page photo */
.author-photo-wrap {
  max-width: 380px;
}
.author-photo-frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--blush);
  border: 1px solid rgba(90, 36, 62, .1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.author-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author-photo-placeholder {
  padding: 2rem;
  text-align: center;
  font-family: var(--ff-head);
  font-style: italic;
  font-size: .85rem;
  color: var(--burgundy);
  opacity: .4;
  line-height: 1.7;
}

/* 19 — Contact form */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: .85rem 1.1rem;
  font-family: var(--ff-body);
  font-size: .92rem;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid rgba(54, 69, 79, .2);
  margin-bottom: 1rem;
  outline: none;
  transition: border-color .2s;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--teal); }
.contact-form textarea { min-height: 140px; }

/* 20 — Trilogy strip */
.trilogy-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.trilogy-card {
  border-top: 2px solid var(--gold);
  padding-top: 1.2rem;
}
.trilogy-card .book-number {
  font-family: var(--ff-body);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .4rem;
}
.trilogy-card h4 { color: var(--cream); margin-bottom: .4rem; }
.trilogy-card p { font-size: .85rem; color: rgba(245, 236, 215, .65); }

/* 21 — Placeholder note (visible during development, remove after review) */
.ph {
  border: 1px dashed rgba(201, 168, 76, .5);
  background: rgba(201, 168, 76, .06);
  padding: .5rem .9rem;
  font-family: var(--ff-body);
  font-size: .72rem;
  font-style: italic;
  color: var(--charcoal);
  opacity: .7;
  margin-bottom: 1rem;
}

/* 22 — Real image assets: edelweiss + signatures */
.divider-icon img,
.footer-compass img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.section-teal .divider-icon img { filter: brightness(1.05); }

.footer-signature {
  height: 46px;
  width: auto;
  margin-top: 1.5rem;
  opacity: .92;
}
.footer-wolf {
  height: 60px;
  width: auto;
  opacity: .8;
  filter: brightness(0) invert(1);
}

/* 23 — Trilogy banner (full-bleed showcase) */
.trilogy-banner-section {
  padding: 0;
  background: var(--cream);
}
.trilogy-banner-section img {
  width: 100%;
  height: auto;
  display: block;
}

/* 24 — Trilogy colour-coding (per brand bible) */
.tri-card {
  border-top: 3px solid var(--gold);
  padding-top: 1.2rem;
  background: rgba(255, 255, 255, .35);
  padding: 1.4rem 1.4rem 1.6rem;
}
.tri-card .book-number {
  font-family: var(--ff-body);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: .5rem;
  display: block;
}
.tri-card h4 { margin-bottom: .5rem; }
.tri-card p { font-size: .88rem; opacity: .82; }
.tri-1 { border-top-color: var(--blush); }
.tri-1 .book-number { color: var(--burgundy); }
.tri-1 h4 { color: var(--burgundy); }
.tri-2 { border-top-color: var(--steel-teal); }
.tri-2 .book-number { color: #3E7178; }
.tri-2 h4 { color: #2E5A60; }
.tri-3 { border-top-color: var(--sage); }
.tri-3 .book-number { color: #4E7E68; }
.tri-3 h4 { color: #3C6552; }
/* On teal backgrounds, lift text to cream */
.section-teal .tri-card { background: rgba(245, 236, 215, .07); }
.section-teal .tri-card h4 { color: var(--cream); }
.section-teal .tri-card p { color: rgba(245, 236, 215, .72); }
.section-teal .tri-1 .book-number { color: var(--blush); }
.section-teal .tri-2 .book-number { color: var(--steel-teal); }
.section-teal .tri-3 .book-number { color: var(--sage); }

/* ======================================================================
   RESPONSIVE
   ====================================================================== */
@media (max-width: 900px) {
  .book-display {
    grid-template-columns: 1fr;
  }
  .book-cover-wrap {
    position: static;
    max-width: 280px;
    margin: 0 auto 2rem;
  }
  .cols-2 { grid-template-columns: 1fr; }
  .cols-3 { grid-template-columns: 1fr 1fr; }
  .trilogy-strip { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 640px) {
  .cols-3 { grid-template-columns: 1fr; }
  .trilogy-strip { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-home h1 { font-size: 2.1rem; }
}

@media (max-width: 440px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; text-align: center; }
}
