/* ============================================
   Global Shapers Brooklyn Hub — Design Tokens
   ============================================ */
:root {
  --ink: #12173A;
  --paper: #FFFFFF;
  --panel: #F1F4FB;
  --brass: #1550E0;
  --steel: #CBD5EA;
  --slate: #5B6478;
  --line: rgba(18, 23, 58, 0.1);
  --max-w: 1080px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

@font-face { font-display: swap; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .headline {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-stretch: condensed; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 700; }

p { max-width: 62ch; color: var(--ink); }
p.lede { max-width: 48ch; color: var(--slate); font-size: 1.15rem; }

a { color: var(--brass); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- Header / nav ---------- */
header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  z-index: 20;
}

.nav-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.15;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.brand img.logo-icon { height: 38px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-sub { color: var(--brass); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.02em; }
.brand-main { font-weight: 800; font-size: 1.05rem; }

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--slate);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}
nav a:hover, nav a[aria-current="page"] { color: var(--ink); text-decoration: none; }
nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  background: var(--brass);
  border-radius: 2px;
}
nav a.apply-link {
  background: var(--brass);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
}
nav a.apply-link:hover { background: #0F3FB8; color: #fff; }
nav a.apply-link[aria-current="page"]::after { display: none; }

.nav-toggle { display: none; background: none; border: none; color: var(--ink); font-size: 1.6rem; cursor: pointer; }

@media (max-width: 720px) {
  nav ul { position: absolute; top: 68px; left: 0; right: 0; background: var(--paper); flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); display: none; box-shadow: 0 8px 16px rgba(18,23,58,0.06); }
  nav ul.open { display: flex; }
  nav a { display: block; padding: 1rem var(--pad); border-bottom: 1px solid var(--line); }
  nav a.apply-link { margin: 0.75rem var(--pad); text-align: center; }
  .nav-toggle { display: block; }
}

/* ---------- Cable-line motif ---------- */
.cable-line {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--steel);
}
.cable-line::before {
  content: '';
  position: absolute;
  left: -6px; top: 0.4em;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--brass);
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
  position: relative;
  overflow: hidden;
}
.hero .eyebrow { color: var(--brass); font-weight: 700; font-size: 0.95rem; margin-bottom: 0.75rem; }
.hero .subhead { color: var(--slate); font-weight: 700; font-size: 1.15rem; margin: -0.3rem 0 1rem; font-family: 'Archivo', sans-serif; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 800px) { .hero-grid { grid-template-columns: 1fr; } }

.stat-block { display: flex; gap: 2.2rem; flex-wrap: wrap; margin-top: 1.5rem; }
.stat { border-left: 2px solid var(--steel); padding-left: 0.9rem; }
.stat .num { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 2rem; color: var(--brass); display: block; }
.stat .lbl { color: var(--slate); font-size: 0.85rem; }

.hero-photo { width: 100%; height: auto; border-radius: 8px; display: block; box-shadow: 0 12px 32px rgba(18,23,58,0.12); }

/* ---------- Sections ---------- */
section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
section.on-panel { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head .tag { color: var(--slate); font-weight: 600; }

/* ---------- Grid / list items (avoid generic cards: use divided rows) ---------- */
.stop-list { list-style: none; margin: 0; padding: 0; }
.stop-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}
.stop-list li:last-child { border-bottom: 1px solid var(--line); }
.stop-list.with-images li { grid-template-columns: 90px 120px 1fr; }
.stop-list .stop-mark { color: var(--brass); font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 0.95rem; }
.stop-list.emoji-list .stop-mark { font-size: 2.4rem; line-height: 1; }
.stop-list .stop-thumb { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 6px; }
.stop-list h3 { margin-bottom: 0.3rem; }
.stop-list h3 a { color: var(--ink); text-decoration: none; }
.stop-list h3 a:hover { color: var(--brass); text-decoration: underline; }
.stop-list p { color: var(--slate); margin: 0; }
@media (max-width: 600px) {
  .stop-list.with-images li { grid-template-columns: 70px 1fr; }
  .stop-list.with-images .stop-mark { display: none; }
}

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.8rem 1.5rem; margin: 2rem 0 1.5rem; }
.team-member { border-top: 3px solid var(--steel); padding-top: 0.9rem; }
.team-member .photo-frame {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 100%; /* forces a 1:1 square box on every browser, no aspect-ratio dependency */
  border-radius: 6px;
  margin-bottom: 0.9rem;
  overflow: hidden;
  background: var(--panel);
}
.team-member .photo-frame img.headshot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-member .role { color: var(--brass); font-size: 1.05rem; font-weight: 700; margin-top: 0.15rem; }
.team-member .name { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 1.5rem; margin: 0.5rem 0 0; }
.team-member p { color: var(--slate); font-size: 0.92rem; margin: 0; }

/* ---------- Photo grid (community pictures) ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.photo-grid img { width: 100%; height: 220px; object-fit: cover; border-radius: 8px; display: block; }
.photo-wide { width: 100%; height: auto; border-radius: 8px; display: block; margin-top: 1.5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--brass);
  color: #fff;
  font-weight: 700;
  padding: 0.85rem 1.6rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { background: #0F3FB8; text-decoration: none; color: #fff; }
.btn.ghost { background: none; border: 1.5px solid var(--steel); color: var(--ink); }
.btn.ghost:hover { border-color: var(--brass); color: var(--brass); }

/* ---------- Post / event list (plain lists) ---------- */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-item { padding: 1.8rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 140px 1fr; gap: 1.6rem; }
.post-item:last-child { border-bottom: 1px solid var(--line); }
.post-item .date { color: var(--slate); font-size: 0.88rem; font-weight: 600; padding-top: 0.2rem; }
.post-item h3 { margin-bottom: 0.4rem; }
.post-item p { color: var(--slate); margin: 0; }
@media (max-width: 600px) { .post-item { grid-template-columns: 1fr; gap: 0.4rem; } }

.plain-list { margin: 0; padding: 0; list-style: none; }
.plain-list li { padding: 0.9rem 0; border-top: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 1px solid var(--line); }
.plain-list .links { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.plain-list .links li { border: none; padding: 0.2rem 0; }

/* ---------- Events / form embed ---------- */
.form-wrap {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--panel);
  min-height: 480px;
}
.form-wrap iframe { width: 100%; height: 480px; border: none; display: block; }
.form-fallback { padding: 2rem; color: var(--slate); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding: 2.5rem 0;
  color: var(--slate);
  font-size: 0.9rem;
}
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
footer a { color: var(--slate); }
footer a:hover { color: var(--brass); }

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

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