/* shared.css — used by all subpages */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --g1: #075E54;
  --g2: #128C7E;
  --g3: #25D366;
  --g-light: #e8f5e9;
  --amber: #EF9F27;
  --amber-light: #FFF8E7;
  --dark: #0d1a17;
  --ink: #1a2e28;
  --muted: #5a7a72;
  --line: #d4e8e2;
  --bg: #f4f8f6;
  --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

/* NAV */
.subnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244,248,246,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 52px;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-family: 'DM Mono', monospace;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--line);
  transition: all 0.15s;
  white-space: nowrap;
}

.back-btn:hover { background: var(--g-light); color: var(--g1); border-color: var(--g2); }

.subnav-title {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subnav-tag {
  font-size: 10px;
  font-family: 'DM Mono', monospace;
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

/* PAGE CONTENT */
.page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.page-hero {
  margin-bottom: 2.5rem;
}

.page-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--g2);
  margin-bottom: 0.8rem;
}

.page-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.8rem;
}

.page-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 680px;
}

/* IMAGE DISPLAY */
.artifact-image-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.artifact-image-wrap img {
  width: 100%;
  display: block;
}

.artifact-image-wrap.padded {
  padding: 2rem;
}

/* Multi-image grid */
.image-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 2rem;
}

.image-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.image-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.image-grid .artifact-image-wrap { margin-bottom: 0; }

/* Image caption */
.img-caption {
  padding: 0.75rem 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  color: var(--muted);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Context box */
.context-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.context-box h3 {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.context-box p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

.context-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 2rem;
}

.context-chip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
}

.chip-label {
  font-size: 10px;
  font-family: 'DM Mono', monospace;
  color: var(--g2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.chip-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
}

/* IFRAME embed */
.iframe-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.iframe-wrap iframe {
  width: 100%;
  border: none;
  display: block;
}

/* FOOTER */
.subpage-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.4);
  text-align: center;
  padding: 1.5rem;
  font-size: 11px;
  font-family: 'DM Mono', monospace;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .image-grid.cols-2, .image-grid.cols-3 { grid-template-columns: 1fr; }
  .context-grid { grid-template-columns: 1fr 1fr; }
  .page-content { padding: 2rem 1.2rem 4rem; }
}
