/* Katherine St. John — author site */
:root {
  --paper: #fbf8f2;
  --cream: #f3ece0;
  --ink: #1d1a17;
  --muted: #6d645a;
  --line: #e2d8c8;
  --gold: #a07a43;
  --gold-dark: #7d5d30;
  --sea: #1d4652;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
em { font-style: italic; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 48px); margin-inline: auto; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0; letter-spacing: 0.01em; }
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 18px;
}
.section-title { font-size: clamp(38px, 5vw, 56px); text-align: center; margin-bottom: 14px; }
.section-intro { text-align: center; color: var(--muted); max-width: 560px; margin: 0 auto 56px; }
.rule { width: 48px; height: 1px; background: var(--gold); border: 0; margin: 0 auto 22px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 248, 242, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.wordmark {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.nav { display: flex; gap: 34px; }
.nav a {
  font-size: 13px; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--gold); color: var(--gold-dark); }
.menu-btn { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--ink); }
.menu-btn svg { display: block; }

@media (max-width: 820px) {
  .wordmark { font-size: 21px; letter-spacing: 0.12em; }
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
  padding: 16px 30px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  transition: background .2s, color .2s, border-color .2s;
  cursor: pointer;
}
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.text-link {
  font-size: 13px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 3px;
}
.text-link:hover { color: var(--gold-dark); }

/* ---------- hero ---------- */
.hero { background: var(--cream); padding: 88px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 5fr 6fr; gap: 80px; align-items: center; }
.hero-cover { justify-self: end; width: min(400px, 100%); }
.hero-cover img, .cover img { box-shadow: 0 30px 60px -24px rgba(29, 26, 23, 0.45), 0 2px 6px rgba(29, 26, 23, 0.12); }
.hero h1 { font-size: clamp(52px, 7.4vw, 96px); font-weight: 500; letter-spacing: 0.01em; margin-bottom: 24px; }
.hero h1 + .role { font-size: 13px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold-dark); margin: -6px 0 8px; }
.hero .pen-name { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--muted); margin: 0 0 30px; }
.hero .hero-rule { margin: 0 0 30px; }
.hero-quote { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 2.8vw, 34px); line-height: 1.3; margin: 0 0 34px; }
.hero-quote cite { display: block; font-family: var(--sans); font-style: normal; font-size: 12px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 28%; box-shadow: none; }
.hero .tagline { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.6vw, 31px); line-height: 1.3; margin-bottom: 26px; }
.hero .pull { color: var(--muted); margin: 0 0 34px; padding-left: 20px; border-left: 1px solid var(--gold); max-width: 520px; }
.hero .pull cite { display: block; font-style: normal; font-size: 13px; letter-spacing: 0.08em; margin-top: 6px; }
.hero .btn-row { margin-bottom: 26px; }

@media (max-width: 820px) {
  .hero { padding: 48px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .hero-cover { justify-self: center; width: min(280px, 72%); }
  .hero .pull { margin-inline: auto; padding-left: 0; border-left: 0; }
  .hero .hero-rule { margin-inline: auto; }
  .hero .btn-row { justify-content: center; }
}

/* ---------- intro strip ---------- */
.intro { padding: 96px 0 24px; text-align: center; }
.intro p { font-family: var(--serif); font-size: clamp(25px, 3vw, 34px); line-height: 1.35; max-width: 860px; margin: 0 auto; }

/* ---------- books grid ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--cream); }
.books { display: grid; grid-template-columns: repeat(5, 1fr); gap: 40px 32px; }
.book-card { text-decoration: none; display: flex; flex-direction: column; }
.book-card .cover { margin-bottom: 22px; transition: transform .35s ease; }
.book-card:hover .cover { transform: translateY(-6px); }
.book-card h3 { font-size: 25px; margin-bottom: 4px; }
.book-card .meta { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.book-card .hook { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0; }
@media (max-width: 1000px) { .books { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .books { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; } .book-card h3 { font-size: 21px; } }

/* ---------- praise ---------- */
.praise { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 72px; }
.quote { margin: 0; }
.quote p { font-family: var(--serif); font-size: 25px; line-height: 1.4; margin-bottom: 14px; }
.quote p::before { content: "\201C"; }
.quote p::after { content: "\201D"; }
.quote footer { font-size: 13px; letter-spacing: 0.08em; color: var(--muted); }
.quote footer strong { font-weight: 500; color: var(--ink); letter-spacing: 0.12em; text-transform: uppercase; }
.quote.featured { grid-column: 1 / -1; text-align: center; max-width: 900px; margin: 0 auto 8px; }
.quote.featured p { font-size: clamp(28px, 3.4vw, 38px); }
@media (max-width: 760px) { .praise { grid-template-columns: 1fr; gap: 44px; } .quote p { font-size: 23px; } }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 7fr 5fr; gap: 80px; align-items: center; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.about h2 { font-size: clamp(40px, 5vw, 56px); margin-bottom: 26px; }
.about .aka { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--muted); margin: -14px 0 24px; }
.favorites { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; margin: 0; padding: 36px 40px 40px; background: var(--cream); font-size: 15px; }
.favorites dt { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-dark); margin-top: 10px; }
.favorites dd { margin: 0; }
.favorites .wide { grid-column: 1 / -1; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; gap: 44px; } .about-photo { max-width: 460px; } }

/* ---------- newsletter ---------- */
.newsletter { background: var(--sea); color: #f4efe6; text-align: center; padding: 96px 0; }
.newsletter h2 { font-size: clamp(36px, 4.5vw, 50px); margin-bottom: 14px; }
.newsletter p { color: rgba(244, 239, 230, 0.78); max-width: 520px; margin: 0 auto 34px; }
.newsletter .eyebrow { color: #d9b67c; }
.signup { display: flex; max-width: 520px; margin: 0 auto; border: 1px solid rgba(244, 239, 230, 0.5); }
.signup input[type="email"] {
  flex: 1; min-width: 0; border: 0; background: transparent; color: #fff;
  font: inherit; font-size: 16px; padding: 16px 20px;
}
.signup input::placeholder { color: rgba(244, 239, 230, 0.6); }
.signup input:focus { outline: none; }
.signup:focus-within { border-color: #d9b67c; }
.signup button { border: 0; background: #f4efe6; color: var(--sea); }
.signup button:hover { background: #d9b67c; color: var(--ink); }
.hidden { position: absolute; left: -9999px; }
@media (max-width: 520px) {
  .signup { flex-direction: column; border: 0; gap: 12px; }
  .signup input[type="email"] { border: 1px solid rgba(244, 239, 230, 0.5); }
}

/* ---------- contact ---------- */
.reps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.reps h3 { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 14px; }
.reps p { font-family: var(--serif); font-size: 23px; line-height: 1.35; margin: 0; }
.reps p span { display: block; font-family: var(--sans); font-size: 15px; color: var(--muted); margin-top: 4px; }
.social { display: flex; justify-content: center; gap: 18px; }
.social a {
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; transition: border-color .2s, color .2s;
}
.social a:hover { border-color: var(--gold); color: var(--gold-dark); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 760px) { .reps { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: 13px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------- book page ---------- */
.book-hero { padding: 72px 0 88px; }
.crumb { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; color: var(--muted); display: inline-block; margin-bottom: 44px; }
.crumb:hover { color: var(--gold-dark); }
.book-layout { display: grid; grid-template-columns: 4fr 7fr; gap: 80px; align-items: start; }
.book-layout .cover { position: sticky; top: 116px; }
.book-layout h1 { font-size: clamp(52px, 7vw, 84px); margin-bottom: 16px; }
.book-layout .tagline { font-family: var(--serif); font-style: italic; font-size: clamp(23px, 2.4vw, 29px); line-height: 1.35; margin-bottom: 30px; }
.book-layout .badge { display: inline-block; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 7px 14px; margin-bottom: 24px; }
.buy { margin: 34px 0 10px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.buy .label { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.buy .btn { padding: 13px 22px; font-size: 12px; }
.extra-link { margin-top: 26px; }
.book-praise { display: grid; gap: 44px; }
.more-books { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
@media (max-width: 820px) {
  .book-hero { padding: 40px 0 64px; }
  .crumb { margin-bottom: 30px; }
  .book-layout { grid-template-columns: 1fr; gap: 40px; }
  .book-layout .cover { position: static; width: min(300px, 75%); margin: 0 auto; }
  .more-books { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- simple pages ---------- */
.simple { padding: 140px 0; text-align: center; }
.simple h1 { font-size: clamp(44px, 6vw, 68px); margin-bottom: 20px; }
.simple p { color: var(--muted); margin-bottom: 34px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
