﻿/* ============================================================
   goodcrowd â€” Base / reset / typography / layout
   ============================================================ */

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

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

/* The hidden attribute must always win, even over components that set display
   (e.g. .banner{display:flex}). Without this, hidden banners show as empty boxes. */
[hidden] { display: none !important; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background-color: var(--paper);
  /* faint paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

img, svg, picture, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: var(--lh-tight); font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { max-width: var(--maxw-text); }

/* ---- Accessibility helpers ---- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}
.skip-link {
  position: absolute; left: var(--s-3); top: -120px;
  background: var(--ink); color: var(--paper); padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md); z-index: 200; transition: top var(--t-fast);
}
.skip-link:focus { top: var(--s-3); }

/* ---- Layout primitives ---- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s-5); }
.section { padding-block: var(--s-8); }
.section--tight { padding-block: var(--s-6); }
.spread-ink { background: var(--ink); color: var(--paper); }
.spread-ink h1, .spread-ink h2, .spread-ink h3 { color: var(--white); }
.stack > * + * { margin-top: var(--s-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

/* mono metadata texture */
.meta {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-text);
  display: inline-flex; align-items: center; gap: var(--s-2);
}

/* section heading with rule */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-5);
  border-bottom: var(--line) solid var(--ink); padding-bottom: var(--s-3);
}
.section-head h2 { font-size: var(--fs-h2); }
.section-head a { font-family: var(--font-mono); font-size: var(--fs-meta);
  text-transform: uppercase; letter-spacing: 0.06em; border-bottom: var(--line) solid var(--accent); padding-bottom: 1px; }
.section-head a:hover { color: var(--accent-text); }

