:root {
  --color-bg:         #f4efe8;
  --color-bg-mid:     #ede6dc;
  --color-border:     #ddd0c0;
  --color-text:       #2a2018;
  --color-text-mid:   #6a5840;
  --color-text-muted: #b0a090;
  --color-accent:     #b85a30;
  --color-accent-mid: #d4784e;
  --color-accent-pale:#f0c4a8;
  --color-dark:       #1e1a14;
  --color-dark-mid:   #3a2e22;
  --color-white:      #ffffff;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  background: var(--color-bg);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 24px;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 4vh, 40px);
  text-align: center;
  max-width: 600px;
  width: 100%;
}

/* Logo */
.logo {
  opacity: 0;
  animation: fadeIn 800ms ease forwards;
  animation-delay: 0ms;
}

.logo svg {
  width: clamp(260px, 40vw, 400px);
  height: auto;
}

/* Pulse animation on the icon's inner circle group */
.icon-pulse {
  transform-origin: 38px 38px;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

/* Tagline */
.tagline {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(24px, 3.5vw, 36px);
  color: var(--color-text);
  letter-spacing: -0.3px;
  line-height: 1.3;
  opacity: 0;
  animation: fadeIn 800ms ease forwards;
  animation-delay: 200ms;
}

/* Subcopy */
.subcopy {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: clamp(11px, 1.4vw, 14px);
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: -8px;
  opacity: 0;
  animation: fadeIn 800ms ease forwards;
  animation-delay: 400ms;
}

/* Form section */
.form-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: clamp(280px, 50vw, 380px);
  opacity: 0;
  animation: fadeIn 800ms ease forwards;
  animation-delay: 600ms;
}

.form-wrap {
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid var(--color-border);
  width: 100%;
}

.form-wrap input {
  flex: 1;
  border: none;
  outline: none;
  background: var(--color-white);
  padding: 14px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--color-text-mid);
  min-width: 0;
}

.form-wrap input::placeholder {
  color: var(--color-text-muted);
}

.form-wrap button {
  border: none;
  cursor: pointer;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 14px 22px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: background 200ms ease;
}

.form-wrap button:hover {
  background: var(--color-accent-mid);
}

.form-hint {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  color: var(--color-text-muted);
  text-align: center;
  letter-spacing: 0.05em;
}

/* Success message */
.success-message {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(24px, 3.5vw, 36px);
  color: var(--color-text);
  opacity: 0;
  animation: fadeIn 800ms ease forwards;
}

/* Error message */
.error-message {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--color-accent);
  text-align: center;
}

/* Footer */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  opacity: 0;
  animation: fadeIn 800ms ease forwards;
  animation-delay: 800ms;
}

footer a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 200ms ease;
}

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

/* Fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile fine-tuning */
@media (max-width: 480px) {
  body {
    padding: 32px 20px;
  }

  .form-wrap {
    flex-direction: column;
    border-radius: 10px;
  }

  .form-wrap input {
    padding: 13px 16px;
    font-size: 13px;
    border-bottom: 1.5px solid var(--color-border);
  }

  .form-wrap button {
    padding: 13px 18px;
    font-size: 12px;
    border-radius: 0 0 8px 8px;
  }
}