:root {
  color-scheme: light;
  --paper: #faf8f5;
  --ink: #302c43;
  --muted: #645e6b;
  --accent: #a6381c;
  --line: #ded8d2;
  --lavender: #eeebf4;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .24em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid #7254a2; outline-offset: 5px; }
p { line-height: 1.7; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.18; letter-spacing: -.045em; margin-bottom: 20px; }
h3 { font-size: 1.3rem; letter-spacing: -.025em; margin-bottom: 10px; }
section[id] { scroll-margin-top: 30px; }
.wrap { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 110; top: -100px; left: 20px; background: white; padding: 16px; }
.skip-link:focus { top: 10px; }
.site-header { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.site-header.nav-only { position: sticky; top: 0; z-index: 100; justify-content: center; min-height: 88px; margin-top: 0; background: #fff; border-block: 1px solid var(--line); box-shadow: 0 2px 8px rgb(48 44 67 / 4%); }
.site-header.nav-only ~ [id], .site-header.nav-only ~ * [id] { scroll-margin-top: 140px; }
.site-header.nav-only nav { justify-content: center; gap: 48px; }
.site-header.nav-only nav a { display: inline-flex; align-items: center; gap: 10px; font-size: 1.15rem; padding-block: 10px; }
.site-header.nav-only nav a { padding-inline: 14px; border-radius: 6px; }
.site-header.nav-only nav a:hover { background: var(--lavender); }
.nav-icon { width: 24px; height: 24px; flex-shrink: 0; color: var(--accent); }
.brand { display: inline-block; flex-shrink: 0; }
.brand img { display: block; width: 183px; }
.site-header nav, .site-footer nav { display: flex; align-items: center; gap: 32px; }
.site-header nav a { font-size: .9rem; color: var(--ink); text-decoration: none; font-weight: 600; }
.site-header nav a:hover { text-decoration: underline; }
.subscription-update { margin-top: 20px; }
.subscription-update .alert-info { color: #0c5460; background: #d1ecf1; border: 1px solid #bee5eb; border-radius: .25rem; }
.subscription-update summary { padding: 1rem 1.25rem; cursor: pointer; color: inherit; font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 700; line-height: 1.5; text-align: center; list-style-position: inside; }
.zgg-notice-icon { display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; margin-right: .45em; border: 2px solid currentColor; border-radius: 50%; font-family: Georgia, serif; font-size: .9em; font-weight: 700; font-style: normal; line-height: 1; vertical-align: -.05em; }
.subscription-update summary::marker { color: #0c5460; }
.subscription-update details[open] summary { border-bottom: 1px solid #bee5eb; }
.notice-copy { padding: 20px; }
.notice-copy p { font-size: .94rem; color: inherit; }
.notice-copy p:last-child { margin-bottom: 0; }
.notice-copy a { color: #062c33; font-weight: 700; }
.notice-copy hr { border: 0; border-top: 1px solid #abdde5; margin: 24px 0; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px; padding-block: 42px 56px; }
.eyebrow { text-transform: uppercase; letter-spacing: .13em; font-size: .71rem; font-weight: 750; color: var(--accent); margin-bottom: 22px; }
h1 { font-size: clamp(3rem, 5.2vw, 4.5rem); line-height: 1.06; letter-spacing: -.055em; margin-bottom: 24px; }
h1 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: var(--accent); letter-spacing: -.055em; }
.lede { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.5; font-weight: 500; margin-bottom: 24px; }
.hero-description { color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.75; margin-bottom: 0; }
.hero h1 { font-size: clamp(2.5rem, 4.1vw, 3.5rem); }
.hero .hero-brand { margin-bottom: 32px; }
.hero-brand img { display: block; width: min(420px, 100%); height: auto; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 48px; padding: 13px 20px; border-radius: 6px; font-size: .9rem; font-weight: 650; text-decoration: none; border: 1px solid transparent; }
.primary { background: var(--accent); color: #fff; }
.primary:hover { background: #842b15; }
.hero-art, .hero-art img { transform: none; rotate: 0deg; }
.hero-art img { display: block; width: 100%; height: auto; }
.signin-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-bottom: 64px; }
.signin-card { display: grid; grid-template-columns: 1fr; align-items: center; gap: 24px; padding: 28px; border: 1px solid var(--line); border-radius: 12px; }
.teacher-signin { background: var(--lavender); }
.student-signin { background: #f0e9e2; }
.signin-card img { display: block; width: 144px; height: auto; max-height: 152px; object-fit: contain; margin-inline: auto; }
.signin-card .button { display: flex; width: 100%; min-height: 64px; gap: 16px; padding: 18px 20px; font-size: 1.15rem; }
.page-intro { padding-block: 60px 32px; }
.page-intro h1 { font-size: clamp(2.5rem, 5vw, 3.6rem); }
.page-intro p:not(.eyebrow) { color: var(--muted); }
.page-intro:has(.library-intro) h1 { margin-bottom: 32px; }
.library-intro { display: grid; gap: 24px; padding-bottom: 12px; }
.library-intro p { margin: 0; font-size: clamp(1.1rem, 1.5vw, 1.2rem); line-height: 1.85; }
.library-intro p:first-child { font-size: clamp(1.2rem, 1.8vw, 1.4rem); line-height: 1.75; color: var(--ink); }
.library-intro strong { font-weight: 650; }
.library-download { padding: 28px; margin-bottom: 38px; border: 1px solid var(--line); border-radius: 8px; background: var(--lavender); }
.library-download p { color: var(--muted); }
.library-download p:last-child { margin: 16px 0 0; font-size: .9rem; }
.library-instructions { margin-bottom: 38px; }
.library-instructions ol { padding-left: 24px; }
.library-instructions li { padding-left: 10px; margin-bottom: 14px; line-height: 1.7; color: var(--muted); }
.library-instructions h3 { font-size: 1.1rem; }
.library-instructions p { color: var(--muted); }
.library-status { margin-bottom: 64px; padding: 20px 24px; color: #0c5460; background: #d1ecf1; border: 1px solid #bee5eb; border-radius: .25rem; }
.library-status h2 { font-size: 1.3rem; letter-spacing: -.025em; }
.library-status p { color: inherit; margin-bottom: 0; }
.error-main { padding-block: 100px; min-height: 65vh; }
@media (max-width: 950px) {
  .wrap { width: calc(100% - 48px); }
  .hero { gap: 28px; padding-block: 36px 48px; }
  .signin-options { gap: 18px; }
  .signin-card { grid-template-columns: 1fr; padding: 24px; gap: 18px; }
  .signin-card img { width: 128px; max-height: 136px; margin-inline: auto; }
  .signin-card .button { font-size: 1rem; min-height: 58px; gap: 12px; padding-inline: 14px; }
  .site-header nav { gap: 20px; }
}
@media (max-width: 700px) {
  .site-header { flex-wrap: wrap; min-height: auto; padding-block: 22px; gap: 20px; }
  .brand img { width: 150px; }
  .site-header nav { display: flex; flex-wrap: wrap; gap: 24px; }
  .site-header nav a { font-size: .83rem; }
  .site-header.nav-only nav { width: 100%; justify-content: center; gap: 20px 28px; }
  .site-header.nav-only nav a { font-size: 1rem; }
  .site-header.nav-only { padding-block: 14px; }
  .site-header.nav-only nav.wrap { width: calc(100% - 32px); gap: 8px 16px; }
  .site-header.nav-only nav a { padding-inline: 8px; }
  .subscription-update summary { font-size: 1rem; line-height: 1.6; }
  .hero { grid-template-columns: 1fr; padding-block: 24px 40px; gap: 24px; }
  h1 { font-size: clamp(2.8rem, 10vw, 4rem); }
  .hero h1 { font-size: clamp(2.35rem, 8vw, 3.5rem); }
  .hero-art { max-width: 420px; margin-inline: auto; }
  .hero-description { max-width: none; margin-bottom: 0; }
  .signin-options { grid-template-columns: 1fr; padding-bottom: 40px; }
  .signin-card { grid-template-columns: 1fr; gap: 18px; }
  .signin-card img { width: 112px; max-height: 120px; }
  .page-intro { padding-top: 40px; }
}
@media (max-width: 380px) {
  .wrap { width: calc(100% - 32px); }
  .signin-card { grid-template-columns: 1fr; padding: 20px; gap: 16px; }
  .signin-card img { width: 112px; max-height: 120px; }
}
@media print {
  .site-header.nav-only { display: none; }
  .site-header nav { display: none; }
  .wrap { width: 100%; }
  .hero { display: block; }
  .hero-art img { max-width: 300px; }
  .signin-card { break-inside: avoid; }
  .button { background: white; color: black; border-color: #999; }
}
