:root {
  --ivory: #f3eee4;
  --paper: #faf7f0;
  --ink: #171512;
  --burgundy: #5b1114;
  --burgundy-dark: #3d0c0f;
  --gold: #9a7b43;
  --umber: #675b4c;
  --line: rgba(91, 17, 20, 0.18);
  --shadow: 0 24px 70px rgba(53, 37, 24, 0.16);
  --serif: Georgia, "Times New Roman", Times, serif;
  --ui: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ivory);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(154, 123, 67, 0.08), transparent 28rem),
    linear-gradient(rgba(255,255,255,0.16), rgba(255,255,255,0.16)),
    var(--ivory);
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
  z-index: -1;
}

a { color: inherit; }

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: white;
}

.skip-link:focus { top: 1rem; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(103, 91, 76, 0.18);
  background: rgba(243, 238, 228, 0.94);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(1180px, calc(100% - 2.5rem));
  min-height: 76px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--burgundy); }

.nav-toggle {
  display: none;
  border: 0;
  padding: 0.5rem;
  color: var(--ink);
  background: transparent;
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.narrow { width: min(760px, calc(100% - 2.5rem)); }

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(270px, 0.78fr) minmax(360px, 1.22fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7.5rem);
  overflow: clip;
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.cover-wrap {
  position: relative;
  width: min(100%, 480px);
  justify-self: center;
}

.cover-wrap::before {
  content: "";
  position: absolute;
  inset: 5% -8% -4% 8%;
  border: 1px solid rgba(154, 123, 67, 0.32);
  z-index: -1;
}

.cover {
  width: 100%;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--burgundy);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin-top: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-size: clamp(3.3rem, 7vw, 7rem);
  letter-spacing: -0.045em;
}

.title-accent { color: var(--burgundy); }

.subtitle {
  margin: 0 0 2rem;
  color: var(--umber);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-style: italic;
}

.lead {
  max-width: 650px;
  margin: 0;
  color: #39342d;
  font-family: var(--serif);
  font-size: clamp(1.14rem, 1.55vw, 1.38rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.2rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--burgundy);
  padding: 0.72rem 1.25rem;
  text-decoration: none;
  color: white;
  background: var(--burgundy);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  background: var(--burgundy-dark);
  transform: translateY(-1px);
}

.button.secondary {
  color: var(--burgundy);
  background: transparent;
}

.button.secondary:hover {
  color: white;
  background: var(--burgundy);
}

.section {
  padding-block: clamp(5rem, 9vw, 8rem);
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 14ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2.35rem, 4.5vw, 4.4rem);
  letter-spacing: -0.035em;
}

.intro-grid,
.author-preview,
.book-layout,
.contact-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.large-copy {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1.45;
}

.themes {
  background: rgba(250, 247, 240, 0.42);
}

.themes .eyebrow {
  margin-bottom: 2rem;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(154, 123, 67, 0.48);
  list-style: none;
}

.theme-grid li {
  min-width: 0;
  padding: clamp(1.4rem, 2.5vw, 2.2rem) clamp(1rem, 2vw, 1.7rem);
  border-bottom: 1px solid rgba(154, 123, 67, 0.34);
  color: #403831;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.55vw, 1.3rem);
  line-height: 1.35;
  text-wrap: balance;
}

.theme-grid li:nth-child(4n + 1) {
  padding-left: 0;
}

.pull-quote {
  margin: 0;
  padding-left: 1.7rem;
  border-left: 2px solid var(--gold);
  color: var(--umber);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
}

.status-panel {
  padding: 2rem;
  border: 1px solid var(--line);
  background: rgba(250,247,240,0.55);
}

.status-panel p { margin: 0; }

.page-hero {
  padding-block: clamp(5rem, 11vw, 10rem);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 14ch;
  font-size: clamp(3.5rem, 8vw, 7.5rem);
}

.page-hero .lead { margin-top: 1.75rem; }

.book-layout .cover-wrap {
  position: sticky;
  top: 110px;
}

.prose h2 {
  margin: 3.5rem 0 1rem;
  font-size: clamp(2rem, 3.4vw, 3rem);
}

.prose h2:first-child { margin-top: 0; }

.prose p { max-width: 68ch; }

.scope-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 1.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.scope-list li {
  padding: 0.85rem 1rem 0.85rem 0;
  border-bottom: 1px solid var(--line);
  color: #403831;
}

.scope-list li:nth-child(even) { padding-left: 1rem; }

.details {
  margin: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}

.details div {
  display: grid;
  grid-template-columns: 150px 1fr;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.details dt {
  color: var(--umber);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.details dd { margin: 0; }

.pending {
  color: var(--umber);
  font-style: italic;
}

.notice {
  padding: 1.5rem;
  border-left: 3px solid var(--gold);
  background: rgba(154, 123, 67, 0.08);
}

.contact-card {
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  background: rgba(250,247,240,0.6);
}

label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--umber);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

input, textarea {
  width: 100%;
  border: 1px solid rgba(103,91,76,0.42);
  border-radius: 0;
  padding: 0.85rem;
  color: var(--ink);
  background: rgba(255,255,255,0.45);
  font: inherit;
}

textarea {
  min-height: 170px;
  resize: vertical;
}

.field { margin-bottom: 1.25rem; }

.form-note,
.form-status {
  color: var(--umber);
  font-size: 0.88rem;
}

.site-footer {
  padding-block: 3.5rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
}

.footer-title {
  margin: 0 0 0.3rem;
  font-family: var(--serif);
  font-size: 1.35rem;
}

.footer-meta {
  margin: 0;
  color: var(--umber);
  font-size: 0.87rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.82rem;
}

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

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }

  .nav-links {
    position: absolute;
    inset: 76px 0 auto;
    display: none;
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  .nav-links.open { display: grid; }

  .nav-links a {
    display: block;
    padding: 0.65rem 0;
  }

  .hero,
  .intro-grid,
  .author-preview,
  .book-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 3rem;
  }

  .hero-copy { order: -1; }
  .hero h1 { max-width: 10ch; }
  .cover-wrap { max-width: 410px; }
  .book-layout .cover-wrap { position: static; }
  .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .theme-grid li:nth-child(4n + 1) { padding-left: clamp(1rem, 2vw, 1.7rem); }
  .theme-grid li:nth-child(2n + 1) { padding-left: 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container, .narrow, .nav-shell { width: min(100% - 1.5rem, 1180px); }
  .nav-shell { min-height: 68px; }
  .nav-links { top: 68px; }
  .page-hero { padding-block: 4.5rem; }
  .scope-list { grid-template-columns: 1fr; }
  .theme-grid { grid-template-columns: 1fr; }
  .theme-grid li,
  .theme-grid li:nth-child(4n + 1),
  .theme-grid li:nth-child(2n + 1) {
    padding-inline: 0;
  }
  .scope-list li:nth-child(even) { padding-left: 0; }
  .details div { grid-template-columns: 1fr; gap: 0.2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
}
