@font-face {
  font-family: "Poppins";
  src: url("/assets/Poppins-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/Poppins-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fbf6ee;
  --ink: #3a2e28;
  --muted: #6b625a;
  --terracotta: #c76b52;
  --terracotta-dark: #9a4d3d;
  --action: #b45a45;
  --action-hover: #8e4434;
  --teal: #5e8b86;
  --line: rgba(58, 46, 40, 0.18);
  --field: rgba(255, 253, 249, 0.86);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: "Poppins", "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse 52% 62% at 50% 42%, rgba(199, 107, 82, 0.2), transparent 70%),
    radial-gradient(ellipse 86% 100% at 50% 50%, transparent 48%, rgba(94, 139, 134, 0.14) 100%),
    var(--paper);
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4rem);
}

.card {
  width: min(100%, 45rem);
  text-align: center;
}

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

.mark {
  display: block;
  width: clamp(9rem, 24vw, 13.25rem);
  height: auto;
  margin: 0 auto clamp(-0.6rem, -1.2vw, -0.3rem);
}

.brand {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.7rem, 8.5vw, 4.9rem);
  font-weight: 600;
  font-synthesis: none;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.descriptor {
  margin: clamp(1rem, 2.4vw, 1.35rem) 0 0;
  color: var(--terracotta);
  font-size: clamp(0.84rem, 2.1vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.construction {
  margin: clamp(2.8rem, 7vw, 4.4rem) 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.signup {
  max-width: 35rem;
  margin: 1rem auto 0;
}

.signup h1 {
  margin: 0 0 1.15rem;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
}

input[type="email"] {
  width: 100%;
  min-height: 3.4rem;
  padding: 0.82rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--field);
  box-shadow: 0 0.5rem 2rem rgba(58, 46, 40, 0.045);
  color: var(--ink);
  font: inherit;
}

input[type="email"]::placeholder {
  color: #81766d;
  opacity: 1;
}

button {
  min-height: 3.4rem;
  padding: 0.82rem 1.45rem;
  border: 0;
  border-radius: 999px;
  background: var(--action);
  box-shadow: 0 0.6rem 1.8rem rgba(154, 77, 61, 0.16);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

button:hover {
  background: var(--action-hover);
  box-shadow: 0 0.8rem 2rem rgba(154, 77, 61, 0.22);
  transform: translateY(-1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(94, 139, 134, 0.58);
  outline-offset: 3px;
}

.consent-note {
  max-width: 31rem;
  margin: 0.8rem auto 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

a {
  color: var(--ink);
  text-decoration-color: rgba(58, 46, 40, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--terracotta-dark);
  text-decoration-color: currentColor;
}

.social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  margin-top: clamp(2rem, 5vw, 3rem);
  color: rgba(58, 46, 40, 0.38);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.social a {
  text-decoration: none;
}

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

.status {
  min-height: 1.35rem;
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.status[data-kind="success"] {
  color: #426b61;
}

.status[data-kind="error"] {
  color: #923f32;
}

.policy-shell {
  align-items: start;
}

.policy {
  padding: clamp(1.6rem, 5vw, 3.75rem);
  border: 1px solid rgba(58, 46, 40, 0.12);
  border-radius: 1.75rem;
  background: rgba(255, 253, 249, 0.76);
  box-shadow: 0 1.5rem 5rem rgba(58, 46, 40, 0.08);
  text-align: left;
  backdrop-filter: blur(12px);
}

.policy h1 {
  margin: 2rem 0 0.4rem;
  font-size: clamp(2rem, 6vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.policy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.policy .policy-date {
  font-size: 0.8rem;
}

.policy .policy-intro {
  margin-top: 2.25rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(58, 46, 40, 0.12);
  color: var(--ink);
  font-size: 1rem;
}

.policy section {
  margin-top: 2rem;
}

.policy h2 {
  margin: 0 0 0.55rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.back {
  font-weight: 600;
}

@media (max-width: 36rem) {
  .shell {
    place-items: start center;
    padding-top: clamp(2rem, 9vh, 4.5rem);
  }

  .mark {
    width: 9.6rem;
  }

  .brand {
    font-size: clamp(2.65rem, 13vw, 3.45rem);
  }

  .descriptor {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
  }

  .construction {
    margin-top: 2.65rem;
  }

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

  button {
    width: 100%;
  }

  .policy {
    border-radius: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
