/* === PYRE & PEN — v2 === */
/* Forest Teal + Dusty Rose
   Background:  #1a2e2e (forest teal)
   Surface:     #1f3534 (lighter teal)
   Rose:        #c4917a (dusty rose - accents, prose borders)
   Teal accent: #8aaa9f (muted sage - poetry borders, tags)
   Cream:       #d0c8bc (warm cream - body text)
   Cream dim:   rgba(200, 195, 185, 0.45) (secondary text)
   Title:       #d6cec2 (warm white - headings)
   Border:      rgba(140, 170, 165, 0.15)
*/

:root {
  --bg-deep: #1a2e2e;
  --bg-surface: #1f3534;
  --bg-card: rgba(196, 145, 122, 0.05);
  --bg-card-poetry: rgba(138, 170, 159, 0.05);
  --rose: #c4917a;
  --rose-dim: rgba(196, 145, 122, 0.4);
  --rose-glow: rgba(196, 145, 122, 0.08);
  --sage: #8aaa9f;
  --sage-dim: rgba(138, 170, 159, 0.6);
  --cream: #d0c8bc;
  --cream-dim: rgba(200, 195, 185, 0.45);
  --title: #d6cec2;
  --border: rgba(140, 170, 165, 0.15);
  --border-strong: rgba(140, 170, 165, 0.25);
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Nunito Sans', 'Segoe UI', sans-serif;
}

/* === RESET & BASE === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--rose);
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

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

/* === NAVIGATION === */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 0.5px solid var(--border);
  position: relative;
  z-index: 10;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--title);
  letter-spacing: 0.5px;
}

.nav-logo:hover {
  color: var(--title);
  opacity: 0.8;
}

.amp {
  font-style: italic;
  opacity: 0.5;
  font-family: Georgia, serif;
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--sage-dim);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--cream);
}

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

/* === HERO (Landing Page) === */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

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

.hero-tagline {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--rose);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.2s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  font-weight: 400;
  color: var(--title);
  letter-spacing: 1px;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.5s forwards;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--cream-dim);
  letter-spacing: 0.5px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.8s forwards;
}

.hero-cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rose);
  border: 0.5px solid var(--rose-dim);
  padding: 0.75rem 2.5rem;
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeUp 1s ease 1.1s forwards;
}

.hero-cta:hover {
  background-color: var(--rose-glow);
  color: var(--cream);
  border-color: var(--rose);
}

.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138, 170, 159, 0.05) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}

/* === PAGE CONTENT (About, Writing) === */
.page {
  flex: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 4rem 2rem;
  width: 100%;
}

.page-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--title);
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.page-divider {
  width: 40px;
  height: 0.5px;
  background-color: var(--rose-dim);
  margin: 1.5rem 0 2rem;
}

/* === ABOUT PAGE === */
.about-text {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--cream);
  font-weight: 300;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.about-signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--rose);
  margin-top: 2rem;
}

/* === WRITING PAGE === */
.writing-intro {
  font-size: 0.95rem;
  color: var(--cream-dim);
  font-weight: 300;
  margin-bottom: 3rem;
  line-height: 1.8;
}

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

.writing-card {
  display: block;
  background-color: var(--bg-card);
  border-radius: 8px;
  padding: 1.5rem;
  border-left: 2px solid var(--rose);
  transition: border-color 0.3s ease, background-color 0.3s ease;
  color: inherit;
}

.writing-card:hover {
  border-color: var(--cream);
  background-color: rgba(196, 145, 122, 0.09);
  color: inherit;
}

.writing-card.poetry {
  background-color: var(--bg-card-poetry);
  border-left-color: var(--sage);
}

.writing-card.poetry:hover {
  border-left-color: var(--cream);
  background-color: rgba(138, 170, 159, 0.09);
}

.writing-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--title);
  margin-bottom: 0.5rem;
}

.writing-card-excerpt {
  font-size: 0.9rem;
  color: var(--cream-dim);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.writing-card-meta {
  font-size: 0.75rem;
  color: var(--sage-dim);
  letter-spacing: 0.5px;
}

.writing-card-tag {
  color: var(--rose);
}

.writing-card.poetry .writing-card-tag {
  color: var(--sage);
}

.writing-empty {
  text-align: center;
  padding: 4rem 1rem;
}

.writing-empty-icon {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--rose-dim);
  margin-bottom: 1rem;
}

.writing-empty-text {
  font-size: 0.95rem;
  color: var(--cream-dim);
  font-weight: 300;
  line-height: 1.8;
}

/* === INDIVIDUAL PIECE PAGE === */
.piece {
  flex: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 4rem 2rem;
  width: 100%;
}

.piece-category {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--rose);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.piece-category.poetry {
  color: var(--sage);
}

.piece-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--title);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.piece-date {
  font-size: 0.8rem;
  color: var(--sage-dim);
  margin-bottom: 2.5rem;
}

.piece-body {
  font-size: 1rem;
  line-height: 2;
  color: var(--cream);
  font-weight: 300;
}

.piece-body p {
  margin-bottom: 1.5rem;
}

.piece-body .stanza {
  margin-bottom: 2rem;
}

.piece-body .line {
  display: block;
}

.piece-back {
  display: inline-block;
  margin-top: 3rem;
  font-size: 0.8rem;
  color: var(--sage-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.piece-back:hover {
  color: var(--rose);
}

/* === FOOTER === */
.footer {
  text-align: center;
  padding: 2rem;
  border-top: 0.5px solid var(--border);
  font-size: 0.75rem;
  color: var(--sage-dim);
  letter-spacing: 0.5px;
}

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

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

  .nav-links {
    gap: 1.25rem;
  }

  .hero {
    padding: 3rem 1.5rem;
  }

  .page, .piece {
    padding: 3rem 1.5rem;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .writing-card {
    padding: 1.25rem;
  }
}
