/* Shelby Heitner — author site V1
   Direction (from Shelby's notes): McKenna's simple, punchy, photo+book-forward
   layout; Kuang's clean class without the primness; a palette with some life in it.
   Type: Fraunces (display serif with character) + Instrument Sans (clean grotesque).
   Palette: warm paper, ink, and a rust accent. */

:root {
  --paper: #faf6ef;
  --ink: #201a17;
  --ink-soft: #5c554e;
  --rust: #b14e32;
  --rust-dark: #96402a;
  --line: #e3dacb;
  --frame: #efe7d8;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--rust); color: var(--paper); }

/* ---------- header ---------- */
.site-header {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 1.4rem clamp(1.25rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: "Fraunces", serif; font-weight: 600; font-size: 1.25rem;
  color: var(--ink); text-decoration: none; letter-spacing: 0.01em;
}
.site-header nav { display: flex; gap: 2rem; }
.site-header nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.12em;
}
.site-header nav a:hover { color: var(--rust); }

/* ---------- shared ---------- */
main { max-width: 1120px; margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3.5rem); }
section { padding: clamp(3rem, 8vw, 5.5rem) 0; }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.8rem;
  color: var(--rust); font-weight: 600; margin-bottom: 1rem;
}

.btn {
  display: inline-block; background: var(--rust); color: #fff; text-decoration: none;
  padding: 0.8rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: 1rem;
}
.btn:hover { background: var(--rust-dark); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-disabled { background: var(--frame); color: var(--ink-soft); cursor: default; }
.btn-disabled:hover { background: var(--frame); }

.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 2rem; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
.hero h1 {
  font-family: "Fraunces", serif; font-weight: 560;
  font-size: clamp(3.4rem, 9vw, 6.2rem); line-height: 0.98; letter-spacing: -0.01em;
}
.hero-line { font-size: 1.3rem; color: var(--ink-soft); margin-top: 1.4rem; max-width: 30ch; }
.hero-line em { color: var(--rust); }

.hero-photo { text-align: center; }
.hero-photo img, .photo-placeholder {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block;
  border-radius: 4px; background: var(--frame);
}
.photo-placeholder {
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
}
.photo-placeholder span {
  font-family: "Fraunces", serif; font-style: italic; font-size: 4rem; color: var(--rust);
}
.hero-photo figcaption { margin-top: 0.7rem; font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- book ---------- */
.book {
  display: grid; grid-template-columns: 0.85fr 1.25fr; gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center; border-top: 1px solid var(--line);
}
.cover img, .cover-placeholder {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block; border-radius: 3px;
  box-shadow: 0 24px 48px -18px rgba(32, 26, 23, 0.35);
}
.cover-placeholder {
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 2rem; border: 1px solid var(--ink);
}
.cover-title { font-family: "Fraunces", serif; font-size: 2rem; line-height: 1.15; }
.cover-author { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.85rem; color: var(--rust); }

.book-text h2, .about h2 {
  font-family: "Fraunces", serif; font-weight: 560;
  font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; margin-bottom: 1.2rem;
}
.book-text h2 em { color: var(--rust); }
.book-text p { color: var(--ink-soft); max-width: 52ch; }

/* ---------- about / contact ---------- */
.about { border-top: 1px solid var(--line); }
.bio {
  font-family: "Fraunces", serif; font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.45; max-width: 34ch; font-weight: 480;
}
.publisher-line {
  font-family: "Fraunces", serif; font-style: italic; font-size: 1.15rem;
  color: var(--rust); margin-bottom: 1rem;
}
.bio-detail { color: var(--ink-soft); max-width: 56ch; margin-top: 1.4rem; font-size: 1.05rem; }
.bio-detail em, .bio em { color: var(--rust); }

.contact { border-top: 1px solid var(--line); }
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem 2.5rem; margin-top: 0.5rem;
}
.contact-role {
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.75rem;
  color: var(--rust); font-weight: 600; margin-bottom: 0.4rem;
}
.contact-name { font-family: "Fraunces", serif; font-size: 1.35rem; color: var(--ink); }
.contact-agency { color: var(--ink-soft); font-size: 0.95rem; }
.contact-card a { color: var(--ink); text-decoration-color: var(--rust); text-underline-offset: 3px; }
.contact-card a:hover { color: var(--rust); }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line); padding: 2rem clamp(1.25rem, 5vw, 3.5rem);
  display: flex; justify-content: space-between; color: var(--ink-soft); font-size: 0.9rem;
}

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .hero, .book { grid-template-columns: 1fr; }
  .hero-photo { max-width: 340px; }
  .cover { max-width: 280px; }
  .site-header nav { gap: 1.1rem; }
}
