/* Minimal reset (replaces Tailwind's preflight) */
h1, p { margin: 0; }
img, svg { display: block; }
[hidden] { display: none !important; }

@import url("https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@75..125,400..800&family=Space+Mono:wght@400;700&display=swap");

:root {
  --navy: #091540;
  --navy-light: #142252;
  --paper: #f5f3e9;
  --acid: #d9ff43;
  --ice: #cbd5f3;
  font-family: "Archivo", sans-serif;
  color: var(--paper);
  background: var(--navy);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--navy);
}

button,
input {
  font: inherit;
}

button,
a {
  color: inherit;
}

svg {
  width: 20px;
  height: 20px;
}

.landing {
  min-height: 100svh;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 5vw;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.topbar {
  min-height: 110px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
  position: relative;
  z-index: 4;
}

.brand {
  display: inline-block;
  font-size: 31px;
  font-weight: 800;
  font-stretch: condensed;
  letter-spacing: -2px;
  text-decoration: none;
}

.brand::after {
  content: "";
  display: block;
  width: 19px;
  height: 5px;
  margin: -7px 0 0 33px;
  background: var(--acid);
}

.topbar p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.topbar p span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--acid) 15%, transparent);
  animation: pulse 2s ease-in-out infinite;
}

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(480px, 1.05fr) minmax(430px, 0.95fr);
  align-items: center;
  gap: 7vw;
  padding: 58px 3vw 54px 0;
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.eyebrow {
  margin: 0 0 26px;
  color: var(--acid);
  font-family: "Space Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(52px, 6.4vw, 98px);
  line-height: 0.88;
  letter-spacing: -0.065em;
  font-weight: 760;
}

h1 em {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--paper);
  font-weight: 500;
  font-style: italic;
}

.intro {
  max-width: 510px;
  margin: 34px 0 38px;
  color: var(--ice);
  font-size: 16px;
  line-height: 1.65;
}

form {
  max-width: 530px;
}

form > label {
  display: block;
  margin-bottom: 11px;
  font-family: "Space Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.3px;
}

.email-field {
  display: flex;
  min-height: 58px;
  border: 1px solid color-mix(in srgb, var(--paper) 32%, transparent);
  padding: 5px;
  background: color-mix(in srgb, var(--paper) 4%, transparent);
}

.email-field:focus-within {
  border-color: var(--acid);
}

.email-field input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 16px;
  color: var(--paper);
  background: transparent;
  font-size: 13px;
}

.email-field input::placeholder {
  color: color-mix(in srgb, var(--paper) 47%, transparent);
}

.email-field button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 0;
  padding: 0 20px;
  color: var(--navy);
  background: var(--acid);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.email-field button:hover {
  transform: translateX(2px);
  background: var(--paper);
}

.success {
  max-width: 530px;
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--acid);
  padding: 14px 18px;
}

.success > span {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: var(--acid);
  font-weight: 800;
}

.success strong {
  font-size: 13px;
}

.success p {
  margin: 3px 0 0;
  color: var(--ice);
  font-size: 11px;
}

.hero-art {
  height: min(62vw, 610px);
  max-height: 610px;
  min-height: 500px;
  position: relative;
}

.photo-frame {
  position: absolute;
  inset: 3% 7% 3% 8%;
  transform: rotate(2.2deg);
  background: var(--paper);
  padding: 13px 13px 45px;
  box-shadow: 24px 24px 0 var(--navy-light);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 56% center;
  filter: grayscale(100%) contrast(1.12);
}

.photo-frame p {
  position: absolute;
  right: 15px;
  bottom: 13px;
  margin: 0;
  color: var(--navy);
  font-family: "Space Mono", monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
}

.tape {
  position: absolute;
  z-index: 2;
  padding: 9px 15px;
  color: var(--navy);
  background: var(--acid);
  font-family: "Space Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--navy) 35%, transparent);
}

.tape-one {
  top: 9%;
  left: 1%;
  transform: rotate(-8deg);
}

footer {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
  color: var(--ice);
  font-family: "Space Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.5px;
}

footer a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

footer a:hover {
  color: var(--acid);
}

footer svg {
  width: 16px;
  height: 16px;
}

@keyframes pulse {
  50% {
    opacity: 0.45;
  }
}

@media (max-width: 900px) {
  .landing {
    padding-inline: 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 70px 0;
  }

  .hero-art {
    height: 620px;
    max-height: none;
  }

  .photo-frame {
    inset-inline: 4%;
  }
}

@media (max-width: 560px) {
  .landing {
    padding-inline: 18px;
  }

  .topbar {
    min-height: 78px;
  }

  .topbar p {
    font-size: 7px;
  }

  .hero {
    min-height: 0;
    gap: 64px;
    padding: 60px 0 70px;
  }

  h1 {
    font-size: clamp(48px, 14.5vw, 70px);
  }

  .intro {
    margin-block: 28px 32px;
    font-size: 14px;
  }

  .email-field {
    display: grid;
    gap: 5px;
    border: 0;
    padding: 0;
    background: transparent;
  }

  .email-field input {
    min-height: 55px;
    border: 1px solid color-mix(in srgb, var(--paper) 32%, transparent);
  }

  .email-field button {
    min-height: 53px;
  }

  .hero-art {
    min-height: 420px;
    height: 112vw;
  }

  .photo-frame {
    inset: 2% 3% 2% 2%;
    padding: 9px 9px 40px;
    box-shadow: 13px 13px 0 var(--navy-light);
  }

  footer {
    min-height: 110px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Added for the plain-HTML version */
form > label + .email-field + .form-error,
.form-error {
  min-height: 16px;
  margin-top: 10px;
  color: #ff8a8a;
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.5px;
}

.email-field button:disabled {
  opacity: 0.6;
  cursor: wait;
}
