﻿/* ============================================
   J.J. Cowan â€” Author Website
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Lato:wght@300;400;700&display=swap');

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

:root {
  --gold:        #c9a84c;
  --gold-light:  #e8c96e;
  --dark:        #13100d;
  --dark-2:      #1e1914;
  --dark-3:      #2a2318;
  --cream:       #f5f0e8;
  --cream-dark:  #ede6d8;
  --text:        #2c2417;
  --text-light:  #5a4e3e;
  --crimson:     #7a1a1a;
  --white:       #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
}

/* â”€â”€ Typography â”€â”€ */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
}

p { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }

/* â”€â”€ Layout Utilities â”€â”€ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 90px 0; }
.section--dark { background: var(--dark); color: var(--cream); }
.section--mid  { background: var(--dark-2); color: var(--cream); }
.section--sand { background: var(--cream-dark); }

/* â”€â”€ Nav â”€â”€ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(19, 16, 13, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.25);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav__logo svg {
  width: 29px;
  height: 40px;
  fill: var(--gold);
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.nav__links a:hover,
.nav__links a.active { color: var(--gold); }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: 0.3s;
}

/* â”€â”€ Hero â”€â”€ */
.hero {
  min-height: 100vh;
  background: var(--dark);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 64px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(201,168,76,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(122,26,26,0.25) 0%, transparent 50%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.hero__text { max-width: 580px; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.hero__eyebrow::before,
.hero__eyebrow::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.hero__name {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}

.hero__title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: var(--gold);
  margin-bottom: 1.8rem;
  letter-spacing: 0.04em;
}

.hero__bio {
  font-size: 1.05rem;
  color: rgba(245,240,232,0.75);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 2.2rem;
}

.hero__cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.btn--gold {
  background: var(--gold);
  color: var(--dark);
  border: 2px solid var(--gold);
}
.btn--gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.35);
}

.btn--outline {
  background: transparent;
  color: var(--cream);
  border: 2px solid rgba(245,240,232,0.35);
}
.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

.hero__photo-wrap {
  position: relative;
}

.hero__photo-frame {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.hero__photo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(19,16,13,0.4));
  z-index: 1;
  pointer-events: none;
}

.hero__photo-frame img {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center top;
}

.hero__photo-accent {
  position: absolute;
  top: -12px;
  left: -12px;
  right: 12px;
  bottom: 12px;
  border: 2px solid var(--gold);
  border-radius: 4px;
  opacity: 0.3;
  pointer-events: none;
}

/* â”€â”€ Section Labels â”€â”€ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-label::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-title--light { color: var(--cream); }

.gold-rule {
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin: 1.2rem 0 2rem;
  border: none;
}

/* â”€â”€ About Section â”€â”€ */
.about__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about__body {
  font-size: 1.05rem;
  color: rgba(245,240,232,0.82);
  line-height: 1.9;
}

.about__sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about__fact {
  border-left: 3px solid var(--gold);
  padding: 0.6rem 0 0.6rem 1.2rem;
}

.about__fact-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.about__fact-value {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  color: var(--cream);
  line-height: 1.4;
}

/* â”€â”€ Caravaggio Section â”€â”€ */
.caravaggio {
  background: var(--dark-2);
  position: relative;
  overflow: hidden;
}

.caravaggio::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.caravaggio__inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.caravaggio__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 2px;
  padding: 0.4rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}

.caravaggio__title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.caravaggio__title em {
  font-style: italic;
  color: var(--gold);
}

.caravaggio__body {
  color: rgba(245,240,232,0.78);
  line-height: 1.9;
  font-size: 1.02rem;
}

.caravaggio__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.caravaggio__ornament {
  width: 320px;
  height: 380px;
  border: 2px solid rgba(201,168,76,0.2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: rgba(201,168,76,0.03);
}

.caravaggio__ornament::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 2px;
}

.caravaggio__quill {
  opacity: 0.15;
  font-size: 8rem;
  line-height: 1;
  user-select: none;
}

.caravaggio__year {
  position: absolute;
  bottom: 2rem;
  right: -1.5rem;
  background: var(--gold);
  color: var(--dark);
  font-family: 'Playfair Display', serif;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  letter-spacing: 0.05em;
  transform: rotate(90deg);
  transform-origin: bottom right;
  white-space: nowrap;
}

/* â”€â”€ Tin Soldiers Section â”€â”€ */
.tin-soldiers__inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}

.tin-soldiers__cover {
  position: relative;
}

.tin-soldiers__cover img {
  width: 100%;
  border-radius: 4px;
  display: block;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.tin-soldiers__cover-accent {
  position: absolute;
  top: -8px; left: -8px;
  right: 8px; bottom: 8px;
  border: 2px solid var(--gold);
  border-radius: 4px;
  opacity: 0.25;
  pointer-events: none;
}

.tin-soldiers__rating {
  margin-top: 1.5rem;
  background: var(--dark-3);
  border-radius: 4px;
  padding: 1rem 1.2rem;
  text-align: center;
}

.tin-soldiers__stars {
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.tin-soldiers__rating-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1;
}

.tin-soldiers__rating-meta {
  font-size: 0.78rem;
  color: rgba(245,240,232,0.5);
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.tin-soldiers__synopsis {
  font-size: 1.02rem;
  color: rgba(245,240,232,0.8);
  line-height: 1.9;
  margin-bottom: 2rem;
}

.tin-soldiers__available {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
}

.tin-soldiers__available span {
  color: rgba(245,240,232,0.5);
}

/* â”€â”€ Reviews â”€â”€ */
.reviews {
  padding: 70px 0;
  background: var(--dark-3);
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.review-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 4px;
  padding: 1.8rem;
  position: relative;
  transition: border-color 0.2s;
}

.review-card:hover {
  border-color: rgba(201,168,76,0.35);
}

.review-card__quote {
  font-size: 3rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.3;
  font-family: 'Playfair Display', serif;
  margin-bottom: -0.5rem;
}

.review-card__stars {
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 0.8rem;
  letter-spacing: 0.08em;
}

.review-card__headline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--cream);
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.review-card__body {
  font-size: 0.9rem;
  color: rgba(245,240,232,0.65);
  line-height: 1.75;
  margin-bottom: 1.2rem;
}

.review-card__author {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
}

.review-card__date {
  font-size: 0.75rem;
  color: rgba(245,240,232,0.35);
  margin-top: 0.15rem;
}

/* â”€â”€ Contact â”€â”€ */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.contact__text {
  font-size: 1.05rem;
  color: rgba(245,240,232,0.78);
  line-height: 1.85;
}

.contact__details { display: flex; flex-direction: column; gap: 1.5rem; }

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact__item-icon {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact__item-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact__item-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.contact__item-value {
  font-size: 1rem;
  color: var(--cream);
}

.contact__item-value a {
  color: var(--cream);
  text-decoration: none;
  transition: color 0.2s;
}
.contact__item-value a:hover { color: var(--gold); }

/* â”€â”€ Footer â”€â”€ */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(201,168,76,0.12);
  padding: 2.5rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 0.82rem;
  color: rgba(245,240,232,0.35);
  letter-spacing: 0.03em;
}

.footer__logo {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: rgba(245,240,232,0.5);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__logo svg { width: 29px;
  height: 40px; fill: var(--gold); opacity: 0.7; }

/* â”€â”€ Tin Soldiers page hero â”€â”€ */
.book-hero {
  background: var(--dark);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.book-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(122,26,26,0.30) 0%, transparent 60%);
}

.book-hero__inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 4rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.book-hero__cover img {
  width: 100%;
  border-radius: 4px;
  display: block;
  box-shadow: 0 25px 70px rgba(0,0,0,0.7);
}

.book-hero__cover { position: relative; }
.book-hero__cover::before {
  content: '';
  position: absolute;
  top: -10px; left: -10px;
  right: 10px; bottom: 10px;
  border: 2px solid var(--gold);
  border-radius: 4px;
  opacity: 0.2;
  pointer-events: none;
}

.book-hero__genre {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.book-hero__title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--cream);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.book-hero__author {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 2rem;
}

.book-hero__blurb {
  font-size: 1.05rem;
  color: rgba(245,240,232,0.78);
  line-height: 1.85;
  max-width: 600px;
  margin-bottom: 2rem;
}

/* â”€â”€ Responsive â”€â”€ */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero__photo-wrap { order: -1; max-width: 340px; margin: 0 auto; }
  .hero__photo-frame img { height: 380px; }
  .hero__text { max-width: 100%; text-align: center; }
  .hero__eyebrow { justify-content: center; }
  .hero__bio { max-width: 100%; }
  .hero__cta-group { justify-content: center; }

  .about__grid { grid-template-columns: 1fr; gap: 3rem; }
  .caravaggio__inner { grid-template-columns: 1fr; gap: 3rem; }
  .caravaggio__visual { min-height: 250px; }
  .tin-soldiers__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .tin-soldiers__cover { max-width: 240px; }
  .contact__inner { grid-template-columns: 1fr; gap: 3rem; }
  .book-hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .book-hero__cover { max-width: 220px; }
}

@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(19,16,13,0.98);
    padding: 1.5rem 2rem;
    gap: 1.2rem;
    border-top: 1px solid rgba(201,168,76,0.15);
  }
  .nav__hamburger { display: flex; }
  .reviews__grid { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; text-align: center; }
}
