:root {
  --charcoal: #1c1b18;
  --cream: #f4efe6;
  --sage: #7a8b6f;
  --sage-light: #a3b396;
  --sand: #c9b999;
  --stone: #8c857a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  height: 100%;
}

body {
  font-family: "IBM Plex Sans", sans-serif;
  background: var(--charcoal);
  color: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0.018;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 40px;
  position: relative;
  z-index: 1;
}

.icon {
  opacity: 0;
  animation: reveal 1s ease forwards 0.3s;
  margin-bottom: 36px;
}

.wordmark {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: 72px;
  letter-spacing: 3px;
  color: var(--cream);
  opacity: 0;
  animation: reveal 1s ease forwards 0.5s;
}

.rule {
  width: 32px;
  height: 1px;
  background: var(--sage);
  margin: 28px 0;
  opacity: 0;
  animation: reveal 1s ease forwards 0.7s;
}

.descriptor {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 3.5px;
  text-transform: lowercase;
  color: var(--stone);
  text-align: center;
  line-height: 2;
  opacity: 0;
  animation: reveal 1s ease forwards 0.9s;
}

.tagline {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 300;
  font-size: 17px;
  color: var(--sand);
  margin-top: 32px;
  letter-spacing: 0.3px;
  opacity: 0;
  animation: reveal 1s ease forwards 1.1s;
}

.email-section {
  margin-top: 56px;
  text-align: center;
  opacity: 0;
  animation: reveal 1s ease forwards 1.3s;
}

.email-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 20px;
}

.email-form {
  display: flex;
  gap: 0;
  max-width: 400px;
  margin: 0 auto;
}

.email-input {
  flex: 1;
  padding: 14px 20px;
  background: rgba(244, 239, 230, 0.06);
  border: 1px solid rgba(244, 239, 230, 0.1);
  border-right: none;
  border-radius: 4px 0 0 4px;
  color: var(--cream);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.3px;
  outline: none;
  transition: all 0.3s ease;
}

.email-input::placeholder {
  color: var(--stone);
  font-weight: 300;
}

.email-input:focus {
  border-color: var(--sage);
  background: rgba(244, 239, 230, 0.08);
}

.email-btn {
  padding: 14px 28px;
  background: var(--sage);
  border: 1px solid var(--sage);
  border-radius: 0 4px 4px 0;
  color: var(--cream);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.email-btn:hover {
  background: var(--sage-light);
  border-color: var(--sage-light);
}

.email-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.email-success {
  display: none;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 300;
  font-size: 15px;
  color: var(--sage-light);
  margin-top: 8px;
}

.email-success.show {
  display: block;
  animation: reveal 0.5s ease forwards;
}

.email-error {
  display: none;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 400;
  color: #c47a6a;
  margin-top: 8px;
}

.email-error.show {
  display: block;
  animation: reveal 0.5s ease forwards;
}

.email-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
  tab-index: -1;
}

.email-privacy {
  font-size: 11px;
  font-weight: 300;
  color: rgba(140, 133, 122, 0.6);
  margin-top: 14px;
}

footer {
  padding: 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.footer-link {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--stone);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--sage-light);
}

.footer-dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--stone);
}

.footer-copy {
  font-size: 10px;
  font-weight: 300;
  color: rgba(140, 133, 122, 0.4);
  margin-top: 16px;
}

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

@media (max-width: 600px) {
  main {
    padding: 60px 28px;
  }
  .wordmark {
    font-size: 44px;
    letter-spacing: 2px;
  }
  .email-form {
    flex-direction: column;
    gap: 10px;
  }
  .email-input {
    border-right: 1px solid rgba(244, 239, 230, 0.1);
    border-radius: 4px;
  }
  .email-btn {
    border-radius: 4px;
  }
  .footer-row {
    flex-direction: column;
    gap: 12px;
  }
  .footer-dot {
    display: none;
  }
}
