/* ============================================================
   IWW NYC — site layout + components (plain CSS on the design tokens).
   Loaded after ds.css. No framework.
   ============================================================ */

/* ---------- base page ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* offset in-page anchor jumps (union.html #who/#decide/…) so the target clears
   the sticky header instead of hiding underneath it */
html { scroll-padding-top: 94px; }
body { margin: 0; }
.wrap { max-width: var(--container-wide); margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0 72px; }
img { max-width: 100%; display: block; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-mono); font-weight: 700; text-transform: uppercase;
  letter-spacing: var(--tracking-label); font-size: var(--fs-sm); white-space: nowrap;
  height: var(--control-h-md); padding: 0 22px; cursor: pointer; text-decoration: none;
  color: var(--ink-900); background: var(--paper-000);
  border: 2.5px solid var(--ink-900); box-shadow: var(--shadow-hard-sm);
  transition: transform var(--dur-fast) var(--ease-stamp), box-shadow var(--dur-fast) var(--ease-stamp), background var(--dur-fast);
}
.btn--sm { height: var(--control-h-sm); padding: 0 14px; }
.btn--lg { height: var(--control-h-lg); padding: 0 26px; font-size: var(--fs-body); }
.btn--primary { background: var(--red-500); color: var(--paper-000); }
.btn--ink { background: var(--ink-900); color: var(--paper-000); }
.btn--ghost { background: transparent; box-shadow: none; }
/* Ghost button on a dark stage. The keyline is drawn INSIDE (inset box-shadow)
   with a transparent real border, so its visible edge lines up with where a
   primary button's fill sits (inside its border) — otherwise the outer light
   border made this button read ~2.5px larger all around than "Join Up". The
   :hover rule below still wins (higher specificity) so text flips to ink. */
.btn--on-dark { color: var(--paper-100); border-color: transparent; box-shadow: inset 0 0 0 2.5px var(--paper-100); }
.btn--ghost.btn--on-dark:hover { color: var(--ink-900); background: var(--yellow-400); border-color: transparent; box-shadow: inset 0 0 0 2.5px var(--ink-900), var(--shadow-hard-md); }
.btn--block { display: flex; width: 100%; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hard-md); }
.btn:active { transform: translate(0, 0); box-shadow: 0 0 0 0 var(--ink-900); }
.btn--ghost:hover { background: var(--yellow-400); color: var(--ink-900); border-color: var(--ink-900); }
.btn[disabled], .btn.is-disabled { opacity: .45; box-shadow: none; transform: none; cursor: not-allowed; pointer-events: none; }

/* ---------- tags & badges ---------- */
.tag {
  display: inline-flex; align-items: center; font-family: var(--font-mono); font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; font-size: 11px; padding: 3px 9px;
  border: 2px solid var(--ink-900); background: var(--ink-900); color: var(--paper-000);
}
.tag--red { background: var(--red-500); color: var(--paper-000); }
.tag--pink { background: var(--pink-500); color: var(--ink-900); }
.tag--green { background: var(--green-500); color: var(--ink-900); }
.tag--yellow { background: var(--yellow-500); color: var(--ink-900); }
.tag--outline { background: transparent; color: var(--ink-900); }
.badge {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; font-size: 12px; padding: 4px 11px;
  border: 2.5px solid var(--ink-900); background: var(--red-500); color: var(--paper-000);
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* ---------- cards ---------- */
.card {
  position: relative; background: var(--surface-card); color: var(--text-body);
  border: 3px solid var(--ink-900); box-shadow: var(--shadow-hard-md); padding: var(--space-5);
}
.card--ink { background: var(--ink-900); color: var(--paper-100); }
.card--tape::before {
  content: ""; position: absolute; top: -13px; left: 28px; width: 92px; height: 26px; z-index: 3;
  background: rgba(244, 212, 60, .85); box-shadow: 0 1px 2px rgba(0,0,0,.25);
  clip-path: polygon(3% 0, 98% 6%, 100% 92%, 2% 100%); transform: rotate(-4deg);
}

/* ---------- callout ---------- */
.callout { border: 3px solid var(--ink-900); box-shadow: var(--shadow-hard-md); background: var(--paper-000); }
.callout__bar { background: var(--ink-900); color: var(--paper-000); padding: 9px 14px; border-bottom: 3px solid var(--ink-900); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.callout__label { font-family: var(--font-mono); font-weight: 700; text-transform: uppercase; letter-spacing: .2em; font-size: 11px; }
.callout__title { font-family: var(--font-display); text-transform: uppercase; font-size: 1.25rem; line-height: 1.1; }
.callout__body { padding: var(--space-5); color: var(--text-body); line-height: 1.55; }

/* ---------- form fields ---------- */
/* z-index lifts the field above any .iww-halftone::after dot-screen on the
   parent card, so the input keeps a clean, high-contrast paper surface instead
   of the texture multiplying over the field and its text. */
.field { display: flex; flex-direction: column; gap: 6px; position: relative; z-index: 1; }
.field__label { font-family: var(--font-mono); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; color: var(--text-muted); }
.card--ink .field__label { color: var(--paper-300); }
.field input {
  font-family: var(--font-body); font-size: 1rem; padding: 11px 13px; width: 100%;
  border: 2.5px solid var(--ink-900); background: var(--paper-000); color: var(--ink-900); border-radius: 0;
}
.field input::placeholder { color: var(--ink-400); opacity: 1; }
.field input:focus { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

/* ---------- wordmark ---------- */
.wm { display: inline-flex; align-items: center; gap: .42em; line-height: 1; }
.wm__iww {
  background: var(--red-500); color: var(--paper-000); font-family: var(--font-display);
  line-height: .92; letter-spacing: .04em; padding: .04em .26em .02em; transform: skewX(-9deg);
  border: 2.5px solid var(--ink-900); box-shadow: var(--shadow-hard-sm);
}
.wm__iww > span { display: inline-block; transform: skewX(9deg); }
.wm__nyc { font-family: var(--font-display); line-height: .92; color: var(--ink-900); }
.wm--invert .wm__nyc { color: var(--paper-000); }
.wm--stacked { display: inline-block; }
.wm--stacked .wm__kicker { display: block; font-family: var(--font-mono); font-weight: 700; text-transform: uppercase; letter-spacing: .3em; font-size: .7rem; color: var(--green-500); margin-bottom: .6em; }
.wm--stacked .wm__row { display: flex; align-items: center; gap: .4em; }
.wm--stacked .wm__city { display: inline-block; margin-top: .14em; font-family: var(--font-display); font-size: 2rem; line-height: 1; letter-spacing: .06em; transform: rotate(-2deg); -webkit-text-stroke: 2px var(--paper-000); color: transparent; }
/* Logo/wordmark links are stylized blocks, not prose — never apply the yellow
   highlighter on hover (it left the red IWW block + cream "NYC"/stencil text
   sitting on yellow at unreadable contrast). Selectors are specific enough to
   beat both the global a:hover and .site-footer a:hover. */
.wm-link:hover, .site-header .wm-link:hover, .site-footer .wm-link:hover { background: transparent; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink-900); color: var(--paper-100); }
.site-header__wedge { position: absolute; left: 0; right: 0; bottom: -10px; height: 14px; background: var(--red-500); border-bottom: 3px solid var(--ink-900); clip-path: var(--clip-wedge); z-index: 0; }
.site-header__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav__links { display: flex; align-items: center; gap: 30px; }
.navlink {
  appearance: none; background: transparent; border: none; cursor: pointer; padding: 6px 2px;
  font-family: var(--font-mono); font-weight: 700; font-size: var(--fs-sm); text-transform: uppercase;
  letter-spacing: var(--tracking-label); color: var(--paper-200); text-decoration: none;
  border-bottom: 3px solid transparent; transition: color var(--dur-fast), border-color var(--dur-fast);
}
/* background:transparent cancels the global a:hover highlighter — navlinks
   signal hover with the pink underline + brightened text, not a yellow fill
   (which left white-on-yellow, unreadable). */
.navlink:hover { color: var(--paper-000); border-color: var(--pink-500); background: transparent; }
.navlink.is-active { color: var(--green-500); border-color: var(--green-500); }

/* hamburger — hidden on desktop, shown in the ≤900px block below */
.nav-toggle { display: none; appearance: none; padding: 0; cursor: pointer; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; color: var(--paper-100); border: 2.5px solid var(--paper-300); }
.nav-toggle:hover { border-color: var(--pink-500); color: var(--paper-000); }
.nav-toggle i { font-size: 22px; line-height: 1; }
.nav-toggle .ph-x { display: none; }
.nav-toggle[aria-expanded="true"] .ph-list { display: none; }
.nav-toggle[aria-expanded="true"] .ph-x { display: inline; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink-900); color: var(--paper-100); }
.hero__grid { position: relative; z-index: 2; padding: 72px 24px 80px; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.9fr); gap: 48px; align-items: center; }
/* keep the copy column above the decorative sunburst rays in every layout */
.hero__grid > div:first-child { position: relative; z-index: 1; }
.hero h1 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(3rem,7vw,6rem); line-height: .94; letter-spacing: .01em; color: var(--paper-000); margin: 0; max-width: 760px; text-wrap: balance; }
.hero__shoutline { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 1.5em; margin: 2px 0 30px; }
.hero__the { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(3rem,7vw,6rem); line-height: .94; letter-spacing: .01em; color: var(--paper-000); }
.hero__lead { font-family: var(--font-body); font-size: var(--fs-lead); line-height: 1.5; color: var(--paper-200); max-width: 540px; margin: 0 0 30px; }
.hero__lead strong { color: var(--paper-000); }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero__meta { font-family: var(--font-mono); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: var(--fs-meta); color: var(--paper-300); margin: 24px 0 0; }
.hero__art { position: relative; justify-self: center; width: 100%; max-width: 360px; }
.hero__rays { position: absolute; inset: -22% -26% -22% -10%; opacity: .4; z-index: 0; }

/* ---------- duotone frame (auto-screenprint) ---------- */
.frame { position: relative; overflow: hidden; border: var(--cutout-keyline) solid var(--paper-000); outline: 2.5px solid var(--ink-900); box-shadow: var(--shadow-hard-md); background: var(--ink-900); }
.frame__cap { position: absolute; left: 0; bottom: 0; z-index: 4; background: var(--ink-900); color: var(--paper-000); padding: 6px 12px; font-family: var(--font-mono); font-weight: 700; text-transform: uppercase; letter-spacing: .16em; font-size: 11px; }
.frame__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--ink-900); }

/* ---------- generic two-column blocks ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.hardbox { border: 3px solid var(--ink-900); box-shadow: var(--shadow-hard-md); background: var(--paper-000); }

/* ---------- statement band (home "solidarity") ---------- */
.band { position: relative; background: var(--ink-900); color: var(--paper-100); border-bottom: 4px solid var(--red-500); }
.band__inner { position: relative; z-index: 2; padding: 72px 24px 76px; }
.band h2 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(2.4rem,5.6vw,4.6rem); line-height: .92; letter-spacing: .01em; color: var(--paper-000); margin: 12px 0 0; max-width: 980px; text-wrap: balance; }
.band__points { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 32px; margin-top: 44px; }
.band__points > div { padding-top: 22px; border-top: 3px solid var(--red-500); }
.band__points h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 24px; margin: 0 0 8px; color: var(--paper-000); }
.band__points p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--paper-300); }

/* ---------- event cards ---------- */
.eventgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 26px; }
.eventgrid--preview { grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); }
.event { display: flex; gap: 18px; align-items: flex-start; }
.event__date { flex: none; width: 64px; text-align: center; border: 2.5px solid var(--ink-900); background: var(--ink-900); color: var(--paper-000); }
.event__day { font-family: var(--font-display); font-size: 34px; line-height: 1; padding: 8px 0 2px; }
.event__mon { font-family: var(--font-mono); font-weight: 700; font-size: 10px; letter-spacing: .14em; color: var(--green-500); padding-bottom: 6px; }
.event__body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.event__title { font-family: var(--font-display); text-transform: uppercase; font-size: 21px; margin: 0; line-height: 1.12; }
.event__meta { font-family: var(--font-mono); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: var(--fs-meta); color: var(--text-muted); margin: 0; }
.event__desc { margin: 0; font-size: 14px; color: var(--text-body); line-height: 1.5; }

/* empty-state when the calendar has nothing upcoming/recent (spans the grid) */
.eventnull { grid-column: 1 / -1; border: 3px dashed var(--ink-900); background: var(--surface-card); box-shadow: var(--shadow-hard-sm); padding: 36px 28px; }
.eventnull__title { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1; margin: 10px 0 12px; }
.eventnull__body { margin: 0; max-width: 580px; color: var(--text-body); line-height: 1.55; }
.eventnull__body a { font-weight: 700; }

/* ---------- section heading ---------- */
.sec-head { margin-bottom: 22px; }
.sec-head h2 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.9rem,3.8vw,2.7rem); line-height: .98; margin: 8px 0 0; }
.dues { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: 0; }
.dues > div { padding: 22px 20px; border-right: 3px solid var(--ink-900); }
.dues > div:last-child { border-right: none; }
.dues__amt { font-family: var(--font-display); font-size: 44px; line-height: 1; color: var(--red-600); }
.dues__amt span { font-size: 16px; color: var(--text-muted); }

/* link rows (resources / affiliates) */
.linkrows { border: 3px solid var(--ink-900); border-bottom: none; box-shadow: var(--shadow-hard-sm); background: var(--paper-000); }
.linkrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; text-decoration: none; color: var(--text-strong); border-bottom: 2px solid var(--ink-900); font-weight: 600; }
.linkrow:hover { background: var(--yellow-400); }
.linkrow i { color: var(--red-600); }

/* contact list */
.contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-list li { display: flex; gap: 10px; align-items: baseline; }
.contact-list .k { font-family: var(--font-mono); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; color: var(--text-muted); flex: none; width: 70px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink-900); color: var(--paper-200); border-top: 4px solid var(--red-500); }
.site-footer a { color: var(--paper-100); text-decoration: none; }
.site-footer a:hover { background: var(--yellow-400); color: var(--ink-900); }
.footer-grid { display: grid; grid-template-columns: minmax(240px,1.4fr) 1fr 1fr; gap: 40px; padding: 56px 24px 0; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-family: var(--font-mono); font-weight: 700; text-transform: uppercase; letter-spacing: .18em; font-size: 12px; color: var(--green-500); margin: 0 0 14px; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 2.5px solid var(--paper-300); color: var(--paper-100); font-size: 20px; }
.footer-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 0 24px 36px; }
.footer-meta span { font-family: var(--font-mono); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: var(--fs-meta); color: var(--paper-400); }

/* ---------- inline anchor-button (mailto etc) ---------- */
.btn-link { display: inline-flex; align-items: center; gap: 10px; height: var(--control-h-md); padding: 0 18px; text-decoration: none; font-family: var(--font-mono); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-label); font-size: var(--fs-sm); color: var(--paper-000); background: var(--red-500); border: 2.5px solid var(--ink-900); box-shadow: var(--shadow-hard-sm); }
.btn-link--ghost { background: transparent; color: var(--paper-100); border-color: var(--paper-300); box-shadow: none; }
/* These are buttons, not prose — lift like .btn on hover instead of taking the
   yellow highlighter fill (which recolored a solid red CTA to yellow). */
.btn-link:hover { background: var(--red-600); color: var(--paper-000); transform: translate(-2px, -2px); box-shadow: var(--shadow-hard-md); }
.btn-link--ghost:hover { background: var(--yellow-400); color: var(--ink-900); border-color: var(--ink-900); transform: none; box-shadow: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  html { scroll-padding-top: 80px; } /* shorter (64px) mobile header */
  .hero__grid { grid-template-columns: 1fr; padding: 56px 24px 64px; }
  /* pull "the" closer to the ransom "boss" as the screen narrows (desktop keeps 1.5em) */
  .hero__shoutline { gap: 0.9em; }
  .hero__art { max-width: 340px; }
  /* rein the sunburst in so it doesn't bleed up under the hero copy on phones */
  .hero__rays { inset: -8% -12% -8% -8%; opacity: .26; }
  .two-col, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 32px; padding: 48px 24px 0; }

  /* mobile nav: collapse the links into a hamburger panel (was display:none,
     which lost the Bulletins link entirely) */
  .nav-toggle { display: inline-flex; }
  .site-header__inner { height: 64px; }
  .site-nav { gap: 12px; }
  .site-nav__links {
    display: none; position: absolute; top: calc(100% + 12px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-900); border: 3px solid var(--ink-900);
    box-shadow: var(--shadow-hard-md); z-index: 60;
  }
  .site-nav__links.is-open { display: flex; }
  .site-nav__links .navlink { padding: 15px 18px; border: none; border-bottom: 2px solid var(--ink-700); font-size: var(--fs-body); }
  .site-nav__links .navlink:last-child { border-bottom: none; }
  .site-nav__links .navlink:hover { background: var(--ink-700); border-color: var(--ink-700); color: var(--paper-000); }
  .site-nav__links .navlink.is-active { color: var(--green-500); border-color: var(--ink-700); }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .section { padding: 48px 0 52px; }
  .hero__grid { padding: 44px 18px 52px; }
  .hero__shoutline { gap: 0.4em; margin-bottom: 24px; }
  .band__inner { padding: 56px 20px 60px; }
  /* dial oversized CTAs down to a standard tap target on phones */
  .btn--lg { height: var(--control-h-md); padding: 0 18px; font-size: var(--fs-sm); }
  /* stacked dues read better than squeezed columns with vertical rules */
  .dues > div { border-right: none; border-bottom: 3px solid var(--ink-900); }
  .dues > div:last-child { border-bottom: none; }
}
