/* ============================================================
   DND MUSIC (dnd-*)
   ============================================================ */

.dnd-page {
  --paper:   var(--parchment-lightest);
  --paper-2: var(--parchment-light);
  --paper-3: var(--parchment);
  --line:    #d6cbb8;
  --ink-2:   #3a3026;
  --ink-3:   #6b5a44;

  --display: var(--font-display);
  --body:    var(--font-body);
  --accent:  var(--font-accent);
  --mono:    var(--font-mono, ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace);

  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  position: relative;
}
.dnd-page::before {
  content: ""; position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(120,90,55,0.04), transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(120,90,55,0.04), transparent 60%);
}
.dnd-page > * { position: relative; z-index: 1; }
:where(.dnd-page a) { color: inherit; text-decoration: none; }

/* Base */
.dnd-section { max-width: 1340px; margin: 0 auto; padding: 80px 40px; }
.dnd-section-head { margin-bottom: 40px; max-width: 920px; }
.dnd-section-head--row { display: flex; justify-content: space-between; align-items: end; max-width: none; gap: 48px; }
.dnd-section-head__r { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 8px; text-align: right; }
.dnd-section-head__r a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; font-weight: 500; }
.dnd-kicker {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 12px;
}
.dnd-kicker::after { content: ""; width: 48px; height: 1px; background: var(--rouge); opacity: 0.5; }
.dnd-h {
  font-family: var(--display);
  font-size: 50px; line-height: 1.04; letter-spacing: -0.005em;
  font-weight: 500;
  margin: 0 0 18px;
  color: var(--ink);
  text-wrap: balance;
}
.dnd-h em { font-family: var(--accent); font-style: italic; color: var(--sepia); font-weight: 400; }
.dnd-lede {
  font-size: 18px; line-height: 1.55;
  color: var(--ink-2); max-width: 720px; margin: 0; text-wrap: pretty;
}

/* Hero */
.dnd-hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--paper);
}
.dnd-hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 50%;
  filter: brightness(0.55) saturate(0.9);
}
.dnd-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,16,12,0.55) 0%, rgba(20,16,12,0.65) 50%, rgba(20,16,12,0.95) 100%),
    linear-gradient(90deg, rgba(20,16,12,0.45) 0%, rgba(20,16,12,0.1) 60%, transparent 100%),
    radial-gradient(ellipse at 20% 70%, rgba(176,56,56,0.2), transparent 55%);
}
.dnd-hero__inner {
  position: relative; z-index: 2;
  max-width: 1340px; margin: 0 auto;
  padding: 110px 40px 130px;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 80px; align-items: end;
}
.dnd-hero__kicker {
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
  display: inline-flex; align-items: center; gap: 14px;
}
.dnd-hero__kicker::after { content: ""; width: 64px; height: 1px; background: var(--gold); opacity: 0.5; }
.dnd-hero__h {
  font-family: var(--display);
  font-size: 78px; line-height: 0.98; letter-spacing: -0.01em;
  font-weight: 500;
  margin: 0 0 22px;
  color: var(--paper);
}
.dnd-hero__h em { font-family: var(--accent); font-style: italic; color: var(--gold); font-weight: 400; }
.dnd-hero__p {
  font-size: 20px; line-height: 1.55;
  color: rgba(245,240,232,0.94);
  max-width: 580px;
  margin: 0 0 32px;
  text-wrap: pretty;
}
.dnd-hero__p em { font-style: italic; color: var(--gold); }
.dnd-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 26px; }
.dnd-btn-primary {
  background: var(--paper); color: var(--ink);
  font-family: var(--display); font-size: 12.5px;
  letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  padding: 16px 24px;
  display: inline-flex; align-items: center; gap: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  transition: background 0.15s ease;
}
.dnd-btn-primary:hover { background: var(--gold); color: var(--ink); }
.dnd-btn-primary .arrow { font-family: var(--body); font-style: italic; border-left: 1px solid rgba(26,22,18,0.25); padding-left: 14px; }
.dnd-btn-ghost {
  background: transparent; color: var(--paper);
  font-family: var(--display); font-size: 12.5px;
  letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  padding: 14px 22px;
  border: 1px solid rgba(245,240,232,0.4);
}
.dnd-btn-ghost:hover { border-color: var(--paper); }
.dnd-hero__note { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: rgba(245,240,232,0.68); line-height: 1.6; max-width: 540px; }

.dnd-hero__stats { border-left: 1px solid rgba(245,240,232,0.18); padding-left: 40px; padding-bottom: 14px; }
.dnd-hero__stat { padding: 16px 0; border-bottom: 1px solid rgba(245,240,232,0.12); }
.dnd-hero__stat:last-child { border-bottom: 0; }
.dnd-hero__stat .n { font-family: var(--display); font-size: 34px; line-height: 1; color: var(--paper); }
.dnd-hero__stat .n em { font-family: var(--accent); font-style: italic; color: var(--gold); font-weight: 400; }
.dnd-hero__stat .n .tail { font-size: 14px; font-family: var(--body); color: rgba(245,240,232,0.7); margin-left: 6px; }
.dnd-hero__stat .l { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245,240,232,0.78); margin-top: 6px; }

/* Scene grid (9 scene tracks) */
.dnd-scenes-wrap { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dnd-scenes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dnd-scene {
  background: var(--paper); border: 1px solid var(--line);
  padding: 24px 24px 20px;
  display: flex; flex-direction: column;
}
.dnd-scene__top {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
}
.dnd-scene__play {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background-size: cover; background-position: center;
  background-color: var(--paper-2);
  cursor: pointer; position: relative;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.dnd-scene__play::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%;
  background: rgba(26, 22, 18, 0.42);
  transition: background 0.12s ease;
}
.dnd-scene__play:hover { transform: scale(1.04); box-shadow: 0 4px 14px rgba(26, 22, 18, 0.22); }
.dnd-scene__play:hover::after { background: rgba(26, 22, 18, 0.28); }
.dnd-scene__play-icon {
  position: relative; z-index: 1;
  color: #fff; font-size: 13px; line-height: 1;
  margin-left: 2px;
}
.dnd-scene__play.is-playing::after { background: rgba(176, 56, 56, 0.5); }
.dnd-scene__play.is-loading::after { background: rgba(26, 22, 18, 0.55); }
.dnd-scene__tag {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--rouge); font-weight: 600;
  margin-bottom: 0;
}
.dnd-scene__h {
  font-family: var(--display); font-size: 20px;
  line-height: 1.15; font-weight: 500;
  margin: 0 0 8px; color: var(--ink);
}
.dnd-scene__h em { font-family: var(--accent); font-style: italic; color: var(--sepia); font-weight: 400; }
.dnd-scene__h a { color: inherit; }
.dnd-scene__h a:hover { color: var(--sepia); }
.dnd-scene__text { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; margin: 0 0 14px; text-wrap: pretty; flex: 1; }
.dnd-scene__link {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--rouge); font-weight: 500;
  margin-top: auto;
}

/* Intent paths (use-case grid) */
.dnd-intents-wrap { background: var(--ink); color: var(--paper); }
.dnd-intents-wrap .dnd-section-head .dnd-kicker { color: var(--gold); }
.dnd-intents-wrap .dnd-section-head .dnd-kicker::after { background: var(--gold); }
.dnd-intents-wrap .dnd-section-head .dnd-h { color: var(--paper); }
.dnd-intents-wrap .dnd-section-head .dnd-h em { color: var(--gold); }
.dnd-intents-wrap .dnd-section-head .dnd-lede { color: rgba(245,240,232,0.82); }
.dnd-intents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dnd-intent {
  background: rgba(245,240,232,0.06);
  border: 1px solid rgba(245,240,232,0.18);
  padding: 28px 28px 24px;
  display: flex; flex-direction: column;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dnd-intent:hover { border-color: var(--gold); background: rgba(245,240,232,0.1); }
.dnd-intent__num {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
  margin-bottom: 12px;
}
.dnd-intent__h {
  font-family: var(--display); font-size: 22px;
  line-height: 1.15; font-weight: 500;
  margin: 0 0 12px; color: var(--paper);
}
.dnd-intent__h em { font-family: var(--accent); font-style: italic; color: var(--gold); font-weight: 400; }
.dnd-intent__text {
  font-size: 15px; color: rgba(245,240,232,0.85);
  line-height: 1.55; margin: 0 0 20px;
  text-wrap: pretty; flex: 1;
}
.dnd-intent__cta {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--paper); font-weight: 600;
  padding-top: 14px;
  border-top: 1px solid rgba(245,240,232,0.18);
  margin-top: auto;
}
.dnd-intent__cta::after { content: " →"; color: var(--gold); }

/* Content body (markdown) */
.dnd-content-wrap { background: var(--paper); }
.dnd-content {
  max-width: 760px; margin: 0 auto;
  padding: 80px 40px;
}
.dnd-content__body { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.dnd-content__body h2, .dnd-content__body h3 {
  font-family: var(--display); color: var(--ink);
  margin: 36px 0 14px; font-weight: 500;
  line-height: 1.2;
}
.dnd-content__body h2 { font-size: 30px; }
.dnd-content__body h3 { font-size: 22px; }
.dnd-content__body p { margin: 14px 0; text-wrap: pretty; }
.dnd-content__body ul { padding-left: 22px; }
.dnd-content__body li { padding: 6px 0; }
.dnd-content__body a { color: var(--rouge); text-decoration: underline; text-underline-offset: 2px; }
.dnd-content__body strong { color: var(--ink); font-weight: 600; }

/* FAQ */
.dnd-faq {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.dnd-faq__item {
  padding: 26px 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.dnd-faq__num {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--rouge); margin-bottom: 10px;
}
.dnd-faq__q {
  font-family: var(--display); font-size: 19px;
  line-height: 1.25; font-weight: 500;
  margin: 0 0 10px; color: var(--ink);
}
.dnd-faq__a { font-size: 15.5px; color: var(--ink-2); line-height: 1.55; text-wrap: pretty; }
.dnd-faq__a a { color: var(--rouge); text-decoration: underline; text-underline-offset: 2px; }

/* Bridge */
.dnd-bridge {
  background: var(--ink); color: var(--paper);
  position: relative; overflow: hidden;
  text-align: center;
}
.dnd-bridge::before {
  content: ""; position: absolute;
  right: -120px; top: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(138,44,48,0.16), transparent 65%);
  pointer-events: none;
}
.dnd-bridge__inner {
  position: relative; z-index: 1;
  max-width: 780px; margin: 0 auto;
  padding: 80px 40px;
}
.dnd-bridge__tag {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--patreon); font-weight: 600;
  margin-bottom: 16px;
  display: inline-flex; align-items: center; gap: 10px;
}
.dnd-bridge__tag::before { content: ""; width: 28px; height: 1px; background: var(--patreon); }
.dnd-bridge__h {
  font-family: var(--display); font-size: 40px; line-height: 1.08; font-weight: 500;
  margin: 0 0 18px; color: var(--paper);
}
.dnd-bridge__h em { font-family: var(--accent); font-style: italic; color: var(--gold); font-weight: 400; }
.dnd-bridge__p {
  font-size: 17px; color: rgba(245,240,232,0.82);
  line-height: 1.55; margin: 0 auto 28px; max-width: 600px;
  text-wrap: pretty;
}
.dnd-bridge__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 1100px) {
  .dnd-hero__inner { grid-template-columns: 1fr; gap: 40px; padding: 70px 40px 80px; }
  .dnd-hero__stats { border-left: 0; border-top: 1px solid rgba(245,240,232,0.18); padding-left: 0; padding-top: 24px; }
  .dnd-scenes { grid-template-columns: 1fr 1fr; }
  .dnd-intents { grid-template-columns: 1fr 1fr; }
  .dnd-section-head--row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .dnd-section-head__r { text-align: left; }
}
@media (max-width: 700px) {
  .dnd-section { padding: 60px 22px; }
  .dnd-hero__inner { padding: 56px 22px 64px; }
  .dnd-hero__h { font-size: 48px; }
  .dnd-h { font-size: 32px; }
  .dnd-scenes { grid-template-columns: 1fr; }
  .dnd-intents { grid-template-columns: 1fr; }
  .dnd-faq { grid-template-columns: 1fr; }
  .dnd-content { padding: 60px 22px; }
}
