:root {
  --ink: #17201d;
  --muted: #5d6762;
  --paper: #f7f4ed;
  --paper-deep: #eee9df;
  --white: #fffdf8;
  --evergreen: #25463d;
  --evergreen-dark: #183129;
  --copper: #a85f3d;
  --line: #d9d3c7;
  --shadow: 0 20px 50px rgba(24, 49, 41, 0.12);
  --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);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
code {
  padding: 0.12rem 0.32rem;
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  background: rgba(255,255,255,0.55);
  font-size: 0.88em;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-180%);
  padding: 0.7rem 1rem;
  color: white;
  background: var(--evergreen-dark);
  border-radius: 0.25rem;
}
.skip-link:focus { transform: none; }

.shell { width: min(1140px, calc(100% - 2.5rem)); margin-inline: auto; }
.narrow { width: min(860px, calc(100% - 2.5rem)); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 211, 199, 0.75);
  background: rgba(247, 244, 237, 0.94);
  backdrop-filter: blur(12px);
}
.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.site-name {
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.35rem 1.35rem; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
}
nav a:hover, nav a:focus-visible { color: var(--evergreen); text-decoration: underline; text-underline-offset: 0.3rem; }

.hero {
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(4rem, 8vw, 7rem);
  background:
    radial-gradient(circle at 80% 20%, rgba(168,95,61,0.10), transparent 26rem),
    linear-gradient(180deg, var(--white), var(--paper));
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6rem);
}
.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--copper);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--serif); line-height: 1.08; text-wrap: balance; }
h1 { max-width: 780px; margin: 0; font-size: clamp(3rem, 7vw, 6.2rem); font-weight: 500; letter-spacing: -0.045em; }
h2 { margin: 0; font-size: clamp(2.1rem, 4.5vw, 3.6rem); font-weight: 500; letter-spacing: -0.025em; }
h3 { margin: 0 0 1rem; font-size: clamp(1.7rem, 3vw, 2.65rem); font-weight: 500; }
.hero-summary { max-width: 700px; margin: 1.7rem 0 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.2rem;
  border: 1px solid var(--evergreen-dark);
  border-radius: 0.2rem;
  color: white;
  background: var(--evergreen);
  text-decoration: none;
  font-weight: 750;
  box-shadow: 0 8px 18px rgba(24,49,41,0.12);
}
.button:hover, .button:focus-visible { background: var(--evergreen-dark); transform: translateY(-1px); }
.text-link { color: var(--evergreen); font-weight: 750; text-underline-offset: 0.3rem; }
.portrait-frame {
  margin: 0;
  padding: 0.65rem;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
  transform: rotate(0.6deg);
}
.portrait-frame img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 34%; }

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section.alt { border-block: 1px solid var(--line); background: var(--paper-deep); }
.section-heading { margin-bottom: clamp(2.4rem, 5vw, 4.4rem); }
.section-intro { max-width: 720px; margin: -2.7rem 0 2.5rem; color: var(--muted); }

.book-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  margin-bottom: clamp(3rem, 7vw, 6.5rem);
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}
.book-feature.forthcoming { min-height: 440px; overflow: hidden; background: linear-gradient(135deg, #fffdf8, #f0ece2); }
.book-status { margin: 0 0 0.55rem; color: var(--copper); font-size: 0.79rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.subtitle { color: var(--evergreen); font-family: var(--serif); font-size: 1.2rem; font-style: italic; }
.rating { margin: 1.5rem 0; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.quiet-note { margin-top: 1.5rem; color: var(--muted); font-size: 0.9rem; }
.placeholder { padding-left: 1rem; border-left: 3px solid var(--copper); color: var(--muted); }
.markdown-content p:first-child { margin-top: 0; }
.markdown-content p:last-child { margin-bottom: 0; }

.compass-logo-wrap {
  justify-self: center;
  width: min(360px, 100%);
}
.compass-logo {
  width: 100%;
  height: auto;
}
.book-cover-wrap { justify-self: center; width: min(320px, 100%); padding: 0.55rem; border: 1px solid var(--line); background: white; box-shadow: 0 18px 35px rgba(23,32,29,0.16); }
.book-cover { width: 100%; height: auto; }

.reviews { padding-top: 0.5rem; }
.reviews > h3 { font-size: 1.5rem; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.review-grid figure { margin: 0; padding: 1.5rem; border-top: 3px solid var(--evergreen); background: rgba(255,255,255,0.58); }
.review-grid blockquote { margin: 0; font-family: var(--serif); font-size: 1.16rem; line-height: 1.45; }
.review-grid figcaption { margin-top: 1rem; color: var(--muted); font-size: 0.82rem; }

.prose { font-size: 1.04rem; }
.columns { column-count: 2; column-gap: 3rem; }
.columns p { break-inside: avoid; margin-top: 0; }
.edit-note { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }

.publication-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.publication-list li { display: grid; grid-template-columns: 90px 1fr; gap: 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.publication-year { color: var(--copper); font-weight: 800; }

.contact-section { padding-top: 1rem; }
.contact-card { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 2.5rem; padding: clamp(2rem, 5vw, 3.8rem); color: white; background: var(--evergreen-dark); box-shadow: var(--shadow); }
.contact-card h2 { color: white; }
.contact-card p { color: rgba(255,255,255,0.82); }
.contact-placeholders { align-self: center; padding-left: 2rem; border-left: 1px solid rgba(255,255,255,0.28); }
.contact-placeholders p { margin: 0.4rem 0; }
.contact-placeholders span { color: rgba(255,255,255,0.68); }

.site-footer { padding: 2rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; }
.footer-inner p { margin: 0; }

@media (max-width: 820px) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: 0.5rem; padding-block: 0.8rem; }
  nav { justify-content: flex-start; }
  .hero-grid, .book-feature, .contact-card { grid-template-columns: 1fr; }
  .portrait-frame { width: min(520px, 100%); }
  .compass-logo-wrap { width: min(360px, 78vw); }
  .review-grid { grid-template-columns: 1fr; }
  .columns { column-count: 1; }
  .contact-placeholders { padding: 1.5rem 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,0.28); }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .shell, .narrow { width: min(100% - 1.4rem, 1140px); }
  .site-name { font-size: 1.08rem; }
  nav { gap: 0.25rem 0.85rem; }
  nav a { font-size: 0.79rem; }
  h1 { font-size: clamp(2.65rem, 15vw, 4.4rem); }
  .hero { padding-top: 3.2rem; }
  .book-feature { padding: 1.3rem; }
  .publication-list li { grid-template-columns: 1fr; gap: 0.25rem; }
  .footer-inner { flex-direction: column; gap: 0.35rem; }
}

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