:root {
  --cream: #FBE3CD;
  --plum: #4C1D33;
  --pink: #F47F7E;
  --olive: #766131;
  --terracotta: #CD4727;
  --rust: #AA3922;
}

* { box-sizing: border-box; }

html { background: var(--cream); }

body {
  margin: 0;
  min-width: 320px;
  color: var(--plum);
  background: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
}

.page-shell {
  height: 100svh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 0;
  padding: clamp(26px, 4vw, 58px);
  padding-bottom: clamp(42px, 5vh, 64px);
  display: grid;
  place-items: center;
}

.brand-mark {
  position: absolute;
  z-index: 4;
  top: clamp(26px, 4vw, 58px);
  left: clamp(26px, 4vw, 58px);
  display: flex;
  align-items: flex-start;
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: .9;
  color: var(--cream);
  text-shadow: 0 2px 18px rgba(76, 29, 51, .24);
}

.brand-mark span:last-of-type { color: inherit; }
.brand-mark sup {
  margin: -.15em 0 0 .38em;
  color: var(--cream);
  font-size: .4em;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.hero-copy {
  z-index: 3;
  width: min(940px, 100%);
  text-align: center;
  padding: clamp(72px, 9vh, 96px) 0 24px;
}

.eyebrow, .note {
  font-family: Arial, Helvetica, sans-serif;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--olive);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--plum);
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: clamp(4.5rem, 10.5vw, 9.5rem);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: .77;
  text-transform: uppercase;
}

h1 .headline-line {
  display: block;
  white-space: nowrap;
}

h1 .word { display: inline-block; }

.intro {
  margin: clamp(22px, 3vh, 30px) 0 0;
  color: var(--terracotta);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(.95rem, 1.55vw, 1.18rem);
  font-weight: 800;
  letter-spacing: .19em;
  line-height: 1.35;
  text-transform: uppercase;
}

.note {
  width: min(520px, 100%);
  margin: 10px auto 18px;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.55;
  text-align: center;
}

.note span { display: block; text-wrap: balance; }

.signup { width: min(520px, 100%); margin: 0 auto; }

.form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  padding: 0;
  border: 3px solid var(--plum);
  background: var(--cream);
  box-shadow: 8px 8px 0 var(--terracotta);
  transition: box-shadow .2s ease, transform .2s ease;
}

.form-row:focus-within {
  box-shadow: 11px 11px 0 var(--pink);
  transform: translate(-2px, -2px);
}

input, button { min-height: 48px; border: 0; border-radius: 0; font: inherit; }

input {
  min-width: 0;
  padding: 0 18px;
  color: var(--plum);
  outline: none;
  background: var(--cream);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .06em;
}

input::placeholder { color: rgba(76, 29, 51, .58); }
input:focus-visible { box-shadow: none; }

button {
  min-width: 172px;
  padding: 0 24px;
  border-left: 3px solid var(--plum);
  color: var(--plum);
  background: var(--pink);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}

button:hover { transform: none; color: var(--cream); background: var(--plum); }
button:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }

.form-status { min-height: 1.35em; margin: 9px 0 0; font-size: .86rem; }
.honeypot { position: absolute; left: -9999px; }
.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; }

.art {
  position: absolute;
  inset: -2.5%;
  z-index: -1;
  background-image: url("./complexitea-edge-graphics.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  will-change: transform;
}

.site-footer {
  position: relative;
  z-index: 6;
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(26px, 4vw, 58px);
  color: var(--cream);
  background: var(--plum);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.footer-contact { display: flex; align-items: center; gap: .7em; }
.footer-tagline { justify-self: end; }

.site-footer a {
  color: inherit;
  font: inherit;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--pink);
  text-decoration: underline;
  text-underline-offset: .25em;
}

@media (max-width: 640px) {
  .page-shell { height: auto; min-height: 100svh; }
  .hero { min-height: calc(100svh - 74px); }
  .hero { place-items: start center; }
  .hero-copy { padding: 145px 0 36px; }
  h1 { font-size: clamp(3.7rem, 18vw, 6rem); }
  .form-row { grid-template-columns: 1fr; }
  button { width: 100%; border-top: 3px solid var(--plum); border-left: 0; }
  .art { background-position: 52% center; background-size: auto 100%; }
  .site-footer {
    min-height: 104px;
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 7px;
  }
  .footer-contact { flex-wrap: wrap; gap: .45em .7em; }
  .footer-tagline { justify-self: start; }
}

@media (min-width: 641px) and (max-height: 760px) {
  .hero-copy { padding-top: 64px; }
  h1 { font-size: clamp(4.5rem, 9.2vw, 7.4rem); }
  .intro { margin-top: 20px; }
  .note { margin-bottom: 14px; }
}

@media (prefers-reduced-motion: no-preference) {
  .brand-mark { animation: reveal .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy { animation: copy-fade 1.45s cubic-bezier(.2,.7,.2,1) .28s both; }
  .eyebrow { animation: soft-pulse 2.8s ease-in-out 1.7s infinite; }
  h1 .word { animation: word-rise 1.1s cubic-bezier(.16,.75,.25,1) both; }
  h1 .word-one { animation-delay: .65s; }
  h1 .word-two { animation-delay: 1.1s; }
  h1 .word-three { animation-delay: 1.55s; }
  .art { animation: canvas-sway 7.2s ease-in-out infinite alternate; transform-origin: center; }
  @keyframes reveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes copy-fade { from { opacity: 0; transform: translateY(24px); filter: blur(4px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
  @keyframes word-rise { from { opacity: 0; transform: translateY(.28em); } to { opacity: 1; transform: translateY(0); } }
  @keyframes soft-pulse { 0%, 100% { opacity: .68; transform: scale(1); } 50% { opacity: 1; transform: scale(1.035); } }
  @keyframes canvas-sway { from { transform: translate3d(-.65%, -.3%, 0) rotate(-.28deg) scale(1.025); } to { transform: translate3d(.7%, .55%, 0) rotate(.3deg) scale(1.035); } }
}
