/* ============================================================
   Quinn Path — Author Website
   Shared Stylesheet
   ============================================================ */

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

:root {
  --bg-primary:    #0d0d0d;
  --bg-secondary:  #141414;
  --bg-card:       #1a1a1a;
  --bg-raised:     #212121;
  --gold:          #c9a84c;
  --gold-light:    #e0c070;
  --gold-dim:      #8a6e2f;
  --text-primary:  #e8e0d0;
  --text-secondary:#b0a898;
  --text-muted:    #706860;
  --border:        #2a2520;
  --border-gold:   rgba(201,168,76,0.25);
  --font-serif:    Georgia, 'Times New Roman', serif;
  --font-sans:     'Helvetica Neue', Arial, sans-serif;
  --max-w:         1100px;
  --nav-h:         72px;
  --transition:    0.3s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: normal;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.2rem; }

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

.gold { color: var(--gold); }
.serif { font-family: var(--font-serif); }

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section--sm {
  padding: 4rem 0;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.6);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text-primary);
  letter-spacing: 0.03em;
}
.nav__logo span { color: var(--gold); }
.nav__logo:hover { color: var(--text-primary); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.nav__links a:hover,
.nav__links a.active {
  color: var(--gold);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-secondary);
  transition: var(--transition);
}

/* ---------- Mobile Nav ---------- */
@media (max-width: 768px) {
  .nav__toggle { display: flex; }

  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1.5rem 2rem;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    pointer-events: none;
  }
  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__links li { width: 100%; }
  .nav__links a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
  }
  .nav__links li:last-child a { border-bottom: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn--gold {
  background: var(--gold);
  color: #0d0d0d;
  font-weight: 600;
}
.btn--gold:hover {
  background: var(--gold-light);
  color: #0d0d0d;
}

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

/* ---------- Divider ---------- */
.divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem 0;
}

.divider--center { margin: 1.5rem auto; }

/* ---------- Section Label ---------- */
.section-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 3rem) 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(201,168,76,0.05) 0%, transparent 65%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}

.hero__text { max-width: 620px; }

.hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.hero__tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 2.5rem;
  line-height: 1.5;
}

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

.hero__photo-wrap {
  position: relative;
  flex-shrink: 0;
}

.hero__photo {
  width: clamp(220px, 25vw, 340px);
  height: clamp(280px, 32vw, 440px);
  object-fit: cover;
  object-position: top center;
  filter: grayscale(20%) contrast(1.05);
}

.hero__photo-frame {
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 1px solid var(--border-gold);
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__photo-wrap {
    order: -1;
    margin: 0 auto;
  }
  .hero__photo {
    width: 200px;
    height: 260px;
  }
  .hero__photo-frame { display: none; }
  .hero__actions { justify-content: center; }
  .divider { margin-left: auto; margin-right: auto; }
}

/* ---------- Book Cards ---------- */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
}

.book-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2rem 1.75rem;
  transition: border-color var(--transition), transform var(--transition);
  position: relative;
}

.book-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
}

.book-card__number {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--border);
  line-height: 1;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.book-card__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.book-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.book-card__formats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.format-tag {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border-gold);
  padding: 0.2rem 0.6rem;
}

.book-card__stars {
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 0.25rem;
}
.book-card__reviews {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.book-card__cta {
  display: block;
  text-align: center;
  padding: 0.7rem 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border-gold);
  transition: var(--transition);
}
.book-card__cta:hover {
  background: var(--gold);
  color: #0d0d0d;
}

/* ---------- Quote Block ---------- */
.pull-quote {
  border-left: 2px solid var(--gold);
  padding: 1.5rem 2rem;
  margin: 3rem 0;
  background: var(--bg-card);
}

.pull-quote p {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- About Page ---------- */
.about-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 5rem;
  align-items: start;
}

.about-photo {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.about-photo img {
  width: 100%;
  filter: grayscale(15%) contrast(1.05);
}

.about-photo-frame {
  position: relative;
}
.about-photo-frame::after {
  content: '';
  position: absolute;
  inset: 12px -12px -12px 12px;
  border: 1px solid var(--border-gold);
  pointer-events: none;
}

.about-body h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: var(--gold);
}
.about-body h3:first-child { margin-top: 0; }

.about-body p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-photo {
    position: relative;
    top: auto;
    max-width: 280px;
    margin: 0 auto;
  }
}

/* ---------- Diary Page ---------- */
.diary-empty {
  text-align: center;
  padding: 6rem 2rem;
  border: 1px dashed var(--border);
  background: var(--bg-card);
}

.diary-empty__icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  opacity: 0.4;
}

.diary-empty h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.diary-empty p {
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto;
  font-style: italic;
}

/* ---------- Contact Form ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  margin-top: 2rem;
  font-family: var(--font-serif);
}
.contact-info h3:first-child { margin-top: 0; }
.contact-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color var(--transition);
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.form-control:focus {
  border-color: var(--gold);
}

.form-control::placeholder {
  color: var(--text-muted);
}

textarea.form-control {
  resize: vertical;
  min-height: 160px;
  font-family: var(--font-sans);
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23706860' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}

select.form-control option {
  background: var(--bg-card);
}

.form-notice {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
  font-style: italic;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  padding: calc(var(--nav-h) + 4rem) 0 4rem;
  border-bottom: 1px solid var(--border);
}

.page-hero__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  text-align: center;
}

.footer__name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin: 1.25rem 0;
  flex-wrap: wrap;
}

.footer__links a {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer__links a:hover { color: var(--gold); }

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ---------- MailerLite Form Override ---------- */
.ml-embedded {
  background: transparent !important;
}
.ml-form-embedWrapper {
  background: transparent !important;
}
.ml-form-embedBody {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  padding: 2rem !important;
}
.ml-form-embedBody .ml-form-embedContent h4,
.ml-form-embedBody .ml-form-embedContent p {
  color: var(--text-secondary) !important;
}
.ml-form-embedBody .ml-form-fieldRow input {
  background: var(--bg-primary) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
  font-family: var(--font-sans) !important;
}
.ml-form-embedBody .ml-form-fieldRow input:focus {
  border-color: var(--gold) !important;
}
.ml-form-embedBody .ml-form-fieldRow button,
.ml-form-embedBody .ml-form-embedSubmit button {
  background: var(--gold) !important;
  color: #0d0d0d !important;
  font-family: var(--font-sans) !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  border: none !important;
}
.ml-form-embedBody .ml-form-fieldRow button:hover,
.ml-form-embedBody .ml-form-embedSubmit button:hover {
  background: var(--gold-light) !important;
}
.ml-form-successBody h4 {
  color: var(--gold) !important;
}
.ml-form-successBody p {
  color: var(--text-secondary) !important;
}

/* ---------- Page Transitions ---------- */
body {
  animation: pageFadeIn 0.45s ease both;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Intro Text ---------- */
.intro-text {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 700px;
}

/* ---------- Stats Row ---------- */
.stats-row {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.stat {
  border-left: 2px solid var(--gold);
  padding-left: 1.25rem;
}

.stat__number {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat__label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
