:root {
  --ivory: #f4efe5;
  --paper: #fbf8f1;
  --ink: #15130f;
  --charcoal: #24211c;
  --muted: #6a645b;
  --gold: #805d20;
  --gold-light: #d4b46f;
  --line: rgba(21, 19, 15, 0.18);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
  --page: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
}

.skip-link:focus { top: 16px; }
.container { width: var(--page); margin-inline: auto; }

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow,
.section-dark .eyebrow,
.inquiry-intro .eyebrow { color: var(--gold-light); }

.display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.96;
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(244, 239, 229, 0.18);
  background: var(--ink);
  color: var(--paper);
}

.nav-shell {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.wordmark {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(244, 239, 229, 0.35);
  background: transparent;
  color: inherit;
  padding: 9px 12px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-nav a { text-decoration: none; }
.primary-nav a:hover { color: var(--gold-light); }

.nav-action {
  border-bottom: 1px solid var(--gold-light);
  color: var(--gold-light);
  padding-bottom: 3px;
}

.hero {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.hero-grid {
  min-height: 730px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 8vw 96px max(20px, calc((100vw - 1180px) / 2));
}

.hero h1 { max-width: 760px; font-size: clamp(4.2rem, 7vw, 7.4rem); }
.hero h1 em { color: var(--gold-light); font-weight: 400; }

.hero-statement {
  max-width: 650px;
  margin: 30px 0 0;
  color: rgba(251, 248, 241, 0.78);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.hero-roles {
  margin: 22px 0 0;
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 1px solid var(--ink);
  padding: 12px 22px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.button-gold { border-color: var(--gold-light); background: var(--gold-light); color: var(--ink); }
.button-outline-light { border-color: rgba(251, 248, 241, 0.45); color: var(--paper); }
.button-dark { background: var(--ink); color: var(--paper); }
.button:hover { transform: translateY(-2px); }

.hero-portrait { min-height: 730px; background: #8e8c91; }
.hero-portrait picture, .hero-portrait img { width: 100%; height: 100%; }
.hero-portrait img { object-fit: cover; object-position: center top; }

.section { padding: 110px 0; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--charcoal); color: var(--paper); }

.section-heading {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 58px;
}

.section-heading h2 { max-width: 790px; font-size: clamp(3rem, 6vw, 5.6rem); }
.section-heading p:last-child { max-width: 580px; margin: 0 0 8px auto; color: var(--muted); }
.section-dark .section-heading p:last-child { color: rgba(251, 248, 241, 0.68); }

.portal-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }

.portal-card {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 34px 30px;
  text-decoration: none;
}

.portal-card:nth-child(3n) { border-right: 0; }
.portal-card:hover { background: rgba(166, 124, 46, 0.08); }
.portal-number { color: var(--gold); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.18em; }
.portal-card h3 { margin: 32px 0 14px; font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1; }
.portal-card p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.portal-link { margin-top: auto; padding-top: 24px; color: var(--gold); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }

.story-grid { display: grid; grid-template-columns: 0.88fr 1.12fr; gap: 8vw; align-items: center; }
.story-image { aspect-ratio: 0.72; overflow: hidden; background: #726f6b; }
.story-image img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.story-copy h2 { font-size: clamp(3.2rem, 5.5vw, 5.7rem); }
.story-copy .lead { margin: 30px 0 0; font-family: var(--serif); font-size: clamp(1.55rem, 2.4vw, 2.25rem); line-height: 1.25; }
.story-copy p:not(.eyebrow):not(.lead) { color: var(--muted); }

.author-feature { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 8vw; align-items: center; }
.author-feature h2 { font-size: clamp(3.4rem, 6vw, 6.2rem); }
.author-feature h2 em { color: var(--gold-light); font-weight: 400; }
.author-feature p:not(.eyebrow) { color: rgba(251, 248, 241, 0.7); }

.book-stack { position: relative; min-height: 430px; }
.mini-cover {
  position: absolute;
  width: 230px;
  aspect-ratio: 0.66;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(212, 180, 111, 0.5);
  background: #171612;
  box-shadow: 0 22px 45px rgba(0,0,0,0.35);
  color: var(--paper);
  padding: 28px 24px;
}
.mini-cover:nth-child(1) { left: 0; top: 54px; transform: rotate(-7deg); }
.mini-cover:nth-child(2) { left: 30%; top: 0; z-index: 2; }
.mini-cover:nth-child(3) { right: 0; top: 65px; transform: rotate(7deg); }
.mini-cover strong { font-family: var(--serif); font-size: 1.9rem; line-height: 0.95; }
.mini-cover span { color: var(--gold-light); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; }

.feature-band { display: grid; grid-template-columns: 1fr 1fr; }
.feature-copy { padding: 100px max(20px, calc((100vw - 1180px) / 2)); padding-right: 8vw; background: var(--gold-light); }
.feature-copy h2 { font-size: clamp(3.2rem, 5vw, 5.2rem); }
.feature-panel { padding: 100px max(20px, calc((100vw - 1180px) / 2)); padding-left: 8vw; background: var(--ink); color: var(--paper); }
.feature-panel blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.25; }
.feature-panel p { color: rgba(251, 248, 241, 0.7); }

.social-list { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(251,248,241,0.25); }
.social-list a { border-right: 1px solid rgba(251,248,241,0.25); padding: 28px 12px; text-align: center; text-decoration: none; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.social-list a:last-child { border-right: 0; }
.social-list a:hover { color: var(--gold-light); }

.cta { text-align: center; }
.cta h2 { max-width: 930px; margin-inline: auto; font-size: clamp(3.4rem, 7vw, 7rem); }
.cta p:not(.eyebrow) { max-width: 670px; margin: 28px auto 0; color: var(--muted); }
.cta .button-row { justify-content: center; }

.page-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 120px 0 100px;
}

.page-hero h1 { max-width: 940px; font-size: clamp(4rem, 8vw, 8rem); }
.page-hero h1 em { color: var(--gold-light); font-weight: 400; }
.page-hero-copy { max-width: 700px; margin-top: 30px; color: rgba(251,248,241,0.72); font-size: 1.08rem; }

.book-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.book-card { min-width: 0; display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 34px; background: var(--paper); padding: 38px; }
.book-cover {
  min-width: 0;
  align-self: start;
}
.book-cover img { display: block; width: 100%; height: auto; border: 1px solid rgba(166,124,46,0.28); box-shadow: 0 18px 34px rgba(21,19,15,0.18); }
.book-details { min-width: 0; display: flex; flex-direction: column; }
.book-details h2 { margin: 0 0 12px; overflow-wrap: anywhere; font-family: var(--serif); font-size: 2rem; line-height: 1; }
.book-credit, .book-date { margin: 0; color: var(--gold); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.book-date { margin-top: 4px; color: var(--muted); }
.book-description { color: var(--muted); font-size: 0.91rem; }
.book-details .button { align-self: flex-start; margin-top: auto; }

.topic-grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); }
.topic-card { min-width: 0; min-height: 260px; overflow-wrap: anywhere; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 38px; }
.topic-card:nth-child(2n) { border-right: 0; }
.topic-card:nth-child(n+3) { border-bottom: 0; }
.topic-card h2 { margin: 22px 0 12px; font-family: var(--serif); font-size: 2.2rem; line-height: 1; }
.topic-card p { margin: 0; color: var(--muted); }

.inquiry-layout { min-width: 0; display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 8vw; align-items: start; }
.inquiry-intro { position: sticky; top: 40px; }
.inquiry-intro h2 { font-size: clamp(3.2rem, 5vw, 5.4rem); }
.inquiry-intro p:not(.eyebrow) { color: rgba(251,248,241,0.7); }
.inquiry-form { min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; background: var(--paper); color: var(--ink); padding: 44px; }
.field { min-width: 0; display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.field .optional { color: var(--muted); font-weight: 600; text-transform: none; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--ink); padding: 13px 14px; }
.field textarea { min-height: 150px; resize: vertical; }
.field-hint { margin: 0; color: var(--muted); font-size: 0.78rem; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.form-status { flex: 1; min-width: 220px; margin: 0; font-size: 0.88rem; }
.form-status[data-state="success"] { color: #25613d; }
.form-status[data-state="error"] { color: #9d2d20; }
.privacy-note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 0.78rem; }
.privacy-note a { color: var(--ink); }

.prose { max-width: 780px; overflow-wrap: anywhere; }
.prose h2 { margin: 54px 0 12px; font-family: var(--serif); font-size: 2.3rem; line-height: 1.1; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.prose a { color: var(--gold); }

.site-footer { background: #0d0c0a; color: var(--paper); padding: 70px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px; }
.footer-brand { font-family: var(--serif); font-size: 2rem; line-height: 1.05; }
.footer-title { color: var(--gold-light); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: rgba(251, 248, 241, 0.72); text-decoration: none; }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(251,248,241,0.16); color: rgba(251,248,241,0.5); font-size: 0.78rem; }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .book-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .js .menu-toggle { display: inline-flex; }
  .js .primary-nav { position: absolute; inset: 84px 0 auto; display: none; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); padding: 8px 20px 24px; border-bottom: 1px solid rgba(244,239,229,0.18); }
  .js .primary-nav[data-open="true"] { display: flex; }
  .js .primary-nav a { padding: 14px 0; border-bottom: 1px solid rgba(244,239,229,0.12); }
  html:not(.js) .nav-shell { flex-wrap: wrap; padding-block: 14px; }
  html:not(.js) .primary-nav { width: 100%; flex-direction: column; align-items: stretch; gap: 0; }
  html:not(.js) .primary-nav a { padding: 10px 0; border-top: 1px solid rgba(244,239,229,0.12); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 86px max(20px, calc((100vw - 700px) / 2)); }
  .hero-portrait { min-height: 620px; }
  .section-heading, .story-grid, .author-feature, .feature-band { grid-template-columns: 1fr; }
  .section-heading p:last-child { margin-left: 0; }
  .portal-grid { grid-template-columns: repeat(2, 1fr); }
  .portal-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .portal-card:nth-child(2n) { border-right: 0; }
  .book-stack { margin-top: 30px; }
  .feature-copy, .feature-panel { padding: 80px max(20px, calc((100vw - 700px) / 2)); }
  .book-grid { grid-template-columns: 1fr; }
  .inquiry-layout { grid-template-columns: 1fr; }
  .inquiry-intro { position: static; }
}

@media (max-width: 700px) {
  .topic-grid { grid-template-columns: 1fr; }
  .topic-card,
  .topic-card:nth-child(2n),
  .topic-card:nth-child(n+3) { border-right: 0; border-bottom: 1px solid var(--line); }
  .topic-card:last-child { border-bottom: 0; }
}

@media (max-width: 600px) {
  :root { --page: min(100% - 28px, 1180px); }
  .nav-shell { min-height: 74px; }
  .primary-nav { inset-block-start: 74px; }
  .hero-copy { padding-block: 70px; }
  .hero h1 { font-size: clamp(3.35rem, 17vw, 4.8rem); }
  .hero-portrait { min-height: 530px; }
  .section { padding: 78px 0; }
  .section-heading { margin-bottom: 38px; }
  .portal-grid { grid-template-columns: 1fr; }
  .portal-card, .portal-card:nth-child(2n), .portal-card:nth-child(3n) { border-right: 0; }
  .book-stack { min-height: 360px; width: 100%; overflow: hidden; }
  .mini-cover { width: 52%; padding: 22px 18px; }
  .mini-cover:nth-child(2) { left: 24%; }
  .social-list { grid-template-columns: 1fr 1fr; }
  .social-list a:nth-child(2) { border-right: 0; }
  .social-list a { border-bottom: 1px solid rgba(251,248,241,0.25); }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; }
  .page-hero { padding: 84px 0 72px; }
  .book-card { grid-template-columns: 1fr; padding: 26px; }
  .book-cover { width: min(100%, 280px); }
  .topic-grid, .inquiry-form { grid-template-columns: 1fr; }
  .topic-card, .topic-card:nth-child(2n), .topic-card:nth-child(n+3) { border-right: 0; border-bottom: 1px solid var(--line); }
  .topic-card:last-child { border-bottom: 0; }
  .inquiry-form { padding: 26px; }
  .field-full, .form-actions, .privacy-note { grid-column: 1; }
}

@media (max-width: 360px) {
  .wordmark { white-space: nowrap; font-size: 1rem; }
  .nav-shell { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
