:root {
  --paper: #f3f1e8;
  --surface: #faf8ef;
  --ink: #151a17;
  --muted: #666963;
  --faint: #8d8f87;
  --line: #cccdc4;
  --accent: #ff5c35;
  --acid: #c7f36b;
  --violet: #7468ff;
  --blue: #58b9e9;
  --shell: min(1180px, calc(100% - 64px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
body:before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .32; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E"); }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.shell { width: var(--shell); margin-inline: auto; }
.site-header { width: var(--shell); min-height: 78px; margin-inline: auto; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 600; text-decoration: none; }
.mark-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.header-note { margin: 0 auto; color: var(--faint); letter-spacing: .14em; text-transform: uppercase; font-size: 10px; }
.home-link { min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; letter-spacing: .08em; text-transform: uppercase; font-size: 10px; font-weight: 750; text-decoration: none; }
.home-link:hover { background: var(--acid); color: #172015; }
.hero { padding: clamp(76px, 11vw, 145px) 0 clamp(58px, 8vw, 95px); }
.breadcrumb, .eyebrow, .meta { color: var(--faint); letter-spacing: .13em; text-transform: uppercase; font-size: 9px; font-weight: 800; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.hero h1, .section-title, .subject-card h2, .module-copy h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.055em; }
.hero h1 { max-width: 950px; margin: 20px 0 28px; font-size: clamp(58px, 9vw, 118px); line-height: .88; }
.hero p { max-width: 650px; margin: 0; color: var(--muted); font-size: clamp(16px, 1.8vw, 21px); }
.subject-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-bottom: clamp(80px, 12vw, 150px); }
.subject-card { min-height: 320px; padding: clamp(24px, 3vw, 38px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; text-decoration: none; transition: background .17s, color .17s; }
.subject-card:hover { background: var(--acid); color: #172015; }
.subject-card:nth-child(2):hover { background: var(--blue); }
.subject-card:nth-child(3):hover { background: #ffd2bc; }
.subject-card h2 { margin: auto 0 10px; font-size: clamp(34px, 4vw, 56px); line-height: .95; }
.subject-card p { margin: 0; color: var(--muted); font-size: 13px; }
.subject-card.is-soon { cursor: default; }
.subject-card.is-soon:hover { background: var(--surface); color: var(--ink); }
.resource-section { padding-bottom: clamp(80px, 12vw, 150px); }
.module-stack { display: grid; gap: 24px; }
.video-note { margin-bottom: 24px; padding: 19px 22px; border: 1px solid var(--line); background: var(--surface); display: grid; grid-template-columns: 34px 1fr; gap: 16px; align-items: start; }
.video-mark { width: 34px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--acid); color: #172015; }
.video-note p { margin: 0 0 5px; }
.video-note small { color: var(--faint); font-size: 10px; }
.module-card { display: grid; grid-template-columns: 180px 1fr auto; gap: clamp(24px, 4vw, 54px); align-items: center; padding: clamp(20px, 3vw, 34px); border: 1px solid var(--line); background: var(--surface); }
.module-cover { width: 180px; aspect-ratio: 210/297; border: 1px solid var(--line); object-fit: cover; }
.module-copy h2 { margin: 18px 0 10px; font-size: clamp(38px, 5vw, 66px); line-height: .92; }
.module-copy p { max-width: 520px; margin: 0; color: var(--muted); }
.module-actions { display: grid; gap: 9px; }
.module-actions a { min-width: 150px; padding: 11px 16px; border: 1px solid var(--ink); border-radius: 999px; text-align: center; letter-spacing: .09em; text-transform: uppercase; font-size: 9px; font-weight: 800; text-decoration: none; }
.module-actions a:first-child { background: var(--ink); color: var(--paper); }
.module-actions a:hover { background: var(--acid); color: #172015; }
.reading-only { max-width: 170px; color: var(--faint); letter-spacing: .08em; text-align: center; text-transform: uppercase; font-size: 8px; font-weight: 750; line-height: 1.45; }
.empty-state { margin-bottom: clamp(80px, 12vw, 150px); padding: clamp(36px, 7vw, 80px); border: 1px solid var(--line); background: var(--surface); }
.empty-state span { color: var(--accent); font-family: Georgia, serif; font-size: clamp(70px, 12vw, 140px); line-height: .8; }
.empty-state h2 { margin: 28px 0 10px; font-family: Georgia, serif; font-size: clamp(32px, 5vw, 58px); font-weight: 400; line-height: 1; }
.empty-state p { max-width: 600px; margin: 0; color: var(--muted); }
.site-footer { width: var(--shell); margin-inline: auto; padding: 26px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: var(--faint); font-size: 11px; }
@media (max-width: 820px) {
  :root { --shell: min(100% - 36px, 680px); }
  .header-note { display: none; }
  .subject-grid { grid-template-columns: 1fr; }
  .subject-card { min-height: 210px; }
  .module-card { grid-template-columns: 130px 1fr; }
  .module-cover { width: 130px; }
  .module-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .reading-only { align-self: center; justify-self: center; }
}
@media (max-width: 540px) {
  .wordmark { font-size: 16px; }
  .home-link { padding-inline: 12px; }
  .hero h1 { font-size: clamp(55px, 17vw, 82px); }
  .module-card { grid-template-columns: 1fr; }
  .module-actions { grid-column: 1; grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
}
