/* Pale Riders. Black, teal and cream taken from the logo.
   Display type (italic condensed) is for headlines and the wordmark only; everything else is the body face. */
:root {
  --stage: #000000;      /* the artwork is pure black, so the hero, nav and footer are too */
  --bg: #0c0c0c;
  --bg-alt: #131313;
  --surface: #1a1a1a;
  --surface-2: #232323;
  --border: #333333;
  --text: #ececea;
  --body: #cfcfcb;
  --muted: #a3a3a0;
  --cream: #ffffff;      /* the logo's white (name kept so the rest of the CSS doesn't change) */
  --cyan: #00eeee;       /* the logo's cyan, a touch softer than #0ff for big areas */
  --cyan-dim: #00a3a8;
  --yellow: #e9bd4a;
  --red: #ef6a5e;
  --green: #5cc98a;
  --ink: #000000;
  --radius: 4px;
  --font-display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  background: var(--bg); color: var(--text); font-family: var(--font-body);
  font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
/* Discourage saving/copying images: no drag, no selection, no long-press menu, clicks pass through */
img { -webkit-user-drag: none; user-drag: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; pointer-events: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* Type */
h1, h2, .brand span, .num, .idx { font-family: var(--font-display); font-style: italic; font-weight: 800; letter-spacing: .01em; }
.brand span { text-transform: uppercase; }
h1 { font-size: clamp(2.7rem, 6.5vw, 4.9rem); line-height: .96; color: var(--cream); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.05; color: var(--cream); }
h3 { font-family: var(--font-body); font-size: 1.2rem; font-weight: 700; line-height: 1.25; color: var(--cream); }
h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--cream); margin: 18px 0 4px; }
.textlink { color: var(--cyan); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.textlink:hover { text-decoration-thickness: 2px; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .85rem; color: var(--muted); word-break: break-all; }

/* Buttons: flat, a little blocky, no lift or glow. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 11px 22px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 700; line-height: 1.2;
  color: var(--ink); background: var(--cyan); border: 2px solid var(--cyan); border-radius: var(--radius); cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--cream); border-color: var(--cream); }
.btn-ghost { background: transparent; color: var(--cream); border-color: #5c5c5c; }
.btn-ghost:hover { background: transparent; border-color: var(--cream); color: var(--cream); }
.btn-sm { padding: 6px 16px; font-size: .95rem; }
.btn-lg { padding: 14px 30px; font-size: 1.1rem; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.actions.left { margin-top: 16px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between;
  padding: 10px max(20px, calc((100% - 1120px) / 2));
  background: var(--stage); border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand span { font-size: 1.45rem; color: var(--cream); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { display: block; padding: 8px 12px; font-size: .98rem; font-weight: 500; color: var(--muted); border-radius: var(--radius); transition: color .15s; }
.nav-link:hover, .has-menu:hover > .nav-link { color: var(--cream); }
.nav-link.active, .has-menu.active > .nav-link { color: var(--cream); box-shadow: inset 0 -2px 0 var(--cyan); border-radius: 0; }
.nav-links > .btn { margin-left: 10px; }

.has-menu { position: relative; display: flex; align-items: center; }
.caret { width: 22px; height: 30px; margin-left: -8px; background: none; border: 0; cursor: pointer; position: relative; }
.caret::before { content: ''; position: absolute; left: 6px; top: 12px; width: 6px; height: 6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: border-color .15s; }
.has-menu:hover .caret::before, .has-menu.open .caret::before { border-color: var(--cream); }
.menu {
  position: absolute; top: 100%; left: 0; min-width: 240px; padding: 6px; margin-top: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  opacity: 0; visibility: hidden; transition: opacity .12s, visibility .12s;
}
.menu::before { content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px; } /* hover bridge */
.has-menu:hover .menu, .has-menu:focus-within .menu, .has-menu.open .menu { opacity: 1; visibility: visible; }
.menu a { display: block; padding: 8px 12px; border-radius: 2px; font-size: .96rem; color: var(--body); }
.menu a:hover { background: var(--surface-2); color: var(--cream); }
.menu a[aria-current] { color: var(--cyan); font-weight: 600; }

.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--cream); transition: transform .2s; }
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero (home) ----------
   The banner artwork is black, so the hero sits on the same black and is cut on a slant at the bottom,
   like the speed lines in the logo. That slant is the one flourish on the site. */
.hero { background: var(--stage); padding-bottom: clamp(70px, 9vw, 120px); clip-path: polygon(0 0, 100% 0, 100% calc(100% - clamp(24px, 4vw, 56px)), 0 100%); }
.hero-banner { max-width: 1500px; margin-inline: auto; }
.hero-banner img {
  width: 100%; aspect-ratio: 21 / 9; object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%); mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
}
.hero-copy { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: end; margin-top: -3vw; position: relative; }
.hero .lead { margin: 18px 0 26px; }
.lead { max-width: 34em; color: var(--body); font-size: 1.15rem; }

.nextup { padding: 2px 0 2px 22px; border-left: 4px solid var(--cyan); }
.nextup[hidden] { display: none; }
.nextup-label { font-size: .95rem; color: var(--muted); }
.nextup-name { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 2rem; line-height: 1.1; color: var(--cream); margin: 2px 0 4px; }
.nextup-when { color: var(--body); }
.nextup a { display: inline-block; margin-top: 8px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.tight { padding: 52px 0 76px; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 28px; }

.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.about-copy h2 { margin-bottom: 18px; }
.about-copy p { color: var(--body); margin-bottom: 14px; max-width: 36em; }
.about-logo img { width: min(380px, 100%); margin-inline: auto; }

/* Values: three plain columns, no boxes */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.cards2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 8px; }
.card { border-top: 3px solid var(--cream); padding-top: 14px; }
.card h3 { font-size: 1.35rem; margin-bottom: 6px; }
.card > p { color: var(--body); font-size: 1rem; }
.card.platform { border: 1px solid var(--border); border-top: 3px solid var(--cyan); border-radius: var(--radius); background: var(--surface); padding: 24px 26px 26px; }
.card.platform.vrc { border-top-color: var(--cream); }
.card.platform h3 { font-size: 1.5rem; }
.card.platform p { margin-bottom: 4px; }

/* Link lists: plain ruled rows rather than a grid of cards */
.linkcards { margin: 18px 0 32px; border-top: 1px solid var(--border); }
.linkcard {
  display: grid; grid-template-columns: 210px minmax(0, 1fr) 180px; gap: 8px 32px; align-items: baseline;
  padding: 20px 4px; border-bottom: 1px solid var(--border); transition: background-color .15s;
}
.linkcard:hover { background: var(--bg-alt); }
.linkcard h3 { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.75rem; line-height: 1.1; }
.linkcard:hover h3 { color: var(--cyan); }
.linkcard p { color: var(--body); font-size: 1rem; }
.linkcard .more { color: var(--cyan); font-weight: 600; font-size: .95rem; text-align: right; }
.linkcard:hover .more { text-decoration: underline; }
.section .linkcards { margin-bottom: 0; }

/* ---------- Page header + doc layout ---------- */
.page-head { padding: 44px 0 36px; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.page-head h1 { font-size: clamp(2.4rem, 5.2vw, 3.8rem); }
.lede { margin-top: 12px; max-width: 38em; color: var(--body); font-size: 1.12rem; }
.crumbs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .9rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a:hover { color: var(--cream); text-decoration: underline; }
.crumbs span { opacity: .5; }
.crumbs b { color: var(--cream); font-weight: 500; }

.doc { display: grid; grid-template-columns: 220px 1fr; gap: 56px; padding-block: 52px 96px; align-items: start; }
.doc > * { min-width: 0; }
.side { position: sticky; top: 92px; }
.side-title { font-weight: 700; font-size: 1rem; color: var(--cream); margin-bottom: 8px; }
.side nav { display: grid; gap: 0; border-left: 1px solid var(--border); }
.side nav a { padding: 7px 16px; margin-left: -1px; border-left: 3px solid transparent; color: var(--muted); font-size: .97rem; }
.side nav a:hover { color: var(--cream); }
.side nav a.active { color: var(--cream); font-weight: 600; border-left-color: var(--cyan); }

.doc-body { min-width: 0; max-width: 820px; }
.doc-body > h2 { margin: 44px 0 12px; }
.doc-body > h2:first-child { margin-top: 0; }
.doc-body > p, .prose p { color: var(--body); margin-bottom: 14px; max-width: 40em; }
.doc-body > p.lead { margin-inline: 0; }

.bullets { margin: 6px 0 16px; max-width: 40em; }
.bullets li { position: relative; padding: 3px 0 3px 20px; color: var(--body); }
.bullets li::before { content: ''; position: absolute; left: 0; top: .95em; width: 8px; height: 2px; background: var(--cyan); }

/* Callouts: a coloured bar and a bold first line. The colour means something (red = serious, yellow = check this). */
.callout { margin: 24px 0; padding: 14px 20px 14px 18px; background: var(--surface); border-left: 4px solid var(--cyan); border-radius: 0 var(--radius) var(--radius) 0; max-width: 44em; }
.callout b { display: block; font-size: 1.02rem; margin-bottom: 2px; color: var(--cream); }
.callout p { color: var(--body); }
.callout .bullets { margin-bottom: 0; }
.callout.yellow { border-left-color: var(--yellow); }
.callout.red { border-left-color: var(--red); }
.callout.green { border-left-color: var(--green); }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0 24px; }
.duties { display: grid; gap: 18px; }
.panel { padding: 20px 24px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.panel h3 { margin-bottom: 6px; }
.panel p { color: var(--body); margin-bottom: 8px; }

/* Rules: plain list, red bar for the zero-tolerance ones */
.rules-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 40px; }
.rule { padding: 14px 0 14px 18px; border-left: 3px solid var(--border); }
.rule.red { border-left-color: var(--red); }
.rule h3 { font-size: 1.15rem; margin-bottom: 2px; }
.rule p { color: var(--body); font-size: 1rem; line-height: 1.5; }

/* Penalties */
.pcards { display: grid; gap: 14px; margin: 20px 0 8px; }
.pcard { background: var(--surface); border-top: 3px solid var(--accent, var(--cyan)); border-radius: 0 0 var(--radius) var(--radius); padding: 16px 22px 8px; }
.pcard header { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 18px; flex-wrap: wrap; margin-bottom: 8px; }
.pcard h3 { font-size: 1.3rem; }
.badge { font-weight: 700; font-size: .98rem; color: var(--accent, var(--yellow)); }
.pbody p { color: var(--body); margin-bottom: 10px; font-size: 1rem; }
.pbody h4 { margin-top: 12px; }

/* Timeline: this one really is a sequence, so it keeps its numbers */
.timeline { display: grid; position: relative; }
.timeline::before { content: ''; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2px; background: var(--border); }
.timeline li { display: flex; gap: 22px; padding: 12px 0 20px; position: relative; }
.timeline li > span { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--cyan); color: var(--cream); font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.3rem; z-index: 1; }
.timeline h3 { margin-bottom: 4px; padding-top: 8px; }
.timeline p { color: var(--body); font-size: 1rem; margin-bottom: 6px; max-width: 40em; }
.timeline h4 { margin-top: 10px; }

/* Prev / next */
.prevnext { display: flex; justify-content: space-between; gap: 16px; margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--border); }
.prevnext a { display: block; padding: 12px 18px; border: 1px solid var(--border); border-radius: var(--radius); min-width: 190px; font-weight: 700; font-size: 1.05rem; color: var(--cream); }
.prevnext a:hover { border-color: var(--cream); }
.prevnext small { display: block; font-weight: 500; font-size: .85rem; color: var(--muted); }
.prevnext .next { text-align: right; margin-left: auto; }

/* ---------- Discord panel ---------- */
.dlayout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.dpanel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.dpanel-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.dpanel-head img { border-radius: 8px; }
.dpanel-head > div { flex: 1; min-width: 0; }
.dpanel-head h3 { font-size: 1.3rem; line-height: 1.1; }
.dstatus { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; margin-top: 2px; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.offline .pulse { background: #66707a; }
.dpanel-body { padding: 6px 22px 20px; min-height: 120px; }
.dpanel-body h4 { margin-top: 16px; }
.dmembers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 14px; max-height: 300px; overflow-y: auto; }
.dmembers li { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--body); min-width: 0; }
.dmembers li > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dmembers li.empty { grid-column: 1 / -1; color: var(--muted); }
.av { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); }
.av img { width: 32px; height: 32px; border-radius: 50%; }
.st { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--surface); background: var(--green); }
.st.idle { background: var(--yellow); } .st.dnd { background: var(--red); }
.dchannels { display: grid; gap: 4px; }
.dchannels li { padding: 6px 12px; border-radius: 2px; background: var(--surface-2); color: var(--body); font-size: .95rem; }
.dchannels li::before { content: '\1F50A'; margin-right: 8px; opacity: .6; font-size: .8rem; }
.dpanel-foot { padding: 16px 22px 22px; border-top: 1px solid var(--border); }
.dpanel-foot .btn { width: 100%; }
.dside h2 { margin-bottom: 12px; }
.dside p { color: var(--body); margin: 14px 0; }

/* ---------- VRChat group ---------- */
.vrc-card { display: flex; gap: 28px; align-items: center; padding: 26px 28px; margin-bottom: 24px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--cyan); border-radius: 0 var(--radius) var(--radius) 0; }
.vrc-card img { flex: none; width: 112px; height: 112px; }
.vrc-card h3 { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 2.1rem; margin-bottom: 4px; }
.vrc-card p { color: var(--body); }

/* ---------- Sign-up band + footer ----------
   The one loud block: solid teal, ink-black text. */
.join { background: var(--cyan); color: var(--ink); padding: 64px 0; }
.join-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.join h2 { color: var(--ink); font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.join-inner p { color: var(--ink); margin: 10px 0 22px; font-size: 1.12rem; max-width: 30em; }
.join-icon { width: 170px; height: 170px; }
.join .btn { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.join .btn:hover { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.join .btn-ghost { background: transparent; color: var(--ink); }
.join .btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.footer { background: var(--stage); padding-top: 52px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
.footer-tag { margin-top: 12px; color: var(--muted); font-size: .95rem; }
.footer h4 { margin: 0 0 8px; color: var(--cream); font-size: 1rem; }
.footer-grid a:not(.brand) { display: block; padding: 3px 0; font-size: .95rem; color: var(--muted); }
.footer-grid a:not(.brand):hover { color: var(--cream); text-decoration: underline; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-block: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }
.footer-base a:hover { color: var(--cream); text-decoration: underline; }

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

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .doc { grid-template-columns: 1fr; gap: 28px; padding-block: 36px 72px; }
  .side { position: static; }
  .side-title { display: none; }
  .side nav { display: flex; overflow-x: auto; border-left: 0; gap: 8px; padding-bottom: 6px; scrollbar-width: thin; }
  .side nav a { white-space: nowrap; border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 14px; margin: 0; }
  .side nav a.active { border-color: var(--cyan); }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about-logo { order: -1; } .about-logo img { width: 220px; }
  .cards3, .cards2, .dlayout { grid-template-columns: 1fr; }
  .cards3 { gap: 28px; }
  .hero-copy { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 68px 0; }
}
@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--stage); border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: calc(100vh - 60px); overflow-y: auto; }
  .nav-link { padding: 15px 22px; border-top: 1px solid var(--border); border-radius: 0; }
  .nav-link.active, .has-menu.active > .nav-link { box-shadow: inset 4px 0 0 var(--cyan); }
  .has-menu { flex-wrap: wrap; }
  .has-menu > .nav-link { flex: 1; }
  .caret { width: 56px; height: 52px; margin: 0; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
  .caret::before { left: 24px; top: 20px; }
  .has-menu.open .caret::before { transform: rotate(225deg); }
  .menu { position: static; width: 100%; opacity: 1; visibility: visible; display: none; margin: 0; padding: 4px 0 8px 14px; border: 0; border-radius: 0; background: var(--surface); }
  .menu::before { display: none; }
  .has-menu.open .menu { display: block; }
  .has-menu:hover .menu { display: none; } .has-menu.open:hover .menu { display: block; }
  .nav-links > .btn { margin: 14px 20px; }
  .hero-banner img { aspect-ratio: 16 / 9; }
  .hero-copy { margin-top: -6vw; }
  .linkcard { grid-template-columns: 1fr; gap: 4px; padding: 18px 2px; }
  .linkcard .more { text-align: left; }
  .rules-grid, .two { grid-template-columns: 1fr; }
  .vrc-card { flex-direction: column; text-align: left; align-items: flex-start; }
  .dmembers { grid-template-columns: 1fr; }
  .prevnext { flex-direction: column; } .prevnext a { min-width: 0; } .prevnext .next { margin-left: 0; }
  .join-inner { grid-template-columns: 1fr; }
  .join-icon { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
