:root {
  color-scheme: dark;
  --bg: #0d1016;
  --surface: #151b25;
  --surface-soft: #1b2230;
  --text: #ecf0f8;
  --muted: #b7bfd3;
  --accent: #8f9fff;
  --accent-soft: rgba(143, 159, 255, 0.2);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #182033 0%, var(--bg) 55%);
  color: var(--text);
  line-height: 1.7;
}

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

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(13, 16, 22, 0.65);
  border-bottom: 1px solid var(--border);
  z-index: 30;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.menu-list {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}

.menu-list a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.menu-list a:hover,
.menu-list a:focus-visible {
  color: var(--text);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
}

.hero {
  position: relative;
  min-height: 66vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(143, 159, 255, 0.12), rgba(19, 23, 33, 0.8));
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 4rem 0;
}

.eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  margin-bottom: 0.4rem;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 4.7rem);
  margin-bottom: 0.8rem;
}

.subtitle {
  margin: 0 auto 1.6rem;
  color: var(--muted);
  max-width: 62ch;
}

.hero-link {
  display: inline-block;
  color: var(--text);
  text-decoration: none;
  background: var(--accent-soft);
  border: 1px solid rgba(143, 159, 255, 0.35);
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
}

.articles {
  padding: 2rem 0 4rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  margin-bottom: 0.4rem;
}

.section-head p {
  color: var(--muted);
  margin-top: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.story-card {
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.tag {
  display: inline-block;
  color: var(--accent);
  font-size: 0.82rem;
  margin-bottom: 0.6rem;
}

.story-card p {
  color: var(--muted);
}

.story-card a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.3rem 0 2rem;
  color: var(--muted);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 920px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .menu-list {
    position: absolute;
    right: 4vw;
    top: 4.1rem;
    width: min(15rem, 86vw);
    flex-direction: column;
    padding: 0.8rem;
    border-radius: 0.85rem;
    border: 1px solid var(--border);
    background: rgba(21, 27, 37, 0.98);
    transform-origin: top right;
    transform: scale(0.98);
    opacity: 0;
    visibility: hidden;
    transition: 0.18s ease;
  }

  .menu-list.open {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 60vh;
  }
}
