:root {
  --bg: #07111f;
  --bg-alt: #0d1a2f;
  --text: #f6f1e8;
  --text-soft: rgba(246, 241, 232, 0.74);
  --line: rgba(246, 241, 232, 0.12);
  --input-bg: rgba(255, 255, 255, 0.08);
  --accent: #f26767;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 18%, rgba(242, 103, 103, 0.08), transparent 22%),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.page-shell {
  min-height: 100vh;
  width: min(100% - 2rem, 780px);
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 2rem 0;
}

.hero {
  width: 100%;
  display: grid;
  justify-items: center;
}

.content-panel {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 1.6rem;
}

.show-logo {
  display: block;
  width: min(100%, 420px);
  height: auto;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.28));
  opacity: 0;
  transform: translateY(18px);
  animation: rise-in 900ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.page-title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text);
  opacity: 0;
  transform: translateY(16px);
  animation: rise-in 900ms cubic-bezier(0.2, 0.7, 0.2, 1) 120ms forwards;
}

.newsletter-form {
  width: min(100%, 560px);
  display: grid;
  gap: 1rem;
  opacity: 0;
  transform: translateY(16px);
  animation: rise-in 900ms cubic-bezier(0.2, 0.7, 0.2, 1) 240ms forwards;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

.field {
  display: grid;
}

.field input {
  width: 100%;
  height: 3.5rem;
  padding: 0 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.field input::placeholder {
  color: var(--text-soft);
}

.field input:focus {
  outline: none;
  border-color: rgba(242, 103, 103, 0.45);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(242, 103, 103, 0.1);
}

.consent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  color: var(--text-soft);
  font-size: 0.9rem;
  text-align: center;
}

.consent input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
}

.submit-button {
  justify-self: center;
  min-width: 180px;
  height: 3.25rem;
  padding: 0 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: #111c2d;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease;
}

.submit-button:hover,
.submit-button:focus-visible {
  transform: translateY(-1px);
  opacity: 0.94;
}

.submit-button:focus-visible {
  outline: 3px solid rgba(242, 103, 103, 0.16);
  outline-offset: 3px;
}

.form-status {
  min-height: 1.4rem;
  margin: 0;
  color: #ffc1c1;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  opacity: 0;
  transform: translateY(16px);
  animation: rise-in 900ms cubic-bezier(0.2, 0.7, 0.2, 1) 360ms forwards;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  padding: 0;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  background: transparent;
  transition: border-color 180ms ease, transform 180ms ease, color 180ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(242, 103, 103, 0.42);
  color: #ffffff;
}

.footer-links a:focus-visible {
  outline: 3px solid rgba(242, 103, 103, 0.14);
  outline-offset: 3px;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
}

.icon svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 1rem, 100%);
  }

  .content-panel {
    gap: 1.5rem;
  }

  .newsletter-form {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .consent {
    align-items: flex-start;
    text-align: left;
  }

  .submit-button,
  .footer-links a {
    width: 100%;
  }

  .footer-links a {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .show-logo,
  .page-title,
  .newsletter-form,
  .footer-links {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .field input,
  .submit-button,
  .footer-links a {
    transition: none;
  }
}
