:root {
  --ink: #f4f0e7;
  --muted: #c5c6bc;
  --ember: #d87936;
  --ember-bright: #ef9a52;
  --panel: rgba(15, 20, 16, 0.86);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #111813;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.site-shell {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.hero-image,
.shade {
  position: fixed;
  inset: 0;
  z-index: -2;
}

.hero-image {
  background-color: #1e2c22;
  background-image: url("assets/prepper-links-hero.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.shade {
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(7, 12, 9, 0.94) 0%,
      rgba(7, 12, 9, 0.81) 36%,
      rgba(7, 12, 9, 0.25) 71%,
      rgba(7, 12, 9, 0.38) 100%
    ),
    linear-gradient(
      180deg,
      rgba(6, 9, 7, 0.55) 0%,
      transparent 32%,
      transparent 68%,
      rgba(6, 9, 7, 0.78) 100%
    );
}

.site-header {
  width: min(100% - 48px, 1240px);
  margin: 0 auto;
  padding: 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 19px;
  letter-spacing: 0.04em;
}

.brand strong {
  color: white;
  font-weight: 800;
}

.brand small {
  margin-left: 3px;
  color: var(--ember-bright);
  font-size: 0.56em;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand-mark {
  width: 29px;
  height: 29px;
  display: grid;
  place-content: center;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  transform: rotate(-13deg);
}

.brand-mark span {
  display: block;
  width: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--ember-bright);
}

.brand-mark span:nth-child(2) {
  width: 9px;
}

.header-link {
  position: relative;
  padding: 7px 0;
  color: #efeee7;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.header-link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--ember);
  transform: scaleX(0.45);
  transform-origin: right;
  transition: transform 180ms ease;
}

.header-link:hover::after,
.header-link:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  width: min(100% - 48px, 1240px);
  margin: 0 auto;
  padding: clamp(72px, 11vh, 134px) 0 clamp(70px, 11vh, 124px);
  align-self: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: #d9c6ae;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.21em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 2px;
  content: "";
  background: var(--ember);
}

h1 {
  max-width: 820px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 7.5vw, 104px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.92;
  text-wrap: balance;
}

h1 span {
  display: block;
  margin-top: 10px;
  color: var(--ember-bright);
  font-style: italic;
}

.intro {
  max-width: 630px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.65;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 38px;
}

.primary-button {
  min-height: 54px;
  padding: 0 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px solid var(--ember-bright);
  background: var(--ember);
  color: #11150f;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.primary-button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--ember-bright);
  transform: translateY(-2px);
}

.launch-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #dadbd4;
  font-size: 13px;
}

.launch-note i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #85a66f;
  box-shadow: 0 0 0 5px rgba(133, 166, 111, 0.15);
}

.contact-bar {
  display: grid;
  grid-template-columns: minmax(230px, 0.75fr) minmax(500px, 1.25fr);
  gap: 16px 36px;
  align-items: center;
  padding: 27px max(24px, calc((100vw - 1240px) / 2));
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--panel);
  backdrop-filter: blur(12px);
}

.contact-copy p {
  margin: 0 0 7px;
  color: var(--ember-bright);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 2.3vw, 32px);
  font-weight: 400;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 9px;
}

.contact-form input,
.contact-form button {
  min-width: 0;
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.21);
}

.contact-form input {
  padding: 0 15px;
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.contact-form input::placeholder {
  color: #a9ada7;
}

.contact-form input:focus {
  border-color: var(--ember-bright);
  box-shadow: 0 0 0 3px rgba(216, 121, 54, 0.18);
}

.contact-form button {
  padding: 0 20px;
  border-color: var(--ember);
  background: transparent;
  color: white;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.contact-form button:hover,
.contact-form button:focus-visible {
  background: var(--ember);
  color: #11150f;
}

.form-note {
  grid-column: 2;
  margin: 0;
  color: #969c96;
  font-size: 11px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 840px) {
  .shade {
    background:
      linear-gradient(
        90deg,
        rgba(7, 12, 9, 0.9) 0%,
        rgba(7, 12, 9, 0.58) 78%,
        rgba(7, 12, 9, 0.55) 100%
      ),
      linear-gradient(
        180deg,
        rgba(6, 9, 7, 0.45) 0%,
        rgba(6, 9, 7, 0.1) 60%,
        rgba(6, 9, 7, 0.86) 100%
      );
  }

  .contact-bar {
    grid-template-columns: 1fr;
  }

  .contact-form {
    grid-template-columns: 1fr 1fr auto;
  }

  .form-note {
    grid-column: 1;
  }
}

@media (max-width: 620px) {
  .site-shell {
    min-height: 100svh;
    overflow: visible;
  }

  .site-header,
  .hero {
    width: min(100% - 34px, 1240px);
  }

  .site-header {
    padding: 22px 0;
  }

  .brand {
    font-size: 16px;
  }

  .header-link {
    font-size: 11px;
  }

  .hero {
    padding: 74px 0 92px;
  }

  h1 {
    font-size: clamp(49px, 15vw, 68px);
    line-height: 0.94;
  }

  .intro {
    font-size: 16px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-bar {
    padding: 28px 17px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-form button {
    min-height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}
