@import url("https://fonts.googleapis.com/css2?family=Michroma&family=Orbitron:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --info-bg: #050213;
  --info-panel: rgba(8, 5, 30, 0.76);
  --info-panel-strong: rgba(7, 4, 27, 0.91);
  --info-panel-soft: rgba(18, 10, 52, 0.62);
  --info-edge: rgba(188, 170, 255, 0.23);
  --info-edge-strong: rgba(92, 222, 255, 0.38);
  --info-text: #eeeaff;
  --info-muted: #c0b8da;
  --info-faint: #9288af;
  --info-cyan: #52dcff;
  --info-violet: #a06cff;
  --info-pink: #ff57bd;
  --info-green: #75f3c2;
  --info-danger: #ff8db2;
  --info-gradient: linear-gradient(95deg, #79e9ff 0%, #b88cff 52%, #ff77c8 100%);
  --info-shadow: 0 28px 90px rgba(0, 0, 18, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.075);
  font-family: "Orbitron", "Michroma", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--info-bg);
  scroll-behavior: smooth;
}

body.info-page {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--info-text);
  background:
    radial-gradient(circle at 14% 18%, rgba(34, 157, 255, 0.17), transparent 30%),
    radial-gradient(circle at 88% 30%, rgba(255, 52, 173, 0.16), transparent 33%),
    linear-gradient(180deg, #08031c 0%, #07031a 44rem, #050213 100%);
  font-family: "Orbitron", "Michroma", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

body.info-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(180deg, rgba(2, 1, 13, 0.12) 0%, rgba(4, 2, 18, 0.3) 25rem, rgba(5, 2, 19, 0.94) 54rem, #050213 100%),
    url("./assets/outerlight-reddit-banner-v1.png");
  background-position: center top, center top;
  background-size: 100% 100%, 100% auto;
  background-repeat: no-repeat;
  pointer-events: none;
}

@supports (background-image: image-set(url("./assets/outerlight-reddit-banner-v1.avif") type("image/avif"))) {
  body.info-page::before {
    background-image:
      linear-gradient(180deg, rgba(2, 1, 13, 0.12) 0%, rgba(4, 2, 18, 0.3) 25rem, rgba(5, 2, 19, 0.94) 54rem, #050213 100%),
      image-set(
        url("./assets/outerlight-reddit-banner-v1.avif") type("image/avif"),
        url("./assets/outerlight-reddit-banner-v1.webp") type("image/webp"),
        url("./assets/outerlight-reddit-banner-v1.png") type("image/png")
      );
  }
}

body.info-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(2, 1, 14, 0.42), transparent 32%, transparent 68%, rgba(2, 1, 14, 0.38)),
    radial-gradient(circle at 50% 9rem, transparent 0, rgba(3, 2, 16, 0.08) 19rem, rgba(3, 2, 16, 0.52) 40rem);
  pointer-events: none;
}

body.info-page > * {
  position: relative;
  z-index: 1;
}

body.info-page a {
  color: var(--info-cyan);
  text-underline-offset: 0.2em;
}

body.info-page a:hover {
  color: #fff;
}

body.info-page button,
body.info-page input,
body.info-page select,
body.info-page textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border: 1px solid var(--info-cyan);
  border-radius: 10px;
  background: #080522;
  color: #fff;
  font-size: 12px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.topbar.info-header {
  min-height: 82px;
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px max(24px, calc((100vw - 1280px) / 2 + 24px));
  border-bottom: 1px solid rgba(190, 173, 255, 0.16);
  background: rgba(5, 3, 22, 0.7);
  box-shadow: 0 16px 48px rgba(2, 0, 14, 0.2);
  backdrop-filter: blur(24px) saturate(1.3);
}

.info-header .brand,
.info-footer-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
}

.info-header .brand img,
.info-footer-brand img {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: saturate(1.16) drop-shadow(0 0 19px rgba(91, 199, 255, 0.38)) drop-shadow(0 0 30px rgba(225, 64, 255, 0.24));
}

.info-header .brand > span,
.info-footer-brand > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.info-header .brand strong,
.info-footer-brand strong {
  background: var(--info-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-family: "Michroma", "Orbitron", sans-serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.1;
}

.info-header .brand small,
.info-footer-brand small {
  color: rgba(230, 224, 255, 0.72);
  font-size: 10px;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.info-header .back-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0 17px;
  border: 1px solid rgba(190, 173, 255, 0.24);
  border-radius: 999px;
  background: rgba(12, 8, 41, 0.64);
  color: #d7cffa;
  font-family: "Michroma", "Orbitron", sans-serif;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease, transform 180ms ease;
}

.info-header .back-link:hover {
  border-color: rgba(82, 220, 255, 0.56);
  background: rgba(17, 11, 56, 0.82);
  color: #fff;
  transform: translateY(-1px);
}

.info-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.info-nav a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 13px;
  border: 1px solid rgba(190, 173, 255, 0.2);
  border-radius: 14px;
  background: rgba(11, 7, 39, 0.7);
  color: #bdb4d7;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease, transform 180ms ease;
}

.info-nav a:hover,
.info-nav a[aria-current="page"] {
  border-color: rgba(82, 220, 255, 0.48);
  background: linear-gradient(135deg, rgba(30, 26, 86, 0.85), rgba(41, 12, 72, 0.76));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 24px rgba(105, 94, 255, 0.12);
}

.info-nav a:hover {
  transform: translateY(-2px);
}

.eyebrow {
  display: block;
  color: #d8c6ff;
  font-family: "Michroma", "Orbitron", sans-serif;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.17em;
  line-height: 1.65;
  text-transform: uppercase;
}

.info-page h1,
.info-page h2,
.info-page h3 {
  font-family: "Orbitron", "Michroma", sans-serif;
}

.info-page h1,
.info-page h2 {
  background: var(--info-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.info-page h1 {
  text-wrap: balance;
}

.info-page p,
.info-page li,
.info-page td {
  color: var(--info-muted);
}

.info-page strong {
  color: var(--info-text);
}

.info-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 26px 48px;
  padding: 38px max(24px, calc((100vw - 1160px) / 2));
  border-top: 1px solid rgba(198, 185, 255, 0.16);
  background: rgba(4, 2, 17, 0.84);
  box-shadow: 0 -20px 70px rgba(0, 0, 14, 0.18);
  backdrop-filter: blur(22px);
}

.info-footer-brand img {
  width: 48px;
  height: 48px;
}

.info-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 24px;
}

.info-footer nav a {
  color: #a79fbd;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.035em;
  text-decoration: none;
}

.info-footer nav a:hover,
.info-footer nav a[aria-current="page"] {
  color: var(--info-cyan);
}

.info-footer > p {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 19px;
  border-top: 1px solid rgba(198, 185, 255, 0.12);
  color: #817795;
  font-size: 9px;
  letter-spacing: 0.045em;
}

.info-page :is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--info-cyan);
  outline-offset: 3px;
}

@media (max-width: 820px) {
  body.info-page::before {
    background-position: center top, center top;
    background-size: 100% 100%, auto 430px;
  }

  .info-footer {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .info-footer nav {
    justify-content: flex-start;
  }

  .info-footer > p {
    grid-column: 1;
  }
}

@media (max-width: 680px) {
  .topbar.info-header {
    min-height: 72px;
    padding: 10px 14px;
  }

  .info-header .brand,
  .info-footer-brand {
    gap: 9px;
  }

  .info-header .brand img {
    width: 46px;
    height: 46px;
  }

  .info-header .brand strong {
    font-size: 13px;
    letter-spacing: 0.085em;
  }

  .info-header .brand small {
    display: none;
  }

  .info-header .back-link {
    min-height: 42px;
    padding-inline: 13px;
    font-size: 8px;
  }

  .info-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-footer {
    padding: 32px 18px;
  }
}

@media (max-width: 360px) {
  .info-header .brand > span {
    display: none;
  }

  .info-header .back-link {
    letter-spacing: 0.045em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .info-header .back-link,
  .info-nav a {
    transition: none;
  }
}
