@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  --bg: #0a0a0a;
  --cream: #e8e1d3;
  --gold: #8a7048;
  --grey: #a89e8f;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--cream);
}

body {
  font-family: 'EB Garamond', serif;
  font-size: 19px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 0;
}

a {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover, a:focus-visible {
  color: var(--gold);
  border-color: var(--cream);
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.rule {
  border: none;
  border-top: 1px solid var(--gold);
  width: 100%;
  margin: 0;
  opacity: 0.55;
}

/* ---------- Nav ---------- */

nav.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem 6vw;
  max-width: 1200px;
  margin: 0 auto;
}

nav.site-nav .brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  border-bottom: none;
}

nav.site-nav ul {
  list-style: none;
  display: flex;
  gap: 2.25rem;
  margin: 0;
  padding: 0;
}

nav.site-nav a {
  border-bottom: 1px solid transparent;
  font-size: 1rem;
  color: var(--grey);
}

nav.site-nav a:hover,
nav.site-nav a[aria-current="page"] {
  color: var(--cream);
  border-color: var(--gold);
}

nav.site-nav .nav-cta {
  color: var(--cream);
  border-bottom: 1px solid var(--gold);
}

nav.site-nav .nav-cta:hover {
  color: var(--gold);
  border-color: var(--cream);
}

@media (max-width: 640px) {
  nav.site-nav { flex-direction: column; gap: 1rem; padding: 1.5rem 6vw; }
  nav.site-nav ul { gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
}

/* ---------- Hero (home page) ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  background: #000;
  padding: 3rem 0 4.5rem;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right 68%;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0a0a0a 0%, #0a0a0a 38%, rgba(10,10,10,0.65) 58%, rgba(10,10,10,0.05) 78%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 0 6vw;
}

.hero-wordmark {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
}

.hero-content .subtitle {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  color: var(--grey);
  margin-top: 0.75rem;
}

.hero-content .blurb {
  margin-top: 2.25rem;
  font-size: 1.05rem;
  color: var(--cream);
  max-width: 50ch;
}

.hero-quote {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gold);
  max-width: 48ch;
}

.hero-quote p {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--cream);
  line-height: 1.6;
}

.hero-quote p::before { content: "\201C"; }
.hero-quote p::after { content: "\201D"; }

.hero-quote .attribution {
  display: block;
  margin-top: 0.9rem;
  font-style: normal;
  font-size: 1.1rem;
  color: var(--cream);
}

.hero-quote .credentials {
  display: block;
  margin-top: 0.15rem;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--cream);
}

.hero-content .cta {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 1rem;
}

.button {
  display: inline-block;
  border: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  padding: 0.85rem 1.75rem;
  font-family: 'EB Garamond', serif;
  font-size: 1.05rem;
  color: var(--cream);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.button:hover, .button:focus-visible {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

@media (max-width: 780px) {
  .hero { padding: 2.5rem 0 3.5rem; }
  .hero-image { object-position: 85% 65%; opacity: 0.85; }
  .hero-gradient { background: linear-gradient(180deg, rgba(10,10,10,0.82) 0%, rgba(10,10,10,0.4) 55%, rgba(10,10,10,0.15) 100%); }
  .hero-wordmark { max-width: 340px; }
}

@media (max-width: 780px) and (orientation: portrait) {
  .hero { min-height: 100vh; }
}

/* ---------- Page layout ---------- */

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 6vw 6rem;
}

main.wide { max-width: 1200px; }

.page-title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
}

.page-subtitle {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  color: var(--grey);
  font-size: 1.3rem;
  margin-top: 0.5rem;
}

.meta {
  color: var(--grey);
  font-size: 0.95rem;
  margin-top: 0.75rem;
}

.section {
  margin-top: 3rem;
}

.section p + p { margin-top: 1.2rem; }

.book-layout {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}

.book-layout .cover {
  flex: 0 0 360px;
  position: sticky;
  top: 2.5rem;
}

.book-layout .cover img {
  width: 100%;
  display: block;
}

.book-layout .text { flex: 1; min-width: 0; }

@media (max-width: 700px) {
  .book-layout { flex-direction: column; gap: 2.5rem; }
  .book-layout .cover { flex: 0 0 auto; max-width: 220px; margin: 0 auto; position: static; top: auto; }
}

.comp-titles {
  margin-top: 2.5rem;
  color: var(--grey);
  font-style: italic;
}

.comp-titles em { color: var(--cream); font-style: italic; }

.buy-link {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 1.05rem;
}

.quiet-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--grey);
  border-bottom: 1px solid transparent;
}

.quiet-link:hover, .quiet-link:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
}

.closing-line {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gold);
  color: var(--grey);
  font-style: italic;
}

.author-layout {
  display: flex;
  gap: 3.5rem;
  align-items: flex-start;
}

.author-layout .photo { flex: 0 0 280px; }
.author-layout .photo img { width: 100%; display: block; }
.author-layout .photo figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--grey);
  font-style: italic;
}
.author-layout .text { flex: 1; min-width: 0; }

@media (max-width: 700px) {
  .author-layout { flex-direction: column; gap: 2rem; }
  .author-layout .photo { flex: 0 0 auto; max-width: 240px; margin: 0 auto; }
}

.email-line {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  margin-top: 1.5rem;
  display: inline-block;
}

footer {
  padding: 2.5rem 6vw 3rem;
  text-align: center;
  color: var(--grey);
  font-size: 0.9rem;
}
