:root {
  --bg: #efe9de;
  --bg-deep: #e1d5c3;
  --surface: rgba(255, 250, 242, 0.88);
  --surface-strong: #fff8ef;
  --text: #1c2422;
  --muted: #5c655e;
  --line: rgba(28, 36, 34, 0.11);
  --forest: #285447;
  --clay: #b6724c;
  --shadow: 0 24px 70px rgba(40, 30, 14, 0.11);
  --heading-font: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --body-font: "Avenir Next", "Segoe UI", "Trebuchet MS", Verdana, sans-serif;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body-font);
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(199, 218, 207, 0.8), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(231, 205, 177, 0.7), transparent 24%),
    linear-gradient(180deg, #f5f0e6 0%, var(--bg) 48%, var(--bg-deep) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 6px;
  opacity: 0.22;
}

a {
  color: inherit;
}

.wrap {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  width: min(760px, 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(247, 241, 232, 0.82);
  border-bottom: 1px solid rgba(28, 36, 34, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, var(--forest) 0%, #11332c 100%);
  color: #f7f2e9;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.brand-copy span:last-child {
  margin-top: 0.22rem;
  color: var(--muted);
  font-size: 0.8rem;
}

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

.nav a {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 248, 239, 0.94);
  transform: translateY(-1px);
}

.hero,
.section {
  padding: 4.5rem 0;
}

.page {
  padding: 0;
}

.hero {
  padding-top: 5.25rem;
}

.page-hero {
  padding: 4.4rem 0 1rem;
}

.page-shell,
.surface {
  animation: rise 640ms ease both;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 1.4rem;
  align-items: stretch;
}

.surface,
.hero-panel,
.metric-card,
.info-card,
.feature-card,
.panel-card,
.stack-card,
.timeline-item,
.cta-band,
.not-found-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.surface,
.metric-card,
.info-card,
.feature-card,
.panel-card,
.stack-card,
.timeline-item,
.not-found-card {
  background: var(--surface);
}

.surface {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 3.25rem);
  border-radius: 2rem;
}

.surface::after {
  content: "";
  position: absolute;
  inset: auto -4rem -4rem auto;
  width: 13rem;
  height: 13rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 231, 224, 0.9), transparent 70%);
}

.hero-panel {
  padding: 2rem;
  border-radius: 1.8rem;
  background: linear-gradient(180deg, rgba(23, 53, 47, 0.95), rgba(39, 83, 69, 0.93));
  color: #f6f1e8;
  animation: rise 740ms ease both;
}

.hero-panel h2,
.surface h1,
.page h1,
.page-hero h1,
.section-head h2,
.cta-band h2,
.timeline-item h3,
.info-card h3,
.feature-card h3,
.panel-card h2,
.stack-card h3,
.not-found-card h1,
.metric-value {
  font-family: var(--heading-font);
}

.surface h1,
.page-hero h1 {
  margin: 0.4rem 0 1rem;
  font-size: clamp(2.35rem, 6vw, 5rem);
  line-height: 1.04;
}

.hero-panel h2,
.section-head h2,
.cta-band h2,
.panel-card h2 {
  margin: 0.3rem 0 1rem;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.1;
}

.lead,
.section-copy,
.footer-copy,
.metric-copy {
  color: var(--muted);
}

.hero-panel .check-list {
  color: rgba(246, 241, 232, 0.9);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--forest);
}

.hero-panel .eyebrow {
  color: #f7c98d;
}

.button-row,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--forest) 0%, #17352f 100%);
  color: #f8f3ea;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.button-secondary {
  background: rgba(255, 248, 239, 0.94);
  color: var(--text);
  border: 1px solid rgba(28, 36, 34, 0.12);
}

.tag-row,
.check-list,
.bullet-list,
.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.2rem;
}

.tag-row li {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(215, 231, 224, 0.9);
  color: var(--forest);
  font-size: 0.92rem;
  font-weight: 700;
}

.check-list,
.bullet-list {
  display: grid;
  gap: 0.7rem;
}

.check-list li,
.bullet-list li {
  position: relative;
  padding-left: 1.4rem;
}

.check-list li::before,
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--clay);
}

.section-tight {
  padding-top: 0;
}

.section-head {
  max-width: 48rem;
  margin-bottom: 1.6rem;
}

.metric-grid,
.card-grid,
.feature-grid,
.page-columns,
.footer-grid {
  display: grid;
  gap: 1.2rem;
}

.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.metric-card,
.info-card,
.feature-card,
.panel-card,
.stack-card,
.not-found-card {
  padding: 1.5rem;
  border-radius: 1.5rem;
}

.metric-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metric-value {
  margin: 0.45rem 0 0.55rem;
  font-size: 1.4rem;
}

.feature-accent,
.panel-card-strong,
.cta-band {
  background: linear-gradient(140deg, rgba(255, 244, 231, 0.95), rgba(239, 212, 195, 0.86));
}

.section-toned {
  background: linear-gradient(180deg, rgba(220, 233, 225, 0.42), rgba(239, 234, 223, 0.12));
  border-top: 1px solid rgba(28, 36, 34, 0.05);
  border-bottom: 1px solid rgba(28, 36, 34, 0.05);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr);
  gap: 1.5rem;
  align-items: start;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 1.2rem;
  border-radius: 1.35rem;
}

.timeline-item span {
  display: inline-grid;
  place-items: center;
  min-width: 3.2rem;
  height: 3.2rem;
  padding: 0 0.6rem;
  border-radius: 1rem;
  background: rgba(40, 84, 71, 0.1);
  color: var(--forest);
  font-weight: 700;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.7rem 1.8rem;
  border-radius: 1.8rem;
}

.small-note {
  margin: 0;
  max-width: 22rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.page-center {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.not-found-card {
  text-align: center;
  background: rgba(255, 248, 239, 0.94);
}

.site-footer {
  padding: 2.2rem 0 3rem;
}

.footer-grid {
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  padding-top: 1rem;
  border-top: 1px solid rgba(28, 36, 34, 0.1);
}

.footer-title {
  margin: 0 0 0.65rem;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.footer-copy {
  margin: 0;
  max-width: 28rem;
}

.footer-links {
  display: grid;
  gap: 0.4rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .hero-grid,
  .split-layout,
  .cta-band,
  .page-columns,
  .feature-grid,
  .metric-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .header-inner {
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero,
  .section {
    padding: 3.6rem 0;
  }

  .surface,
  .hero-panel,
  .metric-card,
  .info-card,
  .feature-card,
  .panel-card,
  .stack-card,
  .timeline-item,
  .not-found-card {
    border-radius: 1.3rem;
  }

  .surface,
  .hero-panel {
    padding: 1.35rem;
  }

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

  .button-row,
  .cta-actions {
    align-items: stretch;
  }

  .button,
  .button-secondary {
    width: 100%;
  }
}
