:root {
  color-scheme: light;
  --wine: #570606;
  --wine-dark: #3d0303;
  --paper: #ffffff;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.84);
  --focus: #f2ca52;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--wine-dark);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: var(--ink);
  background: var(--wine-dark);
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: #111;
  background: var(--paper);
  border-radius: 0.2rem;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  min-height: 142px;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: var(--wine);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-header img {
  display: block;
  width: 129px;
  height: 88px;
  object-fit: contain;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 580px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 7rem) 1.25rem;
  text-align: center;
  background-image: url("/assets/hero.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 13, 17, 0.52), rgba(8, 13, 17, 0.72)),
    linear-gradient(90deg, rgba(87, 6, 6, 0.24), transparent 55%);
}

.hero-content {
  width: min(850px, 100%);
  padding: clamp(2rem, 5vw, 4.25rem);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(8, 13, 17, 0.42);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(3px);
}

.kicker {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: clamp(0.78rem, 1.5vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.19em;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.2rem);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.message {
  max-width: 700px;
  margin: 1.35rem auto 0;
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  font-weight: 600;
  line-height: 1.55;
  text-wrap: balance;
}

.message a {
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.countdown {
  margin: 1.7rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

#countdown-value {
  display: inline-grid;
  min-width: 2.2rem;
  place-items: center;
  margin: 0 0.22rem;
  padding: 0.28rem 0.48rem;
  color: var(--wine-dark);
  background: var(--paper);
  border-radius: 0.15rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.7rem;
  padding: 0.95rem 1.45rem;
  color: var(--wine);
  background: var(--paper);
  border: 2px solid var(--paper);
  border-radius: 0.15rem;
  font-weight: 750;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.button:hover {
  color: var(--paper);
  background: var(--wine);
  transform: translateY(-2px);
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.noscript-note {
  margin: 1.1rem 0 0;
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem clamp(1.25rem, 5vw, 4rem);
  color: rgba(255, 255, 255, 0.82);
  background: var(--wine);
  font-size: 0.86rem;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 1.2rem;
}

.site-footer a {
  text-underline-offset: 0.2em;
}

@media (max-width: 680px) {
  .site-header {
    min-height: 118px;
  }

  .site-header img {
    width: 110px;
    height: auto;
  }

  .hero {
    min-height: 570px;
    background-position: 29% center;
  }

  .hero-content {
    padding: 2rem 1.2rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
}

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