
:root {
  color-scheme: only light;
  --bg: #fbf6ee;
  --bg-soft: #fffaf3;
  --card: rgba(255, 251, 245, 0.96);
  --card-soft: rgba(255, 247, 234, 0.88);
  --line: rgba(198, 157, 104, 0.18);
  --text: #2e241c;
  --muted: #7a6a5b;
  --accent: #d78b3f;
  --accent-strong: #be6e2e;
  --accent-soft: rgba(215, 139, 63, 0.12);
  --shadow-lg: 0 30px 70px rgba(109, 79, 42, 0.10);
  --shadow-md: 0 16px 34px rgba(109, 79, 42, 0.08);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin:0; min-height:100vh; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: radial-gradient(circle at top, rgba(255, 224, 176, 0.68), transparent 0 34%), linear-gradient(180deg, #fff9f0 0%, #fbf6ee 100%); color: var(--text); }
a { color: inherit; }
.page-shell { width:min(1260px, calc(100% - 32px)); margin:0 auto; padding:36px 0 72px; }
.stack-lg, .stack-md, .stack-sm, .stack-xs { display:grid; }
.stack-lg { gap:28px; } .stack-md { gap:20px; } .stack-sm { gap:12px; } .stack-xs { gap:6px; }
.hero, .surface, .card, .file-card, .subject-card, .toc-card { background: var(--card); border:1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.hero { padding: 40px; box-shadow: var(--shadow-lg); }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); line-height:1.04; margin:0; max-width: 12ch; }
.hero p, .muted { color: var(--muted); line-height:1.68; }
.hero-pill, .eyebrow, .subject-tag, .mini-badge, .kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
.hero-pill { width:fit-content; padding:8px 12px; border-radius:999px; background: rgba(255,219,158,.45); color: var(--accent-strong); }
.grid-main { display:grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, .9fr); gap: 24px; }
.subject-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.subject-card, .toc-card { padding: 24px; }
.subject-header { display:flex; gap:14px; align-items:flex-start; justify-content:space-between; }
.subject-icon { width: 46px; height:46px; border-radius: 14px; display:inline-flex; align-items:center; justify-content:center; background: rgba(215,139,63,.14); font-size: 1.35rem; }
.subject-card h3, .toc-card h3, .file-card h4 { margin:0; font-size:1.25rem; }
.badge-row, .hero-actions, .chip-row { display:flex; gap:10px; flex-wrap:wrap; }
.mini-badge, .chip { padding:6px 10px; border-radius:999px; border:1px solid var(--line); background: rgba(255,255,255,.7); color: var(--accent-strong); }
.button { appearance:none; border:none; border-radius:999px; padding:12px 18px; font-weight:700; text-decoration:none; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; }
.button-primary { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%); color:#fffdf8; }
.button-secondary { background: rgba(255,255,255,.72); color: var(--text); border:1px solid var(--line); }
.section-title { margin:0; font-size: 1.8rem; }
.file-list { display:grid; gap: 12px; }
.file-card { padding: 18px; display:grid; gap: 10px; }
.file-meta { display:flex; gap:8px; flex-wrap:wrap; }
.file-kind { padding:4px 8px; border-radius:999px; background: var(--accent-soft); color: var(--accent-strong); font-size: .78rem; font-weight: 700; }
.breadcrumb { display:flex; gap:10px; flex-wrap:wrap; font-size:.95rem; color: var(--muted); }
.toc-list { margin:0; padding-left: 18px; color: var(--muted); }
.footer-note { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .grid-main { grid-template-columns: 1fr; } .hero { padding: 28px; } }
