:root {
  --walnut: #6b4e3d;
  --cognac: #b36a3c;
  --cream: #f2ece3;
  --ivory: #faf7f2;
  --stone: #d8d2c7;
  --charcoal: #2c2c2c;
  --navy: #1f2a3a;
  --sage: #8c968a;

  --card: rgba(255, 252, 247, 0.74);
  --border: rgba(80, 60, 40, 0.12);
  --shadow: 0 16px 50px rgba(63, 45, 30, 0.10);

  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--charcoal);
  background:
    radial-gradient(circle at 18% 8%, rgba(179, 106, 60, 0.14), transparent 30%),
    radial-gradient(circle at 86% 0%, rgba(31, 42, 58, 0.08), transparent 30%),
    linear-gradient(135deg, #f9f4ec, #eee5d9);
}

h1,
h2,
h3,
p {
  margin: 0;
}

.page {
  width: min(1320px, calc(100% - 28px));
  margin: 14px auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

/* HEADER */

.hero {
  position: relative;
  width: 100%;
  min-height: 560px;
  padding: 24px max(24px, calc((100vw - 1320px) / 2));
  overflow: hidden;
  color: white;
  background:
    linear-gradient(90deg, rgba(31, 25, 21, 0.72), rgba(31, 25, 21, 0.30)),
    url("https://images.unsplash.com/photo-1617104678098-de229db51175?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 70% 48%, transparent, rgba(30, 22, 16, 0.28)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.14), transparent 40%);
}

.hero-top,
.hero-content {
  position: relative;
  z-index: 2;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.small-pill,
.date-pill {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.small-pill {
  color: #f8dfc6;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.date-pill {
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.86);
  padding: 10px 16px;
}

.hero-content {
  min-height: 460px;
  padding-top: 72px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.hero-text {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.eyebrow,
.section-label {
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--cognac);
}

.hero .eyebrow {
  color: #f8dfc6;
}

h1 {
  font-family: "Libre Baskerville", serif;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.subtitle {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  line-height: 1.6;
}

.subtitle strong {
  color: white;
}

.header-verse {
  width: min(620px, 100%);
  margin-top: 12px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 250, 243, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
}

.header-verse p {
  color: #f8dfc6;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.header-verse h2 {
  font-family: "Libre Baskerville", serif;
  font-size: clamp(18px, 2.2vw, 30px);
  line-height: 1.35;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.94);
}

/* COUNTDOWN */

.countdown-panel {
  min-height: 300px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.section-title {
  margin-top: 8px;
  font-family: "Libre Baskerville", serif;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.035em;
  color: var(--walnut);
}

.countdown-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: end;
  gap: 14px;
  margin: 34px 0 24px;
}

.countdown-item {
  text-align: center;
}

.countdown-item strong {
  display: block;
  font-family: "Libre Baskerville", serif;
  font-size: clamp(46px, 8vw, 106px);
  line-height: 1;
  letter-spacing: -0.055em;
  color: var(--walnut);
  font-weight: 700;
}

.countdown-item span {
  display: block;
  margin-top: 10px;
  color: #746b62;
  font-size: 13px;
  font-weight: 700;
}

.countdown-divider {
  font-family: "Libre Baskerville", serif;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1;
  color: rgba(107, 78, 61, 0.30);
  padding-bottom: 30px;
}

.panel-subtitle {
  color: #746b62;
  font-size: 14px;
}

/* PROGRESS */

.progress-card {
  padding: 28px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
  margin-top: 26px;
}

.progress-header h3 {
  font-family: "Libre Baskerville", serif;
  font-size: clamp(32px, 5vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.05em;
  color: var(--walnut);
}

.progress-header p,
.percent-left p,
.stat-card p,
.progress-meta {
  color: #746b62;
  font-size: 14px;
}

.percent-left {
  text-align: right;
  padding-top: 12px;
}

.percent-left span {
  display: block;
  font-weight: 800;
  color: var(--cognac);
  font-size: 15px;
  white-space: nowrap;
}

.percent-left p {
  margin-top: 5px;
  font-size: 13px;
}

.progress-track {
  height: 18px;
  background: rgba(107, 78, 61, 0.12);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 30px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--walnut), var(--cognac));
  border-radius: inherit;
  transition: width 0.2s linear;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  font-size: 12px;
}

/* REMAINING */

.remaining-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stat-card {
  padding: 24px;
  min-height: 170px;
}

.stat-card h2 {
  font-family: "Libre Baskerville", serif;
  color: var(--walnut);
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.045em;
  margin-top: 30px;
  word-break: break-word;
}

/* TABLET */

@media (max-width: 1100px) {
  .hero {
    padding-inline: 24px;
  }

  .hero-content {
    min-height: 500px;
  }

  .countdown-inner {
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
  }

  .countdown-divider {
    display: none;
  }

  .remaining-section {
    grid-template-columns: 1fr;
  }
}

/* MOBILE */

@media (max-width: 720px) {
  .page {
    width: min(100% - 18px, 520px);
    margin: 10px auto;
    gap: 10px;
  }

  .card {
    border-radius: 22px;
  }

  .hero {
    min-height: auto;
    padding: 18px;
  }

  .hero-top {
    align-items: flex-start;
  }

  .small-pill,
  .date-pill {
    font-size: 11px;
  }

  .hero-content {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    min-height: 620px;
    padding-top: 70px;
  }

  h1 {
    font-size: 42px;
  }

  .subtitle {
    font-size: 14px;
  }

  .header-verse {
    padding: 16px;
  }

  .header-verse h2 {
    font-size: 20px;
  }

  .countdown-panel,
  .progress-card,
  .stat-card {
    padding: 20px;
  }

  .countdown-panel {
    min-height: auto;
  }

  .countdown-inner {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 28px 0 22px;
  }

  .countdown-divider {
    display: none;
  }

  .countdown-item strong {
    font-size: clamp(30px, 12vw, 52px);
    letter-spacing: -0.04em;
  }

  .countdown-item span {
    margin-top: 7px;
    font-size: 11px;
  }

  .progress-header {
    flex-direction: column;
  }

  .percent-left {
    text-align: left;
    padding-top: 0;
  }

  .percent-left span {
    white-space: normal;
  }

  .progress-meta {
    flex-direction: column;
  }

  .stat-card {
    min-height: 150px;
  }

  .stat-card h2 {
    margin-top: 24px;
  }
}