body { background:#171617; color:#eee; }
#home { position:relative; }
#events { scroll-margin-top:0; }
.workshop-overview { width:100%; color:#fff; }
.workshop-overview h2 {
  margin:0 0 12px;
  font:400 clamp(34px,3.1vw,56px)/1 var(--header-font);
  letter-spacing:.02em;
}
.workshop-overview p {
  margin:0;
  font:400 clamp(15px,1.2vw,19px)/1.55 var(--primary-font);
}
.upcoming-summary {
  padding:clamp(30px,3.5vw,58px) clamp(24px,7vw,120px);
  background:#252125;
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(90px,200px);
  gap:14px clamp(24px,6vw,96px);
  align-items:center;
}
.upcoming-summary header { grid-column:1; }
.upcoming-summary h3 {
  color:#ffa7ff;
  margin:0 0 12px;
  font:400 clamp(29px,2.6vw,46px)/1 var(--header-font);
}
.upcoming-summary header p + p { margin-top:3px; }
.upcoming-summary .poster {
  display:block;
  grid-column:2; grid-row:1 / span 2;
  width:100%; height:auto; max-height:240px; object-fit:contain;
}
.upcoming-summary .details { grid-column:1; max-width:65ch; }
.workshop-overview .cta {
  display:inline-flex;
  align-items:center; justify-content:center;
  gap:.6em; min-height:44px; padding:10px 17px; margin-top:15px;
  border:1px solid transparent; border-radius:5px;
  background:#f4b9ec; color:#201620;
  font:600 clamp(15px,1.12vw,18px)/1.35 var(--primary-font);
  text-decoration:none; text-align:center; cursor:pointer;
}
.workshop-overview .cta .icon { flex:none; width:1em; height:1em; }
.workshop-overview .archive-cta { background:#faf7fa; color:#211c23; }
.workshop-overview .cta:hover { background:#fff; color:#201620; box-shadow:0 0 0 2px #b17ba8; }
.workshop-overview .cta:focus-visible, .jump :focus-visible {
  outline:3px solid #fff; outline-offset:4px; box-shadow:0 0 0 4px #201620;
}
#past-events-preview {
  display:grid; place-items:center; isolation:isolate;
  width:100%; aspect-ratio:16/9; background:#181627;
}
.archive-blurb {
  position:relative; z-index:1;
  max-width:34%; padding:18px clamp(10px,1vw,24px); text-align:center; pointer-events:none;
}
.archive-blurb a { pointer-events:auto; }
.archive-blurb h2 { color:#fff; }
.archive-blurb .teaser { text-wrap:pretty; }
@media (min-width:768px) {
  .archive-blurb .teaser {
    max-width:78%; margin-inline:auto; text-wrap:balance;
    -webkit-text-stroke:3px #181627;
    paint-order:stroke fill;
  }
}
.flash-img { position:relative; }
.flash-img figcaption, .gallery-credit {
  position:absolute; z-index:1; color:white; background:#141319de;
  font:400 12px/1.45 var(--primary-font); padding:4px 8px;
}
.flash-img figcaption {
  bottom:100%; left:0; max-width:100%;
  border-radius:3px;
}
@media (max-width:599px) {
  .flash-img figcaption {
    bottom:calc(env(safe-area-inset-bottom,0px) + 16px); left:14px;
  }
}
.gallery-credit { right:15px; bottom:12px; }
.jump {
  position:absolute; z-index:3; right:24px; bottom:18px;
  display:flex; align-items:center;
  border:1px solid #d1a4d3; border-radius:5px; background:#252127; color:#f9f7f9;
}
.jump a, .jump button {
  display:flex; align-items:center; gap:8px; min-height:44px;
  font:500 15px/1.3 var(--primary-font); color:inherit; padding:0 12px; text-decoration:none;
}
.jump button { background:transparent; border:0; border-left:1px solid #645a65; cursor:pointer; font-size:18px; }
.jump[hidden] { display:none; }
.gallery-preview { position:relative; }
.small-hero { isolation:isolate; }
.small-hero .content { background:#161616c9; }
.small-hero img { width:100%; }
.ongoing .showcase { height:auto; margin-bottom:0; padding-bottom:0; }
.ongoing .event-container { gap:var(--space-sm); }
.ongoing .event-container .heading { padding:0.4rem 0; }
.ongoing .event-container > .heading:first-child { margin-bottom:1rem; }
.ongoing .event-title { margin:0 0 0 2rem; font-size:var(--h4-responsive); }
.ongoing .event-detail { margin:0 0 0 2rem; font-size:var(--h6-responsive); }
.ongoing .event-container .text { margin:0 0 var(--space-sm) 1rem; padding:0 1rem; }
.ongoing .card { width:min(100%,36rem); height:auto; margin:var(--space-md) auto; }
.ongoing .card .btn { margin-bottom:2rem; }
.ongoing .card a { color:#60328b; text-decoration:underline; font-size:1.4rem; }
@media (min-width:600px) { #home > aside { position:absolute; } }
@media (max-width:860px) {
  .upcoming-summary {
    grid-template-columns:minmax(0,1fr) minmax(68px,24%); gap:11px 15px;
    padding:64px clamp(18px,4vw,32px) 28px;
  }
  .upcoming-summary .poster { grid-row:1; max-height:150px; }
  .upcoming-summary .details { grid-column:1 / -1; }
  .upcoming-summary h3 { margin-bottom:8px; }
  .workshop-overview p { font-size:15px; line-height:1.5; }
}
@media (max-width:860px), (max-width:1024px) and (pointer:coarse), (max-width:1024px) and (max-height:500px) {
  .jump {
    top:calc(env(safe-area-inset-top,0px) + 14px);
    right:calc(env(safe-area-inset-right,0px) + 14px);
    bottom:auto;
    z-index:15;
    background:linear-gradient(var(--highlight-clr),var(--highlight-clr)) #291331;
    color:#291331;
    border:1px solid #ecc3f7;
    border-radius:14px;
    box-shadow:0 3px 10px rgba(28,10,38,.36), inset 0 1px 0 rgba(255,255,255,.38);
  }
  .jump a { border-radius:13px 0 0 13px; }
  .jump button {
    min-width:44px;
    justify-content:center;
    border-color:#a862b8;
    border-radius:0 13px 13px 0;
  }
  .jump a:is(:hover,:focus-visible), .jump button:is(:hover,:focus-visible) {
    background:color-mix(in srgb,var(--highlight-clr) 48%,white);
  }
  .jump a:active, .jump button:active { background:#ca86e4; }
  #index .site-navigation.active ~ main .jump { visibility:hidden; }
}
@media (max-width:823px) and (max-height:411px) {
  /* The existing short landscape layout places the DPL logo in this corner. */
  .jump { top:calc(env(safe-area-inset-top,0px) + 10vh + 5rem + 14px); }
}
@media (min-width:600px) and (max-width:823px) and (max-height:411px) {
  #home { height:auto; gap:2rem; padding:calc(10vh + 12rem) 2rem 3rem; }
  #home .title { position:relative; bottom:auto; order:1; align-self:center; max-width:none; }
  #home .content-grid { margin:0; grid-template:repeat(2,auto) / repeat(3,1fr); row-gap:1.2rem; justify-items:center; }
  #home .flash-img { flex-direction:column; align-items:flex-start; }
  #home .flash-img figcaption { position:static; }
}
@media (max-width:767px) {
  #past-events-preview { display:block; aspect-ratio:auto; }
  .archive-blurb { max-width:58ch; padding:24px clamp(18px,4vw,32px) 28px; text-align:left; }
  .archive-blurb h2 { margin-bottom:8px; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
