:root {
  --paper: #f5f2ea;
  --paper-deep: #ece6da;
  --card: #fffdf9;
  --ink: #0d1b2a;
  --ink-soft: #26364c;
  --muted: #687386;
  --line: #ded8cb;
  --line-strong: #c9c1b1;
  --blue: #2456e6;
  --blue-bright: #6f9bff;
  --blue-soft: #edf2ff;
  --navy: #0a1c33;
  --navy-light: #123159;
  --teal: #0e7c6b;
  --teal-soft: #e8f5f1;
  --gold: #a9781f;
  --gold-soft: #faf2df;
  --plum: #8a3d66;
  --plum-soft: #f8edf3;
  --red: #b4232c;
  --radius: 20px;
  --shadow: 0 18px 50px -34px rgba(13, 27, 42, 0.38);
  --maxw: 1240px;
  --pad: clamp(20px, 4vw, 40px);
  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", "WenQuanYi Zen Hei", system-ui, sans-serif;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --mono: "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(1100px 680px at 88% -8%, rgba(36, 86, 230, 0.10), transparent 62%),
    radial-gradient(800px 560px at -12% 18%, rgba(14, 124, 107, 0.07), transparent 58%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(13, 27, 42, 0.13) 0.55px, transparent 0.55px);
  background-size: 22px 22px;
  opacity: 0.38;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
}

::selection {
  background: var(--blue);
  color: #fff;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 150;
  height: 3px;
  background: transparent;
  pointer-events: none;
}

.progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), #4f8cff, var(--teal));
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(201, 193, 177, 0.62);
  background: rgba(245, 242, 234, 0.84);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}

.topbar-inner {
  width: min(var(--maxw), 100%);
  margin: 0 auto;
  padding: 13px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--navy);
  color: #cfe0ff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: -12px;
  right: -12px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.85;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-text strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-text small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
}

.topbar-side {
  display: flex;
  align-items: center;
  gap: 18px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.65);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 124, 107, 0.13);
}

.domain {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.03em;
}

main,
.footer {
  position: relative;
  z-index: 1;
}

.hero {
  width: min(var(--maxw), 100%);
  margin: 0 auto;
  padding: clamp(54px, 8vw, 94px) var(--pad) clamp(42px, 6vw, 68px);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(350px, 0.88fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
}

.hero-copy > * {
  animation: rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-copy > :nth-child(2) {
  animation-delay: 0.06s;
}

.hero-copy > :nth-child(3) {
  animation-delay: 0.12s;
}

.hero-copy > :nth-child(4) {
  animation-delay: 0.18s;
}

.hero-card {
  animation: rise 0.85s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  margin: 0 0 24px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.13em;
}

.eyebrow-tag {
  padding: 5px 9px;
  border-radius: 5px;
  background: var(--blue);
  color: #fff;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 6.5vw, 5.3rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.045em;
  color: var(--ink);
}

h1 span {
  display: block;
  margin-top: 5px;
  background: linear-gradient(100deg, #173b9e 0%, var(--blue) 46%, #3976ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 35em;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(14.5px, 1.4vw, 16px);
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 46px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 12px 26px -16px rgba(10, 28, 51, 0.8);
}

.btn-primary:hover {
  background: var(--navy-light);
  box-shadow: 0 16px 30px -16px rgba(10, 28, 51, 0.75);
}

.btn-primary span {
  color: var(--blue-bright);
  font-size: 15px;
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 253, 249, 0.5);
  color: var(--ink-soft);
}

.btn-ghost:hover {
  background: var(--card);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 27px 27px 22px;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 45%),
    var(--navy);
  color: #fff;
  box-shadow: 0 42px 74px -34px rgba(10, 28, 51, 0.62);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: inherit;
  pointer-events: none;
}

.hero-card-glow {
  position: absolute;
  top: -110px;
  right: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(57, 118, 255, 0.48), transparent 67%);
  pointer-events: none;
}

.card-head,
.card-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(207, 224, 255, 0.58);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
}

.card-head {
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.overview {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.overview li {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.overview li:last-child {
  border-bottom: 0;
}

.overview-num {
  color: var(--blue-bright);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1;
}

.overview-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.overview-copy b {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.overview-copy small {
  color: rgba(255, 255, 255, 0.46);
  font-size: 10.5px;
}

.chip {
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 9px;
  font-weight: 500;
  white-space: nowrap;
}

.chip-solid {
  border-color: rgba(111, 155, 255, 0.55);
  background: rgba(36, 86, 230, 0.26);
  color: #dbe7ff;
}

.chip-muted {
  color: rgba(255, 255, 255, 0.40);
}

.card-foot {
  margin-top: 6px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  letter-spacing: 0.04em;
}

.card-foot b {
  color: #fff;
  font-size: 11px;
}

.card-foot-mark {
  color: var(--blue-bright);
  font-size: 12px;
}

.layout {
  width: min(var(--maxw), 100%);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(64px, 9vw, 104px);
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}

.toc {
  position: sticky;
  top: 94px;
  padding-top: 7px;
}

.toc-title {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
}

.toc-link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 9px 0 9px 13px;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 12.5px;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, padding-left 0.18s ease;
}

.toc-link span {
  color: var(--line-strong);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.03em;
  transition: color 0.18s ease;
}

.toc-link:hover {
  color: var(--ink);
  border-left-color: var(--ink);
}

.toc-link.is-active {
  padding-left: 17px;
  border-left: 2px solid var(--blue);
  color: var(--blue);
  font-weight: 600;
}

.toc-link.is-active span {
  color: var(--blue);
}

.toc-foot {
  margin: 30px 0 0 13px;
  color: var(--line-strong);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.8;
  letter-spacing: 0.16em;
}

.content {
  min-width: 0;
}

.section-intro {
  margin: 0 0 28px;
}

.kicker {
  margin: 0 0 7px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-intro h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 2.65rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.section-intro > p:last-child {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

.section-intro-compact {
  margin-bottom: 22px;
}

.assignment {
  position: relative;
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  scroll-margin-top: 92px;
}

.assignment-head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 27px 32px 25px;
  border-bottom: 1px dashed var(--line);
  background:
    linear-gradient(115deg, rgba(36, 86, 230, 0.045), transparent 46%),
    var(--card);
}

.assignment-no {
  flex: 0 0 auto;
  color: #cdd9f4;
  font-family: var(--serif);
  font-size: 53px;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.06em;
  -webkit-user-select: none;
  user-select: none;
}

.assignment-title {
  min-width: 0;
}

.assignment-title .kicker {
  margin-bottom: 3px;
}

.assignment-title h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.8vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.badge {
  margin-left: auto;
  flex: 0 0 auto;
  padding: 5px 11px;
  border: 1px solid #ccd9f8;
  border-radius: 999px;
  background: var(--blue-soft);
  color: #1d46b8;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.badge-optional {
  border-color: #e5d8bd;
  background: var(--gold-soft);
  color: #7f5a15;
}

.assignment-body {
  padding: 28px 32px 31px;
}

.block-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.block-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.block-title em {
  order: 3;
  color: var(--blue);
  font-size: 9.5px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.req-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: req;
}

.req-list li {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.85;
  counter-increment: req;
}

.req-list li::before {
  content: counter(req, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 3px;
  border: 1px solid #d7e1f7;
  border-radius: 50%;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: -0.03em;
}

.req-list li:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.submit-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  margin-top: 22px;
  padding: 13px 15px 13px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f4ec;
}

.submit-label {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.submit-strip code {
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--navy);
  color: #e6efff;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.01em;
  word-break: break-all;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 15px;
}

.research-card {
  position: relative;
  padding: 20px 20px 19px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 13px;
  background: linear-gradient(150deg, #f6f8ff, #fffdf9 66%);
}

.research-card-teal {
  border-top-color: var(--teal);
  background: linear-gradient(150deg, #f1faf7, #fffdf9 66%);
}

.research-letter {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-bottom: 14px;
  border: 1px solid #cfdcfa;
  border-radius: 50%;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
}

.research-card-teal .research-letter {
  border-color: #c5e7df;
  color: var(--teal);
}

.research-card h4 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 1.4;
}

.research-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.deliverable-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-top: 15px;
}

.deliverable {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  min-height: 116px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background:
    linear-gradient(145deg, rgba(36, 86, 230, 0.035), transparent 55%),
    #faf8f2;
}

.deliverable-num {
  color: var(--line-strong);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.deliverable h4 {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}

.grades,
.reminders {
  scroll-margin-top: 92px;
}

.grades {
  margin-top: 54px;
}

.grade-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.grade-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 214px;
  padding: 19px 18px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent, var(--blue));
  border-radius: 15px;
  background: var(--card);
  box-shadow: 0 14px 34px -30px rgba(13, 27, 42, 0.5);
}

.grade-card::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -32px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--accent-soft, var(--blue-soft));
  opacity: 0.72;
  pointer-events: none;
}

.grade-blue {
  --accent: var(--blue);
  --accent-soft: var(--blue-soft);
}

.grade-teal {
  --accent: var(--teal);
  --accent-soft: var(--teal-soft);
}

.grade-gold {
  --accent: var(--gold);
  --accent-soft: var(--gold-soft);
}

.grade-plum {
  --accent: var(--plum);
  --accent-soft: var(--plum-soft);
}

.grade-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--line-strong);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.09em;
}

.grade-chip {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.grade-value {
  position: relative;
  z-index: 1;
  margin-top: 15px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 54px;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}

.grade-card h3 {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
}

.grade-card ul {
  position: relative;
  z-index: 1;
  margin: 11px 0 0;
  padding: 0;
  list-style: none;
}

.grade-card li {
  position: relative;
  padding-left: 9px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.75;
}

.grade-card li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

.reminders {
  position: relative;
  margin-top: 54px;
  padding: 38px 38px 36px;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(620px 380px at 96% 0%, rgba(36, 86, 230, 0.28), transparent 62%),
    linear-gradient(135deg, #0a1c33 0%, #102a4b 100%);
  color: #fff;
  box-shadow: 0 34px 66px -38px rgba(10, 28, 51, 0.7);
}

.reminders::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: inherit;
  pointer-events: none;
}

.reminders-art {
  position: absolute;
  top: -62px;
  right: 36px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 50%;
  pointer-events: none;
}

.reminders-art::before,
.reminders-art::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.reminders-art::before {
  inset: 30px;
}

.reminders-art::after {
  inset: 62px;
}

.section-intro-light {
  position: relative;
  z-index: 1;
  margin-bottom: 23px;
}

.section-intro-light .kicker {
  color: var(--blue-bright);
}

.section-intro-light h2 {
  color: #fff;
}

.section-intro-light > p:last-child {
  color: rgba(255, 255, 255, 0.48);
}

.reminder-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reminder-grid li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 14px 17px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.90);
  font-size: 14px;
  line-height: 1.65;
}

.alert-mark {
  display: grid;
  place-items: center;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(255, 199, 108, 0.55);
  border-radius: 50%;
  color: #ffc76c;
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 700;
}

.footer {
  border-top: 1px solid rgba(201, 193, 177, 0.62);
  background: rgba(236, 230, 218, 0.35);
}

.footer-inner {
  width: min(var(--maxw), 100%);
  margin: 0 auto;
  padding: 25px var(--pad) 27px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-mark-small {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  border-radius: 9px;
  font-size: 18px;
}

.footer-brand > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-brand strong {
  font-size: 12px;
  font-weight: 600;
}

.footer-brand small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.footer-note {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

.footer-note a {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  text-decoration: none;
}

.footer-note a:hover {
  color: var(--blue);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
    gap: 40px;
  }

  .layout {
    grid-template-columns: 172px minmax(0, 1fr);
    gap: 36px;
  }

  .grade-card {
    padding-left: 15px;
    padding-right: 15px;
  }

  .grade-value {
    font-size: 48px;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    padding-top: 48px;
  }

  .hero-card {
    width: min(560px, 100%);
  }

  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 38px;
    padding: 0 0 2px;
  }

  .toc-title,
  .toc-foot {
    display: none;
  }

  .toc-link {
    flex: 0 0 auto;
    padding: 7px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(255, 253, 249, 0.45);
    font-size: 11.5px;
    white-space: nowrap;
  }

  .toc-link span {
    font-size: 7.5px;
  }

  .toc-link.is-active {
    padding-left: 12px;
    border: 1px solid var(--navy);
    background: var(--navy);
    color: #fff;
  }

  .toc-link.is-active span {
    color: var(--blue-bright);
  }

  .grade-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grade-card {
    min-height: 196px;
  }

  .grade-value {
    font-size: 52px;
  }
}

@media (max-width: 680px) {
  .topbar-side .domain {
    display: none;
  }

  .hero {
    padding-bottom: 40px;
  }

  h1 {
    font-size: clamp(2.85rem, 13vw, 4.1rem);
  }

  .lede {
    margin-top: 20px;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .hero-card {
    padding: 22px 21px 18px;
  }

  .assignment-head {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px 16px;
    padding: 22px 21px 20px;
  }

  .assignment-no {
    font-size: 42px;
  }

  .assignment-title {
    flex: 1;
  }

  .badge {
    margin-left: 58px;
    order: 3;
  }

  .assignment-body {
    padding: 23px 21px 25px;
  }

  .req-list li {
    font-size: 13.5px;
    line-height: 1.8;
  }

  .research-grid,
  .deliverable-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .deliverable {
    min-height: 88px;
  }

  .submit-strip {
    gap: 9px;
  }

  .grades,
  .reminders {
    margin-top: 42px;
  }

  .reminders {
    padding: 27px 21px 23px;
  }

  .reminder-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .reminder-grid li {
    min-height: 56px;
    font-size: 13px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }
}

@media (max-width: 460px) {
  .topbar-inner {
    gap: 12px;
  }

  .brand-text small {
    display: none;
  }

  .spec,
  .status-pill {
    font-size: 10px;
  }

  .status-pill {
    padding: 5px 8px;
  }

  .eyebrow {
    gap: 8px;
    margin-bottom: 19px;
    font-size: 8px;
    letter-spacing: 0.08em;
  }

  .eyebrow-tag {
    font-size: 8px;
  }

  h1 {
    font-size: clamp(2.65rem, 14vw, 3.6rem);
  }

  .btn {
    min-height: 44px;
    padding: 0 16px;
    font-size: 12px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .overview li {
    grid-template-columns: 29px minmax(0, 1fr) auto;
    gap: 9px;
  }

  .overview-num {
    font-size: 18px;
  }

  .overview-copy b {
    font-size: 13px;
  }

  .assignment-head {
    padding: 20px 17px 18px;
  }

  .assignment-no {
    font-size: 37px;
  }

  .assignment-title h2 {
    font-size: 1.55rem;
  }

  .assignment-body {
    padding: 21px 17px 22px;
  }

  .badge {
    margin-left: 50px;
  }

  .req-list li {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 9px;
    font-size: 12.8px;
  }

  .req-list li::before {
    width: 22px;
    height: 22px;
    font-size: 7.5px;
  }

  .grade-grid {
    gap: 9px;
  }

  .grade-card {
    min-height: 176px;
    padding: 16px 14px 15px;
  }

  .grade-value {
    margin-top: 12px;
    font-size: 44px;
  }

  .grade-card h3 {
    font-size: 12.5px;
  }

  .reminders {
    padding: 24px 17px 19px;
  }

  .section-intro-light h2 {
    font-size: 1.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  @page {
    margin: 16mm;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  body::before,
  .progress,
  .topbar,
  .toc,
  .hero-actions,
  .hero-card,
  .footer {
    display: none !important;
  }

  .hero {
    display: block;
    padding: 0 0 18px;
  }

  h1 {
    font-size: 30pt;
  }

  h1 span {
    color: #000;
    -webkit-text-fill-color: #000;
  }

  .lede {
    margin-top: 8px;
    color: #333;
  }

  .layout {
    display: block;
    padding: 0;
  }

  .assignment,
  .grade-card,
  .reminders {
    break-inside: avoid;
    box-shadow: none;
  }

  .assignment {
    margin-bottom: 12px;
  }

  .reminders {
    margin-top: 18px;
    border: 1px solid #999;
    background: #fff;
    color: #000;
  }

  .reminders .kicker,
  .section-intro-light h2,
  .section-intro-light > p:last-child,
  .reminder-grid li {
    color: #000;
  }

  .reminder-grid li {
    border-color: #bbb;
    background: #fff;
  }

  .grade-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .grade-card {
    min-height: 0;
  }
}
