:root {
  --sage: #aeb081;
  --citron: #cdd390;
  --olive-dark: #545a26;
  --olive-grey: #a49e84;
  --raspberry: #854655;
  --cream: #d6ccb4;
  --paper: #f4f1ea;
  --ink: #2c2a22;
  --ink-soft: #5a5648;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.hero {
  display: grid;
  grid-template-columns: minmax(20rem, 0.92fr) minmax(0, 1.18fr);
  min-height: 100vh;
  background: var(--paper);
  overflow: hidden;
}

.hero__copy {
  display: grid;
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
  position: relative;
  z-index: 1;
}

.hero__copy::after {
  content: '';
  position: absolute;
  top: 12%;
  bottom: 12%;
  right: 0;
  width: 1px;
  background: color-mix(in srgb, var(--sage) 55%, transparent);
}

.hero__copy-inner {
  max-width: 28rem;
  margin-inline: auto 0;
}

.hero__eyebrow {
  margin: 0 0 1.1rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--olive-grey);
}

.hero__names {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6.5vw, 5.4rem);
  line-height: 0.94;
  font-weight: 500;
  color: var(--olive-dark);
  margin: 0 0 1.1rem;
}

.hero__amp {
  display: inline-block;
  font-style: italic;
  font-weight: 400;
  color: var(--raspberry);
  margin: 0 0.1em;
  font-size: 0.7em;
  vertical-align: baseline;
}

.hero__meta {
  margin: 0 0 1.1rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
  font-size: 0.98rem;
}

.hero__tagline {
  color: var(--ink-soft);
  margin: 0 0 1.85rem;
  font-size: 1.05rem;
  line-height: 1.65;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.countdown__cell {
  background: color-mix(in srgb, white 72%, var(--citron));
  border: 1px solid color-mix(in srgb, var(--sage) 40%, transparent);
  border-radius: 0.25rem;
  padding: 0.75rem 0.3rem;
  text-align: center;
}

.countdown__cell strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 600;
  color: var(--olive-dark);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.countdown__cell span {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive-grey);
  font-weight: 600;
}

.hero__done {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--olive-dark);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Author CSS can override the HTML `hidden` attribute on some mobile browsers */
#gate[hidden] {
  display: none !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 0.2rem;
  padding: 0.9rem 1.55rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--olive-dark);
  color: var(--citron);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--olive-dark) 22%, transparent);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--olive-dark) 82%, black);
  color: white;
  box-shadow: 0 14px 28px color-mix(in srgb, var(--olive-dark) 28%, transparent);
}

.hero__visual {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: var(--cream);
}

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 30%;
  transform: scale(1.08);
  transform-origin: 55% 28%;
  animation: heroDrift 18s ease-in-out infinite alternate;
  will-change: transform;
}

.fade-up {
  animation: fadeUp 0.8s var(--ease) both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.08) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.14) translate3d(-1.5%, 1%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__visual img,
  .fade-up {
    animation: none;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__visual {
    order: -1;
    min-height: 54vh;
  }

  .hero__visual img {
    object-position: center 38%;
    transform: none;
    animation: none;
  }

  .hero__copy {
    padding: 1.75rem 1.25rem 2.5rem;
  }

  .hero__copy::after {
    display: none;
  }

  .hero__copy-inner {
    max-width: none;
    margin: 0;
  }
}

@media (max-width: 420px) {
  .countdown {
    grid-template-columns: repeat(2, 1fr);
  }
}
