:root {
  --bg: #f5f3ed;
  --surface: #ebe7dc;
  --surface-strong: #dcd4c5;
  --text: #202522;
  --muted: #667067;
  --green: #173d32;
  --olive: #79846a;
  --border: rgba(32, 37, 34, 0.18);
  --shadow: 0 18px 50px rgba(32, 37, 34, 0.08);
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Inter, "Segoe UI", Arial, sans-serif;
  --mono: "Courier New", Courier, monospace;
  --container: 1180px;
  --header-height: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 4px; }
::selection { background: var(--green); color: var(--bg); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--text); font-family: var(--serif); line-height: 1.08; }
h1 { font-size: clamp(3.1rem, 7vw, 6.8rem); letter-spacing: -0.055em; }
h2 { font-size: clamp(2.2rem, 4vw, 4.2rem); letter-spacing: -0.035em; }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.narrow { max-width: 760px; }
.eyebrow, .meta, .label {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  line-height: 1.4;
}
.eyebrow { color: var(--green); }
.lede { font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.55; color: var(--muted); }
.muted { color: var(--muted); }
.skip-link {
  position: fixed; left: 16px; top: -100px; z-index: 1000;
  background: var(--text); color: var(--bg); padding: 10px 14px;
}
.skip-link:focus { top: 12px; }

.site-header {
  height: var(--header-height);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
}
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand strong { font-family: var(--serif); font-size: 1.2rem; }
.brand span { margin-top: 5px; font-family: var(--mono); font-size: .58rem; letter-spacing: .12em; color: var(--muted); }
.desktop-nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); }
.desktop-nav a {
  font-size: .86rem; text-decoration: none; padding: 8px 0;
  border-bottom: 1px solid transparent;
}
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { border-bottom-color: var(--green); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-button, .menu-button {
  width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 50%;
  display: inline-grid; place-items: center; background: transparent; color: var(--text); cursor: pointer;
}
.menu-button { display: none; }
.icon-button svg, .menu-button svg { width: 18px; height: 18px; }
.theme-icon-sun { display: none; }
[data-theme="dark"] .theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun { display: block; }
.mobile-nav { display: none; }

.hero {
  min-height: calc(100vh - var(--header-height));
  display: grid; align-items: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(260px, .58fr); gap: 60px; align-items: end; }
.hero h1 { max-width: 900px; margin: 16px 0 24px; }
.hero-copy { max-width: 720px; }
.hero-aside { border-left: 1px solid var(--border); padding: 12px 0 12px 28px; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-portrait { margin: 0; width: min(100%, 340px); align-self: center; }
.hero-portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center; border: 1px solid var(--border); }
.hero-portrait .location { margin-top: 14px; }
.location { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .86rem; }
.location svg { width: 16px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.button {
  min-height: 46px; display: inline-flex; align-items: center; justify-content: center;
  gap: 9px; padding: 11px 18px; border: 1px solid var(--green);
  background: var(--green); color: #f5f3ed; text-decoration: none;
  font-size: .88rem; transition: background .2s ease, color .2s ease, transform .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.secondary { background: transparent; color: var(--green); }
.button.secondary:hover { background: var(--surface); }

.section { padding: clamp(76px, 10vw, 132px) 0; }
.section.compact { padding: clamp(52px, 7vw, 84px) 0; }
.section-rule { border-top: 1px solid var(--border); }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.section-heading h2 { margin: 10px 0 0; }
.section-heading p { max-width: 520px; justify-self: end; }

.dimension-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.dimension { padding: 36px 34px 38px; border-right: 1px solid var(--border); }
.dimension:last-child { border-right: 0; }
.dimension-number { font-family: var(--mono); color: var(--olive); font-size: .75rem; }
.dimension h3 { margin: 44px 0 14px; }
.dimension p { color: var(--muted); }

.book-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.book-card { text-decoration: none; }
.book-cover {
  aspect-ratio: 3 / 4.35; border: 1px solid var(--border); background: var(--surface);
  display: grid; place-items: center; padding: 22px; text-align: center;
  box-shadow: var(--shadow); transition: transform .25s ease;
}
.book-card:hover .book-cover { transform: translateY(-6px); }
.book-cover .title { font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.55rem); line-height: 1.2; }
.book-cover img { width: 100%; height: 100%; object-fit: contain; }
.book-cover small { display: block; margin-top: 14px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.book-card h3 { margin: 16px 0 4px; font-size: 1.15rem; }

.page-hero { padding: clamp(64px, 9vw, 110px) 0 54px; border-bottom: 1px solid var(--border); }
.page-hero h1 { margin: 10px 0 24px; max-width: 980px; }
.page-hero .lede { max-width: 720px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .78rem; color: var(--muted); }
.breadcrumb a { text-decoration: none; }

.timeline { border-top: 1px solid var(--border); }
.timeline-item { display: grid; grid-template-columns: 180px 1fr; gap: 40px; border-bottom: 1px solid var(--border); padding: 38px 0; }
.timeline-item h2, .timeline-item h3 { margin: 0 0 12px; }
.timeline-item h3 { font-size: 1.45rem; }
.timeline-item p { color: var(--muted); max-width: 720px; }

.entries { border-top: 1px solid var(--border); }
.entry { display: grid; grid-template-columns: 180px 1fr auto; gap: 30px; align-items: start; border-bottom: 1px solid var(--border); padding: 32px 0; }
.entry h2, .entry h3 { margin: 0 0 8px; }
.entry h3 { font-size: 1.45rem; }
.entry p { margin: 0; color: var(--muted); }
.status { border: 1px solid var(--border); border-radius: 999px; padding: 6px 10px; font-family: var(--mono); font-size: .68rem; text-transform: uppercase; }

.books-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.book-detail { border: 1px solid var(--border); display: grid; grid-template-columns: minmax(160px, .42fr) 1fr; min-height: 360px; }
.book-detail .book-cover { min-height: 360px; height: 100%; aspect-ratio: auto; border: 0; border-right: 1px solid var(--border); box-shadow: none; }
.book-info { min-width: 0; padding: 24px; display: flex; flex-direction: column; }
.book-info h2 { margin: 8px 0 14px; font-size: 1.75rem; }
.book-info p { color: var(--muted); }
.book-info .meta { margin-top: auto; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.community-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.community-gallery figure { margin: 0; }
.community-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--border); }
.community-gallery figcaption { margin-top: 8px; color: var(--muted); font-size: .8rem; }
.social-links { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 24px; }
.social-links a { text-decoration-thickness: 1px; }
.tag { border: 1px solid var(--border); padding: 7px 10px; font-family: var(--mono); font-size: .72rem; }
.link-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.link-list a { background: var(--bg); padding: 22px; text-decoration: none; }
.link-list a:hover { background: var(--surface); }
.link-list > div { background: var(--bg); padding: 22px; }

.quote-panel { background: var(--green); color: var(--bg); padding: clamp(50px, 8vw, 90px); }
.quote-panel h2 { color: var(--bg); max-width: 840px; }

.contact-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; }
.contact-methods { border-top: 1px solid var(--border); }
.contact-method { border-bottom: 1px solid var(--border); padding: 18px 0; }
.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 0; background: transparent;
  color: var(--text); padding: 13px 14px;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--green); outline: 2px solid var(--olive); outline-offset: 2px; }
.form-note { color: var(--muted); font-size: .82rem; }
.button:disabled { cursor: wait; opacity: .65; transform: none; }
.submitted-panel {
  max-width: 760px;
  min-height: 360px;
  margin-inline: auto;
  display: grid;
  align-content: center;
  text-align: center;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: clamp(32px, 7vw, 72px);
}
.submitted-panel h1 { margin: 14px 0 20px; font-size: clamp(3rem, 8vw, 5.5rem); }
.submitted-panel .lede { max-width: 620px; margin-inline: auto; }
.submitted-panel .hero-actions { justify-content: center; }

.site-footer { border-top: 1px solid var(--border); padding: 42px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { text-decoration: none; font-size: .82rem; }
.footer-bottom { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; color: var(--muted); font-size: .75rem; }

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