@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Libre+Caslon+Display&display=swap');

:root {
  --ink: #17211d;
  --paper: #f4f1e8;
  --paper-deep: #e9e4d8;
  --green: #174d3a;
  --green-light: #d5e3da;
  --rust: #bc5538;
  --gold: #d6a940;
  --line: rgba(23, 33, 29, .17);
  --muted: #5c655f;
  --serif: "Libre Caslon Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.6; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--rust); }
.site-header { min-height: 82px; padding: 18px clamp(20px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; color: var(--paper); background: var(--green); font-family: var(--serif); }
.search { display: flex; border-bottom: 1px solid var(--ink); }
.search input { width: min(32vw, 280px); border: 0; padding: 9px 4px; background: transparent; color: var(--ink); font: inherit; }
.search button { border: 0; padding: 9px 2px 9px 16px; background: transparent; font: 600 13px var(--sans); cursor: pointer; }
main { min-height: calc(100vh - 180px); }
.hero { padding: clamp(72px, 11vw, 150px) clamp(20px, 8vw, 120px) 80px; background: radial-gradient(circle at 85% 20%, rgba(214,169,64,.22), transparent 28%); }
.eyebrow { color: var(--rust); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.06; }
h1 { max-width: 930px; margin-top: 18px; font-size: clamp(48px, 8vw, 108px); letter-spacing: -.035em; }
h1 em { color: var(--green); font-style: normal; }
.hero-copy { max-width: 700px; margin: 30px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 21px); }
.totals { display: flex; gap: clamp(32px, 7vw, 100px); margin: 64px 0 0; }
.totals div { display: flex; flex-direction: column; }
.totals dt { font: 44px/1 var(--serif); }
.totals dd { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.collection-grid { padding: 80px clamp(20px, 5vw, 72px) 110px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--ink); }
.section-heading { grid-column: 1 / -1; padding: 0 0 40px; color: var(--paper); }
.section-heading h2 { margin-top: 10px; font-size: clamp(36px, 5vw, 62px); }
.collection-card { min-height: 340px; padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; color: var(--ink); background: var(--paper-deep); text-decoration: none; transition: transform .2s, background .2s; }
.collection-card:hover { z-index: 1; color: var(--ink); background: #faf8f1; transform: translateY(-5px); }
.collection-2, .collection-3 { background: var(--green-light); }
.collection-number { color: var(--rust); font-size: 13px; }
.collection-card h3 { max-width: 530px; margin-top: auto; font-size: clamp(30px, 3.4vw, 50px); }
.collection-card p { max-width: 590px; color: var(--muted); }
.card-meta { margin-top: 18px; font-size: 13px; font-weight: 600; }
.breadcrumbs { padding: 24px clamp(20px, 5vw, 72px); display: flex; gap: 10px; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line); }
.collection-header, .document-header, .search-page { padding: clamp(60px, 9vw, 120px) clamp(20px, 8vw, 120px); }
.collection-header h1, .document-header h1, .search-page h1 { max-width: 1050px; font-size: clamp(44px, 7vw, 92px); }
.collection-header p, .lede, .search-page > p { max-width: 800px; color: var(--muted); font-size: 19px; }
.document-list { border-top: 1px solid var(--line); }
.document-row { padding: 36px clamp(20px, 5vw, 72px); display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 22px; align-items: start; border-bottom: 1px solid var(--line); }
.document-order, .point-number { color: var(--rust); font-size: 12px; }
.document-row h2 { font-size: clamp(27px, 3vw, 40px); }
.document-row h2 a { text-decoration: none; }
.document-row p { max-width: 850px; color: var(--muted); }
.document-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 12px; font-weight: 600; }
.row-arrow { justify-self: end; font-size: 26px; text-decoration: none; }
.document-actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 32px; color: var(--muted); font-size: 13px; }
.primary-button { padding: 13px 19px; color: white; background: var(--green); font-weight: 600; text-decoration: none; }
.primary-button:hover { color: white; background: var(--rust); }
.document-layout { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 2fr); gap: clamp(35px, 8vw, 130px); padding: 0 clamp(20px, 8vw, 120px) 120px; }
.reading-note { position: sticky; top: 30px; align-self: start; padding-top: 34px; border-top: 2px solid var(--green); color: var(--muted); font-size: 14px; }
.summary-point { position: relative; padding: 42px 0 52px 54px; border-top: 1px solid var(--line); }
.summary-point h2 { margin: -23px 0 20px; font-size: clamp(30px, 3.5vw, 48px); }
.summary-point > p { max-width: 800px; font-size: 18px; }
.citations { margin-top: 30px; }
.citations figure { margin: 14px 0 0; padding: 20px 24px; background: var(--paper-deep); border-left: 3px solid var(--gold); }
.citations blockquote { margin: 0 0 10px; font: 20px/1.5 var(--serif); }
.citations figcaption { margin-bottom: 12px; color: var(--muted); font-size: 12px; }
.citations a { color: var(--green); font-size: 12px; font-weight: 600; }
.search-results { margin-top: 50px; border-top: 1px solid var(--line); }
.search-results article { padding: 30px 0; border-bottom: 1px solid var(--line); }
.search-results h2 { margin: 8px 0; font-size: 34px; }
.empty-state { padding: 40px 0; color: var(--muted); }
footer { padding: 32px clamp(20px, 5vw, 72px); color: #cdd4cf; background: var(--ink); font-size: 12px; }
footer p { max-width: 800px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 760px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .search, .search input { width: 100%; }
  .collection-grid { grid-template-columns: 1fr; }
  .collection-card { min-height: 300px; }
  .totals { gap: 28px; }
  .totals dt { font-size: 34px; }
  .document-layout { grid-template-columns: 1fr; }
  .reading-note { position: static; }
  .summary-point { padding-left: 0; }
  .summary-point h2 { margin-top: 4px; }
}
