@font-face { font-family: 'Instrument Serif'; src: url('./instrument-serif-normal.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('./instrument-serif-italic.woff2') format('woff2'); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('./dm-sans-normal.woff2') format('woff2'); font-style: normal; font-weight: 400 780; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #172a28;
  --muted: #52645e;
  --paper: #fbfaf5;
  --line: #d9e0d6;
  --dark: #102c29;
  --mint: #d7f592;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.55 var(--sans); }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.03; letter-spacing: -.045em; }
h1 { font-size: clamp(4rem, 10vw, 9.25rem); }
h2 { font-size: clamp(2.4rem, 5.4vw, 5rem); }
h3 { font-size: clamp(2rem, 3.4vw, 3.5rem); }
:focus-visible { outline: 3px solid #b05a0a; outline-offset: 5px; }
.wrap { width: min(100% - 5rem, 76rem); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; z-index: 2; background: white; padding: .75rem; transform: translateY(-150%); }
.skip:focus { transform: none; }

.top { border-bottom: 1px solid var(--line); }
.nav, .nav nav, .brand, .button, .actions { display: flex; align-items: center; }
.nav { justify-content: space-between; min-height: 5rem; gap: 1.5rem; }
.brand { gap: .7rem; flex-shrink: 0; width: fit-content; font-size: 1rem; font-weight: 750; line-height: 1.03; letter-spacing: -.04em; text-decoration: none; }
.brand img { object-fit: contain; }
.nav nav { gap: clamp(1rem, 3.3vw, 3rem); font-size: .91rem; font-weight: 650; }
.nav nav a { text-decoration: none; padding-block: .5rem; }
.nav nav a:hover, .nav nav a[aria-current] { text-decoration: underline; text-underline-offset: .3em; }
.button { display: inline-flex; width: fit-content; gap: .85rem; border-radius: .4rem; border: 1px solid transparent; min-height: 2.85rem; padding: .65rem .95rem; font-size: .87rem; font-weight: 700; text-decoration: none; }
.outline { border-color: #9aa9a1; }
.outline:hover { background: #e3ecd9; }
.primary { color: #112b26; background: var(--mint); }
.primary:hover { background: #ecffc3; }
.ghost { border-color: #74918a; color: #fff; }
.ghost:hover { background: #2b4c44; }
.actions { flex-wrap: wrap; gap: .65rem; }

.hero { background: var(--dark); color: var(--paper); overflow: hidden; }
.hero-inner { min-height: 34rem; display: grid; grid-template-columns: 1fr .9fr; align-items: center; position: relative; }
.hero-copy { z-index: 1; padding-block: 4.5rem; }
.hero h1 { line-height: .91; }
.hero em { color: var(--mint); font-weight: inherit; }
.hero-copy p { color: #dae7de; font-size: 1.12rem; max-width: 29rem; margin: 1.65rem 0 1.6rem; }
.hero-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; background: radial-gradient(ellipse, #417061 0%, transparent 65%); }
.hero-art img { width: 72%; height: auto; position: relative; filter: drop-shadow(0 20px 28px #071f1990); }
.orbit { border: 1px solid #a9c2a95e; position: absolute; width: 95%; aspect-ratio: 1; border-radius: 50%; }
.orbit-inner { width: 86%; }
.hero-art i { position: absolute; width: .55rem; height: .55rem; background: var(--mint); border-radius: 50%; left: 13%; bottom: 18%; box-shadow: 0 0 15px #d7f59273; }

.section { padding-block: clamp(3rem, 6vw, 5.6rem); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.label { font-size: .72rem; font-weight: 780; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .65rem; }
.text-link { font-weight: 730; font-size: .9rem; text-decoration: underline; text-underline-offset: .3em; }
.text-link:hover { text-decoration-thickness: 2px; }
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.course { border: 1px solid var(--line); border-radius: .6rem; background: #fffdf8; overflow: hidden; }
.course a { display: block; height: 100%; text-decoration: none; }
.course a:focus-visible { outline-offset: -4px; }
.course-image { display: grid; place-items: end center; position: relative; height: clamp(9rem, 17vw, 14rem); overflow: hidden; background: #dde9d2; }
.fiction .course-image { background: #eee1cf; }
.theater .course-image { background: #dfd9e8; }
.course-image img { width: 53%; height: auto; max-height: 97%; object-fit: contain; object-position: center bottom; transition: transform .2s ease; }
.course-image > span { position: absolute; top: .8rem; right: .8rem; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--paper); }
.course a:hover img { transform: scale(1.04); }
.course-copy { padding: 1.15rem; }
.course-copy h3 { font-size: clamp(1.65rem, 2.7vw, 2.6rem); }
.course-copy p:last-child { color: var(--muted); margin-top: .5rem; font-size: .9rem; }

.resource-section { background: #eef1e8; }
.resources { display: grid; grid-template-columns: 1.12fr .88fr; gap: 1rem; }
.resources article, .universe { border-radius: .65rem; overflow: hidden; }
.library { background: #fdf8e9; }
.books { min-height: 14rem; display: flex; align-items: center; justify-content: center; gap: .25rem; background: #e6d9bd; overflow: hidden; }
.books img { width: min(24%, 8rem); aspect-ratio: 2/3; object-fit: cover; box-shadow: 0 9px 15px #452f2b3d; }
.books img:first-child { transform: translateX(5%) rotate(-11deg); }
.books img:nth-child(2) { z-index: 1; transform: scale(1.08); }
.books img:last-child { transform: translateX(-5%) rotate(11deg); }
.resource-copy { padding: clamp(1.3rem, 3vw, 2.3rem); }
.resource-copy p:not(.label) { margin: .75rem 0 1.15rem; max-width: 35rem; }
.notes { background: #dceab8; display: flex; flex-direction: column; justify-content: space-between; }
.notes-art { min-height: 11rem; display: grid; place-items: center; padding-top: 1rem; }
.notes-art div { width: 9rem; padding: 1rem; background: #213d34; color: var(--mint); min-height: 12rem; box-shadow: 5px 5px 0 #486852, 0 10px 25px #152f2840; transform: rotate(9deg) translateY(1rem); }
.notes-art small { font-size: .58rem; letter-spacing: .16em; }
.notes-art span { font: 2.3rem/.9 var(--serif); }
.notes-art hr { border: 0; border-top: 1px solid #b5da76; }
.universe { margin-top: 1rem; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; background: #182739; color: #f6f7f8; }
.universe img { height: 100%; width: 100%; min-height: 13rem; object-fit: cover; }
.universe a { color: var(--mint); }

footer { background: #102c29; color: #f7f9f3; padding-block: 3rem; }
.foot { display: grid; grid-template-columns: 1.25fr .8fr 1fr; gap: 1.25rem; }
.foot .brand img { filter: brightness(0) invert(1); }
.foot p { margin-top: 1rem; color: #ccd9d1; max-width: 17rem; font-size: .9rem; }
.foot nav { display: grid; align-content: start; gap: .45rem; }
.foot h2 { font: 700 .8rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--mint); margin-bottom: .35rem; }
.foot nav a { font-size: .9rem; width: fit-content; text-underline-offset: .2em; }

.catalog-hero { padding-block: clamp(2.5rem, 6vw, 5rem); background: var(--dark); color: var(--paper); }
.catalog-hero h1 { font-size: clamp(3.8rem, 10vw, 7.7rem); }
.catalog-hero p:not(.label) { margin: 1rem 0 1.35rem; max-width: 33rem; color: #dae7de; }
.catalog-controls { margin-top: 1.4rem; max-width: 35rem; }
.catalog-controls label { display: block; font-weight: 700; margin-bottom: .4rem; }
.catalog-controls input { width: 100%; min-height: 3rem; padding: .7rem .9rem; border: 1px solid #7c9385; border-radius: .35rem; background: white; color: var(--ink); font: inherit; }
#result-count { margin: 1rem 0; color: var(--muted); }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; list-style: none; padding: 0; margin: 0; }
.guide-grid a { height: 100%; display: flex; flex-direction: column; align-items: start; justify-content: space-between; gap: .75rem; padding: 1rem; border: 1px solid var(--line); border-radius: .35rem; background: #fffdf8; text-decoration: none; }
.guide-grid a:hover { border-color: #54776a; background: #f0f5e8; }
.guide-link { font-size: .8rem; font-weight: 720; text-decoration: underline; text-underline-offset: .25em; }

@media (max-width: 800px) {
  .wrap { width: calc(100% - 2.5rem); }
  .hero-inner { min-height: 26rem; }
  .nav-cta { display: none; }
  .course-grid { gap: .65rem; }
  .course-copy { padding: .8rem; }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 2rem); }
  .nav { flex-wrap: wrap; min-height: 0; gap: .4rem 1.2rem; padding-block: .8rem; }
  .nav nav { gap: 1rem; font-size: .81rem; flex-wrap: wrap; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { padding-block: 2.8rem 0; }
  .hero-art { width: min(100%, 21rem); margin: -.5rem auto .5rem; }
  .section-head { align-items: start; flex-direction: column; }
  .course-grid, .resources, .universe, .guide-grid { grid-template-columns: 1fr; }
  .course-image { height: 10rem; }
  .course-image img { width: auto; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.subjects { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.25rem; }
.subjects a { border: 1px solid #a7b6ab; border-radius: 2rem; padding: .45rem .8rem; font-size: .82rem; font-weight: 680; text-decoration: none; }
.subjects a:hover { background: #e3ecd9; }
