/* ==========================================================================
   Global — reset, base type, layout primitives
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.5;
  color: var(--c-text);
  background: var(--c-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
img { font-style: italic; } /* alt text styling if an image fails */
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.2; }
h4 { font-size: var(--t-h4); line-height: 1.25; font-weight: 500; }
p, li { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 3px;
}
.on-dark :focus-visible, .site-footer :focus-visible, .hero--home :focus-visible { outline-color: #fff; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--c-text); color: #fff; padding: 0.75rem 1rem; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

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

/* Layout primitives */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }

.section { padding-block: var(--sp-section); background: var(--c-bg); }
.section--alt { background: var(--c-alt); }
.section--tight { padding-block: clamp(2.5rem, 1.8rem + 3vw, 4.5rem); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1.4rem + 2.4vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--c-muted); font-size: var(--t-lead); }
.section-head--split { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; }
.section-head--split > div { max-width: 46rem; }

.lead { font-size: var(--t-lead); color: var(--c-muted); max-width: 40rem; }
.muted { color: var(--c-muted); }
.small { font-size: var(--t-small); }
.center { text-align: center; }

/* Small tagline used by the existing neighborhood cards
   (live site uses an 11px uppercase gold label; gold is removed per PDF Step 1). */
.tagline {
  font-family: var(--f-body); font-size: var(--t-label); font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-muted);
  margin: 0 0 0.75rem;
}

.grid { display: grid; gap: clamp(1.25rem, 0.8rem + 1.8vw, 2rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stack > * + * { margin-top: var(--sp-3); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }
.btn-row--center { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
