
.dp-page {
  --dp-ink: #1B1B3A;
  --dp-accent: #1F1AA8;
  --dp-accent-soft: #E9E8FA;
  --dp-shadow: #b9b7ef;
  --dp-green: #E4EAD8;   --dp-green-ink: #4A5A28;   --dp-green-tile: #EEF1E4;
  --dp-pink: #F9E3E3;    --dp-pink-ink: #8E3F3B;    --dp-pink-tile: #FBEAEA;
  --dp-beige: #F1E8DA;   --dp-beige-ink: #6E5A3A;   --dp-beige-tile: #F4ECDF;
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 48px 56px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  box-sizing: border-box;
  font-family: "Roboto Mono", monospace;
  color: var(--dp-ink);
}
.dp-page *, .dp-page *::before, .dp-page *::after { box-sizing: border-box; }
.dp-page p, .dp-page li { font-family: "Roboto Mono", monospace; line-height: 1.7; }
.dp-page a { color: var(--dp-accent); text-decoration: none; }
.dp-page a:hover, .dp-page a:focus-visible { text-decoration: underline; }
.dp-page a:focus-visible, .dp-page iframe:focus-visible { outline: 3px solid var(--dp-accent); outline-offset: 3px; }
.dp-page h1, .dp-page h2, .dp-page h3 { margin: 0; padding: 0; }
.dp-page h3 { font-family: "Bitcount", system-ui; }

/* Hero */
.dp-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; align-items: center; }
.dp-hero-text { display: flex; flex-direction: column; gap: 18px; }
.dp-page h1 { overflow-wrap: anywhere; line-height: 1.05; color: var(--dp-accent); text-shadow: 3px 3px 0 var(--dp-shadow); }
.dp-sub { margin: 0; font-size: 18px; line-height: 1.5; }
.dp-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dp-chips li { padding: 6px 14px; border-radius: 999px; font-size: 12px; line-height: 1.5; }
.dp-chip-green { background: var(--dp-green); color: var(--dp-green-ink); }
.dp-chip-pink  { background: var(--dp-pink);  color: var(--dp-pink-ink); }
.dp-chip-beige { background: var(--dp-beige); color: var(--dp-beige-ink); }
.dp-video { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0b0b14; }
.dp-video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Intro + quote */
.dp-intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: center; }
.dp-intro p { margin: 0; font-size: 15px; }
.dp-quote { margin: 0; padding: 20px 24px; border-radius: 14px; background: var(--dp-accent-soft); color: var(--dp-accent); font-size: 20px; line-height: 1.4; }

/* Section headings */
.dp-section { display: flex; flex-direction: column; gap: 16px; }
.dp-page h2 { font-size: 28px; }
.dp-kicker { margin: 0; font-size: 13px; color: var(--dp-pink-ink); }

/* Tiles (used for bug steps and responsibilities) */
.dp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.dp-tile { padding: 20px; border-radius: 14px; font-size: 14px; line-height: 1.6; }
.dp-tile h3 { font-size: 20px; margin-bottom: 8px; }
.dp-tile p { margin: 0; }
.dp-tile-green { background: var(--dp-green-tile); color: var(--dp-green-ink); }
.dp-tile-pink  { background: var(--dp-pink-tile);  color: var(--dp-pink-ink); }
.dp-tile-beige { background: var(--dp-beige-tile); color: var(--dp-beige-ink); }
.dp-grid-small { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.dp-grid-small .dp-tile { padding: 16px; font-size: 13px; }

/* Responsibilities + tech stack */
.dp-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.dp-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dp-tags li { padding: 7px 14px; border-radius: 999px; font-size: 13px; line-height: 1.5; }

/* Banner + Steam */
.dp-banner { width: 100%; height: 220px; object-fit: cover; object-position: center 30%; border-radius: 14px; display: block; }
.dp-steam { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.dp-steam iframe { border: 0; width: 100%; max-width: 500px; height: 190px; }

/* Back / next */
.dp-foot { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; border-top: 1px solid #ece8dc; padding-top: 20px; }

@media (max-width: 640px) {
  .dp-page { padding: 24px 20px 40px; gap: 32px; }
}
@media (prefers-reduced-motion: reduce) { .dp-page * { transition: none !important; animation: none !important; } }

/* Per-project accent. Add one of these classes next to dp-page. Blue is the default. */
.dp-theme-green  { --dp-accent: #2E7D4F; --dp-accent-soft: #E3F0E8; --dp-shadow: #bfe0cc; }
.dp-theme-purple { --dp-accent: #7A1FA2; --dp-accent-soft: #F3E8F8; --dp-shadow: #dcc1e8; }
.dp-theme-orange { --dp-accent: #B4501A; --dp-accent-soft: #F9EADF; --dp-shadow: #f1cdb4; }

/* Local video, screenshot gallery, status box, button */
.dp-video video { width: 100%; height: 100%; display: block; object-fit: cover; }
.dp-callout { padding: 20px 24px; border-radius: 14px; background: var(--dp-accent-soft); font-size: 14px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.dp-callout p { margin: 0; }
.dp-page a.dp-btn { display: inline-block; padding: 10px 18px; border-radius: 8px; background: var(--dp-accent); color: #fff; font-size: 13px; font-weight: 700; }
.dp-page a.dp-btn:hover { text-decoration: none; filter: brightness(1.1); }


/* Screenshot strip: your original behaviour, the hovered image grows wider than its neighbours */
.dp-gallery { display: flex; width: 100%; gap: 5px; }
.dp-gallery img {
  height: 250px;
  flex: 1;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  cursor: pointer;
  transition: 0.5s all cubic-bezier(0.175, 0.885, 0.32, 1);
}
.dp-gallery img:hover { flex: 2; }
@media (max-width: 768px) {
  .dp-gallery img { height: 160px; }
}

/* Screenshots and title sprite */
.dp-shot { width: 100%; height: auto; border-radius: 14px; display: block; }
.dp-shot-wide { max-height: 420px; object-fit: cover; object-position: center; }
.dp-title-row { display: flex; align-items: center; gap: 16px; }
.dp-sprite { height: 56px; width: auto; image-rendering: pixelated; }

/* Teal accent (User API page) */
.dp-theme-teal { --dp-accent: #0F6E56; --dp-accent-soft: #E1F5EE; --dp-shadow: #b6e3d3; }

/* Rose accent (SyncSlate page) */
.dp-theme-rose { --dp-accent: #be7383; --dp-accent-soft: #FBE8EE; --dp-shadow: #f0c2cf; }