/* SA Roleplay — mix of NoPixel editorial structure + GTAW member flow */

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; }

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

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

:root {
  --ink: #0c0c0c;
  --paper: #fefefe;
  --muted: #9aa3ad;
  --line: rgba(255, 255, 255, 0.1);
  --cyan: #2ec4e0;
  --cyan-ink: #041018;
  --panel: #14181d;
  --shell: 1280px;
  --gutter: clamp(1.5rem, 5vw, 6.25rem);
  --nav-h: 72px;
  --font: "Geist", system-ui, sans-serif;
  --display: "Barlow Condensed", "Geist", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  font-family: var(--font);
  color: var(--paper);
  background: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--nav-h);
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.label {
  margin-bottom: 0.75rem;
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.display {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.35rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
}

.display-sm {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.intro-text {
  margin-top: 1.25rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  line-height: 1.65;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-primary {
  color: var(--cyan-ink);
  background: var(--cyan);
}
.btn-primary:hover { background: #5ad4eb; }
.btn-ghost {
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.25);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.4); }

.text-link {
  display: inline-block;
  margin-top: 0.85rem;
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.95rem;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  background: color-mix(in oklab, var(--ink) 88%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
  transition: border-color 0.2s, background 0.2s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-brand img { width: 58px; height: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
.nav-links > a {
  padding: 0.45rem 0.8rem;
  color: rgba(244, 246, 248, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 4px;
}
.nav-links > a:hover { color: #fff; }
.nav-cta {
  margin-left: 0.4rem;
  color: var(--cyan-ink) !important;
  background: var(--cyan);
}
.nav-cta:hover { background: #5ad4eb !important; }

.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.nav-burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 4px auto;
  background: #fff;
}

@media (max-width: 900px) {
  .nav-burger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(var(--nav-h) + 8px);
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem;
    background: #12151a;
    border: 1px solid var(--line);
    border-radius: 6px;
  }
  .nav-links.is-open { display: flex; }
  .nav-cta { margin-left: 0; text-align: center; }
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: clamp(3rem, 8vh, 6rem) 0;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 12, 12, 0.94) 0%, rgba(12, 12, 12, 0.7) 42%, rgba(12, 12, 12, 0.2) 72%, rgba(12, 12, 12, 0.45) 100%),
    linear-gradient(180deg, rgba(12, 12, 12, 0.35) 0%, transparent 30%, rgba(12, 12, 12, 0.75) 100%);
}

.hero .shell { position: relative; z-index: 1; width: 100%; }

.hero-copy { width: min(42rem, 100%); }

.hero-logo {
  width: clamp(220px, 28vw, 420px);
  height: auto;
  margin-bottom: clamp(1rem, 2vh, 1.35rem);
}

.hero-lead {
  max-width: 34rem;
  color: rgba(244, 246, 248, 0.82);
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.7rem;
  margin-top: 2rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
.hero-status strong { color: var(--paper); font-weight: 600; }
.hero-status .sep { opacity: 0.4; }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4a5560;
}
.status-dot.is-on,
#hero-pulse.is-on { background: #3dbf7a; }

@media (min-width: 1400px) {
  :root { --shell: 1400px; }
  .hero-copy { width: 46rem; }
  .hero-logo { width: 460px; }
}

/* ── About + NoPixel pillar cards ─────────────────────────────────── */
.about-block { background: var(--ink); }

.about-hero {
  position: relative;
  min-height: min(78svh, 720px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #111;
}

.about-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.about-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(12, 12, 12, 0.55) 100%);
}

.about-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: clamp(2rem, 6vh, 4rem);
}

/* NoPixel-style caption plaque: white, flat, headline only */
.caption {
  width: fit-content;
  max-width: min(34rem, 92%);
  padding: clamp(1.15rem, 2.2vw, 1.75rem) clamp(1.25rem, 2.4vw, 2rem);
  background: #fff;
  color: #000;
  box-shadow: none;
  border: 0;
  border-radius: 0;
}
.caption h2,
.caption h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #000;
  max-width: 18ch;
}

.about-lede {
  max-width: 40rem;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  color: var(--muted);
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  line-height: 1.65;
}

@media (min-width: 1100px) {
  .about-hero {
    min-height: 0;
    aspect-ratio: 2480 / 1440;
    max-height: 100svh;
    align-items: stretch;
  }
  .about-hero-inner {
    display: flex;
    align-items: flex-end;
    padding-bottom: clamp(4rem, 12vh, 9rem);
  }
  .caption {
    max-width: min(38rem, 42vw);
  }
  .caption h2,
  .caption h3 {
    font-size: clamp(1.85rem, 2.6vw, 2.65rem);
  }
}

.about-pad {
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 6vw, 5rem);
}

.about-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}
.about-rail .label { margin-bottom: 0; }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
}

.pillar-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: #1a1d22;
  min-height: min(45rem, 50svh);
}

.pillar-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.pillar-card:hover img { transform: scale(1.05); }

.pillar-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.15) 0%, rgba(12, 12, 12, 0.25) 40%, rgba(12, 12, 12, 0.92) 100%);
}

.pillar-meta {
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 1.25rem;
  z-index: 1;
}
@media (min-width: 900px) {
  .pillar-meta { left: 1.25rem; right: 1.25rem; top: 2rem; }
}

.pillar-kicker {
  display: block;
  margin-bottom: 0.55rem;
  color: rgba(244, 246, 248, 0.75);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pillar-meta h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.4rem, 1.9vw, 1.8rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  max-width: 14ch;
}

.pillar-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 2.75rem;
  width: 7.5rem;
  padding: 0 0.85rem;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: width 0.35s var(--ease);
}
.pillar-card:hover .pillar-bar { width: 100%; }
@media (min-width: 900px) {
  .pillar-bar {
    height: 3.5rem;
    width: 9.5rem;
    padding: 0 1rem;
    font-size: 1rem;
  }
}

@media (max-width: 900px) {
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar-card {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }
}

/* ── Full-bleed feature stages (NoPixel caption cards) ────────────── */
.stage { background: var(--ink); }

.stage-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  min-height: min(100svh, 900px);
  background: #111;
}
.stage-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.caption.caption-stage {
  position: relative;
  z-index: 1;
  margin: 1.5rem;
}

@media (min-width: 960px) {
  .stage-frame {
    aspect-ratio: 2480 / 1440;
    max-height: 100svh;
    min-height: 0;
  }
  .caption.caption-stage {
    position: absolute;
    margin: 0;
  }
  .stage-frame:nth-child(1) .caption-stage {
    left: var(--gutter);
    bottom: clamp(4rem, 12vh, 10rem);
  }
  .stage-frame:nth-child(2) .caption-stage {
    right: var(--gutter);
    top: clamp(4rem, 12vh, 10rem);
  }
}

/* ── Join ─────────────────────────────────────────────────────────── */
.join {
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
  background: var(--ink);
}

.join-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.25fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.join-aside { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.aside-text {
  margin-top: 1.25rem;
  max-width: 22rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.join-steps { display: grid; gap: 0; }
.join-steps li {
  display: grid;
  grid-template-columns: 3.75rem 1fr;
  gap: 1.15rem;
  padding: 1.65rem 0;
}
.join-steps li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.step-index {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--cyan);
}

.join-steps h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.join-steps p {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 1rem;
  max-width: 36rem;
}

.btn-sm {
  min-height: 40px;
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .join-grid { grid-template-columns: 1fr; }
  .join-aside { position: static; }
}

/* ── Community (light band — NoPixel footer energy, not SaaS cards) ─ */
.community {
  padding: 0;
  background: #f7f7f5;
  color: #121315;
}
.community-pad {
  padding-block: clamp(4rem, 9vw, 6.5rem);
}
.community-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.5vw, 3.5rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  max-width: 16ch;
  color: #0c0c0c;
}
.community-lede {
  margin-top: 1.15rem;
  max-width: 34rem;
  color: #5a6169;
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  line-height: 1.6;
}

.destinations {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(12, 12, 12, 0.12);
}
.destination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(12, 12, 12, 0.12);
  transition: color 0.2s var(--ease);
}
.destination-copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.destination-copy strong {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #0c0c0c;
}
.destination-copy span {
  color: #5a6169;
  font-size: 0.98rem;
}
.destination-go {
  flex-shrink: 0;
  color: #1a8fa3;
  font-weight: 600;
  font-size: 0.95rem;
}
.destination:hover .destination-copy strong,
.destination:hover .destination-go {
  color: #0e6f82;
}

.community-note {
  margin-top: 1.75rem;
  max-width: 40rem;
  color: #7a828a;
  font-size: 0.92rem;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .destination {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }
}

/* Footer */
.foot {
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--line);
  background: #080808;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.foot-blurb {
  margin-top: 0.85rem;
  max-width: 22rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.foot ul { margin-top: 0.5rem; }
.foot li a {
  display: inline-block;
  padding: 0.25rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.foot li a:hover { color: #fff; }
.foot-copy {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: #66707a;
  font-size: 0.8rem;
}

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

/* Changelog */
.page-sub { padding-top: 0; }
.page-sub .nav { position: relative; border-bottom-color: var(--line); }
.page-hero { padding: 3rem 0 1.5rem; }
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
}
.page-lead { margin-top: 0.6rem; color: var(--muted); }
.page-back {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}
.page-back:hover { color: #fff; }
.changelog { padding: 0.5rem 0 4rem; }
.cl-entry { border-top: 1px solid var(--line); }
.cl-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  text-align: left;
}
.cl-version strong {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.cl-latest {
  margin-left: 0.5rem;
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cl-date { margin-left: auto; color: #66707a; }
.cl-body { display: none; padding-bottom: 1.2rem; }
.cl-entry.is-open .cl-body { display: block; }
.cl-notice {
  margin-bottom: 0.9rem;
  padding: 0.8rem 1rem;
  background: rgba(46, 196, 224, 0.07);
  color: var(--muted);
}
.cl-kind {
  margin-bottom: 0.3rem;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cl-group li {
  position: relative;
  padding-left: 0.85rem;
  color: var(--muted);
}
.cl-group li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
}
.cl-groups { display: grid; gap: 1rem; }
.cl-share { margin-bottom: 0.75rem; }
.cl-copy, .cl-share-open { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
