/* ============================================================
   HARLEM CLUBHOUSE TARIFA
   Colours and fonts live here, at the top. Change them once
   and the whole site follows.
   ============================================================ */

:root {
  /* accent taken from the Clubhouse logo in /brand (teal #00C1B0) */
  --color-accent: #00C1B0;
  --color-accent-ink: #00756A;   /* darker teal, readable as text on white */
  --color-bg: #FFFFFF;
  --color-ink: #0B0F0E;
  --color-muted: #6B7572;
  --color-dark: #0B0F0E;
  --color-line: #E4E8E7;
  --color-live: #FF3B30;

  --font-heading: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: 20px;
  --wrap: 1120px;
  --radius: 4px;
}

/* ---------------------------------------------------- base */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--color-accent); color: var(--color-ink); }

/* the hidden attribute must win over any display rule below */
[hidden] { display: none !important; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
}

p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--color-ink);
  outline-offset: 3px;
}

.cam :focus-visible,
.footer :focus-visible {
  outline-color: var(--color-accent);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.section__label {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--color-muted);
  font-weight: 700;
  margin-bottom: 14px;
}

.section__title { font-size: clamp(30px, 7.5vw, 52px); }

.section__sub {
  color: var(--color-muted);
  font-size: 17px;
}

.section__head {
  display: grid;
  gap: 10px;
}

@media (min-width: 860px) {
  .section__head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 48px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--color-line);
  }

  .section__sub {
    text-align: right;
    max-width: 30ch;
  }
}

/* ---------------------------------------------------- buttons and links */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.12s ease, background-color 0.12s ease;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-ink);
}

.btn--primary:hover { background: #00AC9D; }
.btn--primary:active { transform: translateY(1px); }

.btn--big {
  min-height: 56px;
  padding: 14px 34px;
  font-size: 17px;
  width: 100%;
  max-width: 420px;
}

.link {
  color: var(--color-accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.link--muted { color: var(--color-muted); }
.link--quiet { color: inherit; opacity: 0.8; }

/* ---------------------------------------------------- header */

.header {
  padding: 16px 0;
  border-top: 3px solid var(--color-accent);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header__brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.header__logo {
  height: 26px;
  width: auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-accent-ink);
}

.header__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-ink);
}

/* ---------------------------------------------------- webcam */

.cam {
  background: var(--color-dark);
  color: #fff;
  padding: 18px 0 30px;
}

.cam__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
}

.cam__place,
.cam__status {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cam__place { color: #8E9896; }

.cam__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 5px 12px;
}

.cam__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  flex: none;
}

.cam[data-cam="live"] .cam__dot {
  background: var(--color-live);
  animation: pulse 1.8s ease-in-out infinite;
}

.cam[data-cam="offline"] .cam__dot { background: #5C6764; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

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

.cam__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: auto;
  margin-inline: calc(var(--gutter) * -1);
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cam__embed {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
  background: #000;
}

.cam__frame[data-state="soon"]::before,
.cam__frame[data-state="offline"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(58% 68% at 50% 44%, rgba(0, 193, 176, 0.20), transparent 68%);
}

.cam__card {
  position: relative;
  text-align: center;
  padding: 24px var(--gutter);
  max-width: 460px;
}

.cam__title {
  font-size: clamp(24px, 6.2vw, 38px);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cam__text {
  color: #C3CCC9;
  margin: 0 auto 22px;
  max-width: 30ch;
  font-size: 15px;
}

.cam__next {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: baseline;
  margin-bottom: 4px;
  font-size: 14px;
}

.cam__next-date {
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.cam__next-title { color: #fff; }

/* ---------------------------------------------------- wind */

.wind { padding: 34px 0; border-bottom: 1px solid var(--color-line); }

.wind__data {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.wind__speed {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 54px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.wind__unit {
  font-size: 18px;
  margin-left: 4px;
  color: var(--color-muted);
}

.wind__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 15px;
  color: var(--color-muted);
}

.wind__gusts strong { color: var(--color-ink); margin-left: 4px; font-weight: 700; }

.wind__direction {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-ink);
  font-weight: 700;
}

.wind__arrow { color: var(--color-accent-ink); transition: transform 0.4s ease; }

.wind__name {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--color-accent-ink);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 2px 10px;
}

.wind__note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--color-muted);
}

.wind__note .link { min-height: 0; }

/* ---------------------------------------------------- join */

.join { padding: 52px 0; }

.join__inner { display: flex; flex-direction: column; align-items: flex-start; }

.join__title { font-size: clamp(34px, 10vw, 64px); }

.join__text {
  color: var(--color-muted);
  margin: 12px 0 24px;
  max-width: 34ch;
  font-size: 17px;
}

.join .link--muted { margin-top: 6px; }

/* ---------------------------------------------------- next up */

.next { padding: 52px 0; }

.card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 22px;
}

.card--empty { display: flex; flex-direction: column; align-items: flex-start; }

.card__title { font-size: 22px; }

.card__text { color: var(--color-muted); margin-top: 8px; }

.card--empty .btn { margin-top: 18px; }

.event { padding: 0; overflow: hidden; }

.event__image { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

.event__body { padding: 22px; }

.event__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 10px;
}

.event__date { color: var(--color-accent-ink); font-weight: 700; }

.event .link--arrow { margin-top: 10px; }

/* ---------------------------------------------------- partners */

.tarifa { padding: 52px 0; }

.partners {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 30px;
}

.partner {
  display: block;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  background: #fff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.partner:hover { border-color: var(--color-accent); }

.partner:hover .partner__logo { opacity: 1; }

.partner__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: rgba(0, 193, 176, 0.12);
  margin-bottom: 16px;
}

/* Every logo file is drawn on the same 3:1 canvas, scaled to the same
   optical area and centred on the same axis, so a round badge and a long
   wordmark carry equal weight and line up across the grid. */
.partner__mark--logo {
  width: 100%;
  height: 60px;
  align-items: center;
  justify-content: flex-start;
  background: none;
  border-radius: 0;
  margin-bottom: 18px;
}

/* A fixed box, so the logo has a size before it loads. An auto sized
   lazy image measures zero, and a zero sized lazy image is never
   fetched at all. The box also lines every logo up the same way. */
.partner__logo {
  width: 180px;
  height: 60px;
  object-fit: contain;
  object-position: left center;
  opacity: 0.9;
  transition: opacity 0.16s ease;
}

.partner__initials {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17px;
  color: var(--color-accent-ink);
  letter-spacing: 0.02em;
}

.partner__category {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 700;
  margin-bottom: 4px;
}

.partner__name { font-size: 19px; letter-spacing: -0.005em; }

.partner__text { color: var(--color-muted); margin-top: 6px; }

.partner__perk {
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: rgba(0, 193, 176, 0.12);
  color: var(--color-accent-ink);
  font-size: 14px;
  font-weight: 600;
}

/* ---------------------------------------------------- footer */

.footer {
  background: var(--color-dark);
  color: #fff;
  padding: 40px 0 44px;
}

.footer__inner { display: grid; gap: 26px; }

.footer__logo { height: 30px; width: auto; margin-bottom: 20px; }

@media (min-width: 860px) {
  .footer__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 56px;
    align-items: start;
  }

  .footer__links { text-align: right; }
  .footer__links .footer__brands { justify-content: flex-end; }
  .footer__notice { grid-column: 1 / -1; }
}

.footer__line { color: #B9C2BF; }

.footer__tagline--logo { margin-top: 18px; }

.footer__tagline-logo {
  width: 100%;
  max-width: 260px;
  height: auto;
}

@media (min-width: 720px) {
  .footer__tagline-logo { max-width: 300px; }
}

.footer__tagline {
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 22px;
  color: var(--color-accent);
  margin-top: 6px;
}

.footer__brands {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.footer__brand:hover { border-bottom-color: var(--color-accent); }
.footer__brand--plain { border-bottom: 0; color: #8E9896; }

.sponsor { margin-top: 4px; }

.sponsor__label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8E9896;
  margin-bottom: 10px;
}

.sponsor__link { display: inline-flex; align-items: center; min-height: 44px; }
.sponsor__logo { max-height: 34px; width: auto; }
.sponsor__name { font-weight: 700; }
.sponsor__ask { font-size: 14px; }
.sponsor__ask .link { color: var(--color-accent); }
.sponsor__ask-text { color: #8E9896; }

.footer__notice {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: #8E9896;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: center;
}

/* ---------------------------------------------------- tablet */

@media (min-width: 720px) {
  :root { --gutter: 32px; }

  .header { padding: 22px 0; }
  .header__logo { height: 30px; }

  .cam { padding: 26px 0 40px; }
  .cam__frame {
    margin-inline: 0;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.09);
  }

  .wind { padding: 28px 0 30px; }
  .wind__data { gap: 10px 34px; }
  .wind__speed { font-size: 64px; }

  .join { padding: 72px 0; }
  .next { padding: 72px 0; }
  .tarifa { padding: 72px 0; }
  .btn--big { width: auto; }

  .partners { grid-template-columns: repeat(2, 1fr); gap: 18px; }

  .footer { padding: 52px 0 56px; }
}

/* ---------------------------------------------------- desktop */

@media (min-width: 1000px) {
  .partners { grid-template-columns: repeat(3, 1fr); }
  .join { padding: 88px 0; }
  .next { padding: 88px 0; }
  .tarifa { padding: 88px 0; }
  .event { display: flex; }
  .event__image { width: 320px; height: auto; flex: none; }
}

/* ---------------------------------------------------- privacy page */

.legal { padding: 8px 0 56px; }
.legal .wrap { max-width: 800px; }
.legal__h { font-size: 18px; margin-top: 30px; margin-bottom: 8px; }
.legal p { color: var(--color-muted); margin-bottom: 12px; }
.legal__back { margin-top: 32px; }

/* ---------------------------------------------------- header lockup */

.header__lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.header__sep {
  width: 1px;
  height: 24px;
  background: var(--color-line);
  flex: none;
}

.header__venue {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.header__venue-logo {
  height: 32px;
  width: auto;
}

@media (min-width: 720px) {
  .header__lockup { gap: 16px; }
  .header__sep { height: 28px; }
  .header__venue-logo { height: 38px; }
}
