:root {
  color-scheme: light;
  --bg: #efe7d8;
  --ink: #1d1914;
  --muted: #6d6256;
  --paper: #fffaf1;
  --paper-soft: #f8f0e3;
  --line: #d8c6aa;
  --accent: #8d1f14;
  --accent-dark: #3a120d;
  --gold: #b68845;
  --shadow: 0 22px 60px rgba(34, 24, 15, .16);
  font-family: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background:
  radial-gradient(circle at 10% 0%, rgba(182,136,69,.25), transparent 28rem),
  linear-gradient(180deg, #f4edde 0%, var(--bg) 42%, #e8ddca 100%);
  color: var(--ink);
}
body { line-height: 1.65; }
a { color: var(--accent); }
.site { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 64px; }
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.brand { color: inherit; text-decoration: none; display: grid; gap: 2px; }
.brand span, .eyebrow, .contents span, .meta-label, .site-head nav, .button, .site-foot, figcaption { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
.brand span, .eyebrow, .contents span, .meta-label { color: var(--accent); text-transform: uppercase; letter-spacing: .15em; font-size: .76rem; font-weight: 700; }
.brand strong { font-size: clamp(1.2rem, 3vw, 2rem); color: var(--accent-dark); line-height: 1.05; }
.site-head nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.site-head nav a, .button { border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; text-decoration: none; color: var(--accent-dark); background: rgba(255,250,241,.82); }
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(260px, .92fr); gap: 28px; align-items: center; margin: 20px 0 28px; }
.hero-card, .panel, .reading, .chapter-card { background: rgba(255,250,241,.93); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 16px; }
.hero-card { padding: clamp(24px, 5vw, 46px); }
.hero h1 { margin: 0 0 14px; font-size: clamp(2.4rem, 7vw, 5rem); line-height: .95; color: var(--accent-dark); letter-spacing: -.045em; }
.dek { font-size: clamp(1.08rem, 2vw, 1.35rem); color: #3b3027; margin: 0 0 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.button.primary { background: var(--accent); border-color: var(--accent); color: white; }
.hero-figure { margin: 0; }
.hero-figure img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--paper); }
.panel { padding: 24px; margin-top: 24px; }
.panel h2, .reading h2 { margin-top: 0; color: var(--accent-dark); }
.contents { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.contents a { display: block; min-height: 100%; padding: 13px 14px; border-radius: 12px; background: var(--paper-soft); border: 1px solid rgba(141,31,20,.13); text-decoration: none; color: var(--ink); }
.contents span { display: block; margin-bottom: 3px; }
.reading { padding: clamp(22px, 4vw, 46px); margin-top: 20px; }
.reading h1 { font-size: clamp(2rem, 5vw, 3.7rem); line-height: 1; color: var(--accent-dark); }
.reading h2 { margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: 1.45rem; }
.reading h3 { color: var(--accent); margin-top: 1.5rem; }
.reading p { margin: 0 0 1rem; }
.reading sup a { text-decoration: none; font-weight: 700; }
.notes p, p[id^="note-"] { font-size: .94rem; color: #3c352f; }
.figure-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.figure-card { margin: 1.4rem 0; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 35px rgba(34,24,15,.1); }
.figure-card.compact { margin: 0; }
.figure-card img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid #e4d8c7; background: white; }
.figure-card figcaption { margin-top: 10px; color: var(--muted); font-size: .92rem; line-height: 1.4; }
.figure-card figcaption strong, .figure-card figcaption span { display: block; color: var(--ink); }
.figure-card figcaption span { color: var(--muted); }
.chapter-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.chapter-nav a { text-decoration: none; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
.source-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.source-table th, .source-table td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.site-foot { margin-top: 30px; color: var(--muted); font-size: .9rem; text-align: center; }
@media (max-width: 780px) {
  .site-head, .hero { grid-template-columns: 1fr; flex-direction: column; align-items: flex-start; }
  .site-head nav { justify-content: flex-start; }
}
@media print {
  html, body { background: white; }
  .site { width: auto; padding: 0; }
  .site-head, .actions, .site-foot, .chapter-nav { display: none; }
  .hero-card, .panel, .reading, .figure-card { box-shadow: none; }
}
