:root {
  --color-bg: #0d3625;
  --color-ink: #07100c;
  --color-accent: #badd86;
  --color-light: #edf4eb;
  --color-white: #ffffff;
  --color-cta: #0941d7;

  --font-title: "Phudu", system-ui, sans-serif;
  --font-body: "Geist", system-ui, sans-serif;

  --page-margin: 24px;
  --panel-radius: clamp(1.5rem, 3.5vw, 2.75rem);
  --panel-pad-x: clamp(1.25rem, 4vw, 3.5rem);
  --panel-pad-y: clamp(1.25rem, 3.5vw, 2.5rem);
  --headline-size: clamp(2.75rem, 9vw + 0.5rem, 7rem);
  --logo-size: clamp(1.5rem, 2.8vw + 0.85rem, 2.75rem);
  --lede-size: clamp(0.95rem, 1.1vw + 0.7rem, 1.2rem);
  --meta-size: clamp(0.8rem, 0.4vw + 0.72rem, 0.95rem);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-accent);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: var(--page-margin) var(--page-margin) var(--page-margin);
  gap: clamp(0.75rem, 1.5vw, 1rem);
}

.wordmark {
  flex-shrink: 0;
  text-align: center;
  animation: rise-in 0.7s ease-out both;
}

.wordmark p {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: var(--logo-size);
  letter-spacing: -1.5px;
  text-transform: uppercase;
  color: var(--color-accent);
  line-height: 1;
}

.panel {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--panel-radius);
  overflow: hidden;
  isolation: isolate;
  border: none;
  box-shadow: none;
  background-color: var(--color-bg);
  background-image: url("public/gjl-background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: panel-in 0.85s ease-out both;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--color-ink) 18%, transparent) 0%,
    color-mix(in srgb, var(--color-ink) 8%, transparent) 40%,
    color-mix(in srgb, var(--color-ink) 28%, transparent) 100%
  );
  pointer-events: none;
}

.panel__content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--panel-pad-y) var(--panel-pad-x);
  gap: clamp(0.9rem, 2vw, 1.35rem);
}

.headline {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: var(--headline-size);
  line-height: 0.84;
  letter-spacing: -1.5px;
  text-transform: uppercase;
  color: var(--color-accent);
  max-width: 14ch;
  text-wrap: balance;
  animation: rise-in 0.8s ease-out 0.12s both;
}

.lede {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--lede-size);
  line-height: 1.45;
  color: var(--color-accent);
  max-width: 36ch;
  opacity: 0.92;
  animation: rise-in 0.8s ease-out 0.22s both;
}

.bar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  padding: 0 var(--panel-pad-x) var(--panel-pad-y);
  animation: rise-in 0.8s ease-out 0.32s both;
}

.bar__legal,
.bar__status {
  font-family: var(--font-body);
  font-size: var(--meta-size);
  font-weight: 400;
  color: var(--color-accent);
  text-decoration: none;
  line-height: 1.35;
}

.bar__legal {
  justify-self: start;
  text-align: left;
  text-transform: uppercase;
  font-size: clamp(0.65rem, 0.3vw + 0.58rem, 0.78rem);
  opacity: 0.55;
}

.bar__status {
  justify-self: center;
  text-align: center;
  white-space: nowrap;
  align-self: end;
}

.bar__actions {
  display: contents;
}

.bar__cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  font-family: var(--font-body);
  font-size: var(--meta-size);
  font-weight: 500;
  color: var(--color-white);
  background: var(--color-cta);
  text-decoration: none;
  border-radius: 999px;
  padding: 0.65em 1.35em;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.bar__cta-icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.bar__cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.bar__cta:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(0.65rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(1rem) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .headline {
    font-size: clamp(3.75rem, 15vw + 0.75rem, 5.75rem);
    max-width: 11ch;
  }

  .lede {
    max-width: 28ch;
  }

  .bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding-bottom: calc(var(--panel-pad-y) + 0.15rem);
  }

  .bar__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    order: 1;
  }

  .bar__legal {
    text-align: center;
    order: 2;
  }

  .bar__status {
    align-self: center;
  }

  .bar__cta {
    align-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wordmark,
  .panel,
  .headline,
  .lede,
  .bar {
    animation: none;
  }

  .bar__cta:hover {
    transform: none;
  }
}
