/* chupathingy.org */

:root {
  --ground: #efebe8;
  --surface: #f6f3f1;
  --band: #e6e0dc;
  --ink: #2a2526;
  --ink-strong: #1d1d1f;
  --muted: #4a4446;
  --subtle: #6e6668;
  --faint: #8a8183;
  --line: #ddd6d2;
  --line-card: #d9d1cc;
  --line-row: #e3dcd8;
  --line-band: #dcd4cf;
  --line-btn: #cfc6c1;
  --line-dash: #c4bab4;
  --pill-line: #d9b3b5;
  --red: #a8262c;          /* red backgrounds */
  --red-text: #a8262c;     /* red text and links */
  --red-hover: #7d1c21;
  --on-red: #ffffff;
  --charcoal: #2a2526;     /* dark sections */
  --charcoal-deep: #1f1b1c;
  --charcoal-text: #d5cfcf;
  --btn-dark-bg: #2a2526;
  --btn-dark-fg: #ffffff;
  --focus: #1d1d1f;
  --shadow: 0 14px 32px rgba(60, 20, 22, 0.10);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #1b1718;
    --surface: #252021;
    --band: #211c1d;
    --ink: #ece6e3;
    --ink-strong: #f5f0ee;
    --muted: #c9c0bc;
    --subtle: #a69c9e;
    --faint: #8f8587;
    --line: #3a3233;
    --line-card: #3a3233;
    --line-row: #342d2e;
    --line-band: #332b2c;
    --line-btn: #4a4143;
    --line-dash: #554b4d;
    --pill-line: #6e3437;
    --red: #a8262c;
    --red-text: #ff8a8e;
    --red-hover: #ffb3b6;
    --charcoal: #121011;
    --charcoal-deep: #0b0a0a;
    --charcoal-text: #d5cfcf;
    --btn-dark-bg: #ece6e3;
    --btn-dark-fg: #1b1718;
    --focus: #f5f0ee;
    --shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
  }
}

:root[data-theme="dark"] {
  --ground: #1b1718;
  --surface: #252021;
  --band: #211c1d;
  --ink: #ece6e3;
  --ink-strong: #f5f0ee;
  --muted: #c9c0bc;
  --subtle: #a69c9e;
  --faint: #8f8587;
  --line: #3a3233;
  --line-card: #3a3233;
  --line-row: #342d2e;
  --line-band: #332b2c;
  --line-btn: #4a4143;
  --line-dash: #554b4d;
  --pill-line: #6e3437;
  --red: #a8262c;
  --red-text: #ff8a8e;
  --red-hover: #ffb3b6;
  --charcoal: #121011;
  --charcoal-deep: #0b0a0a;
  --charcoal-text: #d5cfcf;
  --btn-dark-bg: #ece6e3;
  --btn-dark-fg: #1b1718;
  --focus: #f5f0ee;
  --shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

p { margin: 0; }
a { color: var(--red-text); }
a:hover { color: var(--red-hover); }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 32px; }

/* layout helpers */
.stack-10, .stack-14, .stack-16, .stack-20, .stack-24, .stack-26,
.stack-36, .stack-40, .stack-44 { display: flex; flex-direction: column; min-width: 0; }
.stack-10 { gap: 10px; } .stack-14 { gap: 14px; } .stack-16 { gap: 16px; }
.stack-20 { gap: 20px; } .stack-24 { gap: 24px; } .stack-26 { gap: 26px; }
.stack-36 { gap: 36px; } .stack-40 { gap: 40px; } .stack-44 { gap: 44px; }

.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.cols4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.gap-32 { gap: 32px; }
.center { align-items: center; }
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.plats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.self-start { align-self: flex-start; }

/* type */
.eyebrow {
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; letter-spacing: 0.08em;
  color: var(--red-text); text-transform: uppercase;
}
.eyebrow-on-dark { color: #ff8a8e; }
.h1 {
  margin: 0; font-family: 'Saira', system-ui, sans-serif; font-weight: 700;
  font-size: clamp(38px, 5vw, 62px); line-height: 1.05; text-wrap: balance;
}
.h2 {
  margin: 0; font-family: 'Saira', system-ui, sans-serif; font-weight: 700;
  font-size: 40px; line-height: 1.1; text-wrap: balance;
}
.h2.narrow { max-width: 18em; }
.h3 { margin: 0; font-family: 'Saira', system-ui, sans-serif; font-weight: 700; font-size: 24px; line-height: 1.2; }
.h3-sm { font-size: 20px; }
.h3-step { font-size: 21px; }
.h3-lg { font-size: 28px; }
.lede { font-size: 19px; color: var(--muted); max-width: 38em; }
.hero-text { font-size: 20px; max-width: 34em; color: var(--muted); }
.note { font-size: 15px; color: var(--subtle); }
.body-muted { color: var(--muted); }
.max-52 { max-width: 52em; }
.mono-meta { font-family: 'IBM Plex Mono', monospace; font-size: 14px; color: var(--subtle); }
.tag {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--red-text);
}
.strong-link { font-weight: 600; align-self: flex-start; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; text-decoration: none; font-weight: 600;
  padding: 11px 18px; border-radius: 8px; border: 1px solid transparent;
}
.btn-lg { font-size: 18px; padding: 13px 23px; }
.btn-red { background: var(--red); color: var(--on-red); }
.btn-red:hover { background: #8f1f25; color: var(--on-red); }
.btn-dark { background: var(--btn-dark-bg); color: var(--btn-dark-fg); white-space: nowrap; }
.btn-dark:hover { color: var(--btn-dark-fg); opacity: 0.9; }
.btn-light { background: var(--surface); color: var(--ink); border-color: var(--line-btn); font-size: 17px; padding: 13px 23px; }
.btn-light:hover { color: var(--ink); border-color: var(--subtle); }
.btn-white { background: #ffffff; color: #a8262c; font-weight: 700; }
.btn-white:hover { color: #7d1c21; }
.btn-outline { background: transparent; color: #ffffff; border-color: rgba(255, 255, 255, 0.7); }
.btn-outline:hover { color: #ffffff; border-color: #ffffff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* banner and header */
.banner { background: var(--red); color: var(--on-red); font-size: 14px; }
.banner-row { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; padding-block: 9px; }
.banner a { color: #ffffff; font-weight: 600; }
.banner a:focus-visible { outline-color: #ffffff; }

.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink-strong); min-width: 0; }
.brand:hover { color: var(--ink-strong); }
.brand-mark {
  width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--red);
  display: flex; align-items: center; justify-content: center; color: #ffffff;
  font-family: 'Saira', system-ui, sans-serif; font-weight: 700; font-size: 24px;
}
.brand-name { font-family: 'Saira', system-ui, sans-serif; font-weight: 700; font-size: 22px; letter-spacing: 0.04em; }
.navlinks { display: flex; gap: 30px; font-weight: 500; }
.navlinks a { color: var(--ink-strong); text-decoration: none; }
.navlinks a:hover { color: var(--red-text); }

/* sections */
.sec-hero { padding-block: 80px 72px; }
.sec-what { padding-block: 24px 88px; }
.sec-pad { padding-block: 88px; }
.sec-get { background: var(--band); padding-block: 80px; border-block: 1px solid var(--line-band); }
.sec-servers { background: var(--charcoal); color: #ffffff; padding-block: 88px; }
.sec-join { background: var(--red); color: #ffffff; padding-block: 72px; }

/* online now */
.online {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow); min-width: 0;
}
.online-head { background: #2a2526; color: #ffffff; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; }
.online-title { font-family: 'Saira', system-ui, sans-serif; font-weight: 700; font-size: 20px; letter-spacing: 0.04em; }
.online-list { display: flex; flex-direction: column; }
.game {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px;
  padding: 14px 18px; border-top: 1px solid var(--line-row);
}
.online-list .game:first-child { border-top: 0; }
.game-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-players { font-family: 'IBM Plex Mono', monospace; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--red-text); }
.game-where { font-size: 14px; color: var(--subtle); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-build { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--faint); }
.game-empty { display: block; color: var(--subtle); padding-block: 22px; }
.online-foot { padding: 12px 18px; background: var(--band); font-size: 14px; color: var(--subtle); border-top: 1px solid var(--line-row); }

/* about */
.pillar { display: flex; flex-direction: column; gap: 10px; border-top: 4px solid var(--red); padding-top: 20px; }
.pillar p, .step p, .card p { color: var(--muted); }
.callout { display: flex; flex-direction: column; gap: 12px; padding: 24px 28px; border-radius: 12px; background: var(--band); }
.callout p { color: var(--muted); max-width: 62em; }

/* download */
.get-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; }
.plat {
  position: relative; background: var(--surface); border: 1px solid var(--line-card); border-radius: 12px;
  padding: 20px; color: var(--ink-strong); display: flex; flex-direction: column; gap: 6px; min-height: 128px;
}
.plat:hover { border-color: var(--red-text); }
.plat:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.plat-name { font-family: 'Saira', system-ui, sans-serif; font-weight: 700; font-size: 24px; }
.plat-detail { font-size: 14px; color: var(--subtle); }
.plat-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; font-size: 14px; }
.plat-main { font-weight: 600; color: var(--red-text); text-decoration: none; }
/* the whole card downloads the main build; the 32-bit link sits above it */
.plat-main::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.plat-main:focus-visible { outline: none; }
.plat-alt { position: relative; z-index: 1; color: var(--subtle); font-size: 13px; }
.plat-alt:hover { color: var(--red-text); }
.console {
  border: 1px dashed var(--line-dash); border-radius: 12px; padding: 20px;
  display: flex; flex-direction: column; gap: 6px; min-height: 112px;
}
.console-name { font-family: 'Saira', system-ui, sans-serif; font-weight: 700; font-size: 22px; color: var(--muted); }
.console-links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; font-weight: 600; }
.console-links a { color: var(--red-text); }
.pill {
  margin-top: auto; align-self: flex-start; font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--red-text);
  border: 1px solid var(--pill-line); border-radius: 999px; padding: 3px 10px;
}

/* setup */
.step { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line-card); border-radius: 12px; background: var(--surface); }
.num {
  font-family: 'Saira', system-ui, sans-serif; font-weight: 700; font-size: 15px;
  width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #ffffff;
  display: flex; align-items: center; justify-content: center;
}
.link-row { display: flex; flex-wrap: wrap; gap: 12px 28px; font-weight: 600; }

/* servers */
.servers-text { color: var(--charcoal-text); font-size: 17px; }
.terminal {
  background: var(--charcoal-deep); border-radius: 12px; padding: 24px;
  font-family: 'IBM Plex Mono', monospace; font-size: 14px; line-height: 1.8;
  overflow-x: auto; min-width: 0; color: #ffffff;
}
.t-comment { color: #8a8a90; }
.t-gap { margin-top: 12px; }
.t-line { white-space: nowrap; }
.t-accent { color: #ff8a8e; }

/* community */
.card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-card); }
.card p { font-size: 15px; }
.road { border: 1px solid var(--line-card); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.road-item { display: flex; gap: 10px; align-items: baseline; }
.dot { width: 7px; height: 7px; background: var(--red); border-radius: 2px; flex: none; transform: translateY(-2px); }

/* roadmap */
.sec-road { background: var(--band); border-block: 1px solid var(--line-band); }
.road-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.road-cols { display: flex; flex-direction: column; gap: 16px; }
.sec-road .road { background: var(--surface); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: flex; flex-direction: column; gap: 22px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 8px; width: 2px; background: var(--line-dash); }
.ms { position: relative; padding-left: 30px; display: flex; flex-direction: column; gap: 2px; }
.ms::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px;
  border-radius: 3px; background: var(--red); box-shadow: 0 0 0 4px var(--band);
}
.ms-upcoming::before { background: var(--band); border: 2px solid var(--red-text); }
.ms-meta { font-family: 'IBM Plex Mono', monospace; font-size: 13px; letter-spacing: 0.02em; color: var(--subtle); }
.ms p { color: var(--ink); }
.ms-upcoming p { color: var(--muted); }
.ms-soon {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-text);
  border: 1px solid var(--pill-line); border-radius: 999px; padding: 1px 8px; margin-right: 4px;
}

/* join */
.join-text { font-size: 19px; }
.join-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.sec-join a:focus-visible { outline-color: #ffffff; }

/* footer */
.site-footer { padding-block: 44px 60px; font-size: 14px; color: var(--subtle); }
.site-footer p { max-width: 62em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--muted); }

/* platform rows, hero shot, screenshots */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.brand-logo { width: 40px; height: 40px; border-radius: 8px; display: block; flex: none; }
.pf-rows { display: flex; flex-direction: column; gap: 8px; }
.pf-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pf { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; line-height: 1; color: var(--ink-strong); background: var(--surface); border: 1px solid var(--line-card); border-radius: 999px; padding: 7px 12px 7px 10px; }
.pf svg { width: 16px; height: 16px; fill: var(--red-text); flex: none; }
.pf-row-more .pf { background: transparent; border-style: dashed; border-color: var(--line-dash); color: var(--muted); font-weight: 500; font-size: 13px; padding: 5px 10px 5px 8px; }
.pf-row-more .pf svg { fill: var(--subtle); width: 14px; height: 14px; }
.pf-label { font-weight: 600; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--subtle); margin-right: 2px; }
.hero-shot { width: 100%; height: auto; display: block; border-radius: 12px; box-shadow: var(--shadow); }
.what-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.what-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.sec-shots { background: var(--band); border-block: 1px solid var(--line-band); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.gallery img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; border-radius: 10px; border: 1px solid var(--line-card); background: var(--surface); }
.plats-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.gallery figcaption { font-size: 14px; font-weight: 600; color: var(--muted); }

@media (max-width: 900px) {
  .cols3, .cols2, .cols4, .hero, .what-grid, .road-grid { grid-template-columns: minmax(0, 1fr); }
  .road-grid { gap: 44px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .navlinks { display: none; }
  .wrap { padding-inline: 16px; }
  .h2 { font-size: 32px; }
  .join-buttons { justify-content: flex-start; }
  .sec-hero { padding-block: 48px 56px; }
  .sec-what { padding-block: 16px 64px; }
  .sec-pad, .sec-servers { padding-block: 64px; }
  .sec-get { padding-block: 64px; }
}

@media (max-width: 480px) {
  .header-row { gap: 12px; }
  .what-cards, .gallery { grid-template-columns: minmax(0, 1fr); }
  .brand-name { font-size: 18px; }
  .brand-mark { width: 34px; height: 34px; font-size: 20px; }
  .btn-dark { padding: 10px 14px; font-size: 15px; }
  .plats { grid-template-columns: minmax(0, 1fr); }
  .plats-consoles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plat, .console { min-height: 0; }
  .hero-text { font-size: 18px; }
}

@media (max-width: 360px) {
  .brand-name { display: none; }
}

/* join page (/join/<invite>) */
.join { padding-block: 64px 96px; }
.join-wrap { max-width: 680px; }
.join-title { font-family: 'Saira', system-ui, sans-serif; font-weight: 700; font-size: 40px; line-height: 1.15; margin: 0; }
.join-note { color: var(--muted); }
.join-card { display: grid; grid-template-columns: 160px minmax(0, 1fr); }
[hidden] { display: none !important; }
.join-art { width: 160px; height: 100%; object-fit: cover; display: block; }
.join-card-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; min-width: 0; }
@media (max-width: 560px) {
  .join { padding-block: 40px 64px; }
  .join-title { font-size: 30px; }
  .join-card { grid-template-columns: minmax(0, 1fr); }
  .join-art { width: 100%; height: 160px; }
}
