/* Page-specific theme for the Domino Youth Philanthropy case file.
   Only overrides the CSS custom properties defined on .project-page
   in the shared /style.css, plus a small set of domino-only extras
   (the YouTube hero embed, stat chips, the reflection quote line, and
   the comic-strip width cap) that don't belong in the shared
   stylesheet since no other project uses them. */

.project-page[data-theme="domino"] {
  --proj-accent: #3FA6C9;      /* sky blue, sampled from the fundraising campaign screenshot */
  --proj-accent-2: #F2B84A;    /* warm gold, sampled from the workshop analysis board */
  --proj-accent-soft: #FBF3E4; /* warm cream */
  --proj-ink: #362519;         /* warm brown ink */
}

.project-page[data-theme="domino"] .project-main a {
  color: var(--proj-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.project-page[data-theme="domino"] .project-main a:hover {
  color: var(--proj-ink);
}

/* ---- Hero: the video's owner has embedding disabled (confirmed —
   the iframe player itself returns "Error 153: Video player
   configuration error" even outside this site), so the hero links
   out to YouTube instead of embedding a player. It still needs its
   own aspect ratio rather than stretching to match the text column's
   height (the shared default) — same pattern wellnesszine uses for
   its logo canvas. */
.project-page[data-theme="domino"] .project-hero-figure {
  flex: 1 1 380px;
  align-self: flex-start;
  aspect-ratio: 16 / 9;
}

.project-page[data-theme="domino"] .hero-video-link {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  flex: 1 1 auto;
  min-height: 0;
}

.project-page[data-theme="domino"] .hero-video-link img {
  display: block;
  width: 100%;
  height: 100%;
  flex: 1 1 auto;
  min-height: 0;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.project-page[data-theme="domino"] .hero-video-link:hover img {
  transform: scale(1.035);
}

.project-page[data-theme="domino"] .hero-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  padding-left: 5px;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.72);
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.6rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.project-page[data-theme="domino"] .hero-video-link:hover .hero-play-icon {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--proj-accent);
}

/* ---- Stat chips: the two fundraising totals in Reflection, pulled
   out of the paragraph so they register at a glance. Same component
   as umami.css's and bird.css's — page-specific since it isn't in
   the shared stylesheet. ---- */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 22px 0 28px;
}

.stat-chip {
  flex: 1 1 160px;
  padding: 18px 20px;
  background: var(--proj-accent-soft);
  border: 1.5px solid var(--proj-ink);
  border-radius: 4px 14px 3px 12px / 12px 3px 14px 4px;
  box-shadow: 5px 5px 0px var(--proj-accent-2);
}

.stat-chip .stat-number {
  display: block;
  font-family: "Just Me Again Down Here", cursive;
  font-weight: 400;
  font-size: 2em;
  line-height: 1.1;
  color: var(--proj-accent);
}

.stat-chip .stat-label {
  display: block;
  margin-top: 6px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  color: var(--proj-ink);
  opacity: 0.75;
  line-height: 1.35;
}

/* ---- Reflection pull-quote: plain text, not the boxed/bordered
   .project-pullquote treatment — just Aubrey set in the theme's main
   accent color. Same component as umami.css's .quote-line. ---- */
.project-page[data-theme="domino"] .quote-line {
  max-width: min(100%, 680px);
  margin: 20px 0;
  font-family: "Aubrey", serif;
  font-size: 1.4em;
  line-height: 1.3;
  color: var(--proj-accent);
}

/* ---- Comic snippets: comic1.PNG/comic2.PNG are full scanned strips
   at an extreme portrait ratio (roughly 1:4 to 1:6), so showing them
   inline at any legible width would dominate the page's vertical
   flow. Instead each renders as a small cropped teaser that opens the
   full page in the lightbox below. */
.project-page[data-theme="domino"] .comic-pair {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 26px 0;
}

.project-page[data-theme="domino"] .comic-snippet {
  position: relative;
  display: block;
  width: 220px;
  height: 300px;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1.4px solid var(--proj-ink);
  border-radius: 10px;
  cursor: none;
}

.project-page[data-theme="domino"] .comic-snippet img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.35s ease;
}

.project-page[data-theme="domino"] .comic-snippet:hover img {
  transform: scale(1.06);
}

.project-page[data-theme="domino"] .comic-snippet-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 10px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: #ffffff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
  text-align: left;
}

/* ---- Comic lightbox: an in-page overlay (not a new tab) that shows
   the tapped comic at a much larger, comfortably readable width, with
   its own vertical scroll since the source strip is so tall, plus
   prev/next to move between pages without closing and reopening. */
.project-page[data-theme="domino"] .comic-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-page[data-theme="domino"] .comic-lightbox[hidden] {
  display: none;
}

.project-page[data-theme="domino"] .comic-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 14, 10, 0.86);
  cursor: none;
}

.project-page[data-theme="domino"] .comic-lightbox-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 94vw;
}

.project-page[data-theme="domino"] .comic-lightbox-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.project-page[data-theme="domino"] .comic-lightbox-scroll {
  width: min(78vw, 640px);
  max-height: 82vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: #ffffff;
  border: 1.5px solid var(--proj-ink);
  border-radius: 12px;
  box-shadow: 8px 8px 0px var(--proj-accent-2);
}

.project-page[data-theme="domino"] .comic-lightbox-img {
  display: block;
  width: 100%;
  height: auto;
}

.project-page[data-theme="domino"] .comic-lightbox-hint {
  margin: 15px 0 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 0.65;
}

.project-page[data-theme="domino"] .comic-lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 38px;
  height: 38px;
  padding: 0;
  line-height: 1;
  font-size: 1.6rem;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.5);
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  cursor: none;
}

.project-page[data-theme="domino"] .comic-lightbox-nav {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  padding: 0;
  font-size: 1.3rem;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.5);
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  cursor: none;
  transition: background 0.2s ease;
}

.project-page[data-theme="domino"] .comic-lightbox-nav:hover {
  background: var(--proj-accent);
}

@media (max-width: 720px) {
  .project-page[data-theme="domino"] .comic-lightbox-shell {
    gap: 8px;
  }

  .project-page[data-theme="domino"] .comic-lightbox-scroll {
    width: 74vw;
    max-height: 80vh;
  }

  .project-page[data-theme="domino"] .comic-lightbox-close {
    top: -42px;
  }

  .project-page[data-theme="domino"] .comic-lightbox-nav {
    width: 40px;
    height: 40px;
  }
}
