:root {
  --bg: #efe4d1;
  --paper: #fff8ea;
  --ink: #17110c;
  --muted: #65594c;
  --rule: #24190f;
  --accent: #8f4a22;
  --accent-dark: #5e2b18;
  --soft: #d7c4aa;
  --hero-bg: #14100c;
  --hero-ink: #fff4df;
  --hero-muted: #d9c5a4;
  --wrap: 1120px;
  --hero-media-start: max(43vw, calc((100vw - var(--wrap)) / 2 + 515px));
  --hero-fade-width: clamp(240px, 29vw, 520px);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Trebuchet MS", Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 18% 8%, rgba(255,248,234,.72), transparent 28%), var(--bg);
  font-family: var(--serif);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.wrap { width: min(var(--wrap), calc(100% - 2rem)); margin: 0 auto; }
.site-header { border-bottom: 1px solid var(--rule); background: rgba(239,228,209,.96); }
.header-inner { display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; padding: 1rem 0; }
.site-logo { display: grid; gap: .1rem; }
.site-logo__title { font-size: 1.65rem; letter-spacing: .03em; text-transform: uppercase; }
.site-logo__tagline { color: var(--muted); font-size: .95rem; font-style: italic; }
.main-nav { display: flex; flex-wrap: wrap; gap: .75rem 1.1rem; justify-content: flex-end; font-family: var(--sans); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }
.main-nav a[aria-current="page"], .main-nav a:hover { border-bottom: 1px solid currentColor; }
.hero, .page-hero { border-bottom: 1px solid var(--rule); }
.threshold-hero { position: relative; overflow: hidden; color: var(--hero-ink); background: var(--hero-bg); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; min-height: 34rem; padding: 4rem 0; }
.threshold-hero .hero-grid { width: min(var(--wrap), calc(100% - 2rem)); margin: 0 auto; padding: 0; }
.hero-copy { position: relative; z-index: 2; }
.threshold-hero .hero-copy { display: flex; max-width: 35rem; min-height: clamp(32rem, 56vh, 42rem); flex-direction: column; justify-content: center; padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem) 0; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.hero-copy h1, .page-hero h1 { margin: 0 0 .75rem; font-size: clamp(3.4rem, 8vw, 7rem); font-weight: 400; line-height: .9; letter-spacing: 0; }
.hero-kicker, .page-subtitle { max-width: 43rem; margin: 0 0 1.5rem; font-size: clamp(1.35rem, 2.6vw, 2.2rem); font-style: italic; line-height: 1.18; }
.hero-copy p, .section-copy p, .prose p { font-size: clamp(1.05rem, 1.4vw, 1.22rem); }
.text-link { display: inline-flex; width: fit-content; margin-top: .5rem; border-bottom: 1px solid currentColor; color: var(--accent-dark); font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.threshold-hero .text-link { color: #f1c16c; }
.hero-map { position: relative; min-height: 24rem; margin: 0; overflow: hidden; }
.hero-map::before { content: ""; position: absolute; inset: 0 auto 0 0; z-index: 1; width: var(--hero-fade-width); background: linear-gradient(90deg, var(--hero-bg) 0%, rgba(20,16,12,.9) 36%, rgba(20,16,12,0) 100%); pointer-events: none; }
.hero-map img { display: block; width: 100%; height: 100%; min-height: 24rem; object-fit: cover; object-position: right center; }
.section, .page-content { padding: clamp(3rem, 7vw, 6rem) 0; border-bottom: 1px solid var(--rule); }
.section-grid, .page-layout { display: grid; grid-template-columns: minmax(0, .56fr) minmax(16rem, .44fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
h2 { margin: 0 0 1rem; font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 400; line-height: 1; }
.shelf, .fragment-grid, .volume-grid { display: grid; gap: 1rem; }
.shelf article, .fragment-card, .volume-grid article, .side-note, .conversation-list article { background: var(--paper); border: 1px solid var(--rule); padding: 1.1rem; box-shadow: .45rem .45rem 0 rgba(36,25,15,.12); }
.shelf span, .fragment-card span, .conversation-list span, .volume-grid p { display: block; color: var(--muted); font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.fragment-grid { grid-template-columns: repeat(3, 1fr); margin-top: 1.5rem; }
.fragment-card h3 { margin: .7rem 0; font-size: 1.45rem; font-weight: 400; }
.page-hero { padding: clamp(3rem, 7vw, 5.5rem) 0; background: var(--soft); }
.prose { max-width: 47rem; }
.lead { font-size: clamp(1.25rem, 2vw, 1.55rem) !important; }
.conversation-list { display: grid; gap: 1rem; margin-top: 2rem; }
.conversation-list article h2 { margin-top: .65rem; font-size: clamp(1.6rem, 3vw, 2.5rem); }
.volume-grid { grid-template-columns: repeat(3, 1fr); margin-bottom: 3rem; }
.volume-grid article { min-height: 18rem; display: flex; flex-direction: column; justify-content: space-between; }
.volume-grid h2 { font-size: clamp(2rem, 4vw, 3rem); }
.narrow { max-width: 42rem; }
.page-note { padding-top: 1rem; border-top: 1px solid var(--rule); color: var(--muted); font-style: italic; }
.side-note h2 { font-size: 1.6rem; }
.site-footer { padding: 2rem 0; }
.footer-grid { display: flex; justify-content: center; align-items: center; gap: 1.5rem; color: var(--muted); font-family: var(--sans); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-emblem { display: grid; width: 3.5rem; height: 3.5rem; place-items: center; border: 1px solid var(--rule); color: var(--accent-dark); font-family: var(--serif); }

@media (min-width: 900px) {
  .threshold-hero .hero-grid { display: flex; min-height: clamp(32rem, 56vh, 42rem); }
  .hero-map { position: absolute; top: 0; right: calc(50% - 50vw); bottom: 0; left: var(--hero-media-start); z-index: 0; min-height: 0; }
  .hero-map img { height: 100%; min-height: 0; }
}

@media (min-width: 900px) and (max-width: 1080px) {
  .threshold-hero { --hero-media-start: clamp(420px, 50vw, 535px); --hero-fade-width: clamp(220px, 28vw, 360px); }
}

@media (max-width: 820px) {
  .header-inner, .hero-grid, .section-grid, .page-layout { grid-template-columns: 1fr; flex-direction: column; align-items: flex-start; }
  .main-nav { justify-content: flex-start; }
  .fragment-grid, .volume-grid { grid-template-columns: 1fr; }
  .threshold-hero .hero-copy { min-height: 0; padding: clamp(3rem, 10vw, 4.5rem) 0 2rem; }
  .hero-map { width: 100%; border-top: 1px solid rgba(255,244,223,.35); }
  .hero-map::before { display: none; }
  .hero-map, .hero-map img { min-height: 20rem; }
}
