:root {
  --charcoal: #1C1B19;
  --alabaster: #EFECE6;
  --stone: #57534B;
  --ash: #8C877E;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: var(--charcoal);
  color: var(--alabaster);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Section 8.1: hero content centred on the wordmark's own axis */
.stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8vh 6vw;
}

.center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mark {
  width: min(38vw, 420px);
  height: auto;
  min-width: 190px; /* Section 2.4 floor: below this the wordmark stroke recedes below 2px */
  opacity: 0;
  animation: reveal 1.1s ease-out 0.15s forwards;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .mark {
    animation: none;
    opacity: 1;
  }
}

/* Honeypot field -- hidden from sighted users and screen readers, left for bots */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notify {
  margin-top: 56px;
  width: 100%;
  max-width: 380px;
  opacity: 0;
  animation: reveal 1.1s ease-out 0.45s forwards;
}

@media (prefers-reduced-motion: reduce) {
  .notify { animation: none; opacity: 1; }
}

.notify-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.notify input[type="email"] {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--stone);
  color: var(--alabaster);
  font-size: 15px;
  padding: 10px 2px;
  font-family: inherit;
  border-radius: 0;
  transition: border-color 0.2s ease;
}

.notify input[type="email"]::placeholder {
  color: var(--ash);
}

.notify input[type="email"]:focus {
  outline: none;
  border-bottom-color: var(--bronze, #C08F4A);
}

/* Section 3.6 / 3.4: Charcoal text on a Bronze fill -- the accessible, approved pairing.
   Never white text on Bronze -- that pair fails contrast at 2.89:1. */
.notify button {
  flex-shrink: 0;
  background: #C08F4A;
  color: var(--charcoal);
  border: none;
  border-radius: 0;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: opacity 0.2s ease;
  font-family: inherit;
}

.notify button:hover {
  opacity: 0.88;
}

.notify button:focus-visible {
  outline: 2px solid var(--alabaster);
  outline-offset: 2px;
}

.notify-message {
  min-height: 18px;
  margin: 12px 0 0;
  font-size: 13px;
  text-align: center;
}

/* Section 3.3: functional colours, UI-only -- this is exactly that: form status feedback */
.notify-message.is-success { color: #7FA98A; }
.notify-message.is-error { color: #D08A82; }

.notify.is-done .notify-row {
  display: none;
}

.foot {
  flex-shrink: 0;
  text-align: center;
  padding: 0 0 4vh;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ash);
}

@media (max-width: 480px) {
  .mark { width: min(62vw, 320px); }
}
