:root {
  color-scheme: light;
  --paper: #f7f8f4;
  --white: #fff;
  --green: #163f36;
  --dark: #122b24;
  --muted: #53655d;
  --border: #dce4db;
  --wash: #edf3e9;
  --yellow: #f6d578;
  font: 100%/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--dark);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; overflow-wrap: anywhere; }
a { color: inherit; }
button, select, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #926300; outline-offset: 3px; }
.wrap { width: min(1200px, calc(100% - 72px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 10; transform: translateY(-200%); padding: .7rem 1rem; border-radius: .5rem; background: var(--white); }
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--border); background: var(--white); }
.header-content { display: flex; min-height: 74px; justify-content: space-between; align-items: center; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; gap: .7rem; text-decoration: none; }
.brand-mark { display: grid; place-content: center; grid-auto-flow: column; width: 42px; height: 42px; border-radius: 12px; background: var(--green); color: #fff; font: bold 1.55rem/1 Georgia, serif; }
.brand-mark span { color: var(--yellow); }
.brand strong, .brand small { display: block; line-height: 1.25; }
.brand strong { font-size: 1.08rem; letter-spacing: -.025em; }
.brand small { color: var(--muted); font-size: .8rem; margin-top: 3px; }
.site-header nav { display: flex; gap: .35rem; align-items: center; }
.site-header nav a { font-size: .9rem; font-weight: 650; text-decoration: none; color: var(--muted); padding: .55rem .8rem; border-radius: .55rem; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--green); background: var(--wash); }
.hero { display: grid; grid-template-columns: 1.12fr 1fr; min-height: 352px; margin-top: 30px; border-radius: 24px; background: var(--green); color: var(--white); overflow: hidden; }
.hero-copy { padding: clamp(2rem, 4.7vw, 4rem); align-self: center; }
.eyebrow { margin: 0 0 .85rem; color: var(--yellow); font-size: .85rem; font-weight: 700; letter-spacing: .09em; }
.hero h1 { margin: 0; font-size: clamp(2.5rem, 4.6vw, 4.1rem); line-height: 1.03; letter-spacing: -.045em; }
.hero h1 em { color: var(--yellow); font-family: Georgia, serif; font-weight: 500; letter-spacing: -.045em; }
.hero-copy > p:not(.eyebrow) { color: #e0ece5; margin: 1.1rem 0 1.35rem; max-width: 32ch; }
.hero-action { display: inline-flex; min-height: 46px; align-items: center; padding: .65rem 1.05rem; border-radius: .55rem; background: var(--yellow); color: var(--dark); font-weight: 750; text-decoration: none; }
.hero-action:hover { background: #ffe295; }
.hero-action:focus-visible { outline-color: #fff; }
.hero img { width: 100%; height: 100%; max-height: 440px; min-height: 0; object-fit: cover; object-position: center; }
.library { padding-block: 2.6rem 3.5rem; scroll-margin: .85rem; }
.library-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.library h2 { margin: 0; font-size: clamp(1.85rem, 3vw, 2.5rem); line-height: 1.15; letter-spacing: -.048em; }
.filters { display: flex; gap: .65rem; min-width: 0; }
.search-field { position: relative; min-width: 0; }
.search-field span { position: absolute; left: .92rem; top: 1.03rem; width: .78rem; height: .78rem; border: 1.6px solid var(--muted); border-radius: 50%; pointer-events: none; }
.search-field span::after { content: ""; position: absolute; width: .38rem; height: 1.6px; right: -.27rem; bottom: -.15rem; background: var(--muted); transform: rotate(45deg); }
.filters input, .filters select { min-height: 46px; border-radius: .65rem; border: 1px solid #cdd9cf; color: var(--dark); background-color: var(--white); }
.filters input { width: min(27vw, 290px); padding: .6rem .8rem .6rem 2.4rem; }
.filters input::placeholder { color: var(--muted); }
.filters select { appearance: none; padding: .6rem 2.05rem .6rem .8rem; max-width: 15rem; background-image: linear-gradient(45deg, transparent 50%, var(--green) 50%), linear-gradient(135deg, var(--green) 50%, transparent 50%); background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.skills { display: flex; flex-wrap: wrap; gap: .5rem; border-bottom: 1px solid var(--border); padding-bottom: 1.3rem; }
.chip { border: 1px solid #cedad0; background: var(--white); border-radius: 99px; color: var(--green); padding: .47rem .87rem; min-height: 41px; font-size: .9rem; font-weight: 650; }
.chip:hover { background: var(--wash); }
.chip[aria-pressed="true"] { border-color: var(--green); background: var(--green); color: #fff; }
.unit { margin-top: 1.45rem; }
.unit-heading { display: flex; align-items: baseline; gap: .75rem 1.2rem; justify-content: space-between; margin-bottom: .85rem; }
.unit-heading h3 { margin: 0; font-size: 1.3rem; line-height: 1.35; letter-spacing: -.026em; }
.unit-heading p { margin: 0; color: var(--muted); font-size: .875rem; flex-shrink: 0; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.card { display: flex; flex-direction: column; padding: 1rem 1.1rem; gap: .65rem; min-height: 155px; text-decoration: none; background: var(--white); border: 1px solid var(--border); border-radius: .9rem; transition: border-color .16s, box-shadow .16s; }
.card:hover { border-color: #6c917a; box-shadow: 0 3px 16px #21443312; }
.card-top { display: flex; align-items: center; gap: .55rem; }
.card-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: .55rem; background: var(--wash); font-size: 1rem; flex: 0 0 auto; }
.card.test .card-icon { background: #f8edca; }
.card.listen .card-icon, .card.speak .card-icon { background: #e4edf5; }
.card-kind { color: var(--muted); font-size: .85rem; font-weight: 650; }
.card strong { font-size: 1rem; line-height: 1.3; }
.card-description { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.empty { color: var(--muted); text-align: center; background: var(--white); border: 1px solid var(--border); border-radius: .9rem; padding: 2rem 1rem; margin: 1.4rem 0 0; }
.teacher-tools { margin-top: 1rem; padding: .75rem 1rem; border-radius: .65rem; border: 1px solid var(--border); background: var(--wash); color: var(--green); }
.teacher-tools button { font-weight: 700; }
.site-footer { border-top: 1px solid var(--border); padding: 1.2rem 0; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; align-items: baseline; }
.site-footer strong { font-size: .9rem; color: var(--green); }
.site-footer .school:not(:empty)::before { content: " · "; }
@media (max-width: 920px) {
  .wrap { width: min(100% - 42px, 1200px); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 32px); }
  .header-content { align-items: flex-start; flex-direction: column; gap: .55rem; min-height: auto; padding-block: .75rem .5rem; }
  .site-header nav { flex-wrap: wrap; gap: .2rem; }
  .site-header nav a { padding: .45rem .55rem; }
  .hero { grid-template-columns: 1fr; margin-top: 16px; min-height: 0; border-radius: 18px; }
  .hero-copy { padding: 1.55rem; }
  .hero img { height: clamp(142px, 41vw, 220px); object-position: center 53%; }
  .library { padding-block: 1.8rem 2.6rem; }
  .library-heading { align-items: flex-start; flex-direction: column; }
  .filters { width: 100%; }
  .search-field { flex: 1; }
  .filters input { width: 100%; }
  .filters select { max-width: 43%; }
  .unit-heading h3 { font-size: 1.1rem; }
  .grid { grid-template-columns: 1fr; gap: .6rem; }
  .card { min-height: 0; }
}
