/* ==========================================================================
   marcong.org — Frutiger Aero
   Sky, glass, gloss, bubbles. Light-only by design.
   ========================================================================== */

:root {
  color-scheme: light;

  --sky-top: #1f86de;
  --sky-mid: #5fbcf5;
  --sky-low: #bfe9ff;
  --sky-haze: #eefaff;

  --ink: #0e2f4f;
  --ink-soft: #3f6384;
  --ink-faint: #6f8ca8;

  --aqua-hi: #7fd8ff;
  --aqua: #1f95e6;
  --aqua-lo: #0a68c2;
  --aqua-edge: #0a579f;

  --leaf-hi: #b6f06a;
  --leaf: #4cbb2a;
  --leaf-lo: #2a8a1c;
  --leaf-edge: #24701a;

  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.8);
  --glass-edge: rgba(255, 255, 255, 0.9);

  --font: "Segoe UI", "Frutiger", "Frutiger Linotype", "Myriad Pro",
          "Lucida Grande", "Helvetica Neue", Arial, sans-serif;

  --radius: 16px;
}

* { box-sizing: border-box; }

/* Reserve the scrollbar's width on every page, so short pages (home) and
   long ones (publications) get the same viewport width and the scenery
   scales identically. */
html { min-height: 100%; scrollbar-gutter: stable; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--sky-mid);   /* fallback / overscroll; the sky itself is on .scenery */
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Scenery (fixed, behind everything) ---------------------------- */

.scenery {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  /* The sky lives here, not on body with background-attachment: fixed:
     iOS Safari ignores that and stretches the gradient over the whole
     document, so long pages looked zoomed in. */
  background-image:
    radial-gradient(ellipse 60% 45% at 82% 6%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 32%, var(--sky-low) 62%, var(--sky-haze) 82%);
}

.scenery::before {               /* aurora swooshes */
  content: "";
  position: absolute;
  inset: 0;
  background: url("aurora.svg") center 40% / cover no-repeat;
}

.scenery::after {                /* rolling hills */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(120px, 24vh, 260px);
  background: url("hills.svg") center bottom / 100% 100% no-repeat;
}

.bubble {
  position: absolute;
  bottom: -120px;
  width: var(--s, 60px);
  height: var(--s, 60px);
  left: var(--x, 50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.95) 0 9%, rgba(255, 255, 255, 0) 24%),
    radial-gradient(circle at 70% 78%, rgba(160, 255, 240, 0.45), rgba(160, 255, 240, 0) 45%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, 0.55) 70%, rgba(200, 240, 255, 0.85) 100%);
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.5), 0 0 10px rgba(255, 255, 255, 0.25);
  opacity: 0.8;
  animation: rise var(--t, 30s) linear var(--d, 0s) infinite;
}

@keyframes rise {
  0%   { transform: translate(0, 0); opacity: 0; }
  8%   { opacity: 0.85; }
  50%  { transform: translate(28px, -55vh); }
  92%  { opacity: 0.8; }
  100% { transform: translate(-12px, calc(-100vh - 240px)); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bubble { animation: none; bottom: var(--y, 20%); }
}

/* ---------- Layout --------------------------------------------------------- */

main {
  flex: 1;
  width: 100%;
  max-width: var(--max, 760px);
  margin: 0 auto;
  padding: clamp(24px, 7vh, 72px) 16px 24px;
}

.page-home main { display: flex; align-items: center; justify-content: center; }
.page-pubs { --max: 900px; }

footer {
  text-align: center;
  padding: 18px 16px 22px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(20, 80, 10, 0.7);
}

/* ---------- Glass window --------------------------------------------------- */

.window {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 120px),
    var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-edge);
  box-shadow:
    0 24px 60px rgba(4, 60, 120, 0.35),
    0 2px 6px rgba(4, 60, 120, 0.2),
    inset 0 1px 0 #fff,
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  overflow: hidden;
}

.titlebar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 10px 0 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.25) 50%, rgba(160, 215, 255, 0.25) 51%, rgba(110, 190, 250, 0.35) 100%);
  border-bottom: 1px solid rgba(10, 90, 160, 0.25);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.6);
}


.titlebar-title {
  flex: 1;
  font-size: 0.85rem;
  color: #12385c;
  text-shadow: 0 0 6px #fff, 0 0 2px #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.caption { display: flex; gap: 4px; }

.caption span,
.caption a {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(20, 60, 100, 0.45);
  background: linear-gradient(180deg, #f6fbff 0%, #d7e9f7 49%, #bdd6ec 50%, #dcefff 100%);
  box-shadow: inset 0 1px 0 #fff;
  color: #2a4c6d;
  font-size: 0;            /* hide the text glyphs; icons are drawn below */
  line-height: 1;
  text-decoration: none;
}

/* Glyphs are SVG masks filled with currentColor: same 10px box for all three,
   centred by the button's grid, and each one a single solid shape. */
.caption > *::before {
  content: "";
  position: absolute;      /* centre on the padding box = the gradient's 50% split */
  inset: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  background: currentColor;
  -webkit-mask: var(--glyph) center / contain no-repeat;
  mask: var(--glyph) center / contain no-repeat;
}

.caption > :nth-child(1) {                  /* minimise: bar */
  --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Crect x='1.5' y='4.1' width='7' height='1.8' rx='.5'/%3E%3C/svg%3E");
}

.caption > :nth-child(2) {                  /* maximise: square */
  --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Crect x='2' y='2' width='6' height='6' rx='.5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
}

.caption .close {                           /* close: X */
  --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2.2 2.2 7.8 7.8M7.8 2.2 2.2 7.8' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

.caption .close {
  width: 44px;
  border-color: #7a1a10;
  color: #fff;
  background: linear-gradient(180deg, #f3a493 0%, #d9533d 49%, #c2341d 50%, #e2735a 100%);
}

.caption a.close:hover { filter: brightness(1.12); }

.window-body { padding: clamp(22px, 5vw, 44px); }

/* ---------- Home ----------------------------------------------------------- */

.hero { text-align: center; }

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.05;
  /* background-clip:text only paints inside the box; give descenders (the g)
     room, and cancel it out so the spacing below stays the same. */
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
  color: #0b4a86;
  background: linear-gradient(180deg, #2a9bf0 0%, #0b5fb0 55%, #08427e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.9)) drop-shadow(0 4px 10px rgba(10, 90, 170, 0.18));
}

.hero .tagline {
  margin: 10px 0 0;
  font-size: 1.1rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.hero .interests {
  margin: 4px 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.hero .nb { white-space: nowrap; }   /* lines break only between phrases */

.hero .updated {            /* below the orbs; clears their hover labels */
  margin: 44px 0 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.reflection {               /* glossy floor line under the name */
  height: 1px;
  margin: 26px auto 30px;
  max-width: 560px;         /* a little wider than the interests line above */
  background: linear-gradient(90deg, transparent, rgba(10, 100, 180, 0.35) 12%, rgba(10, 100, 180, 0.35) 88%, transparent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ---------- Glossy pill buttons ------------------------------------------- */

.btn {
  /* Deeper than the decorative aqua so white labels stay readable (≥4.4:1). */
  --hi: #4fb6f5;
  --mid: #0f72c9;
  --lo: #0b5aab;
  --edge: #084a8f;
  --glow: 150, 235, 255;     /* RGB of the light caught in the glass */
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  min-width: 9.5em;
  justify-content: center;
  padding: 0.72em 1.7em;
  border-radius: 999px;
  border: 1px solid var(--edge);
  color: #fff;
  font: 600 1rem/1 var(--font);
  letter-spacing: 0.02em;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 25, 60, 0.75);
  background: linear-gradient(180deg, var(--hi) 0%, var(--mid) 50%, var(--lo) 51%, var(--mid) 100%);
  box-shadow:
    0 6px 14px rgba(0, 60, 130, 0.3),
    0 0 12px rgba(var(--glow), 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 -3px 8px rgba(var(--glow), 0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

/* The label sits in the middle ~30–70% of the height. The gloss and the
   caustic stay bright only outside that band, so text contrast is unchanged. */
.btn::before {              /* top gloss: crisp, bright at the rim */
  content: "";
  position: absolute;
  z-index: -1;
  left: 4%;
  right: 4%;
  top: 1px;
  height: 44%;
  border-radius: 999px 999px 50% 50% / 999px 999px 35% 35%;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.4) 45%,
    rgba(255, 255, 255, 0.1) 75%,
    rgba(255, 255, 255, 0.03) 100%);
}

.btn::after {               /* bottom caustic: light pooling in the glass */
  content: "";
  position: absolute;
  z-index: -1;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 42%;
  border-radius: 50% 50% 999px 999px / 40% 40% 999px 999px;
  background: radial-gradient(ellipse 60% 90% at 50% 100%,
    rgba(var(--glow), 0.6) 0%,
    rgba(var(--glow), 0.18) 50%,
    rgba(var(--glow), 0) 80%);
}

.btn:hover { filter: brightness(1.08) saturate(1.1); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0, 60, 130, 0.35), 0 0 16px rgba(var(--glow), 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.22), inset 0 -3px 10px rgba(var(--glow), 0.8); }
.btn:active { transform: translateY(1px); filter: brightness(0.96); }

.btn.green { --hi: #7fd04a; --mid: #2a8a1c; --lo: #1f6e12; --edge: #185a0e; --glow: 200, 255, 140; text-shadow: 0 1px 2px rgba(5, 40, 0, 0.75); }

.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; filter: drop-shadow(0 1px 1px rgba(0, 30, 70, 0.5)); }

/* ---------- Social orbs ---------------------------------------------------- */

.orbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.orb {
  --c1: #9ee3ff;
  --c2: #1b8fe0;
  --c3: #074f9c;
  --halo: 80, 175, 235;   /* hover glow, RGB, matched to the orb */
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(0, 40, 90, 0.45);
  background: radial-gradient(circle at 50% 120%, var(--c1) 0%, var(--c2) 55%, var(--c3) 100%);
  box-shadow:
    0 8px 16px rgba(0, 50, 110, 0.35),
    inset 0 -4px 10px rgba(255, 255, 255, 0.35),
    inset 0 2px 2px rgba(255, 255, 255, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.orb::before {              /* glass highlight */
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  top: 4%;
  height: 46%;
  border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.08));
  pointer-events: none;
}

.orb svg {
  position: relative;
  width: 26px;
  height: 26px;
  fill: #fff;
  filter: drop-shadow(0 1px 1px rgba(0, 25, 60, 0.6));
}

.orb .label {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, -4px);
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  white-space: nowrap;
  color: var(--ink);
  background: var(--glass-strong);
  border: 1px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 60, 120, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.orb:hover,
.orb:focus-visible { filter: brightness(1.12) saturate(1.15); transform: translateY(-3px) scale(1.06); box-shadow: 0 14px 24px rgba(0, 50, 110, 0.4), 0 0 18px rgba(var(--halo), 0.85), inset 0 -4px 10px rgba(255, 255, 255, 0.45), inset 0 2px 2px rgba(255, 255, 255, 0.5); }
.orb:active { transform: translateY(-1px) scale(1.02); filter: brightness(0.98); }
.orb:hover .label,
.orb:focus-visible .label { opacity: 1; transform: translate(-50%, 0); }

.orb.email    { --c1: #b7f5ff; --c2: #20b4d8; --c3: #0a6f95; --halo: 70, 205, 240; }
.orb.github   { --c1: #b9c7d6; --c2: #4b5d72; --c3: #1d2a39; --halo: 120, 140, 165; }
.orb.scholar  { --c1: #a8d4ff; --c2: #3b7fe8; --c3: #1847a8; --halo: 80, 135, 245; }
.orb.linkedin { --c1: #9fd6ff; --c2: #1a7cc8; --c3: #0a4a85; --halo: 45, 145, 220; }

/* ---------- Explorer-style toolbar (inner pages) -------------------------- */

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(220, 240, 255, 0.35));
  border-bottom: 1px solid rgba(10, 90, 160, 0.18);
}

.back {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--aqua-edge);
  background: radial-gradient(circle at 50% 120%, #9ee8ff 0%, #1f95e6 55%, #0a5fb0 100%);
  box-shadow: 0 3px 8px rgba(0, 60, 130, 0.35), inset 0 2px 2px rgba(255, 255, 255, 0.5);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.back::before {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  top: 4%;
  height: 46%;
  border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.1));
}

/* Stroked arrow, centred in its 24-unit box (with stroke: x 3.5–20.5, y 4.5–19.5). */
.back svg {
  position: relative;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 1px rgba(0, 30, 70, 0.6));
}
.back:hover { filter: brightness(1.12); transform: scale(1.05); }

.address {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid rgba(40, 90, 140, 0.35);
  background: linear-gradient(180deg, #fff, #f2f8fd);
  box-shadow: inset 0 1px 2px rgba(0, 40, 90, 0.15);
  font-size: 0.85rem;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
}

.address a { color: var(--aqua-lo); text-decoration: none; }
.address a:hover { text-decoration: underline; }
.address .sep { color: var(--ink-faint); }

/* ---------- Publications --------------------------------------------------- */

.page-heading {
  margin: 0 0 4px;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 300;
  color: #0b4f92;
  text-shadow: 0 1px 0 #fff;
}

.page-sub {
  margin: 0 0 28px;
  color: var(--ink-soft);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #134a7c;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(10, 100, 180, 0.35), transparent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pubs + .section-title { margin-top: 36px; }

.pubs {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pub {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(240, 249, 255, 0.65));
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 14px rgba(0, 60, 120, 0.12), inset 0 0 0 1px rgba(150, 200, 240, 0.35);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pub:hover {
  box-shadow: 0 8px 22px rgba(0, 60, 120, 0.2), inset 0 0 0 1px rgba(120, 200, 255, 0.7), 0 0 0 3px rgba(150, 225, 255, 0.35);
}

.year {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid var(--leaf-edge);
  background: radial-gradient(circle at 50% 120%, #d9ff9a 0%, var(--leaf) 55%, var(--leaf-lo) 100%);
  box-shadow: 0 4px 10px rgba(20, 90, 10, 0.3), inset 0 2px 2px rgba(255, 255, 255, 0.5);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-shadow: 0 1px 1px rgba(10, 50, 0, 0.6);
}

.year::before {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  top: 4%;
  height: 44%;
  border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.05));
}

.year span { position: relative; }

.pub-title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.pub-authors {
  margin: 0 0 4px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.pub-authors .me {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(31, 149, 230, 0.6);
  text-underline-offset: 3px;
}

.pub-venue {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.pub-venue em { color: #0b5aa3; }

.pub-award {               /* light green glass tag for editor recognitions */
  display: inline-block;
  margin: 8px 0 0;
  padding: 2px 11px;
  border-radius: 999px;
  border: 1px solid rgba(60, 140, 30, 0.4);
  background: linear-gradient(180deg, #f6ffef 0%, #e3f8d2 49%, #d2f2b8 50%, #e8fadb 100%);
  box-shadow: 0 1px 3px rgba(40, 100, 20, 0.15), inset 0 1px 0 #fff;
  color: #1f5a12;            /* ≈7:1 on the light green */
  font-size: 0.8rem;
  font-weight: 600;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid rgba(20, 90, 160, 0.4);
  background: linear-gradient(180deg, #ffffff 0%, #e6f3fd 49%, #cfe6f8 50%, #eaf6ff 100%);
  box-shadow: 0 1px 3px rgba(0, 50, 110, 0.15), inset 0 1px 0 #fff;
  color: #0b5aa3;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.chip:hover { filter: brightness(1.04); box-shadow: 0 0 0 3px rgba(140, 220, 255, 0.45), inset 0 1px 0 #fff; }

/* ---------- Misc ----------------------------------------------------------- */

.window-body p a {
  color: var(--aqua-lo);
  text-decoration-color: rgba(10, 104, 194, 0.35);
  text-underline-offset: 3px;
}

.window-body p a:hover { color: var(--aqua); text-decoration-color: currentColor; }

a:focus-visible,
.btn:focus-visible { outline: 3px solid rgba(255, 255, 255, 0.95); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 520px) {
  .pub { grid-template-columns: 1fr; gap: 10px; }
  .year { width: auto; height: auto; padding: 2px 12px; border-radius: 999px; justify-self: start; font-size: 0.8rem; }
  .caption span:not(.close) { display: none; }
  .btn { min-width: 0; flex: 1 1 140px; }
  .orbs { gap: 14px; }
  .orb { width: 52px; height: 52px; }
}
