:root {
  color-scheme: dark;
  --bg: #0b0b07;
  --bg-soft: #14120b;
  --bg-panel: #1b1911;
  --accent: #c3a76d;
  --accent-soft: #e5cf9a;
  --text: #f4f0e6;
  --text-muted: #c2b8a2;
  --border: rgba(195, 167, 109, 0.28);
  --shadow: rgba(5, 5, 3, 0.75);
  --rune-glow: rgba(201, 175, 116, 0.25);
  --ember: #d08e4b;
}

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

body {
  min-height: 100vh;
  font-family: "Manrope", system-ui, sans-serif;
  background-color: var(--bg);
  background-image: linear-gradient(180deg, rgba(6, 6, 4, 0.85), rgba(10, 9, 7, 0.65)), url("../images/library.png");
  background-size: contain;
  background-position: center top;
  background-attachment: fixed;
  color: var(--text);
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__links {
  display: flex;
  gap: 24px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.nav__links a:hover {
  color: var(--text);
}

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

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: "Cinzel", serif;
  font-size: 1.3rem;
  background: linear-gradient(135deg, #3c2f1a, #c3a76d);
  box-shadow: 0 12px 24px rgba(25, 18, 9, 0.6);
  border: 1px solid rgba(255, 227, 173, 0.25);
}

.brand__name {
  font-family: "Cinzel", serif;
  font-size: 1.15rem;
  font-weight: 600;
}

.brand__tag {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero {
  margin-top: 24px;
  padding: 32px;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(22, 18, 10, 0.92), rgba(8, 7, 4, 0.92));
  box-shadow: 0 40px 80px rgba(6, 5, 3, 0.7);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      120deg,
      rgba(195, 167, 109, 0.1),
      rgba(10, 9, 7, 0.35)
    ),
    repeating-linear-gradient(
      135deg,
      rgba(195, 167, 109, 0.08) 0,
      rgba(195, 167, 109, 0.08) 1px,
      transparent 1px,
      transparent 8px
    );
  opacity: 0.55;
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.hero__text h1 {
  font-family: "Cinzel", serif;
  font-size: clamp(2.2rem, 3vw, 3.4rem);
  margin-bottom: 20px;
}

.eyebrow {
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  margin-bottom: 16px;
}

.lede {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.button {
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button--primary {
  background: linear-gradient(135deg, #b79054, #f1d69b);
  color: #241a07;
  border: none;
  box-shadow: 0 10px 30px rgba(176, 133, 70, 0.35);
}

.button--ghost {
  background: rgba(13, 11, 7, 0.65);
  color: var(--text);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(5, 10, 20, 0.45);
}

.hero__stats {
  display: flex;
  gap: 32px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.stat__value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  display: block;
}

.hero__visual {
  position: relative;
  min-height: 320px;
}

.orb {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f7d9a3, #5c4825 60%, transparent 70%);
  top: 0;
  right: 20px;
  filter: blur(0.2px);
  box-shadow: 0 0 40px rgba(208, 142, 75, 0.35);
}

.mountains {
  position: absolute;
  inset: auto 0 20px 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(16, 12, 6, 0), rgba(16, 12, 6, 0.9));
  clip-path: polygon(0 70%, 15% 45%, 35% 68%, 55% 35%, 72% 62%, 90% 40%, 100% 55%, 100% 100%, 0 100%);
}

.maze {
  position: absolute;
  inset: 40px 40px 40px 40px;
  border-radius: 28px;
  border: 1px solid rgba(229, 207, 154, 0.2);
  box-shadow: inset 0 0 40px rgba(12, 10, 6, 0.9);
  background-image: linear-gradient(90deg, rgba(229, 207, 154, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(229, 207, 154, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.45;
}

.section {
  padding: 72px 8px 0;
}

.section__header {
  margin-bottom: 32px;
}

.section__header h2,
.section h2 {
  font-family: "Cinzel", serif;
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
  margin-bottom: 12px;
}

.section__header p {
  max-width: 640px;
  color: var(--text-muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  padding: 24px;
  background: rgba(12, 10, 6, 0.85);
  border-radius: 20px;
  border: 1px solid var(--border);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 16px 30px rgba(5, 9, 20, 0.4);
}

.card--featured {
  background: linear-gradient(160deg, rgba(32, 26, 14, 0.95), rgba(12, 10, 6, 0.95));
  border: 1px solid rgba(195, 167, 109, 0.45);
}

.card__subtitle {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--accent-soft);
}

.card p {
  color: var(--text-muted);
  line-height: 1.5;
}

.card__link {
  margin-top: auto;
  font-weight: 600;
  color: var(--accent-soft);
}

.section--split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: center;
}

.panel {
  background: rgba(12, 10, 6, 0.9);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--border);
}

.panel ul {
  list-style: none;
  display: grid;
  gap: 12px;
  color: var(--text-muted);
}

.panel li::before {
  content: "✦";
  margin-right: 10px;
  color: var(--accent-soft);
}

.section--callout {
  margin-top: 64px;
  padding: 48px;
  border-radius: 28px;
  background: linear-gradient(140deg, rgba(26, 20, 10, 0.95), rgba(10, 8, 5, 0.95));
  border: 1px solid rgba(195, 167, 109, 0.25);
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.callout__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer {
  text-align: center;
  margin-top: 72px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 24px;
  }

  .hero__stats {
    flex-direction: column;
    gap: 12px;
  }

  .section--callout {
    padding: 32px;
  }
}
