:root {
  --ink: #1a1210;
  --muted: #5c4a45;
  --cream: #f7f1eb;
  --paper: #fffaf6;
  --brand: #71130d;
  --brand-deep: #4a0c08;
  --accent: #c4a574;
  --ring-track: rgba(113, 19, 13, 0.12);
  --shadow: 0 24px 60px rgba(26, 18, 16, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(196, 165, 116, 0.35), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(113, 19, 13, 0.18), transparent 50%),
    linear-gradient(165deg, #faf4ee 0%, #f0e4d8 45%, #e8d5c8 100%);
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath fill='%2371130d' fill-opacity='0.04' d='M0 119h1v1H0zm20-20h1v1h-1zm40 0h1v1h-1zm40 0h1v1h-1zM10 99h1v1h-1zm40 0h1v1h-1zm40 0h1v1h-1zM0 79h1v1H0zm20 0h1v1h-1zm40 0h1v1h-1zm40 0h1v1h-1z'/%3E%3C/svg%3E");
}

.shell {
  position: relative;
  z-index: 1;
  width: min(40rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.5rem, 8vh, 5rem) 0 clamp(3rem, 10vh, 6rem);
  animation: rise 0.7s ease-out both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.brand {
  margin: 0 0 1.25rem;
  font-size: clamp(2.75rem, 8vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 0.9;
  color: var(--brand);
}

h1 {
  margin: 0 0 1rem;
  max-width: 18ch;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 em {
  font-style: italic;
  color: var(--brand-deep);
}

.lead {
  margin: 0 0 2rem;
  max-width: 36ch;
  font-size: 1.0625rem;
  color: var(--muted);
}

.lead strong {
  color: var(--ink);
  font-weight: 700;
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--paper);
  border: 1px solid rgba(113, 19, 13, 0.1);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  animation: rise 0.8s 0.12s ease-out both;
}

.countdown__ring {
  --p: 1;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(
    var(--brand) calc(var(--p) * 1turn),
    var(--ring-track) 0
  );
  position: relative;
  flex-shrink: 0;
}

.countdown__ring::before {
  content: "";
  position: absolute;
  inset: 0.45rem;
  border-radius: 50%;
  background: var(--paper);
}

.countdown__ring span {
  position: relative;
  z-index: 1;
  font-size: 1.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--brand);
}

.countdown__label {
  margin: 0;
  flex: 1;
  min-width: 12rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  animation: rise 0.8s 0.2s ease-out both;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  box-shadow: 0 10px 24px rgba(113, 19, 13, 0.28);
}

.btn--primary:hover {
  filter: brightness(1.05);
}

.btn--ghost {
  color: var(--brand);
  background: transparent;
  border: 1px solid rgba(113, 19, 13, 0.28);
}

.btn--ghost:hover {
  background: rgba(113, 19, 13, 0.06);
}

.notes {
  margin: 0;
  padding: 0 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.875rem;
  max-width: 38rem;
}

.notes li + li {
  margin-top: 0.35rem;
}

@media (max-width: 520px) {
  .countdown {
    flex-direction: column;
    align-items: flex-start;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shell,
  .countdown,
  .actions {
    animation: none;
  }

  .btn {
    transition: none;
  }
}
