/* ============================================================
   HECTOR WOOD — POET
   Visual identity: deep forest green + gold, literary & ancient
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=EB+Garamond:ital,wght@0,400;0,500;1,400;1,500&family=Cinzel:wght@400;600&display=swap');

/* ---- CSS Variables ---- */
:root {
  --green-deep:    #152b1e;
  --green-mid:     #1e3d2a;
  --green-light:   #2a5238;
  --gold:          #c9a84c;
  --gold-light:    #e2c97e;
  --gold-pale:     #f0e4c0;
  --cream:         #f5f0e8;
  --text-dark:     #1a1a14;
  --text-mid:      #3a3a30;
  --text-light:    #c8c4b8;
  --border-gold:   rgba(201, 168, 76, 0.35);
  --overlay-dark:  rgba(15, 28, 18, 0.72);
  --overlay-mid:   rgba(15, 28, 18, 0.45);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'EB Garamond', Georgia, serif;
  background-color: var(--green-deep);
  color: var(--cream);
  line-height: 1.75;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.cinzel {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.12em;
  font-weight: 400;
}

.italic { font-style: italic; }

/* ---- Gold Rule Divider ---- */
.gold-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0;
}
.gold-rule::before,
.gold-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.gold-rule span {
  color: var(--gold);
  font-size: 1.1rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 3rem;
  background: rgba(15, 28, 18, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-gold);
  transition: all 0.3s;
}

nav .nav-name {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

nav ul li a {
  font-family: 'EB Garamond', serif;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--text-light);
  transition: color 0.2s;
  font-style: italic;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--gold);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  transition: all 0.3s;
}

/* ============================================================
   HERO — HOME PAGE
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/landscape-marsh.png');
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}

.hero-bg.loaded { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 22, 14, 0.96) 0%,
    rgba(15, 28, 18, 0.65) 45%,
    rgba(15, 28, 18, 0.25) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 5rem 4rem;
  max-width: 800px;
}

.hero-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 1s 0.3s forwards;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 0.95;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s 0.55s forwards;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-tagline {
  font-family: 'EB Garamond', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-light);
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 1s 0.8s forwards;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  border: 1px solid var(--border-gold);
  padding: 0.85rem 1.75rem;
  transition: all 0.3s;
  opacity: 0;
  animation: fadeUp 1s 1s forwards;
}

.hero-cta:hover {
  background: rgba(201, 168, 76, 0.1);
  border-color: var(--gold);
  color: var(--gold-light);
  gap: 1rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  right: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  opacity: 0.6;
  writing-mode: vertical-rl;
}

/* ============================================================
   PAGE HEADER (interior pages)
   ============================================================ */
.page-header {
  position: relative;
  padding-top: 120px;
  padding-bottom: 5rem;
  text-align: center;
  overflow: hidden;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}

.page-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--green-deep) 0%, transparent 40%, var(--green-deep) 100%);
}

.page-header-content {
  position: relative;
  z-index: 2;
}

.page-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 0;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.container-narrow {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section {
  padding: 6rem 0;
}

.section-alt {
  background: var(--green-mid);
}

/* ============================================================
   HOME — INTRO STRIP
   ============================================================ */
.home-intro {
  padding: 7rem 0;
}

.home-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.home-intro-text h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--gold-light);
  margin-bottom: 1.75rem;
}

.home-intro-text p {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
  line-height: 1.85;
}

.home-intro-image {
  position: relative;
  overflow: hidden;
  outline: 1px solid var(--border-gold);
  outline-offset: 12px;
}

.home-intro-image img {
  width: 100%;
  display: block;
  border: 0;
  transform: scale(1.05);
  filter: grayscale(15%) contrast(1.05);
}

/* ============================================================
   HOME — LANDSCAPE BAND
   ============================================================ */
.landscape-band {
  height: 380px;
  position: relative;
  overflow: hidden;
}

.landscape-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  filter: saturate(0.8) brightness(0.7);
}

.landscape-band-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landscape-band-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-style: italic;
  font-weight: 300;
  color: var(--cream);
  text-align: center;
  max-width: 700px;
  padding: 0 2rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}

/* ============================================================
   HOME — BOOK TEASER
   ============================================================ */
.book-teaser {
  padding: 7rem 0;
}

.book-teaser-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 5rem;
  align-items: center;
}

.book-teaser-cover {
  position: relative;
  overflow: hidden;
}

.book-teaser-cover img {
  width: 100%;
  display: block;
  border: 0;
  transform: scale(1.05);
  box-shadow: -20px 20px 60px rgba(0,0,0,0.6), 20px -5px 40px rgba(201,168,76,0.1);
}

.book-teaser-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.book-teaser-text .subtitle {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 1.75rem;
}

.book-teaser-text p {
  color: var(--text-light);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

/* ============================================================
   BUTTONS & LINKS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  padding: 0.8rem 1.6rem;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}

.btn-gold {
  background: var(--gold);
  color: var(--green-deep);
}

.btn-gold:hover {
  background: var(--gold-light);
  color: var(--green-deep);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border-gold);
}

.btn-outline:hover {
  background: rgba(201, 168, 76, 0.08);
  border-color: var(--gold);
  color: var(--gold-light);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-body {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: start;
}

.about-portrait {
  position: sticky;
  top: 120px;
  clip-path: inset(0);
}

.about-portrait img {
  width: 100%;
  display: block;
  border: 0;
  transform: scale(1.12) translateY(2%);
  transform-origin: center top;
  filter: grayscale(10%) contrast(1.04);
}

.about-portrait figcaption {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-align: center;
  margin-top: 1rem;
  text-transform: uppercase;
}

.about-text h2 {
  font-size: 2.2rem;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 1.4rem;
}

.about-text .drop-cap::first-letter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4.5rem;
  font-weight: 600;
  color: var(--gold);
  float: left;
  line-height: 0.75;
  margin-right: 0.12em;
  margin-top: 0.08em;
}

/* ============================================================
   BOUDICA PAGE
   ============================================================ */
.book-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.book-cover-large {
  position: sticky;
  top: 120px;
  clip-path: inset(0);
}

.book-cover-large img {
  width: 100%;
  display: block;
  border: 0;
  transform: scale(1.05);
  box-shadow: -24px 24px 70px rgba(0,0,0,0.7), 24px -8px 50px rgba(201,168,76,0.12);
}

.book-details h2 {
  font-size: 3rem;
  color: var(--cream);
  margin-bottom: 0.4rem;
}

.book-details .author-name {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 2rem;
}

.book-details p {
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 1.25rem;
}

.book-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2.5rem 0;
  padding: 2rem;
  border: 1px solid var(--border-gold);
}

.book-meta-item .label {
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.book-meta-item .value {
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  color: var(--cream);
}

.buy-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.buy-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border: 1px solid var(--border-gold);
  color: var(--cream);
  transition: all 0.25s;
}

.buy-link:hover {
  background: rgba(201, 168, 76, 0.08);
  border-color: var(--gold);
  color: var(--gold-light);
}

.buy-link .retailer {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--gold);
}

.buy-link .price {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

.blog-card {
  border: 1px solid var(--border-gold);
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
  overflow: hidden;
}

.blog-card:hover {
  border-color: rgba(201, 168, 76, 0.6);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.blog-card-image {
  height: 200px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
  filter: saturate(0.7);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.blog-card h3 {
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: 0.85rem;
  line-height: 1.25;
}

.blog-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.8;
  flex: 1;
  margin-bottom: 1.25rem;
}

.blog-card .read-more {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  align-self: flex-start;
  border-bottom: 1px solid var(--border-gold);
  padding-bottom: 2px;
  transition: all 0.2s;
}

.blog-card .read-more:hover {
  color: var(--gold-light);
  border-color: var(--gold);
}

/* ============================================================
   BLOG POST
   ============================================================ */
.post-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 4rem 2.5rem 6rem;
}

.post-meta {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.post-body h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--cream);
  margin-bottom: 2rem;
  font-weight: 300;
}

.post-body .lede {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-gold);
}

.post-body p {
  font-size: 1.05rem;
  line-height: 1.95;
  color: #d0ccc0;
  margin-bottom: 1.5rem;
}

.post-body h2 {
  font-size: 1.8rem;
  color: var(--gold-light);
  margin: 3rem 0 1rem;
}

.poem-block {
  margin: 3rem 0;
  padding: 2.5rem 3rem;
  border-left: 2px solid var(--gold);
  background: rgba(201, 168, 76, 0.04);
}

.poem-block p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 2;
  color: var(--cream);
  margin: 0;
  white-space: pre-line;
}

.poem-block .poem-title {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  font-style: normal;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 {
  font-size: 2.2rem;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
}

.contact-info p {
  color: var(--text-light);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-light);
  font-size: 0.95rem;
  transition: color 0.2s;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.contact-link-item:hover { color: var(--gold-light); }

.contact-link-item .link-label {
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  min-width: 80px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-gold);
  color: var(--cream);
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
}

.form-group textarea { min-height: 140px; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: rgba(8, 18, 12, 0.9);
  border-top: 1px solid var(--border-gold);
  padding: 3.5rem 0;
  text-align: center;
}

.footer-name {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.75rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  list-style: none;
  margin-bottom: 2.5rem;
}

.footer-nav a {
  font-family: 'EB Garamond', serif;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-light);
  transition: color 0.2s;
}

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

.footer-copy {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: rgba(200, 196, 184, 0.35);
}

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

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(12, 24, 16, 0.98);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border-gold);
  }

  nav ul.open { display: flex; }

  .nav-toggle { display: flex; }

  .hero-content { padding: 3rem 1.5rem; }

  .home-intro-grid,
  .book-teaser-grid,
  .about-body,
  .book-showcase,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-portrait { position: static; }
  .book-cover-large { position: static; }
  .book-teaser-grid { grid-template-columns: 1fr; }

  .container, .container-narrow { padding: 0 1.25rem; }

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

  .post-body { padding: 2.5rem 1.25rem 4rem; }

  .book-meta { grid-template-columns: 1fr; }

  footer .footer-nav { flex-wrap: wrap; gap: 1.25rem; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero-content { padding: 2.5rem 1.25rem; }
  .section { padding: 4rem 0; }
  .landscape-band { height: 240px; }
}
