:root {
  --copper: #803B16;
  --copper-dark: #6a3011;
  --ink: #171411;
  --white: #FFFFFF;
  --cream: #F9EDDF;
  --sand: #D8BCA4;
  --clay: #B37453;

  --text: #4a2a18;
  --text-soft: #6e4a35;
  --line: rgba(128, 59, 22, 0.22);

  --serif: "Cormorant Garamond", "Bodoni Moda", Georgia, serif;
  --sans: "Montserrat", Arial, Helvetica, sans-serif;

  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse at 75% 20%, rgba(255, 255, 255, 0.55), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(216, 188, 164, 0.35), transparent 60%),
    var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--copper);
}

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}

/* Palm shadow */

.palm {
  position: fixed;
  top: -8vmax;
  left: -8vmax;
  width: 58vmax;
  max-width: 880px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.36;
  filter: blur(6px);
  transform-origin: 0 0;
  animation: sway 14s ease-in-out infinite alternate;
}

@keyframes sway {
  from { transform: rotate(-1.5deg) translate(0, 0); }
  to { transform: rotate(2deg) translate(6px, 4px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .palm { animation: none; }
}

main,
.footer {
  position: relative;
  z-index: 1;
}

/* Shared type */

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--copper);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--copper);
  line-height: 1.1;
  margin: 0;
}

/* Hero */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem 3rem;
}

.hero .eyebrow {
  animation: rise 1s ease-out both;
}

.logo {
  width: min(640px, 88vw);
  animation: rise 1.2s 0.1s ease-out both;
}

.logo img {
  width: 100%;
  height: auto;
}

.tagline {
  margin: 2.25rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  color: var(--text-soft);
  animation: rise 1.2s 0.3s ease-out both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow,
  .logo,
  .tagline,
  .countdown,
  .scroll-cue {
    animation: none;
  }
}

.countdown {
  display: flex;
  gap: clamp(1.25rem, 5vw, 3rem);
  margin-top: 2.5rem;
  animation: rise 1.2s 0.45s ease-out both;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 4.5rem;
}

.countdown-value {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 3.8rem);
  line-height: 1;
  color: var(--copper);
  font-variant-numeric: lining-nums tabular-nums;
}

.countdown-label {
  margin-top: 0.5rem;
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.scroll-cue {
  margin-top: 3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--copper);
  padding: 0.9rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
  animation: rise 1.2s 0.6s ease-out both;
}

.scroll-cue::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.scroll-cue:hover {
  background: var(--copper);
  border-color: var(--copper);
  color: var(--cream);
}

/* Sign-up card */

.join {
  padding: 2rem 1.25rem 5rem;
  display: flex;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: 620px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(128, 59, 22, 0.12);
  border-radius: var(--radius);
  padding: clamp(2rem, 6vw, 3.25rem);
  box-shadow: 0 30px 60px -40px rgba(128, 59, 22, 0.45);
  text-align: center;
}

.card h2 {
  font-size: clamp(2.1rem, 6vw, 2.8rem);
}

.lede {
  margin: 1rem auto 2rem;
  max-width: 30rem;
  color: var(--text-soft);
}

form {
  text-align: left;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 1rem;
}

@media (min-width: 560px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  margin: 0 0 1.15rem;
  border: 0;
  padding: 0;
  min-width: 0;
}

label,
legend {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
}

.optional {
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: none;
  color: var(--text-soft);
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input::placeholder {
  color: #a88c7a;
}

input:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(128, 59, 22, 0.15);
}

input[aria-invalid="true"] {
  border-color: #a3261b;
}

.interests {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.interests legend {
  width: 100%;
  float: left;
}

.chip {
  position: relative;
  margin: 0;
  cursor: pointer;
  letter-spacing: 0.14em;
  font-weight: 500;
}

.chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.chip span {
  display: inline-block;
  padding: 0.6rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.chip input:checked + span {
  background: var(--copper);
  border-color: var(--copper);
  color: var(--cream);
}

.chip input:focus-visible + span {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0.25rem 0 1.5rem;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.5;
  color: var(--text-soft);
  cursor: pointer;
  transition: opacity 0.2s;
}

.consent input {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.1rem 0 0;
  accent-color: var(--copper);
}

.consent.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.button {
  width: 100%;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--copper);
  border: 0;
  border-radius: 999px;
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 14px 30px -18px rgba(128, 59, 22, 0.9);
}

.button:hover {
  background: var(--copper-dark);
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}

.form-status {
  min-height: 1.5em;
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.88rem;
}

.form-status.is-error {
  color: #a3261b;
}

.fineprint {
  margin: 0.25rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-soft);
}

.card-success:focus {
  outline: none;
}

.success-star {
  margin: 0 auto 1.25rem;
  animation: twinkle 2.4s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0); opacity: 1; }
  50% { transform: scale(1.12) rotate(8deg); opacity: 0.85; }
}

@media (prefers-reduced-motion: reduce) {
  .success-star { animation: none; }
}

.card-success .lede {
  margin-bottom: 0.5rem;
}

/* Services */

.services {
  padding: 0 1.5rem 5rem;
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin: 0 auto 3rem;
}

.divider span {
  width: min(160px, 25vw);
  height: 1px;
  background: var(--copper);
  opacity: 0.55;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 760px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

.service h3 {
  font-size: 1.9rem;
  margin-bottom: 0.6rem;
}

.service p {
  margin: 0 auto;
  max-width: 20rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* Footer */

.footer {
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
  border-top: 1px solid var(--line);
  max-width: 1040px;
  margin: 0 auto;
}

.social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.social a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--copper);
  transition: background-color 0.2s, color 0.2s;
}

.social a:hover {
  background: var(--copper);
  color: var(--cream);
}

.social svg {
  width: 1.2rem;
  height: 1.2rem;
}

.contact {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.contact a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.copyright {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-soft);
}
