/* ==========================================================================
   The H Street Corridor Guide — "Marquee & Bazaar"
   A screen-printed street-poster design system.

   Lineage: the 2006-07 original was an ImageReady-sliced table layout in
   olive and lime (#8ea039 / #5a7600 / #99CC00) with all-caps image-button
   nav rows, hard 1px rules and zero rounded corners. That palette and that
   hard-edged, all-caps, block-built character are kept and pushed toward
   the gig-poster / silkscreen language the subject actually deserves.

   CRITICAL: nothing on this site is hidden waiting on JavaScript. There is
   no opacity:0 / visibility:hidden / display:none initial state anywhere
   that JS must undo. All entrance motion is CSS-only and ends visible.
   ========================================================================== */

:root {
  --ink:          #16170f;
  --ink-soft:     #2a2c1e;
  --olive:        #414d0b;
  --olive-deep:   #2b330a;
  --lime:         #b7d327;
  --lime-deep:    #97b013;
  --vermillion:   #d0451b;
  --vermillion-d: #a5340f;
  --paper:        #f7f5ec;
  --paper-alt:    #ece7d5;
  --paper-edge:   #ddd6bd;
  --grey:         #5c5f52;
  --white:        #ffffff;

  --display: "Anton", "Archivo", Impact, "Haettenschweiler", sans-serif;
  --body: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --measure: 66ch;
  --rule: 3px;
  --offset: 6px;
}

/* ---------------------------------------------- layout self-sufficiency ---
   Bootstrap 5.3.3 supplies the reboot and the utility baseline, but this
   sheet loads AFTER it and re-declares the handful of layout classes the
   site actually uses. That makes the layout deterministic and identical
   whether or not the CDN stylesheet arrives: if jsDelivr is blocked or the
   SRI check fails, the page still lays out correctly instead of collapsing
   into a single unstyled column. ~25 lines is a cheap insurance premium on
   an asset whose whole job is being readable.
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.row { display: flex; flex-wrap: wrap; margin-inline: 0; }
.row > * { padding-inline: 0; }
.g-4 { gap: 1.5rem; }
.g-5 { gap: 2.25rem 3rem; }
.col-lg-8, .col-lg-4, .col-sm-6 { flex: 1 1 100%; max-width: 100%; min-width: 0; }

@media (min-width: 576px) {
  .col-sm-6 { flex: 1 1 calc(50% - .75rem); max-width: calc(50% - .75rem); }
}
@media (min-width: 992px) {
  .container { padding-inline: 2rem; }
  .col-lg-8 { flex: 0 0 calc(66.6666% - 1.5rem); max-width: calc(66.6666% - 1.5rem); }
  .col-lg-4 { flex: 0 0 calc(33.3333% - 1.5rem); max-width: calc(33.3333% - 1.5rem); }
  .col-sm-6 { flex: 1 1 calc(33.3333% - 1rem); max-width: calc(33.3333% - 1rem); }
}

/* --------------------------------------------------------- base ---------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.68;
  font-weight: 400;
  overflow-x: hidden;
}

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

a { color: var(--olive); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--vermillion); }

:focus-visible { outline: 3px solid var(--vermillion); outline-offset: 2px; }

/* Safeguard: if any scroll-reveal markup ever appears, it must never hide
   content while waiting for JavaScript. */
[data-aos] { opacity: 1 !important; transform: none !important; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--lime); color: var(--ink); font-family: var(--display);
  text-transform: uppercase; padding: .75rem 1.25rem; letter-spacing: .06em;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------- type ---------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .012em;
  line-height: .98;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

.prose h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.35rem);
  margin: 2.9rem 0 .2rem;
  padding-bottom: .45rem;
  border-bottom: var(--rule) solid var(--ink);
  position: relative;
}
.prose h2::after {
  content: "";
  position: absolute; left: 0; bottom: calc(-1 * var(--rule) - 5px);
  width: 5.5rem; height: 5px; background: var(--lime);
}
.prose h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  margin: 2rem 0 .35rem;
  color: var(--olive-deep);
}
.prose p { margin: 1.05rem 0; max-width: var(--measure); }
.prose ul, .prose ol { max-width: var(--measure); margin: 1.05rem 0; padding-left: 1.35rem; }
.prose li { margin: .5rem 0; }
.prose li::marker { color: var(--vermillion); font-weight: 700; }
.prose strong { font-weight: 700; color: var(--ink); }
.prose em { font-style: italic; }

.prose > p:first-of-type {
  font-size: 1.185rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Editorial notice block — used for the archived-URL note on the legacy page */
.page-note {
  max-width: none !important;
  background: var(--paper-alt);
  border-left: 10px solid var(--vermillion);
  border-top: var(--rule) solid var(--ink);
  border-bottom: var(--rule) solid var(--ink);
  padding: 1.15rem 1.35rem;
  font-size: .97rem;
  margin: 1.6rem 0 2.2rem !important;
}
.page-note strong { text-transform: uppercase; font-family: var(--display); letter-spacing: .04em; }

/* ------------------------------------------------------ masthead --------- */

.masthead {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 6px solid var(--lime);
}
.masthead-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.15rem 0 1.05rem;
}
.wordmark { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; color: inherit; }
.wordmark:hover, .wordmark:focus { color: inherit; }
.wordmark-badge {
  font-family: var(--display); font-size: 2.05rem; line-height: 1;
  background: var(--lime); color: var(--ink);
  padding: .34em .42em .28em; letter-spacing: -.02em;
  box-shadow: var(--offset) var(--offset) 0 var(--vermillion);
}
.wordmark-text { display: block; }
.wordmark-text .l1 {
  font-family: var(--display); font-size: clamp(1.35rem, 3.4vw, 1.95rem);
  text-transform: uppercase; letter-spacing: .015em; line-height: 1; display: block;
}
.wordmark-text .l2 {
  font-family: var(--display); font-size: clamp(1.35rem, 3.4vw, 1.95rem);
  text-transform: uppercase; letter-spacing: .015em; line-height: 1; display: block;
  color: var(--lime);
}
.masthead-strap {
  font-size: .8rem; letter-spacing: .13em; text-transform: uppercase;
  color: #b9bda6; max-width: 30ch; text-align: right; line-height: 1.5;
}

/* ----------------------------------------------------------- nav --------- */

.nav-primary { background: var(--olive-deep); }
.nav-secondary { background: var(--olive); }
.nav-primary, .nav-secondary { border-bottom: 2px solid var(--ink); }

.nav-row {
  display: flex; gap: 0; margin: 0; padding: 0; list-style: none;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav-row::-webkit-scrollbar { display: none; }
.nav-row a {
  display: block; white-space: nowrap;
  font-family: var(--display); text-transform: uppercase;
  font-size: .93rem; letter-spacing: .055em;
  color: var(--paper); text-decoration: none;
  padding: .72rem 1rem .62rem;
  border-right: 1px solid rgba(247,245,236,.22);
}
.nav-secondary .nav-row a { font-size: .84rem; padding: .58rem 1rem .5rem; color: #f0eedf; }
.nav-row a:hover, .nav-row a:focus { background: var(--lime); color: var(--ink); }
.nav-row a[aria-current="page"] { background: var(--vermillion); color: var(--white); }

/* Unaffiliated notice — persistent, on every page. */
.unaffiliated {
  background: var(--vermillion); color: var(--white);
  font-size: .795rem; letter-spacing: .075em; text-transform: uppercase;
  padding: .48rem 0; border-bottom: 2px solid var(--ink);
}
.unaffiliated p { margin: 0; }

/* ---------------------------------------------------------- hero --------- */

.hero { position: relative; background: var(--ink); border-bottom: 6px solid var(--ink); }
.hero-media { position: relative; }
.hero-media img {
  width: 100%; height: clamp(230px, 42vw, 460px); object-fit: cover;
  filter: saturate(.88) contrast(1.06);
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,23,15,.18) 0%, rgba(22,23,15,.72) 100%);
}
.hero-title-wrap { position: relative; margin-top: -3.2rem; padding-bottom: 2.2rem; z-index: 2; }
.hero h1, .page-head h1 {
  display: inline-block;
  font-size: clamp(1.85rem, 5.6vw, 3.75rem);
  background: var(--lime); color: var(--ink);
  padding: .42em .5em .34em;
  box-shadow: var(--offset) var(--offset) 0 var(--ink);
  max-width: 22ch;
  animation: rise .5s ease-out both;
}
.hero-kicker, .page-kicker {
  display: inline-block;
  font-family: var(--display); text-transform: uppercase;
  font-size: .82rem; letter-spacing: .16em;
  background: var(--vermillion); color: var(--white);
  padding: .4rem .8rem .32rem; margin-bottom: .7rem;
}
.hero-kicker { color: var(--white); }

/* Head block for pages without a hero image */
.page-head {
  background: var(--paper-alt);
  border-bottom: 6px solid var(--ink);
  padding: 2.6rem 0 2.4rem;
}
.page-head h1 { animation: rise .5s ease-out both; }

@keyframes rise {
  from { transform: translateY(14px); }
  to   { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------- layout -------- */

main { display: block; }
.article-wrap { padding: 2.4rem 0 3.4rem; }

.figure-inline {
  margin: 2.6rem 0;
  border: var(--rule) solid var(--ink);
  box-shadow: var(--offset) var(--offset) 0 var(--lime);
  background: var(--white);
}
.figure-inline img { width: 100%; }
.figure-inline figcaption {
  font-size: .84rem; letter-spacing: .04em; text-transform: uppercase;
  font-family: var(--display); color: var(--ink);
  padding: .6rem .85rem .5rem; border-top: var(--rule) solid var(--ink);
  background: var(--paper-alt);
}

/* Sidebar rail */
.rail { position: sticky; top: 1.4rem; }
.rail-card {
  background: var(--white);
  border: var(--rule) solid var(--ink);
  box-shadow: var(--offset) var(--offset) 0 var(--olive);
  padding: 1.1rem 1.15rem 1.25rem;
  margin-bottom: 1.9rem;
}
.rail-card h2 {
  font-size: 1.05rem; letter-spacing: .05em; margin: 0 0 .7rem;
  padding-bottom: .4rem; border-bottom: 2px solid var(--ink);
}
.rail-card ul { list-style: none; margin: 0; padding: 0; }
.rail-card li { margin: 0; border-bottom: 1px dashed var(--paper-edge); }
.rail-card li:last-child { border-bottom: 0; }
.rail-card a {
  display: block; padding: .48rem 0; font-size: .93rem;
  text-decoration: none; color: var(--ink); font-weight: 600;
}
.rail-card a:hover, .rail-card a:focus { color: var(--vermillion); text-decoration: underline; }
.rail-note {
  background: var(--ink); color: var(--paper);
  border: var(--rule) solid var(--ink);
  box-shadow: var(--offset) var(--offset) 0 var(--vermillion);
  padding: 1rem 1.1rem; font-size: .87rem; line-height: 1.55;
}
.rail-note strong { color: var(--lime); font-family: var(--display); letter-spacing: .05em; text-transform: uppercase; display: block; margin-bottom: .35rem; }

/* --------------------------------------------------------- footer -------- */

.site-footer {
  background: var(--ink); color: #cfd2bd;
  border-top: 6px solid var(--lime);
  padding: 2.8rem 0 2rem; margin-top: 1rem;
  font-size: .93rem;
}
.site-footer h2 {
  font-size: 1rem; letter-spacing: .1em; color: var(--lime);
  margin: 0 0 .8rem; padding-bottom: .4rem; border-bottom: 2px solid #3a3d2a;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .38rem 0; }
.site-footer a { color: #e6e8d6; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus { color: var(--lime); text-decoration: underline; }
.footer-disclaimer {
  border: 2px solid var(--vermillion);
  padding: .95rem 1.1rem; margin: 2rem 0 1.4rem;
  font-size: .875rem; line-height: 1.6; color: #ddded0;
}
.footer-disclaimer strong { color: var(--vermillion); text-transform: uppercase; font-family: var(--display); letter-spacing: .05em; }
.footer-base {
  border-top: 2px solid #3a3d2a; padding-top: 1.1rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  font-size: .82rem; color: #9ca08a; letter-spacing: .04em;
}

/* ------------------------------------------------------------ 404 -------- */

.notfound { padding: 4rem 0 4.5rem; text-align: left; }
.notfound .code {
  font-family: var(--display); font-size: clamp(4.5rem, 18vw, 11rem);
  line-height: .82; color: var(--ink);
  background: var(--lime); display: inline-block;
  padding: .1em .16em .04em; box-shadow: 10px 10px 0 var(--vermillion);
}

/* -------------------------------------------------------- responsive ----- */

@media (max-width: 767.98px) {
  body { font-size: 1.0125rem; }
  .masthead-strap { display: none; }
  .hero-title-wrap { margin-top: -1.9rem; }
  .hero h1, .page-head h1 { max-width: 100%; box-shadow: 4px 4px 0 var(--ink); }
  .rail { position: static; }
  :root { --offset: 4px; }
}

@media (min-width: 992px) {
  .article-wrap { padding-top: 3rem; }
}

@media print {
  .nav-primary, .nav-secondary, .site-footer, .rail, .hero-media { display: none; }
  body { background: #fff; color: #000; }
}
