/* ============================================
   Historical Jail — Design System
   Editorial museum aesthetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,300..700;1,8..60,300..700&family=IBM+Plex+Sans:wght@300..600&display=swap');

/* ----------  Reset  ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, picture, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
ul, ol { list-style: none; }

/* ----------  Tokens  ---------- */
:root {
  /* Palette — Cinematic dark / museum-after-hours */
  --graphite:       #13161a;   /* deepest bg */
  --graphite-2:     #1a1d22;   /* card / panel surface */
  --graphite-3:     #232830;   /* hover / lifted surface */
  --graphite-4:     #2d333c;   /* subtle borders */
  --bone:           #e8e3d6;   /* primary text */
  --bone-dim:       #c4beae;   /* secondary text */
  --bone-soft:      #a39e90;   /* tertiary / captions (raised for AA on dark) */
  --bone-mute:      #6e7178;   /* dim labels */
  --brass:          #a18a3d;   /* primary accent — eyebrow, links, dividers */
  --brass-bright:   #c9aa57;   /* hover / highlight */
  --rust:           #a14528;   /* secondary warm accent (sparingly) */
  --rust-bright:    #c25a39;
  --iron:           #6b8caa;   /* cool secondary accent (sparingly) */
  /* Aliases — keep token names so existing rules keep working */
  --ink:            var(--bone);          /* text */
  --stone-900:      var(--bone);
  --stone-700:      var(--bone-dim);
  --stone-500:      var(--bone-soft);
  --stone-300:      var(--bone-mute);
  --stone-200:      var(--graphite-4);
  --stone-100:      var(--graphite-3);
  --parchment:      var(--graphite);
  --parchment-soft: var(--graphite-2);
  --parchment-bright:var(--graphite-3);
  --line:           var(--graphite-4);
  --line-soft:      rgba(232, 227, 214, 0.10);

  /* Type */
  --font-display: "Source Serif 4", "Source Serif Pro", "Iowan Old Style", Georgia, serif;
  --font-body:    "IBM Plex Sans", "Inter", system-ui, -apple-system, sans-serif;

  /* Scale */
  --step--2: clamp(0.72rem, 0.7rem + 0.1vw, 0.78rem);
  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.92rem);
  --step-0:  clamp(1.0rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1:  clamp(1.2rem, 1.15rem + 0.25vw, 1.32rem);
  --step-2:  clamp(1.45rem, 1.3rem + 0.7vw, 1.85rem);
  --step-3:  clamp(1.85rem, 1.55rem + 1.4vw, 2.6rem);
  --step-4:  clamp(2.4rem, 1.8rem + 2.6vw, 3.8rem);
  --step-5:  clamp(3rem, 2.0rem + 4.2vw, 5.6rem);

  /* Layout */
  --container: 1280px;
  --container-narrow: 880px;
  --container-prose: 680px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----------  Base  ---------- */
html { background: var(--graphite); }

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  color: var(--bone);
  background: var(--graphite);
  background-image:
    radial-gradient(at 20% 0%, rgba(161, 138, 61, 0.06) 0%, transparent 50%),
    radial-gradient(at 85% 100%, rgba(107, 140, 170, 0.05) 0%, transparent 55%);
  min-height: 100dvh;
}

/* Film grain overlay — adds analog texture on dark surfaces */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.18 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}

main, header, footer, section, article, nav { position: relative; z-index: 2; }

/* ----------  Typography  ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
  font-variation-settings: "opsz" 144;
}

h1 { font-size: var(--step-5); font-weight: 380; letter-spacing: -0.025em; }
h2 { font-size: var(--step-4); font-weight: 400; letter-spacing: -0.02em; }
h3 { font-size: var(--step-3); font-weight: 420; }
h4 { font-size: var(--step-2); font-weight: 460; letter-spacing: -0.005em; }
h5 { font-size: var(--step-1); font-weight: 500; }

p { max-width: 65ch; text-wrap: pretty; }

a {
  color: var(--brass-bright);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(201, 170, 87, 0.4);
  text-underline-offset: 3px;
  transition: color 220ms var(--ease), text-decoration-color 220ms var(--ease);
}
a:hover { color: var(--bone); text-decoration-color: var(--bone); }

::selection { background: var(--brass); color: var(--graphite); }

/* Eyebrow / kicker */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-500);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: currentColor;
}

/* Pull quote */
.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-3);
  line-height: 1.18;
  color: var(--stone-900);
  border-left: 2px solid var(--rust);
  padding: 0.4rem 0 0.4rem 1.6rem;
  margin: 2.5rem 0;
  font-variation-settings: "opsz" 144;
  max-width: 28ch;
}
.pull-quote cite {
  display: block;
  margin-top: 0.9rem;
  font-style: normal;
  font-family: var(--font-body);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  color: var(--stone-500);
}

/* ----------  Layout primitives  ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 1.5rem; }
.container-prose { max-width: var(--container-prose); margin: 0 auto; padding: 0 1.5rem; }

.section { padding: clamp(4rem, 8vw, 8rem) 0; }
.section-tight { padding: clamp(2.5rem, 4vw, 4.5rem) 0; }

.divider-rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ----------  Buttons & CTAs  ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 180ms var(--ease), background 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: var(--parchment-bright); }
.btn--primary:hover { background: var(--rust); color: var(--parchment-bright); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--stone-700); }
.btn--ghost:hover { background: var(--ink); color: var(--parchment-bright); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--stone-700);
  padding-bottom: 0.25rem;
  transition: color 200ms var(--ease), border-color 200ms var(--ease), gap 200ms var(--ease);
}
.link-arrow:hover { color: var(--brass-bright); border-color: var(--brass-bright); gap: 0.7rem; }
.link-arrow::after { content: "→"; font-family: var(--font-display); }

/* ----------  Header / Site nav  ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(19, 22, 26, 0.85) 0%, rgba(19, 22, 26, 0) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-bottom: 0;
  transition: background 280ms var(--ease), backdrop-filter 280ms var(--ease), border-color 280ms var(--ease);
}
.site-header[data-scrolled="true"] {
  background: rgba(19, 22, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--graphite-4);
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 460;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  font-variation-settings: "opsz" 96;
}
.brand__mark { width: 30px; height: 30px; flex: 0 0 30px; }
.brand__mark path, .brand__mark line { stroke: currentColor; }
.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-500);
  margin-top: 1px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: var(--step--1);
  letter-spacing: 0.05em;
}
.site-nav a {
  color: var(--stone-700);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.4rem 0;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--rust);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border: 1px solid var(--stone-700);
  border-radius: 2px;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 880px) {
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--graphite-2);
    border-bottom: 1px solid var(--graphite-4);
    padding: 1.5rem;
    gap: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 260ms var(--ease), transform 260ms var(--ease), visibility 0s linear 260ms;
    pointer-events: none;
  }
  .site-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 260ms var(--ease), transform 260ms var(--ease), visibility 0s linear 0s;
    pointer-events: auto;
  }
  .nav-toggle { display: inline-flex; }
}

/* ----------  Hero (home) — cinematic full-bleed  ---------- */
.hero {
  position: relative;
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(3rem, 6vw, 6rem);
  overflow: hidden;
}
.hero--featured {
  isolation: isolate;
  min-height: 92dvh;
  padding: 0;
  margin-top: -1px;
  display: grid;
  align-items: end;
  color: var(--bone);
}
.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--graphite);
}
.hero__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.78;
  filter: contrast(1.05) saturate(0.85) brightness(0.85);
}
.hero__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(19, 22, 26, 0.4) 0%, rgba(19, 22, 26, 0.0) 25%, rgba(19, 22, 26, 0.6) 70%, rgba(19, 22, 26, 0.96) 100%),
    linear-gradient(90deg, rgba(19, 22, 26, 0.55) 0%, rgba(19, 22, 26, 0.15) 45%, rgba(19, 22, 26, 0) 100%);
}
.hero--featured .container {
  width: 100%;
  padding-top: clamp(8rem, 16vw, 13rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: end;
}
@media (min-width: 880px) {
  .hero__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(3rem, 6vw, 6rem); }
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 4.5vw + 3rem, 8rem);
  font-weight: 360;
  letter-spacing: -0.025em;
  line-height: 0.96;
  color: var(--bone);
  text-wrap: balance;
}
.hero__title em {
  font-style: italic;
  font-weight: 360;
  color: var(--brass-bright);
  background: none;
  padding: 0;
}
.hero__lede {
  font-size: var(--step-1);
  color: var(--bone-dim);
  max-width: 42ch;
  margin-top: 0;
  line-height: 1.5;
}
.hero--featured .hero__title,
.hero--featured .hero__lede,
.hero--featured .hero__meta dt,
.hero--featured .hero__meta dd { text-shadow: 0 1px 12px rgba(19, 22, 26, 0.65); }
.hero__meta {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(232, 227, 214, 0.18);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem 2rem;
}
@media (min-width: 880px) {
  .hero__meta { grid-template-columns: repeat(4, 1fr); }
}
.hero__meta dt {
  font-size: var(--step--2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone-500);
  font-weight: 500;
}
.hero__meta dd {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-variation-settings: "opsz" 144;
  color: var(--ink);
  margin-top: 0.25rem;
}

/* Prison detail hero — cinematic dark */
.prison-hero {
  position: relative;
  min-height: 80dvh;
  display: grid;
  align-items: end;
  isolation: isolate;
  margin-top: -1px;
  background-color: var(--graphite);
  color: var(--bone);
}
.prison-hero__image {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--graphite);
}
.prison-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.78;
  filter: contrast(1.05) saturate(0.85) brightness(0.85);
}
.prison-hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(19, 22, 26, 0.55) 0%, rgba(19, 22, 26, 0.1) 22%, rgba(19, 22, 26, 0.55) 50%, rgba(19, 22, 26, 0.92) 80%, rgba(19, 22, 26, 0.98) 100%);
}
.prison-hero__content {
  padding: clamp(8rem, 16vw, 13rem) 1.5rem clamp(2.5rem, 5vw, 4rem);
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  color: var(--bone);
}
.prison-hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-bright);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}
.prison-hero__eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--brass);
}
.prison-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 1rem + 5.5vw, 6rem);
  color: var(--bone);
  font-weight: 380;
  letter-spacing: -0.025em;
  line-height: 1.0;
  text-wrap: balance;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 0 24px rgba(0, 0, 0, 0.7);
}
.prison-hero__sub {
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-2);
  color: var(--bone);
  max-width: 38ch;
  line-height: 1.35;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 0 18px rgba(0, 0, 0, 0.65);
}
.prison-hero__facts {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  border-top: 2px solid var(--brass);
  padding: 1.7rem 1.6rem 1.7rem;
  max-width: 760px;
  background: var(--graphite);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}
@media (min-width: 600px) {
  .prison-hero__facts {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}
.prison-hero__facts dt {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-bright);
  font-weight: 700;
}
.prison-hero__facts dd {
  font-family: var(--font-display);
  font-size: var(--step-1);
  margin-top: 0.4rem;
  color: var(--bone);
  font-weight: 500;
}

/* ----------  Prison index — gallery 2-col tiles  ---------- */
.prisons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
}
@media (min-width: 720px)  { .prisons-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }

.prison-card {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: var(--bone);
  background: var(--graphite-2);
  aspect-ratio: 4 / 5;
  isolation: isolate;
  transition: transform 380ms var(--ease);
}
.prison-card:hover { transform: translateY(-3px); }
.prison-card__media {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
}
.prison-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease), filter 600ms var(--ease);
  filter: contrast(1.04) saturate(0.85) brightness(0.78);
}
.prison-card:hover .prison-card__media img { transform: scale(1.04); filter: contrast(1.06) saturate(0.95) brightness(0.85); }
.prison-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(19, 22, 26, 0.05) 0%,
    rgba(19, 22, 26, 0.0) 30%,
    rgba(19, 22, 26, 0.55) 65%,
    rgba(19, 22, 26, 0.96) 100%);
  pointer-events: none;
  z-index: 1;
}
.prison-card__index {
  position: absolute;
  top: 1.2rem; left: 1.2rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-bright);
  background: transparent;
  padding: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.prison-card__index::before {
  content: "";
  display: inline-block;
  width: 1.4rem;
  height: 1px;
  background: var(--brass);
}
.prison-card__county,
.prison-card__title,
.prison-card__desc,
.prison-card__years {
  position: relative;
  z-index: 2;
}
.prison-card__county {
  position: absolute;
  bottom: clamp(7.5rem, 13vw, 9.5rem);
  left: 1.4rem; right: 1.4rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-soft);
  margin: 0;
}
.prison-card__title {
  position: absolute;
  bottom: clamp(4rem, 7vw, 5.5rem);
  left: 1.4rem; right: 1.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1rem + 1.6vw, 2.4rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--bone);
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}
.prison-card__desc {
  position: absolute;
  bottom: 3.4rem;
  left: 1.4rem; right: 1.4rem;
  display: none;
}
.prison-card__years {
  position: absolute;
  bottom: 1.4rem;
  left: 1.4rem; right: 1.4rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-style: normal;
  color: var(--bone-dim);
  letter-spacing: 0.05em;
  margin: 0;
}
.prison-card__years::before {
  content: "—  ";
  color: var(--brass);
}

/* ----------  Article body (prison detail)  ---------- */
.article {
  padding: clamp(3rem, 6vw, 6rem) 0;
}
.article__lead {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.35;
  color: var(--stone-900);
  font-variation-settings: "opsz" 144;
  font-weight: 380;
  margin-bottom: 2.5rem;
  max-width: 32ch;
}
/* Drop cap removed in cool-slate redesign */
.article h2 { margin-top: 3rem; margin-bottom: 1.2rem; font-size: var(--step-3); }
.article h3 { margin-top: 2.2rem; margin-bottom: 0.8rem; font-size: var(--step-2); }
.article p + p { margin-top: 1.1rem; }
.article p { font-size: var(--step-1); color: var(--stone-900); }
.article ul, .article ol { padding-left: 1.5rem; margin: 1rem 0; }
.article ul li, .article ol li { margin-bottom: 0.4rem; max-width: 60ch; }
.article ul li { list-style: square; }
.article ol li { list-style: decimal; }
.article strong { font-weight: 700; color: var(--ink); }
.article em { font-style: italic; }

/* Prison detail layout: prose + sidebar */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 980px) {
  .detail-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(3rem, 5vw, 5rem); }
}
.detail-aside {
  position: relative;
}
@media (min-width: 980px) {
  .detail-aside > * + * { margin-top: 2.5rem; }
  .detail-aside__inner { position: sticky; top: 6rem; }
}

/* Address card */
.address-card {
  background: var(--parchment-bright);
  border: 1px solid var(--line);
  padding: 1.8rem;
  position: relative;
}
.address-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--stone-100);
  pointer-events: none;
}
.address-card__label {
  font-size: var(--step--2);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone-500);
  font-weight: 600;
  margin-bottom: 1rem;
}
.address-card__name {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 0.8rem;
  font-variation-settings: "opsz" 144;
}
.address-card__lines {
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--stone-700);
}
.address-card__lines span { display: block; }
.address-card__map {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.2rem;
  font-size: var(--step--1);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brass-bright);
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 0.2rem;
}
.address-card__map:hover { color: var(--bone); border-color: var(--bone); }

/* Facts list */
.facts-list {
  background: transparent;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.facts-list__title {
  font-size: var(--step--2);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone-500);
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.facts-list dl { display: grid; gap: 0.8rem 0; }
.facts-list dt {
  font-family: var(--font-body);
  font-size: var(--step--1);
  color: var(--stone-500);
  letter-spacing: 0.04em;
}
.facts-list dd {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--ink);
  font-variation-settings: "opsz" 144;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line-soft);
}
.facts-list dd:last-child { border-bottom: 0; }

/* Inmates list */
.inmates {
  margin-top: 2.5rem;
}
.inmates h3 { font-size: var(--step-2); margin-bottom: 1rem; }
.inmates__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.inmates__grid li {
  list-style: none;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-soft);
}
.inmates__grid strong {
  font-family: var(--font-display);
  font-weight: 480;
  font-size: var(--step-1);
  color: var(--ink);
  display: block;
  font-variation-settings: "opsz" 144;
}
.inmates__grid span {
  font-size: var(--step--1);
  color: var(--stone-500);
}

/* Gallery */
.gallery {
  margin: clamp(3rem, 5vw, 5rem) 0;
}
.gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 760px;
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--stone-900);
}
.gallery figcaption {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--stone-500);
  font-size: var(--step--1);
  font-variation-settings: "opsz" 96;
  margin-top: 0.6rem;
  letter-spacing: 0;
}

/* Notice / callout */
.notice {
  background: var(--parchment-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--rust);
  padding: 1.6rem 1.8rem;
  margin: 2rem 0;
  font-size: var(--step-0);
  color: var(--stone-700);
  position: relative;
}
.notice strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--ink);
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  font-variation-settings: "opsz" 144;
}

/* Related prisons */
.related {
  background: var(--parchment-soft);
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--line);
}
.related__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (min-width: 720px) { .related__grid { grid-template-columns: repeat(3, 1fr); } }

.related__card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--parchment-bright);
  border: 1px solid var(--line);
  padding: 1.5rem;
  transition: border-color 220ms var(--ease), transform 220ms var(--ease);
}
.related__card:hover { border-color: var(--rust); transform: translateY(-2px); }
.related__card span {
  font-size: var(--step--2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-500);
}
.related__card h3 {
  font-size: var(--step-2);
  font-weight: 460;
  margin: 0.4rem 0 0.5rem;
  letter-spacing: -0.015em;
}
.related__card p {
  color: var(--stone-700);
  font-size: var(--step--1);
}

/* ----------  Map page  ---------- */
.map-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 3rem;
}
@media (min-width: 980px) { .map-grid { grid-template-columns: 5fr 7fr; } }

.map-graphic {
  position: relative;
  background: var(--parchment-bright);
  border: 1px solid var(--line);
  padding: 0;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
@media (min-width: 980px) {
  .map-graphic { position: sticky; top: 6rem; }
}
.map-graphic__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--brass);
  color: var(--parchment-bright);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  box-shadow: 0 2px 6px rgba(26, 29, 34, 0.25);
  transition: transform 220ms var(--ease), background 220ms var(--ease);
  z-index: 2;
}
@media (min-width: 980px) {
  .map-pin { width: 2rem; height: 2rem; font-size: 0.85rem; border-width: 1px; }
}
.map-pin:hover {
  background: var(--rust);
  transform: translate(-50%, -50%) scale(1.18);
  z-index: 3;
}
.map-pin span { line-height: 1; }

.map-list { display: grid; gap: 1.5rem; }
.map-province { border-top: 1px solid var(--line); padding-top: 1.5rem; }
h2.map-province__title {
  font-family: var(--font-body);
  font-size: var(--step--1);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.4;
}
.map-entry {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.2rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  color: inherit;
  transition: background 220ms var(--ease), padding 220ms var(--ease);
}
.map-entry:hover { background: var(--parchment-soft); padding-left: 0.5rem; padding-right: 0.5rem; }
.map-entry__num {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--stone-300);
  font-variation-settings: "opsz" 144;
  min-width: 1.6em;
}
.map-entry__name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--ink);
  font-variation-settings: "opsz" 144;
  font-weight: 460;
}
.map-entry__addr {
  display: block;
  font-family: var(--font-body);
  font-size: var(--step--1);
  color: var(--stone-500);
  margin-top: 0.2rem;
}
.map-entry__county {
  font-size: var(--step--2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone-500);
  font-family: var(--font-body);
  font-weight: 600;
  white-space: nowrap;
}

/* ----------  Footer  ---------- */
.site-footer {
  background: var(--graphite-2);
  color: var(--bone-dim);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  margin-top: clamp(4rem, 8vw, 8rem);
  border-top: 1px solid var(--graphite-4);
}
.site-footer h3 {
  color: var(--brass);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--graphite-4);
}
@media (min-width: 720px) {
  .site-footer__top { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.site-footer p { color: var(--bone-dim); font-size: var(--step--1); max-width: 38ch; }
.site-footer ul li { margin-bottom: 0.55rem; }
.site-footer a {
  color: var(--bone-dim);
  text-decoration: none;
  font-size: var(--step--1);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease), color 200ms var(--ease);
}
.site-footer a:hover { color: var(--bone); border-color: var(--brass); }
.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--bone);
  font-family: var(--font-display);
  font-size: var(--step-1);
  margin-bottom: 1rem;
  text-decoration: none;
}
.site-footer__bottom {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: var(--step--2);
  letter-spacing: 0.04em;
  color: var(--bone-soft);
}

/* ----------  Cookie banner  ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  padding: 1rem 1.4rem;
  background: var(--graphite-2);
  color: var(--bone-dim);
  border-top: 1px solid var(--brass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
  font-size: var(--step--1);
  box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, 0.5);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; max-width: 60ch; color: var(--bone-dim); }
.cookie-banner a { color: var(--brass-bright); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.cookie-banner button {
  padding: 0.65rem 1.1rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-body);
  border: 1px solid var(--graphite-4);
  background: transparent;
  color: var(--bone);
  transition: background 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease);
}
.cookie-banner button:hover { background: var(--graphite-3); border-color: var(--bone-soft); }
.cookie-banner button[data-consent="accept"] { background: var(--brass); border-color: var(--brass); color: var(--graphite); }
.cookie-banner button[data-consent="accept"]:hover { background: var(--brass-bright); border-color: var(--brass-bright); }

/* Customize modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: rgba(26, 29, 34, 0.6);
  backdrop-filter: blur(4px);
  padding: 1.5rem;
}
.cookie-modal[hidden] { display: none; }
.cookie-modal__panel {
  background: var(--parchment-bright);
  max-width: 480px;
  width: 100%;
  padding: 2rem;
  border: 1px solid var(--line);
  position: relative;
}
.cookie-modal h3 { font-size: var(--step-2); margin-bottom: 1rem; }
.cookie-modal__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line-soft);
}
.cookie-modal__row:first-of-type { border-top: 0; }
.cookie-modal__row strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-variation-settings: "opsz" 144;
  color: var(--ink);
}
.cookie-modal__row p { font-size: var(--step--1); color: var(--stone-700); margin-top: 0.2rem; }
.cookie-toggle {
  position: relative;
  width: 44px; height: 24px;
  border-radius: 12px;
  background: var(--stone-200);
  cursor: pointer;
  transition: background 220ms var(--ease);
  flex: 0 0 44px;
  margin-top: 0.2rem;
}
.cookie-toggle::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--parchment-bright);
  transition: transform 220ms var(--ease);
}
.cookie-toggle[data-on="true"] { background: var(--rust); }
.cookie-toggle[data-on="true"]::after { transform: translateX(20px); }
.cookie-toggle[data-disabled="true"] { background: var(--stone-300); cursor: not-allowed; opacity: 0.6; }
.cookie-modal__actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

/* ----------  Legal pages  ---------- */
.legal {
  padding: clamp(3rem, 6vw, 6rem) 0;
}
.legal__meta {
  font-size: var(--step--1);
  color: var(--stone-500);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}
.legal h1 { margin-bottom: 0.6rem; font-size: var(--step-4); }
.legal h2 {
  font-size: var(--step-2);
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.legal h3 { font-size: var(--step-1); margin-top: 1.4rem; margin-bottom: 0.5rem; }
.legal p, .legal li { font-size: var(--step-0); color: var(--stone-900); max-width: 70ch; }
.legal p + p { margin-top: 1rem; }
.legal ul, .legal ol { padding-left: 1.4rem; margin: 0.8rem 0; }
.legal ul li { list-style: square; margin-bottom: 0.4rem; }
.legal ol li { list-style: decimal; margin-bottom: 0.4rem; }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: var(--step--1);
}
.legal th, .legal td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.legal th {
  background: var(--parchment-soft);
  font-weight: 600;
  font-size: var(--step--2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone-700);
}

.caps {
  display: block;
  background: var(--parchment-soft);
  border-left: 3px solid var(--stone-700);
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  font-weight: 500;
  color: var(--stone-900);
}

/* ----------  Skip link / a11y  ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--ink);
  color: var(--parchment-bright);
  padding: 0.6rem 1rem;
  z-index: 10001;
  text-decoration: none;
  border-radius: 0;
}
.skip-link:focus { top: 1rem; }

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

/* ----------  Utility  ---------- */
.text-center { text-align: center; }
.muted { color: var(--stone-500); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ----------  Reveal-on-scroll  ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
  .reveal[data-stagger] > * { opacity: 0; transform: translateY(20px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); transition-delay: calc(var(--stagger-i, 0) * 90ms); }
  .reveal[data-stagger].is-in > * { opacity: 1; transform: none; }
}

/* ============================================
   Cool-slate accent layer
   Adds: section numerals, iron accent, micro-motion.
   Decor (folio, ornament, marginalia, drop cap) hidden.
   ============================================ */

/* Decor stripped */
.folio, .hero__folio, .ornament, .marginalia { display: none; }

/* Section numeral — small label + thin iron rule. No oversized roman, no italic. */
.section-numeral {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.section-numeral__roman {
  font-family: var(--font-body);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--brass);
  text-transform: uppercase;
}
.section-numeral__label {
  font-family: var(--font-body);
  font-size: var(--step--2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-500);
  font-weight: 500;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--line);
  flex: 1;
  min-width: 0;
}

/* Pull-quote — restrained: iron rule, italic, no decorative quote ornament */
.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 1rem + 1vw, 2.1rem);
  line-height: 1.3;
  color: var(--stone-900);
  border-left: 2px solid var(--brass);
  padding: 0.4rem 0 0.4rem 1.6rem;
  margin: 2rem 0;
}
.pull-quote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-family: var(--font-body);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  color: var(--stone-500);
  font-weight: 500;
}

/* (Cinematic-dark: prison card overrides defined above in main grid block) */

/* Link arrow — animated chevron */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brass);
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 0.2rem;
  transition: gap 260ms var(--ease), color 260ms var(--ease);
}
.link-arrow::after {
  content: "→";
  font-family: var(--font-body);
  transition: transform 260ms var(--ease);
}
.link-arrow:hover { gap: 0.85rem; color: var(--brass-bright); border-bottom-color: var(--brass-bright); }
.link-arrow:hover::after { transform: translateX(3px); }

/* Eyebrow — short rule + iron text */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-body);
  font-size: var(--step--2);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brass);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.4rem;
  height: 1px;
  background: var(--brass);
}

/* Field-notes — clean iron-bordered card */
.field-notes {
  position: relative;
  border: 1px solid var(--brass);
  background: var(--parchment-bright);
  padding: 1.6rem 1.7rem;
}
.field-notes__title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-bright);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Hero backdrop — gentle parallax via JS */
.hero__backdrop img {
  transform: translate3d(0, var(--parallax-y, 0), 0) scale(1.04);
  transition: transform 80ms linear;
  will-change: transform;
}

/* Subtle entry animation for hero */
@media (prefers-reduced-motion: no-preference) {
  .hero--featured .hero__title,
  .hero--featured .hero__lede,
  .hero--featured .hero__meta,
  .hero--featured .hero__cta {
    opacity: 0;
    transform: translateY(12px);
    animation: hero-rise 800ms var(--ease) forwards;
  }
  .hero--featured .hero__title  { animation-delay: 80ms; }
  .hero--featured .hero__lede   { animation-delay: 240ms; }
  .hero--featured .hero__meta   { animation-delay: 400ms; }
  .hero--featured .hero__cta    { animation-delay: 560ms; }
}
@keyframes hero-rise { to { opacity: 1; transform: none; } }

/* Section header pattern */
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 760px) {
  .section-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 2rem 3rem; }
}
.section-head__aside {
  font-family: var(--font-body);
  font-size: var(--step-0);
  color: var(--stone-500);
  max-width: 38ch;
  text-wrap: pretty;
}

@media (prefers-reduced-motion: reduce) {
  .hero__backdrop img { transform: scale(1.04); }
}

/* ----------  Print  ---------- */
@media print {
  body::before, .site-header, .site-footer, .cookie-banner, .related { display: none; }
  body { background: white; color: black; }
}

/* logo (brand) */
.brand__logo {
  display: inline-block;
  height: clamp(60px, 7vw, 88px); margin: -16px 0;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
