@font-face {
  font-family: "Space Grotesk";
  src: url("/university/assets/fonts/space-grotesk-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/university/assets/fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "University Mono";
  src: url("/university/assets/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f7f8f3;
  --ink: #172c23;
  --muted: #526259;
  --line: #d8ded6;
  --forest: #1b3528;
  --lime: #dff0a6;
  --display: "Space Grotesk", system-ui, sans-serif;
  --shell: min(74rem, calc(100% - clamp(2rem, 8vw, 8rem)));
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); font: 1rem/1.5 system-ui, sans-serif; }
a { color: var(--forest); text-underline-offset: .2em; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #438d63; outline-offset: 3px; }
.mast { border-bottom: 1px solid var(--line); }
.mast-inner { width: var(--shell); min-height: 4.75rem; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand, .catalog { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.brand { gap: .38rem; font: 500 1.12rem/1.2 var(--display); letter-spacing: -.055em; }
.brand img { margin-left: -.25rem; }
.brand strong { font-size: 1.22rem; }
.brand span { margin-left: .42rem; padding-left: .78rem; border-left: 1px solid #bbc6b9; }
.catalog { gap: .6rem; font: 500 .94rem/1.4 var(--display); }
.catalog:hover, .brand:hover strong { text-decoration: underline; }
.catalog-icon { width: .95rem; height: .95rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.catalog-icon::before, .catalog-icon::after { content: ""; border: 1.4px solid currentColor; border-radius: 1px; background: linear-gradient(to bottom,transparent 43%,currentColor 43% 55%,transparent 55%); }
.spread {
  width: var(--shell); margin: clamp(1.75rem, 4.4vh, 3.5rem) auto; padding: .65rem;
  display: grid; grid-template-columns: 1.04fr 1fr; grid-template-areas: "cover form";
  background: #fff; border: 1px solid var(--line); border-radius: 1.15rem;
  box-shadow: 0 8px 32px -24px #172e2655;
}
.entry { grid-area: form; display: grid; grid-template-columns: minmax(0,1fr); align-items: center; justify-items: center; min-width: 0; padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4.5vw, 4.5rem); }
.form-column { min-width: 0; width: min(100%, 23.5rem); }
h1, h2, p { margin: 0; }
h1 { font: 700 clamp(2.3rem, 3.2vw, 3rem)/1.06 var(--display); letter-spacing: -.068em; text-wrap: balance; }
.intro { color: var(--muted); margin-top: .8rem; overflow-wrap: anywhere; }
.intro + .fields { margin-top: 1.8rem; }
#google-auth { margin-top: 1.75rem; min-height: 2.5rem; }
#google-status, noscript, #password-help { font-size: .875rem; color: var(--muted); }
.divider { display: flex; align-items: center; gap: .85rem; color: var(--muted); margin: 1.05rem 0; font-size: .875rem; }
.divider::after, .divider::before { content: ""; flex: 1; height: 1px; background: var(--line); }
.fields, .field { display: grid; }
.fields { gap: 1rem; }
.field { gap: .38rem; }
.field label { font-size: .94rem; font-weight: 600; }
.field input {
  width: 100%; height: 2.9rem; padding: 0 .85rem; border: 1px solid #afbbb1; border-radius: .45rem;
  background: #fff; color: var(--ink); font-size: 1rem;
}
.field input::placeholder { color: #6c7870; }
.field input:focus-visible { border-color: #386d4c; }
.password { position: relative; }
.password input { padding-right: 4.35rem; }
.password button { position: absolute; top: 50%; right: .32rem; transform: translateY(-50%); min-height: 2.25rem; padding: 0 .55rem; color: #3c5747; border: 0; border-radius: .25rem; background: transparent; font-weight: 600; font-size: .875rem; }
.password button:hover { background: #eff3eb; }
.submit { width: 100%; border: 0; border-radius: .45rem; background: #204832; color: #fff; min-height: 3rem; padding: .6rem 1rem; margin-top: .25rem; font: 700 1rem/1.4 var(--display); }
.submit:hover { background: #143a26; }
.switch { margin-top: 1.15rem; font-size: .94rem; text-align: center; color: var(--muted); }
.switch a { font-weight: 650; }
.help { border-top: 1px solid var(--line); margin-top: 1.6rem; padding-top: .9rem; color: var(--muted); font-size: .875rem; }
.help summary { width: fit-content; }
.help p { margin: .6rem 0 .1rem; }
.error { margin-top: 1rem; padding: .7rem .9rem; border-left: 3px solid #a54d35; border-radius: .2rem; background: #fcf0e8; color: #752f22; }
.course-carousel {
  grid-area: cover; display: grid; position: relative; min-width: 0; overflow: hidden;
  border-radius: .74rem; background: #192e22; color: #fbfcf4;
}
.course-window { display: grid; min-width: 0; overflow: hidden; touch-action: pan-y pinch-zoom; }
.course-track { display: flex; min-width: 0; transform: translateX(var(--offset)); transition: transform .52s cubic-bezier(.22,.75,.22,1); }
.cover {
  flex: 0 0 100%; min-width: 0; position: relative; isolation: isolate; overflow: hidden; min-height: 33.5rem;
  background: #213827; color: #fbfcf4; display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(1.6rem,3.6vw,3.25rem);
}
.cover-photo {
  position: absolute; z-index: -3; bottom: 0; right: 0; width: 100%; height: 75%; object-fit: cover; object-position: 65% 55%;
}
.cover::before {
  content: ""; position: absolute; z-index: -2; inset: 0;
  background: linear-gradient(180deg,#203627 15%,#203627f5 24%,#20362780 41%,transparent 55%,transparent 71%,#17291c 100%);
}
.cover::after {
  content: ""; pointer-events: none; position: absolute; z-index: -1; right: 0; top: 0; width: 52%; height: 30%;
  background-image: linear-gradient(90deg,#cfe5ae17 1px,transparent 1px),linear-gradient(#cfe5ae17 1px,transparent 1px);
  background-size: 1.55rem 1.55rem; mask-image: linear-gradient(220deg,#000,transparent 67%);
}
.course-label, .cover-caption small { font: 400 .78rem/1.5 "University Mono", monospace; letter-spacing: .065em; text-transform: uppercase; color: var(--lime); }
.course-label { display: flex; align-items: center; gap: .65rem; }
.course-label::before { content: ""; height: 2px; width: 1.6rem; background: currentColor; }
.cover h2 { max-width: 16ch; margin: 1.2rem 0 .8rem; font: 500 clamp(2.4rem,4.25vw,4.2rem)/1.01 var(--display); letter-spacing: -.068em; text-wrap: balance; }
.synopsis { max-width: 36ch; color: #e2eadd; font-size: 1rem; }
.cover-caption { display: flex; align-items: center; gap: .85rem; border-top: 1px solid #c0ccbb70; padding: 1rem 4.5rem 0 0; }
.book { width: 2.7rem; height: 2.7rem; display: grid; place-items: center; border: 1px solid #d6e6a572; border-radius: .55rem; color: var(--lime); background: #223a2de0; }
.book svg { width: 1.35rem; height: 1.35rem; }
.cover-caption p { margin-top: .12rem; font: 500 1.06rem/1.3 var(--display); }
.cover-schema { background: #102f28; }
.cover-schema::before { background: none; }
.schema-art {
  position: absolute; z-index: -2; right: 7%; bottom: 21%; width: 62%; aspect-ratio: 500 / 360; overflow: hidden;
  transform: rotate(-5deg); mix-blend-mode: lighten;
}
/* Frame the passage record on the existing Schema lesson cover. */
.schema-art .cover-photo { width: 256%; height: auto; left: -144%; top: -45%; right: auto; bottom: auto; }
.course-picker:not([hidden]) {
  position: absolute; right: clamp(1.1rem,3.2vw,2.9rem); bottom: clamp(1.6rem,3.6vw,3.25rem);
  display: flex; align-items: center;
}
.course-picker button {
  display: grid; place-items: center; width: 2rem; height: 2.7rem; padding: 0; border: 0;
  background: transparent; color: #fff; border-radius: .4rem;
}
.course-picker button::before {
  content: ""; width: .7rem; height: .7rem; border: 2px solid currentColor;
  border-radius: 50%; background: #1c3024; box-shadow: 0 0 0 1px #182c21aa;
}
.course-picker button[aria-pressed="true"]::before { color: var(--lime); background: currentColor; }
.course-picker button:hover::before { transform: scale(1.15); }
.course-picker button:focus-visible { outline-color: var(--lime); outline-offset: -3px; }
.slide-announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (prefers-reduced-motion: reduce) { .course-track { transition: none; } }
@media (max-width: 47rem) {
  .mast-inner { min-height: 4rem; }
  .spread { grid-template: "form" auto "cover" auto / minmax(0,1fr); gap: .4rem; max-width: 34rem; margin-block: 1.25rem; }
  .entry { padding: 1.8rem clamp(.7rem,4vw,2rem) 1.6rem; }
  .cover { min-height: 0; padding: 1.4rem; gap: 1rem; }
  .cover h2 { margin: .65rem 0 0; font-size: 1.95rem; max-width: 70%; }
  .cover-photo { width: 56%; height: 100%; object-position: 64% 50%; }
  .cover::before { background: linear-gradient(90deg,#203627 32%,#203627eb 48%,#20362733 100%); }
  .synopsis { display: none; }
  .cover-caption { max-width: calc(100% - 4rem); border: 0; padding: 0; gap: .65rem; }
  .cover-caption small { color: #e1eacc; }
  .book { width: 2rem; height: 2rem; }
  .cover-schema::before { background: linear-gradient(90deg,#102f28 32%,transparent 83%); }
  .schema-art { width: 44%; top: .9rem; bottom: auto; right: -1%; }
  .course-picker:not([hidden]) { right: .8rem; bottom: 1.1rem; }
}
@media (max-width: 25rem) {
  .brand { font-size: .94rem; }
  .brand strong { font-size: 1.06rem; }
  .brand img { width: 1.8rem; height: 1.8rem; }
  .brand span { margin-left: 0; padding-left: .45rem; }
  .catalog { gap: .3rem; font-size: .875rem; }
  .catalog-icon { display: none; }
}
