:root {
  --paper: #f1f1ef;
  --ink: #1d211e;
  --muted: #8c928c;
  --line: #e4e6df;
  --accent: #c9ef9a;
  --accent-dark: #4e6636;
  --white: #ffffff;
  font-family: "Inter", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
}

button, input { font: inherit; }
button { cursor: pointer; }

.app-shell {
  width: min(100%, 1120px);
  min-height: 100vh;
  padding: 0 0 104px;
  margin: 0 auto;
  background: var(--paper);
}

.topbar, .intro, .media-tabs {
  display: flex;
  align-items: center;
}

.topbar {
  position: relative;
  justify-content: space-between;
  min-height: 68px;
  padding: 10px 16px;
  background: var(--white);
}
.topbar-title {
  position: absolute;
  top: 50%;
  left: 50%;
  text-align: center;
  transform: translate(-50%, -50%);
}
.back-link {
  display: flex;
  width: 92px;
  align-items: center;
  gap: 2px;
  color: #777b78;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
}
.topbar-mark {
  width: 28px;
  color: #777b78;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  text-decoration: none;
}
.topbar-spacer { visibility: hidden; }
.eyebrow, .section-kicker {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 0;
  font-family: "Open Sauce One", "Open Sauce", "Inter", sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.06em;
}

.lightbox-close {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
}

svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.intro { justify-content: space-between; padding: 20px 16px 14px; }
.intro h2 {
  margin-bottom: 0;
  font-family: "Open Sauce One", "Open Sauce", "Inter", sans-serif;
  font-size: 22px;
  letter-spacing: -.045em;
}
.item-count { margin: 13px 0 0; color: var(--muted); font-size: 12px; }

.media-tabs {
  gap: 8px;
  padding: 0 16px 14px;
}
.media-tab {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
}
.media-tab.is-active {
  border-color: var(--ink);
  color: var(--white);
  background: var(--ink);
}

.media-stage { background: #3d3f3e; }
.stage-media {
  position: relative;
  display: grid;
  min-height: min(58vh, 560px);
  place-items: center;
  overflow: hidden;
  background: #3d3f3e;
}
.stage-control {
  position: absolute;
  z-index: 1;
  top: 50%;
  display: grid;
  width: 36px;
  height: 54px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #1118;
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
  transform: translateY(-50%);
}
.stage-control:active { background: #111c; }
.stage-prev { left: 10px; }
.stage-next { right: 10px; }
.stage-media img, .stage-media video {
  display: block;
  width: 100%;
  height: min(58vh, 560px);
  object-fit: contain;
}
.stage-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 8px;
  border-radius: 99px;
  color: #fff;
  background: #111a;
  font-size: 10px;
}
.stage-caption { padding: 15px 16px 17px; color: #fff; }
.stage-caption h3 { margin-bottom: 4px; font-family: "Open Sauce One", "Open Sauce", "Inter", sans-serif; font-size: 17px; }
.stage-caption p { margin: 0; color: #b8bbb8; font-size: 11px; }

.empty-state { padding: 70px 20px; text-align: center; }
.empty-icon { display: block; margin-bottom: 14px; color: var(--accent-dark); font-size: 28px; }
.empty-state h3 { margin-bottom: 6px; font-family: "Open Sauce One", "Open Sauce", "Inter", sans-serif; font-size: 20px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 13px; }

@media (min-width: 640px) {
  .app-shell { padding: 0 32px 112px; }
  .topbar { margin: 0 -32px; padding-right: 32px; padding-left: 32px; }
  .intro { padding-right: 0; padding-left: 0; }
  .stage-media, .stage-media img, .stage-media video { height: min(62vh, 680px); }
  .media-tabs { padding-right: 0; padding-left: 0; }
}
