/* ============================================================
   Ashley Taylor Brooks — Author site
   Palette: warm cream, deep ink, muted terracotta accent
   ============================================================ */

:root {
  --cream: #faf6ef;
  --cream-dark: #f2ecdf;
  --ink: #221f1a;
  --ink-soft: #5c564c;
  --accent: #b4552d;
  --accent-dark: #8f3f1e;
  --line: #e3dccd;
  --white: #fffdf9;
  --dark: #1d1a16;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

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

.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }

.section__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 500;
}
.section__eyebrow--light { color: #d99873; }

.section__title {
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-bottom: 1.25rem;
}
.section__title--light { color: var(--white); }

.section__intro {
  max-width: 56ch;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
}

.lede {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }

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

.btn--ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover { background: var(--ink); color: var(--cream); }

.btn--small { padding: 0.5rem 1.1rem; font-size: 0.8rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.nav__logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav__links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--accent); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(180, 85, 45, 0.08), transparent),
    var(--cream);
  padding: 6rem 0;
}

.hero__inner { max-width: 760px; }

.hero__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.hero__name {
  font-size: clamp(3rem, 9vw, 5.5rem);
  margin-bottom: 1.5rem;
}

.hero__tagline {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
}

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

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  width: 1px;
  height: 48px;
  background: linear-gradient(var(--ink-soft), transparent);
}

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section--tint { background: var(--cream-dark); }
.section--dark { background: var(--dark); }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 4rem;
  align-items: start;
}

.about__photo { position: relative; }

.about__portrait {
  display: block;
  width: 100%;
  margin-top: 2.5rem;
  border-radius: 6px;
  box-shadow: 12px 12px 0 var(--line);
}

.about__body p { margin-bottom: 1.25rem; color: var(--ink-soft); }
.about__body .lede { color: var(--ink); }
.about__body .btn { margin-top: 0.5rem; }

/* ---------- Books (featured) ---------- */
.book-featured {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 3.5rem;
  align-items: start;
}

.book-featured__cover img {
  display: block;
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 18px 38px rgba(34, 31, 26, 0.28);
}

.book-featured__title { font-size: 2.4rem; margin-bottom: 0.35rem; }

.book-featured__meta {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
}

.book-featured__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}

.book-featured__blurb { color: var(--ink-soft); margin-bottom: 1.5rem; }

.book-featured__letter {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin-bottom: 1.75rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.book-featured__letter p { margin-bottom: 0.9rem; }
.book-featured__letter p:last-child { margin-bottom: 0; }

.book-featured__links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.book__link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.2s ease;
}
.book__link:hover { color: var(--accent); }
.book__link--quiet { border-color: var(--line); color: var(--ink-soft); }
.book__link--quiet:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Private stats page (stats.html) ---------- */
.stats {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 0;
}
.stats__count {
  font-family: var(--serif);
  font-size: clamp(4rem, 10vw, 6.5rem);
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.stats__note { color: var(--ink-soft); }

/* ---------- Follow ---------- */
.follow { text-align: center; }
.follow__text {
  color: #b8b0a2;
  max-width: 48ch;
  margin: 0 auto 2.5rem;
}

.follow__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 320px));
  gap: 1.5rem;
  justify-content: center;
}

.follow__card {
  display: block;
  border: 1px solid #4a443b;
  border-radius: 8px;
  padding: 2rem 1.75rem;
  background: rgba(255,255,255,0.04);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.follow__card:hover {
  border-color: var(--accent);
  background: rgba(255,255,255,0.07);
  transform: translateY(-3px);
}
.follow__card h3 {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.35rem;
}
.follow__handle {
  color: #d99873;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.follow__desc { color: #b8b0a2; font-size: 0.9rem; }

.follow__email {
  margin-top: 2.25rem;
  color: #b8b0a2;
  font-size: 0.95rem;
}
.follow__email a {
  color: #d99873;
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 152, 115, 0.4);
  transition: border-color 0.2s ease;
}
.follow__email a:hover { border-color: #d99873; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  padding: 2rem 0;
  margin-top: 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: #8a8375;
  font-size: 0.85rem;
}

.footer__social {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.footer__social a {
  color: #b8b0a2;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer__social a:hover { color: var(--white); }

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .book-featured { grid-template-columns: 1fr; gap: 2.5rem; }
  .book-featured__cover { max-width: 300px; }
  .about { grid-template-columns: 1fr; gap: 2.5rem; }
  .about__photo { max-width: 300px; }
}

@media (max-width: 720px) {
  .nav__toggle { display: flex; }

  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    display: none;
    padding: 0.5rem 0;
  }
  .nav__links.is-open { display: flex; }
  .nav__links li { text-align: center; }
  .nav__links a { display: block; padding: 0.9rem 0; font-size: 1rem; }

  .section { padding: 4rem 0; }
  .hero { min-height: 78vh; }
  .hero__br { display: none; }

  .follow__cards { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; }
}
