/* Guide pages: same look as the portal, built for reading */

body.page { overflow-x: hidden; background: #0c0f14; }
body.page a { color: inherit; }

.pagebar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(calc(100% - 48px), 1240px);
  margin: 0 auto;
  padding: 20px 0;
}
.pagebar__brand {
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .24em;
  text-transform: uppercase;
  padding: 8px 14px 9px;
  color: var(--gold2) !important;
  background: rgba(10, 12, 16, .76);
  border: 1px solid rgba(240, 202, 128, .4);
  border-radius: 3px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pagebar__nav { display: flex; gap: 22px; }
.pagebar__nav a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(238, 231, 214, .86) !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .9);
  transition: color .2s ease;
}
.pagebar__nav a:hover { color: var(--gold2) !important; }

/* hero with a live scene */
.hero {
  position: relative;
  min-height: clamp(520px, 74vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(240, 202, 128, .35);
}
.hero__scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #1b2530;
}
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 10, 14, .86) 0%, rgba(8, 10, 14, .62) 38%, rgba(8, 10, 14, .1) 70%, transparent 100%),
    linear-gradient(180deg, rgba(8, 10, 14, .5) 0%, transparent 22%, transparent 78%, rgba(12, 15, 20, .9) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 48px), 1240px);
  margin: 0 auto;
  padding: 110px 0 70px;
}
.hero__inner > * { max-width: 640px; }
.crumbs { display: flex; gap: 8px; margin-bottom: 18px; font-size: 12px; letter-spacing: .08em; color: rgba(238, 231, 214, .6); }
.crumbs a:hover { color: var(--gold2); }
.hero__kicker {
  margin: 0 0 14px;
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold2);
}
.hero h1 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.06;
  color: var(--cream);
  text-shadow: 0 3px 20px rgba(0, 0, 0, .7);
}
.hero__lede { margin: 0 0 28px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; color: rgba(238, 231, 214, .86); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.hero__cta .enter, .hero__cta .discord { padding: 14px 20px; justify-content: center; }
.hero__cta .ip { grid-template-columns: 1fr auto; min-width: 240px; }
.hero__cta .ip__copy { display: block; }
.hero__cta .ip__status { display: flex; }

/* the reading column */
.prose {
  width: min(calc(100% - 48px), 780px);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) 0 10px;
}
.prose__section + .prose__section { margin-top: 44px; }
.prose h2, .page__h2, .related h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(25px, 2.4vw, 34px);
  line-height: 1.18;
  color: var(--cream);
}
.prose p, .prose li { font-size: 17px; line-height: 1.75; color: rgba(238, 231, 214, .82); }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--cream); font-weight: 700; }
.prose a, .related a { color: var(--gold2); text-decoration: underline; text-decoration-color: rgba(240, 202, 128, .4); text-underline-offset: 3px; }
.prose a:hover, .related a:hover { text-decoration-color: var(--gold2); }

.table-wrap { overflow-x: auto; margin: 8px 0 16px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 4px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(255, 255, 255, .08); line-height: 1.5; color: rgba(238, 231, 214, .82); }
.prose th { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold2); background: rgba(27, 34, 39, .8); }
.prose tr:last-child td { border-bottom: 0; }

/* cards, questions and more guides reuse the portal's guide styles */
.guide--page { background: none; border-top: 0; padding-top: 40px; }
.page__h2 { text-align: center; margin-bottom: 26px; }
.servers--1 { grid-template-columns: minmax(0, 440px); justify-content: center; }
.servers--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; margin: 0 auto; }
.servers--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.related { max-width: 860px; margin: clamp(56px, 7vw, 90px) auto 0; text-align: center; }
.related ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin: 0; padding: 0; list-style: none; font-size: 15px; }

.pagefoot { padding: 40px 24px 50px; text-align: center; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(238, 231, 214, .55); border-top: 1px solid rgba(255, 255, 255, .06); }
.pagefoot a:hover { color: var(--gold2); }
.pagefoot p { margin: 6px 0; }
.pagefoot__legal { letter-spacing: .05em; text-transform: none; color: rgba(238, 231, 214, .4); }

/* the portal's own footer links to these pages */
.guide__guides p { margin: 0 0 18px; font-size: 12px; letter-spacing: .08em; text-transform: none; line-height: 2; }
.guide__guides a { color: rgba(238, 231, 214, .7); }
.guide__guides a:hover { color: var(--gold2); }

/* the portal's narrow-screen rules shouldn't squeeze these pages */
body.page .enter__name { display: none; }
body.page .guide .ip__copy, body.page .hero .ip__copy { display: block; }

@media (max-width: 1100px) {
  .servers--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .pagebar__nav { display: none; }
  .hero { min-height: 0; }
  .hero__inner { padding: 96px 0 48px; }
  .hero__shade { background: linear-gradient(180deg, rgba(8, 10, 14, .55) 0%, rgba(8, 10, 14, .78) 40%, rgba(12, 15, 20, .94) 100%); }
  .hero__cta { flex-direction: column; }
  .servers--2, .servers--3 { grid-template-columns: 1fr; }
  .prose p, .prose li { font-size: 16px; }
}
