.story-nav { gap: clamp(.5rem, 2vw, 1.25rem); }
.story-back a { text-decoration: none; }
#orbit-header .lang a {
  display: grid;
  place-items: center;
  min-width: 2.45rem;
  padding: .375rem .75rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
}

#orbit-header .lang a[aria-current="page"] {
  background: #a6b1ff;
  color: #101532;
}

#orbit-header .lang a:focus-visible { outline-offset: -3px; }

@media (max-width: 410px) {
  #orbit-header .lang a { padding-inline: .5rem; }
}

.story-page h1 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); font-weight: 500; line-height: 1.2; overflow-wrap: anywhere; }
.story-page ul { padding-inline-start: 1.25rem; }
.story-page .story-archive-link { margin-block: 1.5rem 0; }

@media (max-width: 480px) {
  .story-nav, body > main > .wrap { padding-inline: 1rem; }
  .story-page { padding-inline: 1rem; }
  body > main { padding-block-start: 2rem; }
  .foot .footer-links { margin-left: 0; }
}

.story-page figure { margin: 0; }
.story-page img { display: block; max-width: 100%; }
.story-page .date { color: #e3a1ff; }
.story-page li { margin-block: .35rem; }
#advent-lightbox-image, #advent-lightbox img { display: block; }

.story-page .pictures > figure,
.story-page .advent-image-zoom {
  min-width: 0;
  max-width: 100%;
}

#advent-content.story-page figure img {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.story-page figcaption, .story-page p {
  overflow-wrap: anywhere;
}

.archive-intro { max-width: 38rem; margin-bottom: 1.5rem; }
.archive-intro p { margin-top: .65rem; }
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
}
.archive-card {
  min-width: 0;
  border: 1px solid #79e7ff75;
  border-radius: .85rem;
  background: #111a37;
  box-shadow: 0 0 14px #69ceff26;
  overflow: hidden;
}
.archive-card:nth-child(3n+2) { border-color: #b09bff90; }
.archive-card:nth-child(3n+3) { border-color: #dd87f491; }
.archive-card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.archive-card a:focus-visible { outline-offset: -3px; }
.archive-card:hover { border-color: #9beaff; box-shadow: 0 0 18px #69ceff55; }
.archive-art {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background: radial-gradient(ellipse at center, #233668, #0a1028);
  overflow: hidden;
}
.archive-art-light { background: #fff; }
.archive-art img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.archive-art-debian img { box-sizing: border-box; padding: clamp(.75rem, 2vw, 1.5rem); }
.archive-art span { font: 600 2.25rem monospace; color: #9beaff; text-shadow: 0 0 12px #69ceff; }
.archive-copy { display: flex; flex-direction: column; flex: 1; padding: .9rem; }
.archive-copy h2 { font-size: 1.2rem; line-height: 1.25; margin: 0 0 .45rem; color: var(--ink); }
.archive-copy p { margin: 0 0 .65rem; font-size: .95rem; }
.archive-action { margin-top: auto; font-weight: 500; }

#orbit-header .nav-links { display: flex; gap: clamp(.65rem, 2vw, 1.6rem); margin-left: auto; }
#orbit-header .nav-links a { color: var(--ink-soft); text-decoration: none; }
#orbit-header .nav-links a:hover { color: var(--ink); }
#orbit-header .nav-dl {
  display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .8rem;
  color: var(--ink); border: 1px solid var(--edge); border-radius: 999px;
  text-decoration: none; white-space: nowrap;
}
@media (max-width: 760px) {
  #orbit-header .lang { margin-left: auto; }
  #orbit-header .nav-links, #orbit-header .nav-dl { display: none; }
  #orbit-header.is-menu-open .nav-links { display: grid; gap: 0; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  #orbit-header .nav { flex-wrap: wrap; padding-block: .45rem; gap: .45rem 1rem; }
  #orbit-header .nav-links { order: 3; width: 100%; justify-content: center; }
  #orbit-header .nav-dl { margin-left: auto; }
  #orbit-header .lang { margin-left: 0; }
}

.story-context { margin-block: 1.5rem; }
.story-context h2 { margin: 0 0 .65rem; font-size: clamp(1.25rem, 2.5vw, 1.65rem); }
.story-context code { color: #a8ecff; overflow-wrap: anywhere; }
