:root {
  --primary: #14532D;
  --secondary: #166534;
  --accent: #EAB308;
  --surface: #F0FDF4;
  --ink: #0F172A;
  --display-font: "Archivo", serif;
  --body-font: "IBM Plex Sans", sans-serif;
  --radius: 22px;
  --shadow: 0 24px 60px rgba(16, 24, 40, 0.08);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--ink);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 18%, transparent), transparent 28%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 86%, white), var(--surface));
  line-height: 1.7;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--ink);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  z-index: 100;
}

.topbar,
.site-footer,
.hero,
.section,
.article-shell {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.brand,
h1,
h2,
h3 {
  font-family: var(--display-font);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.brand {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 700;
}

.main-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a,
.footer-links a {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 8%, white);
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 1.5rem;
  align-items: stretch;
  padding: 2rem 0 1rem;
}

.hero-copy,
.hero-panel,
.card,
.list-card,
.aside-card,
.feature-band {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.hero-copy {
  padding: clamp(1.5rem, 3vw, 3rem);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 18%, white), rgba(255,255,255,0.95)),
    linear-gradient(45deg, transparent, color-mix(in srgb, var(--accent) 12%, transparent));
}

.hero-panel {
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
  align-content: start;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 24%, white), transparent 34%),
    rgba(255,255,255,0.88);
}

.hero h1 {
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  margin: 0.4rem 0 1rem;
}

.eyebrow,
.card-meta,
.aside-label,
.hero-panel-title {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
}

.lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
}

.button.primary {
  background: var(--ink);
  color: white;
}

.button.ghost {
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  background: transparent;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.hero-points li {
  display: grid;
  gap: 0.2rem;
}

.section {
  padding: 1rem 0 2.25rem;
}

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

.section-header h1,
.section-header h2 {
  margin: 0.25rem 0 0.5rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

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

.card,
.list-card,
.aside-card {
  padding: 1.25rem;
}

.card h3,
.list-card h2 {
  margin: 0.45rem 0;
  font-size: 1.45rem;
}

.feature-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  padding: 1.5rem;
  background:
    linear-gradient(115deg, color-mix(in srgb, var(--primary) 16%, white), rgba(255,255,255,0.9));
}

.feature-band-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  align-content: start;
}

.feature-band-links a {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.article-shell {
  padding: 1.5rem 0 3rem;
}

.article-header {
  max-width: 46rem;
  margin-bottom: 1.5rem;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.7fr);
  gap: 1.5rem;
}

.article-body {
  padding: clamp(1.2rem, 3vw, 2.4rem);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.prose h2,
.prose h3 {
  margin-top: 2rem;
}

.prose p,
.prose li {
  font-size: 1.03rem;
}

.stack {
  display: grid;
  gap: 1rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0 2rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.aurora-grid .hero-copy {
  position: relative;
  overflow: hidden;
}

.aurora-grid .hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -10% -25% 35%;
  height: 220px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 36%, transparent), transparent 64%);
  pointer-events: none;
}

.editorial-slab .hero,
.atlas-columns .feature-band {
  grid-template-columns: 1fr 1fr;
}

.soft-wellness .hero-copy,
.lighthouse-stack .hero-panel {
  border-radius: 30px;
}

.signal-dashboard .card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-ribbon .card:nth-child(odd) {
  transform: translateY(1rem);
}

.monolith-split .hero-copy {
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--ink) 12%, white), rgba(255,255,255,0.95)),
    linear-gradient(35deg, transparent, color-mix(in srgb, var(--accent) 20%, transparent));
}

.notebook-flow .article-body {
  border-left: 8px solid color-mix(in srgb, var(--accent) 70%, white);
}

@media (max-width: 980px) {
  .hero,
  .feature-band,
  .article-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .gallery-ribbon .card:nth-child(odd) {
    transform: none;
  }
}

@media (max-width: 640px) {
  .topbar,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav,
  .footer-links {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 1rem;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.6rem);
  }
}
