:root {
  /* Dark foundation matching Laurden / Laurdle */
  --bg: #121213;
  --border-subtle: #272729;
  --border-line: #3a3a3c;
  --text-primary: #ffffff;
  --text-secondary: #9e9e9e;
  --text-tertiary: #606063;

  /* Harmonized accents */
  --accent: #b59f3b; /* Wordle present amber-gold */
  --accent-glow: rgba(181, 159, 59, 0.22);
  --heart-color: #e56b6f;

  /* Typography */
  --font-serif: "Cormorant Garamond", "Didot", "Bodoni MT", Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.25rem;
  overflow-x: hidden;
}

/* Header */
.site-header {
  width: 100%;
  max-width: 440px;
  padding: 1.25rem 0 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-subtle);
}

.site-header a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-header a:hover {
  color: var(--text-primary);
}

main {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 1. Main Countdown (Hero) */
.countdown-hero {
  min-height: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 0 1.75rem;
}

.target-date {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.35em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.days-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}

.days-value {
  font-family: var(--font-serif);
  font-size: clamp(5.5rem, 26vw, 7.8rem);
  line-height: 0.85;
  font-weight: 200;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: #f7f7f7;
  text-shadow: 0 0 35px rgba(255, 255, 255, 0.08);
}

.days-label {
  margin-top: 0.9rem;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-secondary);
}

.sub-countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.75rem;
}

.sub-numbers {
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.sub-labels {
  margin-top: 0.35rem;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sub-labels .separator {
  opacity: 0.5;
  font-size: 0.65rem;
}

.phrase {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: #d1cfcc;
  letter-spacing: 0.03em;
}

.heart {
  display: inline-block;
  margin-left: 0.25rem;
  font-style: normal;
  font-size: 0.95rem;
  color: var(--heart-color);
}

/* Hide or drastically minimize scroll hint to avoid dead whitespace */
.scroll-hint {
  display: none;
}

/* 2. Milestone Timeline */
.timeline-section {
  width: 100%;
  padding: 2.25rem 0 4.5rem;
}

.timeline {
  position: relative;
  list-style: none;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  bottom: 0.8rem;
  left: 7px;
  width: 1px;
  background: var(--border-line);
}

.milestone {
  position: relative;
  margin-bottom: 2.4rem;
}

.milestone:last-child {
  margin-bottom: 0;
}

.milestone-marker {
  position: absolute;
  left: -2rem;
  top: 0.2rem;
  width: 15px;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border-line);
  transition: all 0.3s ease;
}

.milestone-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.milestone-title {
  font-size: 0.98rem;
  font-weight: 400;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.milestone-date {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

/* States */
.milestone.passed .marker-dot {
  background: var(--text-tertiary);
  border-color: var(--text-tertiary);
  transform: scale(0.85);
}

.milestone.passed .milestone-content {
  opacity: 0.38;
}

.milestone.upcoming .marker-dot {
  width: 9px;
  height: 9px;
  border-color: var(--accent);
  background: var(--bg);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.milestone.upcoming .milestone-title {
  color: #ffffff;
  font-weight: 500;
}

.milestone.destination .marker-dot {
  background: var(--heart-color);
  border-color: var(--heart-color);
  box-shadow: 0 0 10px rgba(229, 107, 111, 0.4);
}

.milestone.destination .milestone-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  font-weight: 400;
  color: #ffffff;
}

footer {
  padding: 1.5rem 0 3rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-tertiary);
}