:root {
  --bg: #07131a;
  --bg-deep: #041017;
  --panel: rgba(8, 25, 33, 0.68);
  --panel-strong: rgba(11, 34, 45, 0.85);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4efe6;
  --muted: #bfd4d1;
  --soft: #8fb0ad;
  --accent: #f3c677;
  --accent-strong: #ff9f4a;
  --sea: #6fd4d8;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --max-width: 1120px;
}

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

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(circle at top, rgba(41, 104, 130, 0.2), transparent 40%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

.background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.background-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.3;
  animation: float 14s ease-in-out infinite;
}

.orb-one {
  top: 8%;
  right: -6rem;
  width: 24rem;
  height: 24rem;
  background: radial-gradient(circle, rgba(243, 198, 119, 0.9), transparent 65%);
}

.orb-two {
  left: -8rem;
  bottom: 10%;
  width: 22rem;
  height: 22rem;
  background: radial-gradient(circle, rgba(111, 212, 216, 0.75), transparent 65%);
  animation-duration: 18s;
}

.background-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.38), transparent 72%);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: 28px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr);
  gap: 2rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.hero-copy h1,
.section-heading h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "URW Palladio L", serif;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(2.6rem, 5vw, 5.4rem);
}

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

.birth-note,
.hero-text,
.progress-copy,
.site-footer,
.stat-copy,
.total-label,
.age-detail {
  color: var(--muted);
}

.birth-note,
.hero-text,
.progress-copy,
.site-footer p {
  margin: 0;
  line-height: 1.6;
}

.birth-note {
  margin-bottom: 1rem;
}

.hero-text {
  max-width: 60ch;
  margin-top: 1.25rem;
}

.hero-timer {
  padding: 1.5rem;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(243, 198, 119, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(243, 198, 119, 0.18);
  align-self: stretch;
}

.timer-label,
.stat-label,
.total-label {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.age-summary {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "URW Palladio L", serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.03;
}

.age-detail {
  margin: 1rem 0 0;
  font-size: 1.02rem;
  line-height: 1.5;
}

.stats-grid,
.content-grid,
.totals-grid {
  display: grid;
  gap: 1.25rem;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1.5rem;
}

.stat-card {
  padding: 1.4rem;
}

.stat-card-emphasis {
  background:
    radial-gradient(circle at top, rgba(111, 212, 216, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
}

.stat-value,
.total-value {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "URW Palladio L", serif;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-value {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 0.75rem;
}

.stat-value-small,
.total-value-note {
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  line-height: 1.15;
}

.stat-copy {
  margin: 0;
  line-height: 1.5;
}

.content-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.progress-panel,
.totals-panel {
  padding: 1.8rem;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading .eyebrow {
  margin-bottom: 0.65rem;
}

.progress-shell {
  margin-bottom: 1rem;
}

.progress-track {
  position: relative;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(111, 212, 216, 0.9), rgba(243, 198, 119, 0.98));
  box-shadow: 0 0 24px rgba(243, 198, 119, 0.35);
  transition: width 0.65s ease;
}

.progress-copy {
  margin-bottom: 1.25rem;
}

.milestone-list {
  display: grid;
  gap: 0.85rem;
}

.milestone {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.milestone.is-next {
  border-color: rgba(243, 198, 119, 0.34);
  background: rgba(243, 198, 119, 0.09);
}

.milestone-title,
.milestone-meta,
.milestone-status {
  margin: 0;
}

.milestone-title {
  font-weight: 700;
}

.milestone-meta {
  color: var(--soft);
  margin-top: 0.18rem;
}

.milestone-status {
  color: var(--muted);
  text-align: right;
  align-self: center;
}

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

.total-item {
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.total-value {
  font-size: clamp(1.8rem, 2.8vw, 2.55rem);
}

.site-footer {
  padding: 1.5rem 0 0;
}

.noscript-banner {
  margin: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: #1a2b34;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -18px, 0);
  }
}

@media (max-width: 980px) {
  .hero,
  .content-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 14ch;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 1rem), var(--max-width));
    padding-top: 0.75rem;
  }

  .hero,
  .progress-panel,
  .totals-panel,
  .stat-card {
    padding: 1.25rem;
  }

  .hero-timer {
    padding: 1.2rem;
  }

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

  .milestone {
    flex-direction: column;
  }

  .milestone-status {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
