/* ============================================================
   RAINCITY ATHLETICS — shared brand system
   Used by all three homepage directions.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800;900&family=Hanken+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Brand green — vivid spring green, the single strongest brand asset */
  --green:        #16c75a;
  --green-deep:   #0fa84a;
  --green-ink:    #064f23;

  /* Neutrals — cool, near-black ink on clean white */
  --ink:          #0b0c0c;
  --ink-2:        #1a1c1c;
  --ink-3:        #34383a;
  --paper:        #ffffff;
  --paper-2:      #f4f5f4;
  --line:         #e4e6e4;
  --line-2:       #d2d5d2;

  --muted:        #6a6f6d;

  /* Type */
  --display: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --body:    'Hanken Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1320px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

/* ---- shared layout helpers ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }

.kicker {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--green);
  display: inline-block;
}

/* ---- boxed RAINCITY logo (typographic recreation) ---- */
.logo {
  display: inline-flex;
  align-items: center;
  border: 2.5px solid var(--green);
  padding: 5px 9px 4px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.01em;
  color: var(--green);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.logo--ink { border-color: var(--ink); color: var(--ink); }
.logo--white { border-color: #fff; color: #fff; }

/* real logo lockup (image) */
.logo-img { display: inline-flex; align-items: center; line-height: 0; }
.logo-img img { height: 40px; width: auto; display: block; }
.logo-img--lg img { height: 52px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 16px 26px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease;
  text-transform: none;
  white-space: nowrap;
}
.btn .ar { transition: transform .2s ease; }
.btn:hover .ar { transform: translateX(4px); }

.btn--green { background: var(--green); color: var(--ink); }
.btn--green:hover { background: var(--green-deep); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-2); }
.btn--ghost { background: transparent; border-color: currentColor; }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--white { background: #fff; color: var(--ink); }

/* ---- photo placeholder ----
   Stands in for the user's B&W gym photography. Charcoal block,
   subtle diagonal texture, mono caption describing the intended shot. */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 9px),
    linear-gradient(150deg, #2b2e2f 0%, #141616 60%, #0c0d0d 100%);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: #fff;
}
.ph::after {
  content: attr(data-cap);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.62);
  padding: 12px 14px;
  text-transform: uppercase;
}
.ph .ph-mark {
  position: absolute;
  top: 12px; left: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}

/* real photo dropped into a placeholder — rendered B&W to stay on-brand */
.ph > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.97);
}
.ph.has-img::after,
.ph.has-img .ph-mark { display: none; }

/* reveal-on-scroll (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
  .rv.in { opacity: 1; transform: none; }
}
