/* ================================
   AMY CORNFORTH — SITE STYLES
   Editorial, credibility-first design
   Brand: Gold #A37E2C · Green #006039 · Black · White
   Fonts: Oswald · Cormorant Garamond · DM Sans
   ================================ */

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

:root {
  --gold: #A37E2C;
  --gold-light: #C4974A;
  --green: #006039;
  --green-dark: #004428;
  --black: #1a1a1a;
  --ink: #2c2c2c;
  --muted: #6b6b6b;
  --line: #d9d3c7;
  --cream: #faf7f1;
  --paper: #f5f1e8;
  --white: #ffffff;

  --font-display: 'Oswald', sans-serif;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'DM Sans', sans-serif;

  --max-width: 1200px;
  --reading-width: 680px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* ============ HEADER ============ */

.site-header {
  padding: 32px 48px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(250, 247, 241, 0.92);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--black);
}

.brand .esq {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 1px;
  font-size: 16px;
  color: var(--gold);
  text-transform: none;
  margin-left: 4px;
}

.nav {
  display: flex;
  gap: 36px;
}

.nav a {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}

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

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

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: var(--ink);
}

/* ============ HERO / PAGE HEADERS ============ */

.hero {
  padding: 96px 48px 80px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.hero-content .eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1.02;
  color: var(--black);
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.hero-content h1 .accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0;
}

.hero-content .subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  line-height: 1.4;
  color: var(--muted);
  margin: 32px 0 40px;
  max-width: 500px;
  font-weight: 400;
}

.hero-content .lede {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 40px;
  max-width: 520px;
  font-weight: 300;
}

.hero-image-frame {
  position: relative;
  padding: 24px;
}

.hero-image-frame::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 85%;
  height: 85%;
  background: var(--green);
  z-index: 0;
}

.hero-image-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  filter: grayscale(5%) contrast(1.02);
}

/* ============ PAGE HEADER (non-home pages) ============ */

.page-header {
  padding: 80px 48px 56px;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.page-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-header .eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.page-header h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 5.5vw, 72px);
  line-height: 1.05;
  color: var(--black);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.page-header h1 .accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.page-header .subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--muted);
  max-width: 680px;
  line-height: 1.5;
}

/* ============ BUTTONS / LINKS ============ */

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 32px;
  border: 1px solid var(--black);
  color: var(--black);
  background: transparent;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn:hover {
  background: var(--black);
  color: var(--cream);
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.text-link {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  display: inline-block;
  transition: all 0.2s ease;
}

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

.text-link::after {
  content: ' →';
  color: var(--gold);
  transition: transform 0.2s ease;
  display: inline-block;
  margin-left: 4px;
}

/* ============ SECTIONS ============ */

section {
  padding: 96px 48px;
}

section.tight {
  padding: 64px 48px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-inner.narrow {
  max-width: var(--reading-width);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 42px;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.section-title .accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-intro {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--muted);
  margin-bottom: 48px;
  max-width: 640px;
  line-height: 1.5;
}

/* ============ PROSE ============ */

.prose {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
}

.prose p {
  margin-bottom: 24px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.2;
  color: var(--black);
  margin: 56px 0 20px;
  letter-spacing: -0.2px;
}

.prose h3 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  color: var(--gold);
  margin: 40px 0 16px;
}

.prose .pullquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 26px;
  line-height: 1.4;
  color: var(--green);
  margin: 48px 0;
  padding-left: 32px;
  border-left: 3px solid var(--gold);
}

.prose strong {
  font-weight: 500;
  color: var(--black);
}

/* ============ CARDS (home page tiles) ============ */

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

.tile {
  background: var(--white);
  padding: 48px 36px;
  border: 1px solid var(--line);
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.tile:hover::before {
  transform: scaleX(1);
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.15);
}

.tile-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.tile-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 16px;
  letter-spacing: -0.2px;
}

.tile-title .italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.tile-body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 28px;
  flex-grow: 1;
}

/* ============ BOOK FEATURE ============ */

.book-feature {
  background: var(--paper);
  padding: 96px 48px;
}

.book-feature-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.book-image {
  position: relative;
}

.book-image img {
  width: 100%;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.25);
}

.book-content .eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.book-content h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.08;
  color: var(--black);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.book-content h2 .accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.book-content .book-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--green);
  margin-bottom: 32px;
}

/* ============ FOOTER ============ */

.site-footer {
  background: var(--black);
  color: var(--cream);
  padding: 72px 48px 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 16px;
}

.footer-brand .esq {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 1px;
  font-size: 16px;
  color: var(--gold);
  text-transform: none;
  margin-left: 4px;
}

.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  color: #b8b0a0;
  max-width: 360px;
  line-height: 1.5;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

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

.footer-links a {
  color: var(--cream);
  font-size: 14px;
  font-weight: 300;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 12px;
  color: #888;
  letter-spacing: 1px;
}

/* ============ DIVIDER ============ */

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 48px auto;
  max-width: 120px;
  justify-content: center;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold);
}

.divider-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

/* ============ CALLOUT BAR ============ */

.callout-bar {
  background: var(--green);
  color: var(--cream);
  padding: 72px 48px;
  text-align: center;
}

.callout-bar-inner {
  max-width: 720px;
  margin: 0 auto;
}

.callout-bar h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.2px;
}

.callout-bar h2 .accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-light);
}

.callout-bar p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  color: #d9d3c7;
  margin-bottom: 32px;
}

/* ============ SECTION-SPECIFIC LAYOUTS ============ */

.about-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.series-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

/* ============ ANIMATIONS ============ */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content > * {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.35s; }
.hero-content > *:nth-child(4) { animation-delay: 0.5s; }
.hero-content > *:nth-child(5) { animation-delay: 0.65s; }

.hero-image-frame {
  opacity: 0;
  animation: fadeUp 1s ease 0.3s forwards;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 900px) {
  .site-header {
    padding: 20px 24px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--line);
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 56px 24px 48px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-image-frame {
    max-width: 400px;
    margin: 0 auto;
  }

  .page-header {
    padding: 48px 24px 40px;
  }

  section {
    padding: 64px 24px;
  }

  .tile-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-layout .hero-image-frame {
    max-width: 340px;
    margin: 0 auto;
  }

  .series-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .series-grid > div {
    padding: 40px 28px !important;
  }

  .series-grid h2 {
    font-size: 32px !important;
  }

  /* Book page reviews grid - stack on mobile */
  section [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  .tile {
    min-height: auto;
    padding: 36px 28px;
  }

  .book-feature {
    padding: 64px 24px;
  }

  .book-feature-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .book-image {
    max-width: 360px;
    margin: 0 auto;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .site-footer {
    padding: 56px 24px 24px;
  }

  .callout-bar {
    padding: 56px 24px;
  }

  .callout-bar h2 {
    font-size: 28px;
  }

  .section-title {
    font-size: 32px;
  }

  .hero-content .subtitle,
  .page-header .subtitle,
  .section-intro {
    font-size: 19px;
  }
}

@media (max-width: 500px) {
  .hero-content h1 {
    font-size: 44px;
  }

  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    text-align: center;
  }
}
