/* ---------- Design tokens ---------- */
:root {
  /* Dark, low-contrast firelit palette (from brand direction + logo) */
  --night:      #0c0a09;  /* near-black warm base */
  --night-2:    #100d0b;  /* barely-raised panels */
  --ink:        #070605;  /* deepest */
  --linen:      #ece3d4;  /* warm off-white text */
  --linen-soft: #c4b9a8;  /* secondary text */
  --muted:      #8c8174;  /* tertiary / labels */

  --ember:      #e8743b;  /* mid flame */
  --ember-deep: #c0532a;
  --glow:       #f3c25b;  /* candle/gold glow */

  --hairline:   rgba(236, 227, 212, 0.10);

  --maxw: 1080px;
  --readw: 620px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--linen);
  background: var(--night);
  line-height: 1.8;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--linen);
}

h1 { font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 300; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1.2rem; }

a { color: inherit; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--glow);
  margin-bottom: 1.4rem;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.95rem 1.9rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  color: #1a1106;
  background: linear-gradient(135deg, var(--glow), var(--ember));
  box-shadow: 0 0 0 rgba(232, 116, 59, 0);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(232, 116, 59, 0.28);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.2rem, 5vw, 3rem);
  background: rgba(12, 10, 9, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-mark { display: block; width: 40px; height: 40px; }
.brand-word {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--linen);
}
.nav { display: flex; gap: 1.8rem; align-items: center; }
.nav a {
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--linen-soft);
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--linen); }
.nav-cta { color: var(--glow) !important; }

/* Social icons */
.social { display: flex; align-items: center; gap: 0.35rem; }
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--linen-soft);
  transition: color 0.2s ease, background 0.2s ease;
}
.social-link:hover {
  color: var(--glow);
  background: rgba(243, 194, 91, 0.10);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  text-align: center;
  min-height: 92vh;
  padding: 5rem clamp(1.2rem, 5vw, 3rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% 78%, rgba(232, 116, 59, 0.22), transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 120%, rgba(243, 194, 91, 0.16), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--night) 55%, #15100c 100%);
}
.hero-inner { max-width: 680px; margin: 0 auto; position: relative; z-index: 1; }
.hero-mark {
  width: clamp(110px, 16vw, 150px);
  height: auto;
  margin-bottom: 1.8rem;
  filter: drop-shadow(0 0 40px rgba(232, 116, 59, 0.35));
}
.hero h1 { margin-bottom: 0.4em; }
.lede {
  font-size: 1.2rem;
  line-height: 1.7;
  margin: 0 auto 2.4rem;
  max-width: 30rem;
  color: var(--linen-soft);
}

/* ---------- Sections ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4.5rem, 11vw, 9rem) clamp(1.2rem, 5vw, 3rem);
}

.section-narrative { text-align: center; max-width: var(--readw); }
.narrative {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.6;
  color: var(--linen);
  margin: 0;
}

.section-lede {
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--linen-soft);
  font-size: 1.1rem;
}
.section-spaces { text-align: center; }
.section-spaces .eyebrow,
.section-narrative .eyebrow { display: block; }

/* Sensory anchors */
.anchors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.anchor h3 {
  font-style: italic;
  font-weight: 400;
  color: var(--glow);
  font-size: 1.4rem;
}
.anchor p { color: var(--linen-soft); margin: 0; }

/* Cinematic threshold band */
.threshold {
  text-align: center;
  padding: clamp(4rem, 9vw, 7rem) 1.5rem;
  background:
    radial-gradient(ellipse 60% 100% at 50% 50%, rgba(232, 116, 59, 0.14), transparent 70%),
    var(--ink);
}
.threshold p {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  line-height: 1.5;
  color: var(--linen);
  max-width: 30rem;
  margin: 0 auto;
}

/* The Spaces grid */
.spaces-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 3rem;
  text-align: left;
}
.space {
  flex: 1 1 300px;
  max-width: 360px;
  padding: 2rem 1.8rem;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(236, 227, 212, 0.02), transparent);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.space:hover { border-color: rgba(243, 194, 91, 0.35); transform: translateY(-3px); }
.space-role {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.space h3 { margin-bottom: 0.4rem; }
.space p { color: var(--linen-soft); margin: 0; font-size: 0.98rem; }

/* ---------- Signup ---------- */
.signup { text-align: center; max-width: var(--readw); }
.signup p:not([class]) { color: var(--linen-soft); }

.signup .signup-statement {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  line-height: 1.5;
  color: var(--linen);
  margin-bottom: 0.6rem;
}

.signup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}
.signup-form input[type="email"] {
  flex: 1 1 260px;
  padding: 0.95rem 1.2rem;
  font-size: 1rem;
  font-family: var(--font-body);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(236, 227, 212, 0.05);
  color: var(--linen);
}
.signup-form input::placeholder { color: var(--muted); }
.signup-form input:focus {
  outline: none;
  border-color: var(--glow);
  box-shadow: 0 0 0 3px rgba(243, 194, 91, 0.18);
}

.form-message {
  flex-basis: 100%;
  min-height: 1.4em;
  margin: 0.6rem 0 0;
  font-size: 0.95rem;
}
.form-message.is-success { color: var(--glow); }
.form-message.is-error { color: #f2a48b; }

.fineprint { margin-top: 1.2rem; font-size: 0.82rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border-top: 1px solid var(--hairline);
  background: var(--ink);
  color: var(--linen-soft);
}
.footer-mark { width: 64px; height: auto; opacity: 0.9; margin-bottom: 0.8rem; }
.footer-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--linen);
  margin: 0 0 0.2rem;
}
.footer-place { margin: 0 0 0.8rem; font-size: 0.92rem; }
.footer-tags {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--glow);
  margin: 0 0 1rem;
}
.footer-social {
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 1.4rem;
}
.footer-meta { font-size: 0.85rem; color: var(--muted); margin: 0; }
.footer-meta a { color: var(--linen-soft); text-decoration: none; }
.footer-meta a:hover { color: var(--glow); }

@media (max-width: 560px) {
  .site-header { padding: 0.9rem 1rem; }
  .nav { gap: 0.5rem; }
  /* Hide the text links on small screens, but keep the social icons + CTA */
  .nav > a:not(.nav-cta) { display: none; }
  /* Trim the wordmark a touch so it keeps its place beside the icons + CTA */
  .brand-word { font-size: 1.1rem; }
  .social { gap: 0.1rem; }
  .social-link { width: 30px; height: 30px; }
  body { line-height: 1.7; }
}

/* Tiny phones: logo mark alone, and keep the CTA on one line */
@media (max-width: 359px) {
  .brand-word { display: none; }
  .nav-cta { white-space: nowrap; }
}
