:root {
  --paper: #f2f2f2;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --ink: #333;
  --muted: #666;
  --green: #173f2a;
  --green-hover: #245c3d;
  --line: #e5e5e5;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  --content: 1180px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(182, 84, 61, 0.55);
  outline-offset: 3px;
}

.page {
  max-width: 1180px;
  margin: 32px auto;
  padding: 24px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  flex-wrap: wrap;
  text-align: center;
  margin-bottom: .8rem;
}

.site-header img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #444;
  letter-spacing: .02em;
}

.site-subtitle {
  text-align: center;
  margin: .25rem auto 1.25rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: #555;
}

.top-links {
  display: flex;
  justify-content: center;
  gap: .6rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.5rem;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0d6efd;
  text-decoration: none;
  border: 1px solid rgba(13, 110, 253, .25);
  border-radius: 999px;
  padding: .45rem .85rem;
  background: #f8fbff;
  line-height: 1.2;
}

.nav-button:hover {
  background: #eaf3ff;
}

.archive-shell,
.info-shell {
  width: 100%;
  margin: 0 auto;
}

.archive-shell {
  padding: 0 0 1rem;
}

.action-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid var(--green);
  border-radius: 7px;
  padding: 10px 18px;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.secondary-button {
  background: transparent;
  color: var(--green);
}

.secondary-button:hover {
  background: var(--surface-soft);
}

.action-button svg,
.secondary-button svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.action-button {
  background: var(--green);
  color: #fff;
}

.action-button:hover {
  background: var(--green-hover);
}

.image-figure {
  margin: 0;
}

.image-stage {
  display: grid;
  min-height: 320px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(23, 63, 42, 0.18);
  border-radius: 9px;
  background: #e9e9e5;
  box-shadow: var(--shadow);
}

.image-stage img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
}

.image-caption {
  max-width: 900px;
  margin: 18px auto 0;
  text-align: center;
}

.caption-title {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.35;
}

.caption-details {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.group-name {
  margin-top: 8px;
  color: #555;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.media-section,
.original-section {
  margin-top: 40px;
}

.section-title {
  margin: 0 0 12px;
  color: #555;
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  line-height: 1.15;
}

.media-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 22px;
  border-radius: 8px;
  padding: 14px 16px 14px 20px;
  background: var(--surface-soft);
}

.media-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--green);
  font-size: 1.12rem;
  font-weight: 700;
}

.media-summary svg {
  width: 30px;
  height: 30px;
}

.media-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.expand-panel {
  margin-top: 18px;
}

.video-card {
  overflow: hidden;
  border-radius: 9px;
  background: #090b09;
  box-shadow: var(--shadow);
}

.video-card video {
  width: 100%;
  max-height: 76vh;
}

.video-copy {
  margin-top: 14px;
}

.video-copy h3 {
  margin: 0;
  color: var(--green);
}

.video-copy p {
  margin: 5px 0 0;
  color: var(--muted);
}

.extras-grid {
  display: grid;
  justify-items: center;
  gap: 24px;
}

.extra-image-button {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: var(--surface);
  cursor: zoom-in;
}

.extra-image-button img {
  width: auto;
  max-width: 100%;
  height: auto;
}

.original-section {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.original-overview {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  align-items: center;
  gap: 24px;
}

.original-thumb {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #e9e9e5;
}

.original-thumb img {
  width: 100%;
  height: 145px;
  object-fit: cover;
  filter: grayscale(1);
}

.original-copy p {
  max-width: 600px;
  margin: 0 0 14px;
  color: var(--muted);
}

.original-panel img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ecece8;
}

.info-shell {
  padding: 42px 0 70px;
}

.intro-panel {
  border-top: 5px solid var(--green);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 54px);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.intro-panel h2,
.intro-panel h3 {
  color: var(--green);
}

.intro-panel h2 {
  margin-top: 0;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.15;
}

.intro-panel h3 {
  margin: 34px 0 8px;
  font-size: 1.45rem;
}

.intro-panel li + li {
  margin-top: 10px;
}

.intro-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
}

.intro-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e5e5;
  text-align: center;
  color: #555;
  font-size: .95rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .35rem .8rem;
  margin-bottom: .5rem;
}

.site-footer a {
  color: #0d6efd;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.copyright {
  margin: 0;
  color: #666;
}

.lightbox {
  width: min(1100px, calc(100% - 28px));
  max-height: 92vh;
  border: 0;
  border-radius: 10px;
  padding: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.lightbox::backdrop {
  background: rgba(13, 21, 16, 0.82);
}

.lightbox img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
}

.lightbox-close {
  display: block;
  min-height: 44px;
  margin: 0 0 10px auto;
  border: 1px solid var(--green);
  border-radius: 6px;
  padding: 8px 14px;
  background: var(--surface);
  color: var(--green);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .site-header img { width: 58px; height: 58px; }
  .page { margin: 16px auto; padding: 16px; border-radius: 0; }

  .image-stage {
    min-height: 190px;
  }

  .media-band,
  .original-overview {
    grid-template-columns: 1fr;
  }

  .media-actions {
    justify-content: stretch;
  }

  .media-actions > * {
    width: 100%;
  }

  .extras-grid {
    gap: 12px;
    padding-bottom: 8px;
  }

  .extra-image-button {
    width: 100%;
  }

  .original-thumb img {
    height: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
