@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
  color-scheme: light;
  --ink: #1b292e;
  --ink-soft: #38474b;
  --night: #14242a;
  --night-soft: #1b3036;
  --gold: #ad854b;
  --gold-deep: #80602f;
  --paper: #f5f2eb;
  --paper-deep: #ece6da;
  --white: #fffefa;
  --line: #e4ded2;
  --shadow: 0 18px 56px rgba(25, 39, 43, .075);
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
a { color: var(--gold-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid #d6ae6c; outline-offset: 4px; }

header {
  position: relative;
  z-index: 20;
  color: #f7f5ef;
  background: var(--night);
  border-bottom: 1px solid rgba(214, 174, 108, .34);
}
nav {
  width: min(1320px, 100%);
  min-height: 78px;
  margin: 0 auto;
  padding: 17px 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 30px;
}
nav .brand {
  flex: 0 1 auto;
  color: #fffefa;
  font-family: var(--serif);
  font-size: clamp(19px, 1.75vw, 25px);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.2;
  text-decoration: none;
}
nav .links {
  flex: 1 1 790px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 3px 19px;
}
nav .links a {
  position: relative;
  padding: 7px 0;
  color: #e9eeeb;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .025em;
  line-height: 1.45;
  text-decoration: none;
  transition: color .18s ease;
}
nav .links a::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 1px;
  content: '';
  background: #d2aa6a;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}
nav .links a:hover,
nav .links a[aria-current="page"] { color: #e6c28b; }
nav .links a:hover::after,
nav .links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle {
  display: none;
  width: 44px;
  height: 42px;
  padding: 10px;
  border: 1px solid rgba(238, 233, 222, .45);
  border-radius: 4px;
  color: white;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}
nav.is-open .nav-toggle span:first-child { transform: translateY(7px) rotate(45deg); }
nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.is-open .nav-toggle span:last-child { transform: translateY(-7px) rotate(-45deg); }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(58px, 7vw, 102px) 28px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .94fr);
  align-items: center;
  gap: clamp(44px, 7vw, 92px);
}
.eyebrow {
  display: inline-block;
  margin-bottom: 17px;
  color: var(--gold-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .19em;
  line-height: 1.5;
  text-transform: uppercase;
}
h1, h2, h3, h4 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  text-wrap: pretty;
}
.hero h1 {
  max-width: 620px;
  margin: 0 0 23px;
  font-size: clamp(42px, 5.15vw, 70px);
  letter-spacing: -.04em;
}
.hero p {
  max-width: 580px;
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.85;
}
.hero img {
  display: block;
  width: 100%;
  max-height: 550px;
  border-radius: 2px;
  object-fit: cover;
  object-position: center 38%;
  box-shadow: 14px 14px 0 var(--paper-deep);
}
.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 23px;
  border: 1px solid var(--gold);
  border-radius: 3px;
  color: #fffefa;
  background: var(--gold);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .015em;
  text-decoration: none;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.btn:hover { color: #fffefa; background: var(--gold-deep); transform: translateY(-1px); }
button { font: inherit; }
button.btn { cursor: pointer; }

.page-title {
  position: relative;
  padding: clamp(38px, 5vw, 66px) 28px clamp(34px, 4.5vw, 58px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.page-title > div { width: min(900px, 100%); margin: 0 auto; }
.page-title .eyebrow { margin: 0 0 10px; }
.page-title h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(36px, 4.4vw, 58px);
  letter-spacing: -.035em;
}

main.content {
  width: min(920px, calc(100% - 48px));
  margin: clamp(36px, 5.5vw, 72px) auto clamp(72px, 8vw, 112px);
  padding: clamp(30px, 5.5vw, 68px);
  border: 1px solid rgba(226, 220, 208, .82);
  border-radius: 5px;
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--ink-soft);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.9;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
main.content h2 {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: clamp(27px, 3vw, 38px);
  letter-spacing: -.025em;
}
main.content h3 {
  margin: 36px 0 12px;
  color: var(--ink);
  font-size: clamp(22px, 2.4vw, 29px);
}
main.content h4 {
  margin: 27px 0 10px;
  color: var(--gold-deep);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .075em;
  line-height: 1.5;
}
main.content h4:empty { display: none; }
main.content p { margin: 0 0 1.25em; }
main.content p:last-child { margin-bottom: 0; }
main.content a { color: var(--gold-deep); font-weight: 600; text-decoration-thickness: 1px; }
main.content a:hover { color: var(--ink); }
main.content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 28px auto;
  border-radius: 3px;
  object-fit: contain;
}
main.content > img:first-child {
  float: right;
  width: min(39%, 340px);
  margin: 4px 0 28px 38px;
}
main.content::after { display: table; clear: both; content: ''; }
main.content iframe { max-width: 100%; border: 0; }
main.content [style*="text-align"] { text-align: left !important; }
main.content u { text-decoration-color: rgba(173, 133, 75, .55); text-underline-offset: 4px; }
main.content b u,
main.content u b,
main.content u:has(span[style*="font-size: large"]) {
  display: block;
  margin: 1.35em 0 .45em;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.22em;
  font-weight: 600;
  text-decoration: none;
}
main.content .article-date { margin: 0 0 28px; color: #657176; font-size: 14px; font-weight: 600; }
main.content .intro-emphasis { margin: 28px 0 34px; padding: 5px 0 5px 23px; border-left: 2px solid var(--gold); color: var(--ink); font-family: var(--serif); font-size: clamp(19px, 2vw, 23px); line-height: 1.75; }
main.content .topic-introduction { margin: 30px 0 10px; color: var(--gold-deep); font-family: var(--serif); font-size: 19px; font-style: italic; }
main.content .art-content-layout,
main.content .art-content-layout-row,
main.content .art-layout-cell { width: auto !important; max-width: 100%; }
main.content .article-figure { width: fit-content; max-width: 100%; margin: 34px auto; }
main.content .article-figure img { margin: 0 auto; }
main.content figcaption { margin-top: 10px; color: #677277; font-size: 13px; text-align: center; }
main.content.testimonials { border-top: 3px solid var(--gold); }
main.content.testimonials h4:first-of-type { color: var(--gold-deep); font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: 0; }
main.content.testimonials .art-content-layout { padding-left: clamp(18px, 4vw, 42px); border-left: 2px solid var(--paper-deep); }
main.content .contact-note { color: #647176; font-size: 14px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.card {
  display: block;
  min-width: 0;
  padding: 23px 24px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: 3px;
  color: var(--ink);
  background: var(--white);
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card:hover { border-color: var(--gold); box-shadow: 0 10px 30px rgba(25, 39, 43, .08); transform: translateY(-2px); }
.card h2, .card h3 { margin: 0 0 10px; font-size: clamp(19px, 1.8vw, 24px); }
.card h2 a { color: var(--ink); text-decoration: none; }
.card p { margin: 0; color: #59666a; font-size: 14px; line-height: 1.7; }
.article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.article-grid .card { padding: 25px 27px; border-top: 0; border-left: 2px solid var(--gold); }
.article-grid .card h2 { font-family: var(--serif); font-weight: 600; }
.article-grid .card h2 a:hover { color: var(--gold-deep); }

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.photo-gallery a {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
}
.photo-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  transition: transform .28s ease;
}
.photo-gallery a:hover img { transform: scale(1.04); }
.video-embed {
  position: relative;
  width: 100%;
  max-width: 850px;
  aspect-ratio: 16 / 9;
  margin: 28px 0 40px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--night);
  box-shadow: 0 12px 35px rgba(25, 39, 43, .12);
}
.video-embed iframe { display: block; width: 100%; height: 100%; }

footer {
  padding: 36px 24px;
  border-top: 1px solid rgba(214, 174, 108, .3);
  color: #dce2de;
  background: var(--night);
  font-size: 13px;
  letter-spacing: .02em;
  text-align: center;
}
footer a { color: #e4c38e; }
footer a:hover { color: #fffefa; }

@media (max-width: 1100px) {
  nav { padding-inline: 24px; gap: 10px 22px; }
  nav .links { flex-basis: 100%; justify-content: flex-start; gap: 2px 20px; }
  .hero-inner { gap: 42px; }
}
@media (max-width: 840px) {
  nav { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 18px; padding: 15px 22px; }
  nav .brand { grid-column: 1; grid-row: 1; }
  .nav-toggle { display: flex; grid-column: 2; grid-row: 1; }
  nav .links { grid-column: 1 / -1; grid-row: 2; display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 100%; padding-top: 12px; }
  nav.has-mobile-toggle .links { display: none; }
  nav.has-mobile-toggle.is-open .links { display: flex; }
  nav .links a { padding: 12px 2px; border-top: 1px solid rgba(238, 233, 222, .12); font-size: 14px; }
  .hero { padding: 54px 24px; }
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
  .hero img { max-height: 440px; }
  main.content > img:first-child { width: min(42%, 300px); margin-left: 26px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero { padding: 42px 22px 50px; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { max-width: 520px; font-size: clamp(39px, 11vw, 54px); }
  .hero p { font-size: 17px; }
  .hero img { width: 100%; max-height: 420px; object-position: center 35%; box-shadow: 8px 8px 0 var(--paper-deep); }
  .page-title { padding: 36px 22px 34px; }
  .page-title h1 { font-size: clamp(34px, 9vw, 46px); }
  main.content { width: calc(100% - 28px); margin: 26px auto 56px; padding: 26px 22px 32px; border-radius: 3px; font-size: 16px; line-height: 1.82; }
  main.content > img:first-child { float: none; width: min(100%, 420px); margin: 0 auto 24px; }
  main.content h2 { font-size: 28px; }
  main.content h3 { margin-top: 28px; }
  .cards, .article-grid { grid-template-columns: 1fr; gap: 13px; }
  .photo-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Refined desktop navigation: prevent orphaned links at laptop widths. */
@media (min-width: 841px) {
  nav {
    width: min(1500px, 100%);
    min-height: 88px;
    padding: 16px clamp(22px, 3vw, 48px);
    display: grid;
    grid-template-columns: minmax(250px, 360px) minmax(0, 1fr);
    align-items: center;
    column-gap: clamp(24px, 3vw, 56px);
  }
  nav .brand { max-width: 360px; font-size: clamp(19px, 1.65vw, 24px); }
  nav .links {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px 9px;
    justify-items: center;
    align-items: center;
    width: 100%;
    flex-basis: auto;
  }
  nav .links a {
    padding: 6px 4px;
    text-align: center;
    line-height: 1.35;
    font-size: clamp(11px, .78vw, 12px);
  }
}
@media (min-width: 1200px) {
  nav { grid-template-columns: minmax(300px, 390px) minmax(0, 1fr); }
  nav .links { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
/* Existing prison photograph — editorial figure without changing article wording. */
main.content .prison-editorial-photo {
  display: block;
  width: min(100%, 580px);
  margin: 12px auto 38px;
}
main.content .prison-editorial-photo img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 4px;
}

/* Keep two distinct historical WordPress news collections visibly connected. */
.news-collections {
  width: min(920px, calc(100% - 48px));
  margin: 30px auto -18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.news-collections a {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease;
}
.news-collections a:hover { border-color: var(--gold); background: var(--paper-deep); }
.news-collections a[aria-current="page"] {
  color: var(--white);
  border-color: var(--night);
  background: var(--night);
}
@media (max-width: 620px) {
  .news-collections { width: calc(100% - 28px); margin: 22px auto -6px; }
  .news-collections a { flex: 1 1 180px; }
}
