/* =========================================================
   COMMUNITY — Manila · Coming-soon teaser
   Built to "Initial Community Branding" guidelines:
   Outfit (display + UI), Geist Light (body).
   ========================================================= */

:root {
  /* Primary palette */
  --white:    #FFFFFF;
  --cream:    #E7D7C6;  /* Warm cream */
  --charcoal: #1C2127;  /* Charcoal Black */

  --gutter: clamp(1rem, 4vw, 3rem);

  --font-display: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Geist", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--white);
  background: #3b2618; /* clubroom wood, shows while the photo loads */
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

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

/* Tracked caps label — the "BRAND IDENTITY" style from the guidelines */
.bar, .join-eyebrow, .join-form button, .lockup-city {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
}

/* ---------- Layout: one full-bleed screen ---------- */
.teaser {
  position: relative;
  /* Definite height so the 1fr row (the lockup) takes the spare space */
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  overflow: hidden;
  isolation: isolate;
}
.teaser-img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}
.teaser::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.30) 0%, rgba(0,0,0,0) 20%,
    rgba(0,0,0,0) 45%, rgba(0,0,0,0.55) 100%);
}

/* ---------- Top + bottom bars ---------- */
.bar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  padding: 1.6rem var(--gutter);
}
.bar-club { width: 18px; height: 18px; fill: var(--white); }
.bar-links { display: flex; gap: 1.4rem; }
.bar-link {
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.6);
  padding-bottom: 2px;
  opacity: 0.9;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.bar-link:hover { opacity: 1; border-color: var(--white); }
.bar-bottom { opacity: 0.7; padding-top: 1rem; }

/* ---------- Lockup (as on the guidelines cover) ---------- */
.lockup {
  align-self: center;
  text-align: center;
  padding: 2rem var(--gutter);
}
.lockup-wordmark {
  width: clamp(220px, 34vw, 520px);
  height: auto;
  aspect-ratio: 4.686;
  fill: var(--white);
  vertical-align: top;
}
.lockup-copy {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.9rem, 1.5vw, 1.4rem);
  line-height: 1;
  vertical-align: top;
  margin-left: 0.15em;
}
.lockup-city {
  letter-spacing: 0.42em;
  font-size: clamp(0.72rem, 1.05vw, 0.95rem);
  margin-top: clamp(0.6rem, 1.4vw, 1.2rem);
  padding-left: 0.42em; /* optically centre the tracked word */
}

/* ---------- Join the club ---------- */
.join {
  justify-self: center;
  width: 100%;
  max-width: 460px;
  padding: 0 var(--gutter) 2rem;
  text-align: center;
}
.join-eyebrow { opacity: 0.85; margin-bottom: 0.75rem; }
.join-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  letter-spacing: 0.005em;
  margin-bottom: 1.5rem;
}
.join-form {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.75);
}
.join-form input {
  flex: 1; min-width: 0;
  padding: 0.85rem 0.1rem;
  border: 0;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
}
.join-form input::placeholder { color: rgba(255,255,255,0.7); }
.join-form input:focus { outline: none; }
.join-form:focus-within { border-bottom-color: var(--white); }
.join-form button {
  background: none;
  border: 0;
  color: var(--white);
  padding: 0.85rem 0 0.85rem 1rem;
  cursor: pointer;
  opacity: 0.9;
}
.join-form button:hover { opacity: 1; }
.form-message {
  min-height: 1.4em;
  margin-top: 0.9rem;
  font-size: 0.88rem;
  color: var(--cream);
}

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
  .teaser-img { object-position: 64% 50%; }
  .bar-links { gap: 1rem; }
  .bar-bottom { flex-direction: column; gap: 0.35rem; text-align: center; }
  .chant span { display: block; }
}

/* Take the <picture> wrapper out of the grid so it doesn't claim a row */
.teaser picture { position: absolute; inset: 0; z-index: -2; }

/* Honeypot field — kept out of sight and out of the tab order */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Wide screens: lockup is part of the photo ---------- */
@media (min-aspect-ratio: 3/4) {
  .teaser-img { object-position: 50% 50%; }
  /* Keep the SVG lockup for layout + screen readers, hide it visually */
  .lockup { visibility: hidden; }
}
