/* fonts self hosted in /fonts for reliability and also licensed */
@font-face {
  font-family: 'Press Start 2P';
  src: url(/fonts/press-start-2p-latin-400-normal.woff2) format('woff2');
  font-weight: 400;
  font-display: swap;
}

/* colors used globally */
:root {
  --bg: #0a1224;
  --bg-2: #101b34;
  --bg-3: #16254a;
  --line: #2a3d6a;
  --text: #eef2fb;
  --dim: #9fb0d0;
  --paper: #efe6d2;
  --paper-2: #e0d5bb;
  --ink: #101a30;
  --ink-soft: #4a5570;
  --red: #c4352b;
  --red-lit: #ec5a4d;
  --amber: #f2b441;
  --orange: #f08a24;
  --orange-lit: #ffa94d;
  --blue: #3f7bd9;
  --sky: #4cc3ff;

  --pixel: 'Press Start 2P', monospace;
  --serif: 'Times New Roman', Times, serif;

  --nav: 60px;
  --totem: clamp(260px, 26vw, 420px);
  /* totem w used by hero for room */
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-top: var(--nav);
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.65;
  overflow-x: hidden;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--pixel);
  font-weight: 400;
  line-height: 1.5;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.ico {
  width: 1.6rem;
  height: 1.6rem;
  flex: none;
}

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

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 99;
  background: var(--paper);
  color: var(--ink);
  padding: .5rem 1rem;
}

.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* placeholder boxes (NOT NEEDED ONCE PICS ARE IN) */
.ph {
  display: grid;
  place-items: center;
  background: #1b2a4d;
  color: #6f84ad;
  outline: 2px dashed #34497a;
  outline-offset: -1.5rem;
  font-size: 1.4rem;
}

.slide.ph:nth-child(2) {
  background: #1d2f55;
}

.slide.ph:nth-child(3) {
  background: #2b2433;
}

.slide.ph:nth-child(4) {
  background: #1a2f3d;
}

/* navbar */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  background: rgba(8, 14, 30, .94);
  border-bottom: 3px solid var(--orange);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  font-family: var(--pixel);
  font-size: .75rem;
}

.nav-logo img {
  height: 40px;
  width: auto;
  image-rendering: pixelated;
}

.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  list-style: none;
  margin: 0 1rem 0 auto;
  padding: 0;
}

.desktop-nav a {
  color: var(--dim);
  font: .62rem var(--pixel);
  text-decoration: none;
  padding: .65rem 0;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--text);
}

.desktop-nav a.active {
  box-shadow: 0 3px 0 var(--orange);
}

.sidebar a {
  font-family: var(--pixel);
  font-size: .7rem;
  text-decoration: none;
  color: var(--dim);
}

.sidebar a:hover,
.sidebar a.active {
  color: var(--text);
}

.sidebar a.active {
  box-shadow: 0 3px 0 var(--orange);
}

.sidebar a.soon {
  opacity: .45;
  pointer-events: none;
}

.hamburger,
.close-btn {
  display: none;
}

@media (min-width: 861px) {
  .sidebar {
    display: none;
  }

  /* links live in the bar on desk */
}

/* hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: clamp(640px, 80vh, 800px);
  min-height: 0;
}

.hero-left {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 2.5rem 2.5rem;
  background:
    radial-gradient(circle at 25% 15%, rgba(240, 138, 36, .22), transparent 55%),
    linear-gradient(160deg, #16295a, #0b1530);
  /* gradient for now, bg pic later */
}

.hero-left { --server-accent: var(--amber); }
.hero-left > :not(.social) { transition: opacity .18s ease, transform .18s ease; }
.hero-left.server-changing > :not(.social) { opacity: 0; transform: translateY(5px); }
.hero-left .server-logo { width: clamp(220px, 30vw, 400px); height: 220px; max-height: none; object-fit: contain; }
.hero-left .tag { min-height: 4.2em; display: grid; align-content: center; font-size: clamp(1.4rem, 1.7vw, 1.7rem); max-width: 28ch; }
.hero-left .server-address { min-height: 3.8rem; justify-content: center; }
.hero-left .server-actions { min-height: 3.8rem; align-items: center; }
.hero-left .server-note { min-height: 1.7em; }
.hero-left .server-feature-arrows { min-height: 2.95rem; }
.hero-left .server-feature-arrows { margin-top: .25rem; }

.server-logo {
  width: clamp(220px, 30vw, 400px);
  max-height: 220px;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: drop-shadow(0 5px 0 color-mix(in srgb, var(--server-accent, var(--amber)) 60%, transparent)) drop-shadow(0 0 16px color-mix(in srgb, var(--server-accent, var(--amber)) 65%, transparent));
}

.hero-left .tag {
  margin-top: .7rem;
  max-width: 34ch;
  line-height: 1.45;
}

.server-address {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-top: 1.4rem;
  text-shadow: 2px 2px #000;
}

.server-address span {
  color: var(--dim);
  font: .55rem var(--pixel);
  text-transform: uppercase;
}

.server-address code {
  font: clamp(.65rem, 1.05vw, .85rem) var(--pixel);
  color: var(--amber);
  overflow-wrap: anywhere;
}

.server-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: .9rem;
}

.server-actions .btn {
  cursor: pointer;
  padding: .7rem .85rem;
  font-size: .62rem;
  box-shadow: 3px 3px 0 var(--orange);
}

.server-note {
  min-height: 0;
  font-size: .85rem;
  color: var(--amber);
}

.server-picker {
  display: flex;
  gap: .45rem;
  margin-top: .85rem;
}

.hero-left > :not(.social) { position: relative; z-index: 6; }
.server-picker { display: none; }
.server-feature-arrows { display: flex; align-items: center; justify-content: center; gap: .85rem; margin-top: .55rem; }
.server-feature-arrows[hidden] { display: none; }
.server-feature-arrows button { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; padding: .45rem; border: 2px solid var(--amber); border-radius: 50%; color: var(--ink); background: var(--amber); cursor: pointer; box-shadow: 0 2px 7px rgba(0,0,0,.35); }
.server-feature-arrows button:hover { color: #fff; background: var(--orange); border-color: var(--orange-lit); }
.server-feature-arrows svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.server-picker button {
  width: .65rem;
  height: .65rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  color: transparent;
  background: rgba(255, 255, 255, .35);
  font-size: 0;
  cursor: pointer;
}

.server-picker button[aria-pressed="true"],
.server-picker button:hover {
  border-color: var(--server-accent, var(--amber));
  background: var(--server-accent, var(--amber));
  transform: scale(1.2);
}

.hero h1 {
  font-size: clamp(1.5rem, 3.4vw, 2.7rem);
  line-height: 1.45;
  color: var(--amber);
  text-shadow: 4px 4px 0 #000;
}

.tag {
  font-size: 1.3rem;
  font-style: italic;
  margin-top: 1.6rem;
  max-width: 24ch;
  text-shadow: 2px 2px 0 #000;
}

.social {
  position: absolute;
  left: 1.8rem;
  bottom: 1.6rem;
  display: flex;
  gap: 1.2rem;
}

.social a {
  color: var(--text);
  display: grid;
}

.social a:hover {
  color: var(--amber);
}

.social .ico {
  width: 1.9rem;
  height: 1.9rem;
}

/* totem item, on seam */
.totem {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: var(--totem);
  height: auto;
  transform: translate(-50%, -50%);
  image-rendering: pixelated;
  filter: drop-shadow(0 0 28px rgba(240, 138, 36, .5));
  pointer-events: none;
}

.hero-right {
  position: relative;
  overflow: hidden;
  background: #000;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.on {
  opacity: 1;
}

.caption {
  position: absolute;
  inset: auto 0 0 0;
  background: rgba(6, 12, 28, .85);
  padding: .9rem 4.5rem;
  font-style: italic;
  font-size: 1rem;
  text-align: center;
  z-index: 2;
}


/* bar between hero and join */
.bar {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.6rem;
  padding: 1.6rem 1.25rem;
  background: linear-gradient(180deg, var(--amber), var(--orange));
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
}

.bar-btn {
  display: inline-block;
  font-family: var(--pixel);
  font-size: 1rem;
  line-height: 1;
  padding: 1.2rem 2.2rem;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, .35);
}

.bar-btn:hover {
  background: #fff;
  color: var(--ink);
}

.bar-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .35);
}

.bar-btn.active {
  background: var(--sky);
  border-color: var(--ink);
  color: var(--ink);
}

.bar-btn.soon {
  opacity: .5;
  pointer-events: none;
}

/* join band light */
.join {
  background: linear-gradient(180deg, #efe6d2, #e9dfc7);
  color: var(--ink);
  text-align: center;
  padding: 3.5rem 1.25rem 4rem;
  border-top: 6px double var(--ink);
  border-bottom: 6px double var(--ink);
}

.server-directory { padding: 3.5rem max(1.25rem, calc((100% - 1120px) / 2)); background: linear-gradient(180deg, #e9dfc7, #d9d0bd); color: var(--ink); border-bottom: 5px double var(--ink); }
.server-directory[hidden] { display: none; }
.server-directory-heading { text-align: center; margin: 0 auto 2rem; }
.server-directory-heading h2 { font-size: clamp(1rem, 2.5vw, 1.5rem); }
.server-directory-heading p { margin-top: .8rem; color: var(--ink-soft); }
.server-directory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.2rem; }
.server-world-card { min-width: 0; overflow: hidden; background: var(--bg); color: var(--text); border-top: 6px solid var(--server-accent, var(--amber)); box-shadow: 5px 5px 0 rgba(16,26,48,.2); }
.server-world-card > img { width: 100%; height: 190px; object-fit: contain; padding: 1rem; background: radial-gradient(circle, color-mix(in srgb, var(--server-accent) 20%, var(--bg-2)), var(--bg)); }
.server-world-content { display: grid; gap: .65rem; padding: 1.2rem; }
.server-world-content h3 { color: var(--amber); font-size: .8rem; }
.server-world-content a { color: var(--orange-lit); }
.server-world-address { color: var(--amber); font: .48rem var(--pixel); overflow-wrap: anywhere; }

.join h2 {
  font-size: clamp(1.3rem, 3vw, 2rem);
}

.join-line {
  font-family: var(--pixel);
  font-size: .8rem;
  color: var(--red);
  margin-top: 1.4rem;
}

.join-sub {
  margin: 1rem auto 2rem;
  max-width: 36ch;
  color: var(--ink-soft);
}

.ip {
  display: inline-flex;
  max-width: 100%;
  border: 3px solid var(--ink);
  background: var(--ink);
  box-shadow: 6px 6px 0 var(--orange);
}

.ip code {
  font-family: var(--pixel);
  font-size: clamp(.7rem, 2vw, 1rem);
  color: var(--amber);
  padding: 1.1rem 1.5rem;
  display: grid;
  align-items: center;
}

.ip button {
  font-family: var(--pixel);
  font-size: .75rem;
  cursor: pointer;
  background: var(--paper);
  color: var(--ink);
  border: 0;
  border-left: 3px solid var(--ink);
  padding: 0 1.5rem;
}

.ip button:hover {
  background: var(--orange-lit);
  color: var(--ink);
}

.join-note {
  font-style: italic;
  margin-top: 1.4rem;
  min-height: 1.7em;
  color: var(--ink-soft);
}

/* btns */
.btn {
  display: inline-block;
  font-family: var(--pixel);
  font-size: .72rem;
  line-height: 1.4;
  background: var(--amber);
  color: var(--ink);
  border: 3px solid var(--amber);
  padding: .95rem 1.3rem;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--orange);
}

.btn:hover {
  background: var(--sky);
  border-color: var(--sky);
  color: var(--ink);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--orange);
}

.btn.is-off {
  background: transparent;
  color: var(--dim);
  border: 3px dashed var(--line);
  box-shadow: none;
  cursor: default;
}

/* section headings */
.sec-head {
  padding: 3.5rem 1.25rem 2.5rem;
  text-align: center;
  border-bottom: 2px solid var(--line);
  background: var(--bg);
}

.sec-head h2 {
  font-size: clamp(1.1rem, 2.6vw, 1.7rem);
  color: var(--amber);
}

/* link */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 54vh;
  background: var(--bg-2);
}

.row:nth-of-type(odd) {
  background: var(--bg-3);
}

.row-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.4rem;
  padding: 3.5rem clamp(1.5rem, 5vw, 5rem);
}

.row-text h3 {
  font-size: clamp(1rem, 2.2vw, 1.5rem);
}

.row-text p {
  max-width: 38ch;
  color: #d3dcef;
}

.row-img {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

/* top left so crop keeps header */
.row-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.row.flip .row-text {
  order: 2;
}

.row-art {
  display: grid;
  place-items: center;
  background: #070d1c;
  border-left: 2px solid var(--line);
}

.row-art .ico {
  width: 7rem;
  height: 7rem;
  color: var(--orange);
}

.paper-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.1;
}

/* fake page mocks for wiki paper
   on a 1200 wide grid, --u = 1 unit.
   cqw so it scales w/ the box. each div inline --x --y --w --h --s */
.mock {
  position: absolute;
  inset: 0;
  overflow: hidden;
  container-type: inline-size;
  --u: calc(100cqw / 1200);
  font-family: var(--serif);
}

.mock-wiki {
  background: #f6f6f3;
}

.mock-paper {
  background: #efe6d2;
}

.mock .b,
.mock .t {
  position: absolute;
  left: calc(var(--x) * var(--u));
  top: calc(var(--y) * var(--u));
}

.mock .b {
  width: calc(var(--w) * var(--u));
  height: calc(var(--h) * var(--u));
}

.mock .t {
  font-size: calc(var(--s) * var(--u));
  line-height: 1;
  white-space: nowrap;
}

.mock .t.mid {
  width: calc(var(--w) * var(--u));
  text-align: center;
}

/* fake text line things */
.mock .lines {
  --c: #c2c5ba;
  background: repeating-linear-gradient(to bottom,
      var(--c) 0 calc(9 * var(--u)),
      transparent calc(9 * var(--u)) calc(var(--p, 22) * var(--u)));
}

.mock .lines.blue {
  --c: #b4b9c4;
}

/* gray box for ss */
.mock .shot {
  display: grid;
  place-items: center;
  background: #9aa8a0;
  color: #4a554e;
  font: calc(var(--s) * var(--u)) / 1 sans-serif;
}

/* servers */
.servers {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.srv {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  min-height: 56vh;
  padding: 4rem 2rem;
  border-top: 10px solid var(--accent);
  /* tints toward each server's accent so they don't feel flat */
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 24%, #0a1224), #0a1224 75%);
}

.srv h3 {
  font-size: clamp(1.1rem, 2.6vw, 1.8rem);
  text-shadow: 3px 3px 0 #000;
}

.srv p {
  max-width: 30ch;
}

.srv .count {
  font-family: var(--pixel);
  font-size: .7rem;
  color: var(--amber);
  min-height: 1.5em;
}

.srv+.srv {
  border-left: 2px solid var(--bg);
}

/* paper strip */
.news {
  background: var(--paper);
  color: var(--ink);
  padding: 4.5rem 0;
  border-top: 6px double var(--ink);
}

.news h2 {
  font-size: clamp(1rem, 2.4vw, 1.5rem);
}

.heads {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  margin-top: 2.5rem;
}

.head {
  padding: 0 2rem;
  border-left: 1px solid var(--ink);
}

.head-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.head-link:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .15em;
}

.head-link:focus-visible {
  outline-color: var(--ink);
}

.head:first-child {
  padding-left: 0;
  border-left: 0;
}

.head h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.15;
  margin-bottom: .6rem;
}

.head:first-child h3 {
  font-size: 2.4rem;
}

.byline {
  font-style: italic;
  font-size: .95rem;
  color: var(--ink-soft);
  margin-top: .7rem;
}

/* community creator video strip */
.creator-videos { padding: 3.5rem 0; color: var(--text); background: linear-gradient(135deg, #111d38, #18274a); border-top: 3px solid var(--orange); border-bottom: 3px solid var(--line); }
.creator-videos-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.creator-videos-heading h2 { color: var(--amber); font-size: clamp(.9rem, 2vw, 1.35rem); }
.creator-videos-heading p { color: var(--dim); font-style: italic; }
.creator-tabs { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0 0 1.25rem; }
.creator-tabs button { padding: .7rem .9rem; border: 1px solid var(--line); color: var(--dim); background: var(--bg); font: .5rem var(--pixel); cursor: pointer; }
.creator-tabs button[aria-selected="true"], .creator-tabs button:hover { color: var(--ink); background: var(--amber); border-color: var(--amber); }
.creator-video-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr); overflow: hidden; background: #080e1d; border: 2px solid var(--line); box-shadow: 7px 7px 0 rgba(0, 0, 0, .3); }
.creator-video-media { position: relative; min-width: 0; aspect-ratio: 16 / 9; background: #000; }
.creator-video-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.creator-video-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #000; }
.creator-video-play img { width: 100%; height: 100%; object-fit: cover; opacity: .83; }
.creator-video-play span { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 4.2rem; height: 3rem; color: #fff; background: #d9232e; border-radius: .7rem; font: 1.4rem Arial, sans-serif; }
.creator-video-play:hover img { opacity: 1; }
.creator-video-play:hover span { background: #f00; }
.creator-video-details { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .8rem; padding: clamp(1.2rem, 3vw, 2.5rem); }
.creator-video-details h3 { font-size: clamp(.75rem, 1.4vw, 1rem); color: var(--amber); }
.creator-video-byline { color: var(--dim); font-style: italic; }
.creator-video-description { color: #d3dcef; }
.creator-video-link { color: var(--orange-lit); font: .58rem var(--pixel); text-underline-offset: .25em; }
.creator-video-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin-top: 1.2rem; }
.creator-video-controls button { max-width: 18rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: .6rem .8rem; border: 1px solid var(--line); color: var(--dim); background: var(--bg); font: .48rem var(--pixel); cursor: pointer; }
.creator-video-controls button[aria-pressed="true"], .creator-video-controls button:hover { color: var(--ink); background: var(--amber); border-color: var(--amber); }
.creator-video-library { margin-top: 1.5rem; }
.creator-video-library[hidden] { display: none; }
.creator-video-library h3 { margin-bottom: .8rem; color: var(--amber); font-size: .7rem; }
.creator-library-item { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 1rem; align-items: center; padding: .8rem 0; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.creator-library-item:hover strong { color: var(--amber); text-decoration: underline; }
.creator-library-item img { width: 190px; aspect-ratio: 16 / 9; object-fit: cover; }
.creator-library-item span { display: grid; gap: .45rem; }
.creator-library-item small { color: var(--dim); font: inherit; }

/* story band */
.story {
  text-align: center;
  padding: 5rem 1.5rem 5.5rem;
  background: linear-gradient(135deg, #f1dfb6, #e4c985);
  color: var(--ink);
  border-top: 5px double #9b6a22;
}

.story h2 {
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: #754313;
}

.story p {
  max-width: 40ch;
  margin: 1.4rem auto 2.4rem;
  color: #514126;
}

.story-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}

/* foot */
.foot {
  text-align: center;
  padding: 3rem 1.5rem 3.5rem;
  background: var(--bg);
  border-top: 3px solid var(--orange);
  color: var(--dim);
}

.foot p {
  margin: 0 auto 1rem;
  max-width: 60ch;
}

.disclaimer {
  font-style: italic;
}

.copyright {
  font-size: .95rem;
  color: #6f7f9f;
}

/* 404 */
.lost {
  padding: 6rem 1.5rem;
  text-align: center;
}

.lost h1 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin-bottom: 1.5rem;
}

.lost p {
  margin: 0 auto 2.2rem;
  max-width: 36ch;
}

/* mobile */
@media (max-width: 860px) {
  .desktop-nav {
    display: none;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: 0;
    padding: 12px;
    cursor: pointer;
  }

  .hamburger span {
    width: 28px;
    height: 3px;
    background: var(--text);
  }

  .sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    z-index: 60;
    background: #060b18;
    border-left: 2px solid var(--line);
    transform: translateX(100%);
    transition: transform .35s ease;
    overflow-y: auto;
  }

  .sidebar.open {
    transform: none;
  }

  .close-btn {
    display: block;
    position: absolute;
    top: 10px;
    right: 18px;
    background: none;
    border: 0;
    color: var(--text);
    font-size: 2.6rem;
    line-height: 1;
    cursor: pointer;
  }

  .sidebar ul {
    padding: 5rem 2rem 2rem;
  }

  .sidebar li {
    margin-bottom: 1.8rem;
  }

  .sidebar a {
    font-size: .9rem;
    display: inline-block;
    padding: .3rem 0;
  }

  .hero {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .hero-left {
    height: auto;
    min-height: 0;
    padding: 1.5rem 1.5rem 3.5rem;
  }

  .server-logo {
    width: min(82vw, 340px);
    height: clamp(145px, 38vw, 190px);
    max-height: none;
    margin-bottom: .4rem;
  }

  .hero-left .tag {
    font-size: 1.15rem;
    min-height: 3.2em;
  }

  .hero-left .server-address { min-height: 3rem; }
  .hero-left .server-actions { min-height: 2.75rem; }
  .hero-left .server-feature-arrows { min-height: 2.5rem; }

  .server-address {
    margin-top: .65rem;
  }

  .server-actions {
    margin-top: .6rem;
  }

  .hero-right {
    height: 62vw;
    min-height: min(240px, 54vh);
    max-height: 520px;
  }

  .caption { padding: .75rem 3.8rem; font-size: .9rem; }

  /* totem goes in the middle of the stack, half over each */
  .totem {
    --totem: 190px;
    position: absolute;
    left: 50%;
    top: var(--feature-height, 600px);
    bottom: auto;
    transform: translate(-50%, -50%);
    z-index: 8;
  }

  .caption {
    padding-left: 1.2rem;
  }

  .bar {
    gap: 1rem;
  }

  .bar-btn {
    font-size: .8rem;
    padding: 1rem 1.4rem;
  }

  .social {
    left: auto;
    right: 1.2rem;
    bottom: 1.2rem;
  }

  .row,
  .servers {
    grid-template-columns: 1fr;
  }

  .row {
    min-height: 0;
  }

  .row-text,
  .row.flip .row-text {
    order: 0;
    padding: 2.5rem 1.5rem;
  }

  .row-img {
    min-height: 0;
    aspect-ratio: 3 / 2;
    order: 1;
  }

  .row-art {
    border-left: 0;
  }

  .row-art .ico {
    width: 5rem;
    height: 5rem;
  }

  .srv {
    min-height: 0;
    padding: 3.5rem 1.5rem;
  }

  .srv+.srv {
    border-left: 0;
  }

  .news {
    padding: 3.5rem 0;
  }

  .creator-videos { padding: 3rem 0; }
  .creator-videos-heading { align-items: flex-start; flex-direction: column; }
  .creator-video-card { grid-template-columns: 1fr; }
  .creator-video-details { padding: 1.3rem; }
  .creator-library-item { grid-template-columns: 112px minmax(0, 1fr); gap: .7rem; }
  .creator-library-item img { width: 112px; }

  .heads {
    grid-template-columns: 1fr;
  }

  .head,
  .head:first-child {
    padding: 1.4rem 0;
    border-left: 0;
    border-top: 1px solid var(--ink);
  }

  .head:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .head:first-child h3 {
    font-size: 1.9rem;
  }
}

@media (max-width: 860px) {
  .totem {
    top: var(--feature-height, 600px);
  }
}

@media (max-height: 700px) and (min-width: 861px) {
  .hero { height: 680px; }
  .hero-left { padding-top: 1.25rem; padding-bottom: 1.5rem; }
  .hero-left .server-logo { height: 165px; }
  .hero-left .tag { min-height: 3.4em; font-size: clamp(1.25rem, 1.5vw, 1.5rem); }
  .hero-left .server-address { margin-top: .7rem; min-height: 3.1rem; }
  .hero-left .server-actions { margin-top: .4rem; min-height: 3rem; }
}

@media (max-width: 520px) {
  .hero-left { padding-inline: 1rem; }
  .hero-left .server-logo { width: min(76vw, 300px); }
  .hero-left .tag { max-width: 30ch; }
  .server-actions .btn { padding: .65rem .7rem; font-size: .52rem; }
}

@media (max-width: 520px) {
  .ip {
    flex-direction: column;
    width: 100%;
  }

  .ip code {
    justify-content: center;
    text-align: center;
  }

  .ip button {
    border-left: 0;
    border-top: 3px solid var(--ink);
    padding: 1rem;
  }

  .bar-btn {
    width: 100%;
    text-align: center;
  }
}

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

  .slide,
  .sidebar {
    transition: none;
  }
}

/* carousel admin styles */
.admin-page {
  background: var(--bg);
}

.admin-page .nav-logo {
  color: var(--text);
}

.admin-page .nav-logo span {
  color: var(--orange-lit);
  font-size: .58rem;
}

.admin-back {
  font-family: var(--pixel);
  font-size: .62rem;
  color: var(--dim);
  text-decoration: none;
}

.admin-back:hover {
  color: var(--text);
}

.admin-main {
  width: min(1040px, 100% - 2.5rem);
  margin: 0 auto;
  padding: 4rem 0 6rem;
}

.admin-heading {
  padding: 1rem 0 2.4rem;
  border-bottom: 2px solid var(--line);
}

.admin-heading .dateline {
  margin-bottom: .8rem;
  font-family: var(--pixel);
  font-size: .62rem;
  font-style: normal;
  color: var(--orange-lit);
}

.admin-heading h1 {
  font-size: clamp(1.3rem, 2.4rem, 2.4rem);
}

.admin-heading>p:last-child {
  margin-top: .8rem;
  color: var(--dim);
}

.admin-editor,
.admin-preview-section,
.admin-library {
  padding: 2.5rem 0;
  border-bottom: 2px solid var(--line);
}

.admin-help {
  color: var(--dim);
  margin: -.8rem 0 1.5rem;
}

.admin-server-list {
  display: grid;
  gap: 1rem;
}

.admin-server-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.admin-server-card h3,
.admin-server-logo-preview,
.admin-server-card .admin-remove {
  grid-column: 1 / -1;
}

.admin-server-card h3 {
  font-size: .7rem;
  color: var(--amber);
}

.admin-server-field {
  display: grid;
  align-content: start;
  gap: .35rem;
  color: var(--dim);
  font: .52rem var(--pixel);
}

.admin-server-field input {
  min-width: 0;
  width: 100%;
  padding: .65rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid #4a5f8f;
  font: .9rem var(--serif);
}

.admin-server-field input[type="color"] {
  height: 2.6rem;
  padding: .2rem;
}

.admin-server-logo-preview {
  width: min(240px, 100%);
  max-height: 120px;
  object-fit: contain;
  object-position: left center;
  background: rgba(0, 0, 0, .2);
}

.admin-server-logo-preview[hidden] { display: none !important; }

.admin-server-buttons {
  display: flex;
  gap: .75rem;
}

.admin-server-buttons .btn {
  cursor: pointer;
  font-size: .55rem;
}

.admin-server-buttons .btn:disabled {
  opacity: .6;
  cursor: wait;
}

.admin-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-section-title h2 {
  font-size: .9rem;
}

.admin-section-title>span {
  font-family: var(--pixel);
  font-size: .52rem;
  color: var(--dim);
}

#carousel-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .8rem 1.2rem;
  align-items: start;
}

.admin-label {
  grid-column: 1 / -1;
  font-family: var(--pixel);
  font-size: .58rem;
  color: var(--dim);
}

#image-file,
#image-caption {
  grid-column: 1 / -1;
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid #4a5f8f;
  padding: .8rem;
}

#image-file {
  max-width: 100%;
}

#image-file::file-selector-button {
  margin-right: 1rem;
  padding: .55rem .8rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: .75rem var(--pixel);
  cursor: pointer;
}

#image-caption {
  resize: vertical;
  min-height: 5.5rem;
}

.admin-form-footer {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: .4rem;
}

.admin-form-footer p {
  color: var(--dim);
  font-size: .95rem;
}

.admin-form-footer .btn {
  font-size: .62rem;
  cursor: pointer;
}

.admin-form-footer .btn:disabled {
  opacity: .55;
  cursor: wait;
}

.admin-preview {
  max-width: 760px;
  border: 1px solid var(--line);
}

.admin-preview .hero-right {
  aspect-ratio: 16 / 9;
  min-height: 240px;
  max-height: 430px;
}

.admin-preview .caption {
  min-height: 3.2rem;
  padding-left: 1.2rem;
}

.carousel-list {
  display: grid;
  gap: 1rem;
}

.carousel-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: center;
  padding: .8rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
}

.carousel-item img {
  width: 150px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #070d1c;
}

.carousel-item p {
  overflow-wrap: anywhere;
}

.carousel-item .admin-remove {
  padding: .7rem .85rem;
  border: 1px solid var(--red);
  background: transparent;
  color: var(--text);
  font: .55rem var(--pixel);
  cursor: pointer;
}

.carousel-item .admin-remove:hover {
  background: var(--red);
}

.carousel-empty {
  color: var(--dim);
  font-style: italic;
}

.creator-admin-list { display: grid; gap: 1rem; }
.creator-admin-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1rem; padding: 1rem; border: 1px solid var(--line); background: var(--bg-2); }
.creator-admin-card h3, .creator-admin-actions { grid-column: 1 / -1; }
.creator-admin-card h3 { color: var(--amber); font-size: .7rem; }
.creator-admin-card input, .creator-admin-card textarea { min-width: 0; width: 100%; padding: .65rem; color: var(--text); background: var(--bg); border: 1px solid #4a5f8f; font: .9rem var(--serif); }
.creator-admin-card textarea { resize: vertical; }
.creator-admin-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.creator-admin-actions button:disabled { opacity: .4; cursor: default; }
.admin-preview-section .creator-video-card { max-width: 850px; }

@media (max-width: 600px) {
  .admin-main {
    width: min(100% - 2rem, 1040px);
    padding-top: 2.5rem;
  }

  .admin-heading h1 {
    font-size: 1.3rem;
  }

  .admin-section-title h2 {
    font-size: .72rem;
  }

  .admin-section-title>span {
    font-size: .43rem;
    text-align: right;
  }

  .admin-preview .hero-right {
    min-height: 210px;
  }

  .carousel-item {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: .7rem;
  }

  .carousel-item img {
    width: 92px;
  }

  .carousel-item .admin-remove {
    grid-column: 2;
    justify-self: start;
  }

  .creator-admin-card { grid-template-columns: 1fr; }
  .creator-admin-card h3, .creator-admin-actions { grid-column: 1; }

  .admin-form-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
