.astra {
  width: min(100% - 48px, 920px);
  margin-inline: auto;
  padding-block: 88px 40px;
}

.astra-intro { margin-bottom: 56px; text-align: center; }
.astra h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(44px, 7vw, 64px);
  line-height: 1.05;
  letter-spacing: -.055em;
}
.astra section + section { margin-top: 80px; }
.astra h2 {
  margin: 0 0 24px;
  padding: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--heading);
}
.astra-media { margin: 0 0 32px; }
.astra-media video,
.astra-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: var(--surface);
}
.astra-media video { color-scheme: dark; background: #08090a; }
.astra-media a { display: block; border-radius: 16px; }
.astra-media figcaption {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 2px 0;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.5;
}
.astra-number { flex-shrink: 0; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.astra-caption { min-width: 0; }
.astra-caption-title { display: block; color: var(--text); font-weight: 500; }
.astra-caption-models { display: block; margin-top: 4px; color: var(--secondary); font-size: 13px; }
.astra-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.astra-pair img { aspect-ratio: 4 / 3; object-fit: contain; }
.astra-process { margin: -16px 0 32px; color: var(--muted); font-size: 13px; }
.astra-process summary { cursor: pointer; padding-block: 8px; }
.astra-process img { display: block; width: min(100%, 400px); height: auto; margin: 16px auto; border-radius: 12px; }
.astra :is(a, summary, video):focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.astra-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  padding: 40px;
  background: rgb(0 0 0 / .88);
  color: white;
}
.astra-lightbox[hidden] { display: none; }
.astra-lightbox-open { overflow: hidden; }
.astra-lightbox-open > .theme-toggle { visibility: hidden; pointer-events: none; }
.astra-lightbox img { display: block; max-width: min(1200px, 100%); max-height: calc(100vh - 80px); object-fit: contain; border-radius: 10px; }
.astra-lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border: 1px solid rgb(255 255 255 / .28);
  border-radius: 50%;
  background: rgb(0 0 0 / .35);
  color: white;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}
.astra-lightbox-close:focus-visible { outline: 2px solid white; outline-offset: 3px; }
@media (max-width: 600px) {
  .astra { width: calc(100% - 32px); padding-top: 64px; }
  .astra-intro { margin-bottom: 40px; }
  .astra section + section { margin-top: 56px; }
  .astra h2 { font-size: 20px; margin-bottom: 20px; }
  .astra-media { margin-bottom: 24px; }
  .astra-media :is(img, video) { border-radius: 12px; }
  .astra-media figcaption { gap: 8px; }
  .astra-pair { grid-template-columns: 1fr; gap: 0; }
}
