:root {
  --color-bg: #0a0e1a;
  --color-surface: #111827;
  --color-border: #1e2d4a;
  --color-gold: #f5c842;
  --color-gold-dim: #c9a22e;
  --color-text: #e8eaf0;
  --color-muted: #8a94ae;
  --font-display: "Playfair Display", serif;
  --font-body: "Lato", sans-serif;
  --radius: 12px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
}

.stars-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: twinkle var(--dur) var(--delay) infinite alternate ease-in-out;
}

@keyframes twinkle {
  from {
    opacity: var(--min-op);
    transform: scale(1);
  }
  to {
    opacity: 1;
    transform: scale(1.4);
  }
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--color-border);
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(10px);
}

.site-header .logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.site-header .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--color-gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.site-header .logo-text {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.2;
}

.site-header .logo-text span {
  display: block;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.7rem;
  color: var(--color-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--transition);
}

nav a:hover {
  color: var(--color-gold);
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 56vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-img-wrapper {
  position: absolute;
  inset: 0;
}

.hero-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.42) saturate(0.7);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 20%,
    rgba(10, 14, 26, 0.55) 60%,
    var(--color-bg) 100%
  );
}

.hero-content {
  position: relative;
  padding: 2.5rem 2rem 3rem;
  max-width: 820px;
}

.badge {
  display: inline-block;
  background: rgba(245, 200, 66, 0.15);
  border: 1px solid var(--color-gold-dim);
  color: var(--color-gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  animation: fadeUp 0.7s 0.1s both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.1;
  color: #fff;
  animation: fadeUp 0.7s 0.25s both;
}

.hero-title em {
  font-style: normal;
  color: var(--color-gold);
}

.hero-school {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  animation: fadeUp 0.7s 0.4s both;
}

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

main {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-top: -1.5rem;
  animation: fadeUp 0.7s 0.55s both;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

.description-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.6rem;
}

.description-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-text);
  max-width: 680px;
}

.divider {
  height: 1px;
  background: var(--color-border);
  margin: 2rem 0;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.meta-item dt {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.meta-item dd {
  font-size: 0.95rem;
  color: var(--color-text);
  font-weight: 400;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding: 0.75rem 1.6rem;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-muted);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition),
    background var(--transition);
}

.btn-back:hover {
  border-color: var(--color-gold-dim);
  color: var(--color-gold);
  background: rgba(245, 200, 66, 0.05);
}

.btn-back svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 600px) {
  .site-header {
    padding: 1rem;
  }
  .hero-content {
    padding: 1.5rem 1rem 2rem;
  }
  .card {
    padding: 1.5rem 1.25rem;
  }
  .meta-grid {
    grid-template-columns: 1fr;
  }
}
