:root {
  --felt: #006d5f;
  --felt-deep: #042d29;
  --wood: #8f4f28;
  --paper: #f5f0e8;
  --ink: #181818;
  --muted: #b8b3ad;
  --line: rgba(255, 255, 255, 0.72);
  --panel: #1b1b1b;
  --accent: #18d2c6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  border-top: 5px solid var(--accent);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), rgba(20, 0, 0, 0.34)),
    url("./assets/rackrats-hero.png?v=2");
  background-position: center;
  background-size: cover;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 42% 24%, rgba(0, 123, 105, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.18));
}

.nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px clamp(20px, 5vw, 72px);
}

.brand {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 800;
}

.app-link {
  position: absolute;
  right: clamp(20px, 5vw, 72px);
  top: 34px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 800;
  border-bottom: 2px solid currentColor;
  padding-bottom: 5px;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: calc(72vh - 112px);
  padding: 40px 20px 84px;
  text-align: center;
}

.hero__content h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 0.95;
}

.hero__content p {
  max-width: 660px;
  margin: 26px auto 0;
  color: rgba(245, 240, 232, 0.82);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 28px;
  border: 2px solid var(--paper);
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--light,
.button--submit {
  color: #080808;
  background: var(--paper);
}

.button--ghost {
  color: var(--paper);
  background: rgba(0, 0, 0, 0.18);
}

.subscribe {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: start;
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 132px) 24px;
}

.subscribe__intro {
  text-align: left;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.subscribe h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 8vw, 6.5rem);
  font-weight: 400;
  line-height: 1;
}

.subscribe__intro > p:last-child {
  max-width: 430px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.signup-form {
  display: grid;
  gap: 18px;
}

.signup-form label {
  display: grid;
  gap: 10px;
  color: rgba(245, 240, 232, 0.84);
  font-weight: 800;
}

.signup-form input,
.signup-form textarea {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 4px;
  color: var(--paper);
  background: transparent;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  outline: none;
}

.signup-form input {
  min-height: 64px;
  padding: 0 20px;
}

.signup-form textarea {
  resize: vertical;
  min-height: 146px;
  padding: 18px 20px;
}

.signup-form input:focus,
.signup-form textarea:focus {
  border-color: var(--accent);
}

.signup-form ::placeholder {
  color: rgba(245, 240, 232, 0.48);
}

.button--submit {
  width: min(240px, 100%);
  border-color: var(--paper);
}

.privacy-note {
  max-width: 520px;
  margin: -2px 0 0;
  color: rgba(245, 240, 232, 0.62);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.6;
}

.button[disabled] {
  cursor: progress;
  opacity: 0.64;
  transform: none;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.form-status.is-error {
  color: #ffbf9f;
}

.form-status.is-success {
  color: #79eee4;
}

@media (max-width: 760px) {
  .hero {
    min-height: 78vh;
  }

  .nav {
    justify-content: flex-start;
    padding-top: 24px;
  }

  .app-link {
    right: 20px;
    top: 30px;
  }

  .hero__content {
    min-height: calc(78vh - 100px);
    justify-items: start;
    text-align: left;
  }

  .hero__actions {
    justify-content: flex-start;
  }

  .button {
    width: 100%;
  }

  .subscribe {
    grid-template-columns: 1fr;
    padding-top: 64px;
  }

  .button--submit {
    width: 100%;
  }

  .privacy-note {
    max-width: none;
    font-size: 0.78rem;
  }
}
