:root {
  color-scheme: dark;
  --gold: #f4c430;
  --green: #0f7a46;
  --red: #c73a2d;
  --ink: #111318;
  --cream: #fff7e8;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--ink);
  color: var(--white);
}

button,
input {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.hero__media,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__media {
  z-index: -3;
  background-image: url("assets/ghana-hero.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero__overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(17, 19, 24, 0.9) 0%, rgba(17, 19, 24, 0.68) 47%, rgba(17, 19, 24, 0.28) 100%),
    linear-gradient(180deg, rgba(17, 19, 24, 0.16), rgba(17, 19, 24, 0.76));
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  height: 12px;
  content: "";
  background: linear-gradient(90deg, var(--red) 0 33.33%, var(--gold) 33.33% 66.66%, var(--green) 66.66% 100%);
}

.hero__content {
  width: min(100%, 720px);
  padding: clamp(32px, 7vw, 92px);
  align-self: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker::before {
  width: 28px;
  height: 3px;
  content: "";
  background: currentColor;
}

h1 {
  max-width: 10ch;
  margin: 0;
  color: var(--cream);
  font-size: clamp(3.4rem, 11vw, 8.2rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.intro {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(255, 247, 232, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.6;
}

.signup {
  width: min(100%, 680px);
  margin-top: 42px;
}

.signup__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: rgba(255, 247, 232, 0.76);
  font-size: 0.86rem;
  font-weight: 700;
}

input {
  min-height: 54px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  outline: none;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.2);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

input:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 4px rgba(244, 196, 48, 0.18);
}

button {
  min-height: 54px;
  margin-top: 16px;
  border: 0;
  border-radius: 8px;
  padding: 0 26px;
  background: var(--gold);
  color: #16140b;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

button:hover {
  background: #ffd84d;
  transform: translateY(-1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: rgba(255, 247, 232, 0.84);
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-status[data-tone="success"] {
  color: #b9f8d7;
}

.form-status[data-tone="error"] {
  color: #ffd1ca;
}

@media (max-width: 680px) {
  .hero {
    min-height: 100svh;
  }

  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(17, 19, 24, 0.72), rgba(17, 19, 24, 0.9)),
      linear-gradient(90deg, rgba(17, 19, 24, 0.54), rgba(17, 19, 24, 0.28));
  }

  .hero__content {
    padding: 34px 22px 46px;
  }

  h1 {
    max-width: 8ch;
    font-size: clamp(3.1rem, 17vw, 4.9rem);
  }

  .signup {
    margin-top: 32px;
  }

  .signup__fields {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }
}
