:root {
  --ink: #1c1612;
  --ink-soft: #4a4038;
  --paper: #f3eee4;
  --paper-2: #e7dfd1;
  --oxblood: #8a3b2a;
  --gold: #b08d57;
  --olive: #3f4738;
  --line: rgba(28, 22, 18, 0.12);
  --serif: "Source Serif 4", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --display: "Cormorant Garamond", "Palatino Linotype", serif;
  --max: 72rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.7;
  letter-spacing: 0.005em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--oxblood); text-underline-offset: 0.22em; }
a:hover { color: var(--ink); }
::selection { background: #8a3b2a; color: #f3eee4; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
  z-index: 20;
}
.skip:focus { top: 1rem; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(243, 238, 228, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-nav.over-hero {
  position: absolute;
  width: 100%;
  background: transparent;
  border-bottom-color: transparent;
}
.site-nav.over-hero.is-solid,
.site-nav.over-hero:focus-within {
  position: sticky;
  background: rgba(243, 238, 228, 0.94);
  border-bottom-color: var(--line);
}
.site-nav.over-hero:not(.is-solid) .wordmark,
.site-nav.over-hero:not(.is-solid) nav a,
.site-nav.over-hero:not(.is-solid) .nav-toggle {
  color: #f6f1e8;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.wordmark {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--display);
}
nav a[aria-current="page"],
nav a:hover { color: var(--oxblood); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid currentColor;
  color: inherit;
  font: inherit;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 0.35rem 0.6rem;
}

.hero {
  --hero: url("/images/hero.jpg");
  min-height: 92vh;
  display: grid;
  place-items: end start;
  background:
    linear-gradient(180deg, rgba(18, 14, 11, 0.15), rgba(18, 14, 11, 0.55)),
    var(--hero) center/cover no-repeat;
  color: #f6f1e8;
  position: relative;
}
.hero-short { min-height: 52vh; }
.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 14, 11, 0.45), transparent 55%);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  padding: 5rem 1.5rem 4rem;
  max-width: 42rem;
  margin-left: max(0px, calc((100% - var(--max)) / 2));
}
.kicker {
  font-family: var(--display);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 0.8rem;
  color: var(--gold);
}
.hero-copy h1,
.page-head h1 {
  font-family: var(--display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.02em;
}
.lede {
  font-size: 1.25rem;
  color: var(--ink-soft);
  max-width: 38rem;
}

.home-main, .sheet {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}
.sheet-plain { padding-top: 7rem; }
.page-head { margin-bottom: 2.5rem; max-width: 40rem; }
.home-prose, .prose { max-width: 40rem; }
.layout-books .prose { max-width: 52rem; }

.prose h1, .prose h2, .prose h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.prose h2 {
  font-size: 2rem;
  font-style: italic;
  margin: 2.6rem 0 0.8rem;
}
.prose h3 { font-size: 1.4rem; margin: 2rem 0 0.6rem; }
.prose p { margin: 0 0 1.15rem; }
.prose blockquote {
  margin: 2rem 0;
  padding: 0 0 0 1.2rem;
  border-left: 2px solid var(--gold);
  font-family: var(--display);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.45;
  color: var(--olive);
}
.layout-page .prose > p:first-of-type::first-letter {
  float: left;
  font-family: var(--display);
  font-size: 4.6rem;
  line-height: 0.75;
  padding: 0.12em 0.1em 0 0;
  color: var(--oxblood);
  font-weight: 500;
}
.cta-row { display: flex; gap: 0.8rem; flex-wrap: wrap; margin: 2rem 0 0; }
.btn, .prose a.btn {
  display: inline-block;
  background: var(--oxblood);
  color: #f6f1e8;
  text-decoration: none;
  padding: 0.7rem 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-family: var(--display);
}
.btn:hover, .prose a.btn:hover { background: var(--ink); color: #f6f1e8; }
.btn-ghost, .prose a.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.book {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.6rem;
  margin: 2.6rem 0;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.book img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(28, 22, 18, 0.18);
}
.book .meta {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--ink-soft);
  font-family: var(--display);
  margin: 0 0 0.8rem;
}
.book h2 { margin-top: 0; }
.portrait-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
  margin: 2rem 0 2.5rem;
}
.portrait-row img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: saturate(0.85);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 1.5rem 3rem;
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-note {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.35rem;
  margin: 0 0 1rem;
}
.colophon {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.colophon a { color: inherit; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  nav { display: none; width: 100%; flex-direction: column; gap: 0.7rem; padding-top: 0.4rem; }
  .site-nav.is-open nav { display: flex; }
  .book, .portrait-row { grid-template-columns: 1fr; }
  .book img { max-width: 180px; }
  .hero { min-height: 78vh; }
}
