/* Floating Sauna NZ — coming soon
   Nordic calm meets Central Otago: cream, schist, lake teal, ember. */

:root {
  --ink: #1c1916;
  --ink-soft: #4a433b;
  --cream: #f3eee5;
  --cream-deep: #e8e0d2;
  --ivory: #f7f3eb;
  --ember: #a3442f;
  --ember-hover: #8a3826;
  --schist: #241f1b;
  --schist-deep: #161310;
  --lake: #2b5f5a;
  --stone: #8a8074;
  --line: rgba(247, 243, 235, 0.28);
  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --measure: 38rem;
  --wrap: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--schist-deep);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--ivory);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
}

.skip:focus {
  top: 1rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ivory);
  isolation: isolate;
  overflow: hidden;
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: 50% 42%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(18, 16, 14, 0.38) 0%,
      rgba(18, 16, 14, 0.14) 34%,
      rgba(18, 16, 14, 0.28) 58%,
      rgba(18, 16, 14, 0.68) 100%
    );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  padding: clamp(1.5rem, 4vw, 2.75rem) clamp(1.25rem, 5vw, 4.5rem) 4.5rem;
}

.wordmark {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ivory);
}

.tagline {
  margin: 0;
  max-width: 11em;
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.85rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
}

.tagline span {
  display: block;
  margin-top: 0.35em;
  font-size: 0.68em;
  letter-spacing: -0.015em;
  font-weight: 400;
  opacity: 0.92;
}


/* ---------- Statement ---------- */

.statement {
  background: var(--cream);
  color: var(--ink);
  padding: clamp(4.5rem, 12vw, 9rem) 0 clamp(4.75rem, 11vw, 8.5rem);
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin: 0 auto;
}

.wrap-narrow {
  width: min(34rem, calc(100% - 2.5rem));
}

.brand-line {
  margin: 0 auto;
  max-width: 12ch;
  text-align: center;
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(2.35rem, 6.4vw, 5.15rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.brand-line span {
  display: block;
}

.just {
  margin: 1.75rem auto 0;
  max-width: 18em;
  text-align: center;
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ember);
}

.pitch {
  margin: 3rem auto 0;
  max-width: 28rem;
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.7;
  color: #3f3a34;
}

.pitch::before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 1px;
  margin: 0 auto 1.75rem;
  background: var(--ember);
  opacity: 0.85;
}

/* ---------- Waitlist ---------- */

.invite {
  background: var(--schist);
  color: var(--ivory);
  padding: clamp(4.25rem, 10vw, 7.5rem) 0;
}

.invite-title {
  margin: 0;
  text-align: center;
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.invite-copy {
  margin: 1rem auto 0;
  max-width: 28rem;
  text-align: center;
  color: rgba(247, 243, 235, 0.78);
  line-height: 1.65;
}

.waitlist {
  margin: 2.5rem auto 0;
  display: grid;
  gap: 1.35rem;
}

.field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.45rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 243, 235, 0.78);
}

.req,
.opt {
  letter-spacing: 0.08em;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 0.62rem;
}

.req {
  color: var(--ember-hover);
  color: #d48874;
}

.opt {
  color: var(--stone);
}

.field input {
  width: 100%;
  padding: 0.85rem 0 0.75rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ivory);
  font-family: inherit;
  font-size: 1.0625rem;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.2s var(--ease);
}

.field input::placeholder {
  color: rgba(247, 243, 235, 0.35);
}

.field input:hover {
  border-bottom-color: rgba(247, 243, 235, 0.5);
}

.field input:focus {
  border-bottom-color: var(--ivory);
}

.field input:focus-visible {
  outline: 2px solid rgba(43, 95, 90, 0.8);
  outline-offset: 4px;
}

.btn {
  margin-top: 0.6rem;
  appearance: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 1rem 1.5rem;
  border: 0;
  border-radius: 2px;
  background: var(--ember);
  color: var(--ivory);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover {
  background: var(--ember-hover);
}

.btn:active {
  transform: translateY(1px);
}

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

.btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.form-error {
  margin: 0;
  color: #e8b4a8;
  font-size: 0.9rem;
}

.thanks {
  margin: 2.5rem 0 0;
  text-align: center;
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--ivory);
}

.thanks:focus {
  outline: none;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--schist-deep);
  color: var(--stone);
  padding: 1.75rem clamp(1.25rem, 5vw, 4.5rem) calc(1.75rem + env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--ivory);
  text-decoration: none;
  border-bottom: 1px solid rgba(247, 243, 235, 0.3);
  transition: border-color 0.2s var(--ease);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  border-bottom-color: var(--ivory);
}

/* ---------- Responsive ---------- */

@media (max-width: 700px) {
  .hero {
    width: 100%;
    max-width: 100%;
    min-height: 70svh;
    height: auto;
    aspect-ratio: auto;
  }

  .hero-media img {
    object-position: 50% 40%;
  }

  .hero-inner {
    padding: 1.35rem 1.25rem 3.25rem;
  }

  .tagline {
    max-width: 11em;
  }

  .wrap,
  .wrap-narrow {
    width: min(var(--wrap), calc(100% - 2rem));
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding-top: 1.5rem;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  }
}

@media (min-width: 701px) {
  .hero-media img {
    object-position: 50% 40%;
  }
}

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

  .btn {
    transition: none;
  }
}
