:root {
  --bg-main: #f5f1e8;
  --bg-panel: #fdfbf7;
  --text-strong: #1c2533;
  --text-body: #2f3a4a;
  --text-soft: #596579;
  --border: #ded5c6;
  --accent: #0f766e;
  --accent-dark: #0d5d57;
  --chip: #ece4d8;
  --shadow: 0 18px 46px rgba(28, 37, 51, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text-body);
  background: var(--bg-main);
  line-height: 1.55;
}

.background-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 10% 12%, rgba(15, 118, 110, 0.14), transparent 30%),
    radial-gradient(circle at 86% 16%, rgba(217, 119, 6, 0.15), transparent 34%),
    linear-gradient(to right, rgba(28, 37, 51, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(28, 37, 51, 0.04) 1px, transparent 1px),
    var(--bg-main);
  background-size: auto, auto, 28px 28px, 28px 28px, auto;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.hero {
  padding: 52px 0 28px;
}

.hero-kicker {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.82rem;
}

h1 {
  margin: 14px 0 14px;
  max-width: 900px;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text-strong);
  letter-spacing: -0.03em;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.04;
}

.hero-lead {
  margin: 0;
  max-width: 760px;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.hero-stats {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-stats article {
  background: linear-gradient(130deg, #fffdf9, #f6efe4);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  animation: rise 0.55s ease both;
}

.hero-stats article:nth-child(2) {
  animation-delay: 0.08s;
}

.hero-stats article:nth-child(3) {
  animation-delay: 0.16s;
}

.stat-value {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: var(--text-strong);
  font-size: 1.7rem;
}

.stat-label {
  margin: 2px 0 0;
  color: var(--text-soft);
}

.page-content {
  padding-bottom: 28px;
}

.semester-nav {
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: sticky;
  top: 10px;
  z-index: 30;
  padding: 10px;
  background: rgba(245, 241, 232, 0.86);
  border: 1px solid var(--border);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

.semester-nav a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: var(--text-strong);
  background: var(--chip);
  border: 1px solid #d4c7b4;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.semester-nav a:hover {
  transform: translateY(-2px);
  background: #ffe4be;
}

.status-panel,
.semester {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  animation: rise 0.55s ease both;
}

.status-panel {
  margin-bottom: 16px;
}

.status-panel h2 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  color: var(--text-strong);
}

.status-panel p {
  margin: 0;
  color: var(--text-soft);
}

.semester {
  margin-bottom: 16px;
}

.semester h2 {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--text-strong);
  font-family: "Space Grotesk", sans-serif;
}

.semester h2 span {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  background: #ffe4be;
  border: 1px solid #f0b56a;
  font-size: 0.98rem;
}

.subject-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.subject-grid li {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
  align-items: center;
  border: 1px solid #e3dccc;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.subject-grid li:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(28, 37, 51, 0.1);
  border-color: #d2c5ad;
}

.subject-grid li span {
  color: var(--text-strong);
  font-weight: 600;
}

.subject-grid a {
  text-decoration: none;
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 999px;
  padding: 8px 12px;
  transition: filter 0.2s ease;
}

.subject-grid a:hover {
  filter: brightness(1.08);
}

.footer {
  padding: 0 0 30px;
}

.footer p {
  margin: 0;
  color: var(--text-soft);
  text-align: center;
}

code {
  font-family: "Space Grotesk", monospace;
  background: #f2eadf;
  border: 1px solid #e3d6c2;
  border-radius: 6px;
  padding: 1px 6px;
}

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

@media (max-width: 840px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .semester-nav {
    top: 6px;
    gap: 8px;
  }

  .semester-nav a {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 680px) {
  .subject-grid li {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .subject-grid a {
    justify-self: start;
  }
}
