:root {
  --bone: #f4efe6;
  --ink: #2b2a26;
  --clay: #b6603f;
  --sienna: #c68a4a;
  --umber: #6b4423;
  --raffia: #c4a57b;
  --sage: #5c7148;
  --bisque: #e5d5b7;
  --white: #ffffff;

  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;

  --shadow: 0 24px 64px rgba(43, 42, 38, 0.08);
  --radius-card: 20px;
  --radius-input: 10px;
}

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

html {
  font-size: 16px;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 3rem;
  overflow: hidden;
}

/* Decorative background elements */
.decor {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.decor-dots {
  top: 2rem;
  left: 2rem;
  width: 140px;
  height: 140px;
  background-image: radial-gradient(circle, var(--raffia) 2px, transparent 2px);
  background-size: 18px 18px;
  opacity: 0.55;
}

.decor-circles {
  display: flex;
  align-items: center;
  gap: 0;
}

.decor-circles--top {
  top: 1.5rem;
  right: 1.5rem;
}

.decor-circles--bottom {
  bottom: 2rem;
  left: 1.5rem;
}

.circle {
  display: block;
  border-radius: 50%;
}

.circle--clay {
  width: 88px;
  height: 88px;
  background: var(--clay);
  opacity: 0.85;
}

.circle--sage {
  width: 72px;
  height: 72px;
  background: var(--sage);
  margin-left: -28px;
  opacity: 0.75;
}

.circle--sienna {
  width: 96px;
  height: 96px;
  background: var(--sienna);
  margin-right: -32px;
  opacity: 0.8;
}

.dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.decor-circles--top .dot--sienna {
  top: 8px;
  right: 100px;
  background: var(--sienna);
}

.decor-circles--top .dot--clay {
  bottom: 12px;
  right: 48px;
  background: var(--clay);
}

.decor-circles--bottom .dot--clay {
  top: 20px;
  left: 120px;
  background: var(--clay);
}

.decor-circles--bottom .dot--sienna {
  bottom: 8px;
  left: 80px;
  background: var(--sienna);
}

.decor-arcs {
  bottom: 1.5rem;
  right: 1.5rem;
  width: 100px;
  height: 100px;
  color: var(--clay);
  opacity: 0.7;
}

/* Main card */
.card {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem 2.25rem;
  text-align: center;
}

.illustration {
  max-width: 320px;
  margin: 0 auto 1.5rem;
}

.tag-scene {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tag-cloud {
  position: relative;
  width: 100%;
  height: 120px;
}

.tag {
  position: absolute;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.tag--1 {
  top: 18%;
  left: 8%;
  color: var(--clay);
  font-size: 1.35rem;
  animation-name: tag-float-a;
  animation-duration: 9s;
}

.tag--2 {
  top: 8%;
  right: 10%;
  color: var(--sage);
  font-size: 0.68rem;
  animation-name: tag-float-b;
  animation-duration: 10s;
  animation-delay: -2s;
}

.tag--3 {
  top: 42%;
  left: 22%;
  color: var(--sienna);
  font-size: 1.05rem;
  animation-name: tag-float-c;
  animation-duration: 8.5s;
  animation-delay: -4s;
}

.tag--4 {
  top: 38%;
  right: 6%;
  color: var(--umber);
  font-size: 0.62rem;
  animation-name: tag-float-d;
  animation-duration: 9.5s;
  animation-delay: -1s;
}

.tag--5 {
  bottom: 12%;
  left: 12%;
  color: var(--sage);
  font-size: 0.82rem;
  animation-name: tag-float-e;
  animation-duration: 11s;
  animation-delay: -5s;
}

.tag--6 {
  bottom: 8%;
  right: 14%;
  color: var(--clay);
  font-size: 1.2rem;
  animation-name: tag-float-f;
  animation-duration: 8s;
  animation-delay: -3s;
}

@keyframes tag-float-a {
  0%,
  100% {
    opacity: 0;
    transform: translate(0, 10px);
  }
  15%,
  55% {
    opacity: 0.9;
    transform: translate(6px, -4px);
  }
  70% {
    opacity: 0;
    transform: translate(10px, -12px);
  }
}

@keyframes tag-float-b {
  0%,
  100% {
    opacity: 0;
    transform: translate(0, 8px);
  }
  18%,
  58% {
    opacity: 0.85;
    transform: translate(-8px, -6px);
  }
  72% {
    opacity: 0;
    transform: translate(-12px, -14px);
  }
}

@keyframes tag-float-c {
  0%,
  100% {
    opacity: 0;
    transform: translate(-6px, 6px);
  }
  12%,
  52% {
    opacity: 0.8;
    transform: translate(4px, -8px);
  }
  68% {
    opacity: 0;
    transform: translate(8px, -16px);
  }
}

@keyframes tag-float-d {
  0%,
  100% {
    opacity: 0;
    transform: translate(4px, 10px);
  }
  20%,
  60% {
    opacity: 0.75;
    transform: translate(-6px, -2px);
  }
  75% {
    opacity: 0;
    transform: translate(-10px, -10px);
  }
}

@keyframes tag-float-e {
  0%,
  100% {
    opacity: 0;
    transform: translate(0, 12px);
  }
  16%,
  56% {
    opacity: 0.7;
    transform: translate(8px, -6px);
  }
  70% {
    opacity: 0;
    transform: translate(12px, -14px);
  }
}

@keyframes tag-float-f {
  0%,
  100% {
    opacity: 0;
    transform: translate(-4px, 8px);
  }
  14%,
  54% {
    opacity: 0.85;
    transform: translate(-8px, -4px);
  }
  69% {
    opacity: 0;
    transform: translate(-12px, -12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tag {
    animation: none;
    opacity: 0.65;
    transform: none;
  }
}

.headline {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.headline-main {
  display: block;
  color: var(--ink);
}

.headline-accent {
  display: inline-block;
  position: relative;
  color: var(--clay);
  font-style: italic;
}

.headline-accent::after {
  content: '';
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: 2px;
  height: 8px;
  background: var(--sienna);
  opacity: 0.45;
  border-radius: 4px;
  z-index: -1;
  transform: rotate(-1deg);
}

.description {
  max-width: 420px;
  margin: 0 auto 1.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--umber);
  opacity: 0.85;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 380px;
  margin: 0 auto;
}

.email-input {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bone);
  border: 1.5px solid var(--bisque);
  border-radius: var(--radius-input);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.email-input::placeholder {
  color: var(--raffia);
}

.email-input:focus {
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(182, 96, 63, 0.15);
}

.submit-btn {
  width: 100%;
  padding: 0.95rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--white);
  background: var(--clay);
  border: none;
  border-radius: var(--radius-input);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}

.submit-btn:hover:not(:disabled) {
  background: var(--umber);
}

.submit-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-message {
  min-height: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.4;
  margin-top: 0.25rem;
}

.form-message--success {
  color: var(--sage);
}

.form-message--error {
  color: var(--clay);
}

.attribution {
  position: relative;
  z-index: 1;
  margin-top: 1.5rem;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--umber);
  opacity: 0.65;
}

.attribution a {
  color: var(--clay);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.attribution a:hover {
  border-bottom-color: var(--clay);
  opacity: 1;
}

@media (max-width: 520px) {
  .decor-dots,
  .decor-arcs {
    opacity: 0.35;
    transform: scale(0.8);
  }

  .decor-circles--top {
    top: 0.5rem;
    right: 0.5rem;
    transform: scale(0.75);
    transform-origin: top right;
  }

  .decor-circles--bottom {
    bottom: 0.5rem;
    left: 0.5rem;
    transform: scale(0.75);
    transform-origin: bottom left;
  }

  .card {
    padding: 2rem 1.25rem 1.75rem;
  }
}
