/* ==========================================================================
   aaskjer.github.io
   ========================================================================== */

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('../fonts/sora-latin-wght-normal.woff2') format('woff2');
}

/* ---------- tokens ---------- */

:root {
  --font-display: 'Sora', ui-sans-serif, system-ui, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', 'SF Mono', Consolas, monospace;
  --wrap: 1120px;
  --radius: 18px;
  --header-h: 64px;
  --grad-btn: linear-gradient(135deg, #7c3aed 0%, #4f46e5 55%, #2563eb 100%);
  --green: #34d399;

  /* dark is the default */
  color-scheme: dark;
  --bg: #0b0a12;
  --glow-1: rgb(124 58 237 / 0.24);
  --glow-2: rgb(37 99 235 / 0.14);
  --surface: #13111c;
  --surface-2: #1b1828;
  --border: rgb(255 255 255 / 0.08);
  --border-strong: rgb(255 255 255 / 0.15);
  --text: #eeedf7;
  --muted: #a6a2bb;
  --faint: #827d99;
  --accent: #b69cff;
  --grad-text: linear-gradient(120deg, #c4b5fd 0%, #818cf8 50%, #38bdf8 100%);
  --tile: #0e0c17;
  --tile-hi: #262043;
  --card-shadow: 0 24px 48px -32px rgb(0 0 0 / 0.9);
  --hover-shadow: 0 28px 60px -30px rgb(124 58 237 / 0.55);
}

:root[data-theme='light'] {
  color-scheme: light;
  --bg: #f6f5fb;
  --glow-1: rgb(124 58 237 / 0.14);
  --glow-2: rgb(37 99 235 / 0.1);
  --surface: #ffffff;
  --surface-2: #f2f0fa;
  --border: rgb(22 18 45 / 0.09);
  --border-strong: rgb(22 18 45 / 0.17);
  --text: #17142a;
  --muted: #565170;
  --faint: #736e8a;
  --accent: #6d3ae0;
  --grad-text: linear-gradient(120deg, #7c3aed 0%, #4f46e5 50%, #0369a1 100%);
  --tile: #14112a;
  --tile-hi: #2b2452;
  --card-shadow: 0 18px 40px -30px rgb(40 20 100 / 0.35);
  --hover-shadow: 0 26px 56px -30px rgb(109 58 224 / 0.45);
}

/* ---------- base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(60rem 36rem at 12% -12rem, var(--glow-1), transparent 70%),
    radial-gradient(48rem 32rem at 100% -6rem, var(--glow-2), transparent 70%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.3rem, 1.5rem + 3.2vw, 3.75rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.35rem);
  font-weight: 650;
}

h3 {
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 0.1em 0.4em;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
}

.skip-link:focus {
  top: 1rem;
}

.i {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.btn--primary {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 12px 30px -14px rgb(124 58 237 / 0.8);
}

.btn--primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn--sm {
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  font-size: 0.85rem;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.icon-btn:hover {
  border-color: var(--accent);
}

.icon-btn .i {
  width: 18px;
  height: 18px;
}

:root[data-theme='dark'] .i-moon,
:root[data-theme='light'] .i-sun {
  display: none;
}

/* ---------- header ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px #7c3aed;
}

.nav {
  display: flex;
  gap: 0.15rem;
  margin-left: auto;
}

.nav a {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
  background: var(--surface-2);
}

.topbar__actions {
  display: flex;
  gap: 0.4rem;
}

@media (max-width: 520px) {
  .brand__name {
    display: none;
  }

  .topbar__inner {
    gap: 0.5rem;
  }

  .nav a {
    padding: 0.4rem 0.6rem;
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--border-strong) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.4rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.lead {
  max-width: 36rem;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  margin: 2.5rem 0 0;
}

.stats div {
  display: flex;
  flex-direction: column-reverse;
}

.stats dt {
  color: var(--faint);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.hero__art {
  position: relative;
}

.hero__art::before {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: var(--grad-btn);
  filter: blur(70px);
  opacity: 0.4;
}

.collage {
  position: relative;
  display: grid;
  /* minmax(0, …) keeps the logos' own size from widening the columns */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.6rem, 1.5vw, 1rem);
  /* leaves room for the rotation, so no tile is cut off */
  width: min(88%, 380px);
  margin-inline: auto;
  transform: rotate(-5deg);
}

.collage__tile {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  aspect-ratio: 1;
  padding: 16%;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 22%;
  background: radial-gradient(circle at 30% 20%, var(--tile-hi), var(--tile) 72%);
  box-shadow: 0 18px 36px -20px rgb(0 0 0 / 0.8);
  transition: transform 0.2s ease;
}

.collage__tile img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgb(0 0 0 / 0.45));
}

.collage__tile:hover {
  transform: translateY(-4px) scale(1.04);
}

.collage__tile--me {
  position: relative;
  padding: 5%;
  border: 0;
  border-radius: 50%;
  background: var(--grad-btn);
}

.collage__tile--me img {
  border-radius: 50%;
  filter: none;
}

a.collage__tile--me:hover {
  box-shadow: 0 0 0 4px #9146ff, 0 18px 40px -16px rgb(145 70 255 / 0.9);
}

a.collage__tile--me:focus-visible {
  outline-offset: 5px;
  border-radius: 50%;
}

.collage__badge {
  position: absolute;
  left: 50%;
  bottom: -4%;
  translate: -50% 0;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: #9146ff;
  box-shadow: 0 0 0 3px var(--bg);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  .collage__tile {
    animation: float 7s ease-in-out infinite;
    animation-delay: calc(var(--i) * -0.8s);
  }

  .collage__tile:hover {
    animation-play-state: paused;
  }
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}

@media (max-width: 860px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .collage {
    width: min(80%, 300px);
  }
}

/* ---------- sections ---------- */

.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section + .section {
  padding-top: 0;
}

.section__head {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section__head p {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.25rem;
}

/* ---------- logo tiles & chips ---------- */

.tile {
  display: grid;
  /* a fixed track, so the logo's 100% height means the tile and not its own height */
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  flex: none;
  width: 64px;
  height: 64px;
  padding: 8px;
  border: 1px solid rgb(255 255 255 / 0.07);
  border-radius: 16px;
  background: radial-gradient(circle at 30% 20%, var(--tile-hi), var(--tile) 72%);
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tile--mono {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tile--mono .grad {
  background-image: linear-gradient(120deg, #c4b5fd 0%, #818cf8 50%, #38bdf8 100%);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}

.chip::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dot, var(--faint));
}

.chip--twitch { --dot: #9146ff; }
.chip--youtube { --dot: #ff0033; }
.chip--kick { --dot: #53fc18; }
.chip--owncast { --dot: #7871ff; }
.chip--rumble { --dot: #85c742; }
.chip--picarto { --dot: #1da456; }
.chip--tiktok { --dot: #25f4ee; }
.chip--windows { --dot: #0078d4; }

.chip--more {
  cursor: help;
}

.chip--more::before,
.chip--tag::before {
  display: none;
}

.chip--tag {
  border-style: dashed;
  background: transparent;
}

/* ---------- cards ---------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, #7c3aed 50%, var(--border));
  box-shadow: var(--hover-shadow);
}

.card:has(.card__title a:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* scene picture: full bleed across the top of the card, above the card-wide link */
.card__shot {
  position: relative;
  z-index: 1;
  display: block;
  margin: -1.35rem -1.35rem 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  background: var(--tile);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: zoom-in;
}

.card__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card__shot img {
  transform: scale(1.03);
}

.card__shot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}

.shot-zoom {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgb(0 0 0 / 0.62);
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.zoom .i {
  width: 18px;
  height: 18px;
}

.card__shot:hover .zoom,
.card__shot:focus-visible .zoom,
.shot-zoom:hover .zoom,
.shot-zoom:focus-visible .zoom {
  opacity: 1;
}

@media (hover: none) {
  .zoom { opacity: 1; }
}

.card__head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.card__heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
}

.card__title a {
  color: inherit;
  text-decoration: none;
}

/* the whole card links to the repository; buttons sit above that link */
.card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.card__title a:focus-visible {
  outline: none;
}

.card__text {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.card__foot {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.badge {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, #7c3aed 18%, transparent);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1rem;
  color: var(--faint);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.meta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.meta .i {
  width: 14px;
  height: 14px;
}

.actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0.5rem;
}

.actions .i {
  width: 16px;
  height: 16px;
}

/* ---------- spotlight ---------- */

.spotlight {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
  padding: clamp(1.35rem, 3vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(40rem 24rem at 100% 0%, color-mix(in srgb, #7c3aed 16%, transparent), transparent 70%),
    var(--surface);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.spotlight__body {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  min-width: 0;
}

.spotlight .tile {
  width: 76px;
  height: 76px;
}

.spotlight__title {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem);
}

.spotlight__title a {
  color: inherit;
  text-decoration: none;
}

.spotlight__title a:hover {
  text-decoration: underline;
}

.spotlight__text {
  color: var(--muted);
  font-size: 1.02rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 0.55rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}

.features li {
  display: flex;
  gap: 0.55rem;
}

.features .i {
  margin-top: 0.22em;
  color: var(--green);
  stroke-width: 2.6;
}

.spotlight__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

.spotlight__foot .actions {
  display: flex;
  flex-wrap: wrap;
}

.spotlight__shot {
  margin: 0;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: #1e1e1e;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.85), 0 0 0 6px color-mix(in srgb, #7c3aed 10%, transparent);
  transform: perspective(1400px) rotateY(-7deg) rotateX(2deg);
  transition: transform 0.4s ease;
}

.spotlight__shot:hover {
  transform: none;
}

.spotlight__shot img {
  width: 100%;
  height: auto;
}

.window-bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: #151515;
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a3a3a;
}

.window-bar span:first-child { background: #ff5f57; }
.window-bar span:nth-child(2) { background: #febc2e; }
.window-bar span:nth-child(3) { background: #28c840; }

@media (max-width: 900px) {
  .spotlight {
    grid-template-columns: 1fr;
  }

  .spotlight__shot {
    transform: none;
  }
}

/* ---------- get started ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.steps__n {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 1rem;
  border-radius: 11px;
  background: var(--grad-btn);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
}

.steps p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- footer ---------- */

.footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

.footer__about p {
  max-width: 30rem;
  margin-top: 0.85rem;
  font-size: 0.95rem;
}

.footer__meta {
  max-width: 34rem;
  color: var(--faint);
  font-size: 0.85rem;
}

.footer__meta p + p {
  margin-top: 0.4rem;
}

/* ---------- lightbox ---------- */

.lightbox {
  max-width: 94vw;
  max-height: 94vh;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 40px 120px -20px rgb(0 0 0 / 0.8);
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgb(5 4 10 / 0.84);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.6rem 0.55rem 1.1rem;
  border-bottom: 1px solid var(--border);
}

.lightbox__caption {
  color: var(--muted);
  font-size: 0.92rem;
}

.lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(94vw - 2px);
  max-height: calc(94vh - 58px);
  background: #000;
}

@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] {
    animation: lightbox-in 0.2s ease;
  }
}

@keyframes lightbox-in {
  from { opacity: 0; transform: scale(0.97); }
}

/* ---------- 404 ---------- */

.notfound {
  display: grid;
  place-items: center;
  min-height: 100vh;
  text-align: center;
}

.notfound .lead {
  margin-inline: auto;
}

.notfound .btn {
  margin-top: 2rem;
}
