:root {
  --bg: #f8fafc;
  --bg-soft: #fdfdfd;
  --text: #102334;
  --muted: #4b6477;
  --primary: #2268ff;
  --primary-soft: #e8efff;
  --card: rgba(255, 255, 255, 0.75);
  --border: rgba(16, 35, 52, 0.12);
  --shadow: 0 20px 40px rgba(34, 104, 255, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fbfdff 0%, #f7faff 45%, #f8fafc 100%);
  line-height: 1.65;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 15% 8%, rgba(64, 142, 255, 0.22), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(146, 205, 255, 0.25), transparent 30%);
  z-index: -1;
}

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

.site-header {
  padding-top: 1rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0.8rem;
  z-index: 10;
}

.brand {
  font-weight: 700;
  color: var(--text);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
}

.hero {
  padding: 5rem 0 3rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-size: 0.75rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  max-width: 18ch;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 0.7rem;
  border: 1px solid transparent;
  font-weight: 600;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-secondary {
  background: var(--primary-soft);
  color: var(--text);
}

.section {
  padding: 2.2rem 0;
}

.section-head {
  margin-bottom: 1rem;
}

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

.card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
  backdrop-filter: blur(4px);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 0.7rem;
}

.card p {
  margin: 0 0 0.6rem;
  color: #173247;
}

.card a {
  display: inline-block;
  margin-right: 0.9rem;
  margin-top: 0.4rem;
  font-weight: 600;
}

.two-col {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 1rem;
}

.panel ul {
  padding-left: 1rem;
  margin: 0;
}

.now-card {
  border-left: 4px solid var(--primary);
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  padding: 1.6rem 0 2.6rem;
}

.footer-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.quote {
  margin: 0;
  font-style: italic;
}

.small {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.essay-layout {
  padding: 2.5rem 0 4rem;
}

.essay {
  max-width: 760px;
  margin: 0 auto;
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    display: none;
    position: absolute;
    right: 1rem;
    top: 3.2rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    padding: 0.8rem;
    flex-direction: column;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }
}
