:root {
  --canvas: #f8f5f4;
  --ink: #252220;
  --muted: #6c6661;
  --blue: #1675cc;
  --blue-dark: #0b579c;
  --line: rgba(37, 34, 32, 0.18);
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
}

* { box-sizing: border-box; }

html {
  height: 100%;
  overflow: hidden;
  scroll-behavior: smooth;
}

body {
  height: 100%;
  min-width: 20rem;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection { color: var(--canvas); background: var(--blue); }

.site-header {
  position: fixed;
  z-index: 10;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.25rem;
  padding: 1rem var(--gutter);
  border-bottom: 1px solid var(--line);
  font: 500 0.69rem/1.2 "DM Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header p { margin: 0; color: var(--muted); }

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  border-radius: 0.25rem;
  color: inherit;
  text-decoration: none;
}

.wordmark:focus-visible,
.contact a:focus-visible,
.updates button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.coming-soon {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(22rem, 1.12fr);
  height: 100svh;
  overflow: hidden;
}

.message {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: clamp(8rem, 15vh, 10rem) var(--gutter) clamp(2.25rem, 6vh, 4.5rem);
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--blue-dark);
  font: 500 0.72rem/1.2 "DM Mono", monospace;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(5rem, 9.3vw, 9.5rem);
  font-weight: 500;
  line-height: 0.78;
  letter-spacing: -0.075em;
}

h1 span,
h1 em { display: block; }

h1 em {
  color: var(--blue);
  font-family: "Newsreader", Georgia, serif;
  font-weight: 400;
}

.contact {
  display: grid;
  gap: clamp(1rem, 2.5vh, 1.5rem);
  width: min(100%, 33rem);
}

.updates label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--ink);
  font: 500 0.69rem/1.2 "DM Mono", monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.updates label span { color: var(--muted); font-weight: 400; }

.signup-row {
  display: flex;
  border-bottom: 1px solid var(--ink);
}

.signup-row:focus-within {
  border-color: var(--blue);
  box-shadow: 0 2px 0 var(--blue);
}

.signup-row input {
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  padding: 0.65rem 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: 500 0.95rem/1.2 "Manrope", sans-serif;
}

.signup-row input::placeholder { color: var(--muted); opacity: 1; }

.signup-row input[aria-invalid="true"] { color: #9f2d26; }

.signup-row button {
  flex: 0 0 auto;
  min-width: 7.5rem;
  min-height: 3rem;
  padding: 0.65rem 0.75rem;
  border: 0;
  border-radius: 0.25rem;
  color: var(--canvas);
  background: var(--blue-dark);
  font: 500 0.7rem/1.2 "DM Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 180ms ease;
}

.signup-row button:hover { background: var(--blue); }
.signup-row button:disabled { cursor: wait; opacity: 0.7; }

.form-note {
  min-height: 1.1rem;
  margin: 0.45rem 0 0;
  color: var(--muted);
  font: 400 0.64rem/1.4 "DM Mono", monospace;
  letter-spacing: 0.03em;
}

.form-note.error { color: #9f2d26; }
.form-note.success { color: var(--blue-dark); font-weight: 500; }
.trap { position: absolute; left: -9999px; opacity: 0; }

.contact-links > p {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.25vw, 1.08rem);
  line-height: 1.5;
}

.email {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 600;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

.contact-links nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-top: 0.4rem;
}

.contact-links nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  border-radius: 0.25rem;
  color: var(--blue-dark);
  font: 500 0.71rem/1.2 "DM Mono", monospace;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}

.contact a { transition: color 180ms ease; }
.contact a:hover { color: var(--blue); }

.theremeow {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: clamp(6.5rem, 10vh, 8rem) var(--gutter) clamp(2rem, 4vh, 3rem);
  overflow: hidden;
}

.theremeow img {
  display: block;
  width: min(100%, 48rem);
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.theremeow figcaption {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(1.25rem, 3vh, 2rem);
  color: var(--muted);
  font: 400 0.66rem/1.3 "DM Mono", monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 800px) {
  .site-header p { display: none; }

  .coming-soon {
    position: relative;
    display: block;
  }

  .message {
    height: 100%;
    padding-top: 6.5rem;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  }

  .headline-wrap { position: relative; z-index: 2; }
  .eyebrow { margin-bottom: 0.75rem; }

  h1 {
    max-width: 5ch;
    font-size: clamp(4.25rem, 20vw, 6.75rem);
  }

  .contact {
    position: relative;
    z-index: 2;
    max-width: min(74vw, 29rem);
  }

  .contact-links > p { max-width: 17rem; }
  .contact-links nav { gap: 0.25rem 1.1rem; }

  .theremeow {
    position: absolute;
    z-index: 1;
    top: 33%;
    right: 2vw;
    bottom: auto;
    width: min(55vw, 26.5rem);
    height: auto;
    padding: 0;
    pointer-events: none;
  }

  .theremeow img { width: 100%; }
  .theremeow figcaption { display: none; }
}

@media (min-width: 521px) and (max-width: 800px) {
  .contact { max-width: 46vw; }
  .theremeow { top: 30%; right: -4vw; width: 50vw; }
}

@media (max-width: 520px) {
  .message { padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
  .contact { gap: 0.6rem; max-width: 68vw; }
  .updates label { font-size: 0.61rem; }
  .signup-row input { min-height: 2.75rem; font-size: 0.84rem; }
  .signup-row button { min-width: 5.4rem; min-height: 2.75rem; padding-inline: 0.5rem; font-size: 0.62rem; }
  .form-note { margin-top: 0.25rem; font-size: 0.57rem; }
  .contact-links > p { margin-bottom: 0; font-size: 0.8rem; line-height: 1.35; }
  .email { font-size: 0.82rem; }
  .contact-links nav { flex-wrap: nowrap; gap: 0.75rem; margin-top: 0; }
  .contact-links nav a { min-height: 2.5rem; font-size: 0.58rem; }
  .theremeow { top: 35%; right: -8vw; width: 52vw; }
}

@media (max-width: 800px) and (max-height: 700px) {
  .message { padding-top: 5.8rem; }
  .eyebrow { margin-bottom: 0.5rem; }
  h1 { font-size: clamp(3.5rem, 18vw, 5rem); }
  .contact { gap: 0.45rem; }
  .contact-links > p { margin-bottom: 0; }
  .contact-links nav { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .contact a,
  .signup-row button { transition: none; }
}
