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

:root {
  --bg: #ffffff;
  --bg-alt: #f7f7f5;
  --ink: #0f0f0f;
  --ink-soft: #555;
  --ink-mute: #888;
  --line: #e5e5e0;
  --accent: #c4452d;
  --accent-soft: #fef0ec;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html { scroll-behavior: smooth; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }

/* Top banner */
.top-banner {
  background: var(--ink);
  color: var(--bg);
  padding: 8px 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  text-align: center;
  letter-spacing: 0.5px;
}
.top-banner span { opacity: 0.8; }

/* Site header */
header.site-header {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 36px;
  height: 36px;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
}

.brand-text h1 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.2px;
  color: var(--ink);
}

.brand-text p {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

nav.primary ul { list-style: none; display: flex; gap: 4px; }

nav.primary a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 2px;
  transition: background 0.15s;
}
nav.primary a:hover { background: var(--bg-alt); text-decoration: none; }
nav.primary a.active { background: var(--bg-alt); color: var(--accent); }

@media (max-width: 900px) {
  .header-grid { grid-template-columns: 1fr; gap: 20px; }
  nav.primary ul { flex-wrap: wrap; gap: 2px; justify-content: center; }
  nav.primary a { padding: 6px 10px; font-size: 13px; }
}

/* Page title bar (used on non-home pages) */
.page-title-bar {
  background: var(--bg-alt);
  padding: 50px 0;
  border-bottom: 1px solid var(--line);
}

.page-title-bar h1 {
  font-family: 'IBM Plex Serif', serif;
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 48px);
  letter-spacing: -1px;
  line-height: 1.1;
}

.page-title-bar .meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-title-bar .meta::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}

/* Hero on homepage */
.hero { border-bottom: 1px solid var(--line); }

.hero-image {
  width: 100%;
  height: 460px;
  overflow: hidden;
  position: relative;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05);
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15, 15, 15, 0.55), rgba(15, 15, 15, 0.15));
}

.hero-image-label {
  position: absolute;
  bottom: 24px;
  left: 32px;
  z-index: 2;
  color: var(--bg);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: rgba(15, 15, 15, 0.7);
  padding: 8px 14px;
}

.hero-text { padding: 70px 0 50px; }

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: end;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 30px; } }

.hero-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-label::before { content: ''; width: 24px; height: 1px; background: var(--accent); }

.hero h2 {
  font-family: 'IBM Plex Serif', serif;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 28px;
  max-width: 800px;
}
.hero h2 strong { font-weight: 700; }

.hero-lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 600px;
}

.hero-facts {
  border-left: 2px solid var(--ink);
  padding-left: 24px;
}

.hero-facts dl { display: grid; gap: 18px; }

.hero-facts dt {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ink-mute);
  margin-bottom: 3px;
}

.hero-facts dd { font-size: 15px; font-weight: 500; }

/* Stats strip */
.stats {
  background: var(--ink);
  color: var(--bg);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }

.stat .num {
  font-family: 'IBM Plex Serif', serif;
  font-size: 42px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.stat .label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.65);
}

.stats .container > p {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 24px;
  text-align: center;
}

/* Section utilities */
.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 40px;
  gap: 20px;
  flex-wrap: wrap;
}

.section-head h3 {
  font-family: 'IBM Plex Serif', serif;
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.8px;
}

.section-head .meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Prose content (for FAQ, Zoning, news articles) */
.prose {
  max-width: 760px;
  margin: 0 auto;
}

.prose h2 {
  font-family: 'IBM Plex Serif', serif;
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.6px;
  margin: 48px 0 16px;
  line-height: 1.2;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-family: 'IBM Plex Serif', serif;
  font-weight: 600;
  font-size: 22px;
  margin: 36px 0 12px;
  letter-spacing: -0.3px;
}

.prose h4 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 24px 0 8px;
  color: var(--accent);
}

.prose p { margin-bottom: 16px; line-height: 1.7; }
.prose ul, .prose ol { margin: 16px 0 16px 24px; }
.prose li { margin-bottom: 8px; line-height: 1.65; }
.prose strong { font-weight: 600; }

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

.prose img {
  margin: 24px 0;
  border: 1px solid var(--line);
}

.prose a { font-weight: 500; }

/* Q&A blocks */
.qa-block {
  background: var(--bg-alt);
  padding: 28px 32px;
  margin: 24px 0;
  border-left: 3px solid var(--accent);
}

.qa-block .qa-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  font-weight: 600;
}

.qa-block h4 {
  margin-top: 16px;
  margin-bottom: 6px;
}

.qa-block h4:first-of-type { margin-top: 0; }

/* Doc list */
.doc-list { border-top: 1px solid var(--line); }

.doc-category {
  padding: 32px 0 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}

.doc-category h3 {
  font-family: 'IBM Plex Serif', serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.doc-category .cat-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
}

.doc {
  display: grid;
  grid-template-columns: 80px 1fr 140px 80px;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  transition: background 0.15s;
}

.doc:hover {
  background: var(--bg-alt);
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
}

.doc-type {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--bg);
  background: var(--ink);
  padding: 4px 8px;
  text-align: center;
  width: fit-content;
}
.doc-type.pdf { background: var(--accent); }
.doc-type.ext { background: #1f3a5f; }
.doc-type.audio { background: #2d5e3e; }

.doc-title { font-weight: 500; font-size: 15px; color: var(--ink); }
.doc-title a { color: var(--ink); }
.doc-title a:hover { color: var(--accent); }

.doc-title small {
  display: block;
  color: var(--ink-mute);
  font-size: 13px;
  font-weight: 400;
  margin-top: 2px;
}

.doc-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--ink-soft);
}

.doc-action {
  text-align: right;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink);
}
.doc-action::after { content: ' \2192'; }

@media (max-width: 800px) {
  .doc { grid-template-columns: 70px 1fr; gap: 12px; }
  .doc-date, .doc-action { display: none; }
}

/* Timeline grid */
.timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 700px) { .timeline { grid-template-columns: 1fr; } }

.event {
  background: var(--bg);
  padding: 28px;
  transition: background 0.15s;
  display: block;
  color: var(--ink);
  text-decoration: none;
}
.event:hover { background: var(--bg-alt); text-decoration: none; }

.event-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  font-weight: 600;
}

.event h4 {
  font-family: 'IBM Plex Serif', serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
  color: var(--ink);
}

.event p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

/* Compare images */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
@media (max-width: 700px) { .compare-grid { grid-template-columns: 1fr; } }

.compare-item { position: relative; }

.compare-item img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.compare-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--bg);
  color: var(--ink);
  padding: 8px 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.compare-tag.warn { background: var(--accent); color: var(--bg); }

.compare-caption {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* Map grid */
.map-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 800px) { .map-grid { grid-template-columns: 1fr; } }

.map-card {
  border: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
}

.map-card img { width: 100%; height: 220px; object-fit: cover; }

.map-card-body {
  padding: 18px 20px;
  border-top: 1px solid var(--line);
}

.map-card-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 6px;
}

.map-card h4 {
  font-family: 'IBM Plex Serif', serif;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}

.map-card p { font-size: 13px; color: var(--ink-soft); }

/* News list */
.news-list { max-width: 880px; margin: 0 auto; }

.news-item {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.news-item:first-child { padding-top: 0; }

.news-item-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  font-weight: 600;
}

.news-item h2 {
  font-family: 'IBM Plex Serif', serif;
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.news-item h2 a { color: var(--ink); }
.news-item h2 a:hover { color: var(--accent); text-decoration: none; }

.news-item-excerpt { color: var(--ink-soft); line-height: 1.6; margin-bottom: 12px; }

.news-item-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.news-item-link::after { content: ' \2192'; }

/* Photo gallery */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (max-width: 700px) { .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; } }

.photo-grid figure { margin: 0; position: relative; cursor: pointer; overflow: hidden; }

.photo-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.photo-grid figure:hover img { transform: scale(1.05); }

.photo-section-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 12px;
  margin-top: 48px;
}

.photo-section-title:first-child { margin-top: 0; }

.photo-section-desc {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 24px;
  max-width: 700px;
}

/* About / vision */
.about {
  background: var(--bg-alt);
  padding: 70px 0;
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; gap: 24px; } }

.about-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink-mute);
}

.about-text {
  font-family: 'IBM Plex Serif', serif;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
}

.about-text strong {
  background: var(--accent-soft);
  padding: 0 4px;
  font-weight: 500;
}

.about-text p { margin-bottom: 16px; }
.about-text p:last-child { margin-bottom: 0; }

/* Footer */
footer { padding: 40px 0; background: var(--ink); color: var(--bg); }

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.5px;
}

@media (max-width: 600px) {
  .footer-grid { flex-direction: column; gap: 12px; text-align: center; }
}

footer a { color: rgba(255, 255, 255, 0.8); }

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

.data-table th {
  background: var(--ink);
  color: var(--bg);
  padding: 12px 16px;
  text-align: left;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.data-table tr:nth-child(even) td { background: var(--bg-alt); }

.data-table .num {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  color: var(--accent);
}

/* Audio player */
audio { width: 100%; margin: 16px 0; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: pointer;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 30px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
}
