:root {
  --navy: #142b37;
  --navy-deep: #0b1d27;
  --cream: #f5e5c3;
  --paper: #fbf4e4;
  --rust: #b24a2d;
  --gold: #c9974c;
  --ink: #182126;
  --muted: #5f625f;
  --line: rgba(20, 43, 55, 0.18);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: white;
  background: var(--rust);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 5vw;
  color: var(--cream);
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(245, 229, 195, 0.18);
}
.brand {
  font: 700 1.35rem/1 var(--serif);
  text-decoration: none;
  letter-spacing: 0.01em;
}
nav { display: flex; gap: clamp(1rem, 3vw, 2.4rem); }
nav a, .footer-links a {
  color: inherit;
  font-size: 0.88rem;
  text-decoration: none;
}
nav a:hover, .footer-links a:hover { color: var(--gold); }

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1.18fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(3.5rem, 8vw, 7.5rem) max(5vw, calc((100vw - 1280px) / 2));
  color: var(--cream);
  background:
    radial-gradient(circle at 85% 15%, rgba(178, 74, 45, 0.25), transparent 28rem),
    linear-gradient(135deg, var(--navy-deep), var(--navy));
}
.cover-wrap {
  position: relative;
  width: min(100%, 390px);
  margin-inline: auto;
}
.cover-wrap::before {
  content: "";
  position: absolute;
  inset: 7% -7% -5% 8%;
  background: rgba(0, 0, 0, 0.35);
  filter: blur(28px);
  transform: rotate(2deg);
}
.book-cover {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 8.5 / 11;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.4);
  transform: rotate(-1.1deg);
}
.eyebrow {
  margin: 0 0 1rem;
  color: var(--rust);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero .eyebrow { color: var(--gold); }
h1, h2 {
  margin: 0;
  font-family: var(--serif);
  line-height: 1.06;
  letter-spacing: -0.035em;
}
h1 { max-width: 780px; font-size: clamp(3rem, 6vw, 6.6rem); }
h1 em { color: #e46b45; font-weight: inherit; }
.standfirst {
  max-width: 690px;
  margin: 2rem 0 1rem;
  font: 1.28rem/1.55 var(--serif);
}
.hero-copy > p:not(.eyebrow):not(.standfirst) { max-width: 680px; color: rgba(245, 229, 195, 0.82); }
.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 730px;
  margin: 2.3rem 0;
  padding: 0;
  list-style: none;
  background: rgba(245, 229, 195, 0.2);
}
.quick-facts li {
  min-height: 116px;
  padding: 1.15rem;
  background: var(--navy);
  font-size: 0.84rem;
}
.quick-facts strong {
  display: block;
  color: var(--cream);
  font: 700 1.5rem/1.2 var(--serif);
}
.actions { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}
.button.primary { color: white; background: var(--rust); }
.button.primary:not([aria-disabled="true"]):hover { background: #c95736; transform: translateY(-2px); }
.button[aria-disabled="true"] { cursor: default; opacity: 0.72; }
.text-button { color: var(--cream); border-color: rgba(245, 229, 195, 0.35); }
.button.small { min-height: 48px; margin-top: 1rem; }

.samples-section { padding: clamp(5rem, 9vw, 9rem) max(5vw, calc((100vw - 1280px) / 2)); }
.section-heading { max-width: 720px; margin-bottom: 3rem; }
h2 { color: var(--navy); font-size: clamp(2.5rem, 5vw, 4.8rem); }
.section-heading > p:last-child { color: var(--muted); }
.sample-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.7rem);
}
.sample-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  background: white;
  cursor: zoom-in;
  box-shadow: 0 10px 28px rgba(20, 43, 55, 0.08);
}
.sample-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  transition: transform 260ms ease;
}
.sample-card span {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 0.9rem;
  color: var(--cream);
  background: rgba(11, 29, 39, 0.92);
  font: 700 1rem/1.2 var(--serif);
  text-align: left;
}
.sample-card:hover img, .sample-card:focus-visible img { transform: scale(1.025); }
.sample-card:focus-visible { outline: 4px solid var(--rust); outline-offset: 3px; }

.about-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(3rem, 8vw, 8rem);
  padding: clamp(5rem, 9vw, 9rem) max(5vw, calc((100vw - 1280px) / 2));
  background: #ead5ae;
}
.about-copy { max-width: 660px; font-size: 1.08rem; }
.closing-line { color: var(--rust); font: 700 1.32rem/1.45 var(--serif); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 3.5rem max(5vw, calc((100vw - 1280px) / 2));
  color: rgba(245, 229, 195, 0.72);
  background: var(--navy-deep);
}
.footer-brand { color: var(--cream); }
footer p { margin: 0.8rem 0 0; font-size: 0.86rem; }
.footer-links { display: flex; gap: 1.5rem; align-items: flex-start; }

.lightbox {
  width: min(92vw, 920px);
  max-height: 92vh;
  padding: 1rem;
  border: 0;
  color: var(--cream);
  background: var(--navy-deep);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.62);
}
.lightbox::backdrop { background: rgba(4, 12, 17, 0.86); }
.lightbox img { max-height: calc(92vh - 6rem); margin: auto; }
.lightbox p { margin: 0.75rem 3rem 0 0; }
.lightbox-close {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  right: 0.75rem;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: var(--rust);
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 0.8rem; padding-block: 1.2rem; }
  nav { width: 100%; justify-content: space-between; }
  .hero, .about-section { grid-template-columns: 1fr; }
  .hero { padding-top: 3.5rem; }
  .cover-wrap { width: min(68vw, 340px); }
  .hero-copy { text-align: left; }
  .sample-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .site-header nav a:nth-child(3) { display: none; }
  h1 { font-size: clamp(2.8rem, 15vw, 4.5rem); }
  .quick-facts { grid-template-columns: 1fr; }
  .quick-facts li { min-height: auto; }
  .sample-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
