
/* ===== tokens ============================================================ */
:root {
  --page-bg: #f7f8fa;
  --canvas: #eceff4;
  --surface: #ffffff;
  --surface-raised: #eff1f5;
  --ink: #1b1d21;
  --text-muted: #6b7280;
  --grey: #8b93a1;
  --orange: #ff9d43;
  --orange-deep: #ef8420;
  /* Sampled from the logo art: a red-to-amber ramp with a deep red shadow. */
  --brand-red: #f03000;
  --brand-orange: #f06000;
  --brand-amber: #f09030;
  --brand-deep: #a01000;
  --brand-ramp: linear-gradient(100deg, var(--brand-red), var(--brand-orange) 45%, var(--brand-amber));
  --blue: #3b82f6;
  --green: #34c46b;
  --line: rgba(110, 110, 110, .20);
  --shadow-rgb: 27, 29, 33;
  --card-radius: 1.875rem;
  --img-radius: 1.25rem;
  --page-max: 1240px;
  --column: 730px;
  --rail: 24px;
  --nav-h: 4.75rem;
  --nav-h-mobile: 4rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page-bg: #0e1013;
    --canvas: #14171a;
    --surface: #1a1e24;
    --surface-raised: #232830;
    --ink: #f2f4f7;
    --text-muted: #9aa3b1;
    --grey: #7b8492;
    --line: rgba(255, 255, 255, .10);
    --shadow-rgb: 0, 0, 0;
  }
}

:root[data-theme="dark"] {
  --page-bg: #0e1013;
  --canvas: #14171a;
  --surface: #1a1e24;
  --surface-raised: #232830;
  --ink: #f2f4f7;
  --text-muted: #9aa3b1;
  --grey: #7b8492;
  --line: rgba(255, 255, 255, .10);
  --shadow-rgb: 0, 0, 0;
}

/* ===== base ============================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text-muted);
  font-family: Outfit, "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.shell { width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 0 var(--rail); }

/* The whole content area sits on a soft vertical gradient, as on BIG Games. */
.page {
  background: linear-gradient(to bottom, var(--page-bg), var(--canvas));
  padding-bottom: 3rem;
}

/* ===== top bar =========================================================== */
/* Brand ramp pinned above the nav — the first thing that reads as "ours". */
.brandbar { height: 3px; background: var(--brand-ramp); }

.topbar {
  position: sticky; top: 0; z-index: 200;
  background: color-mix(in srgb, var(--page-bg) 78%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  height: var(--nav-h-mobile);
  max-width: var(--page-max); margin: 0 auto; padding: 0 var(--rail);
  display: flex; align-items: center; gap: 1rem;
}
@media (min-width: 1024px) { .topbar-inner { height: var(--nav-h); } }

.brand { display: flex; align-items: center; gap: .625rem; text-decoration: none; flex-shrink: 0; }
.brand img { width: 2.35rem; height: 2.35rem; border-radius: .625rem; }
.brand span { font-weight: 800; font-size: 1.05rem; color: var(--ink); letter-spacing: -.02em; white-space: nowrap; }
@media (min-width: 1024px) { .brand img { width: 3rem; height: 3rem; } }

.nav-divider { width: 1px; align-self: stretch; background: var(--line); margin: 0 .5rem; display: none; }
@media (min-width: 1024px) { .nav-divider { display: block; } }

.topbar nav { display: flex; align-items: center; gap: .25rem; }
.topbar nav a {
  --nav-pad: .75rem;
  position: relative; text-decoration: none; font-weight: 500; font-size: 1.0625rem;
  color: var(--grey); padding: .5rem var(--nav-pad); white-space: nowrap;
  transition: color .15s ease;
}
.topbar nav a:hover, .topbar nav a[aria-current="page"] { color: var(--ink); }
/* The orange underline that grows in on hover is the BIG Games nav signature. */
.topbar nav a::before {
  content: ""; position: absolute; left: var(--nav-pad); bottom: -.35rem; height: 2px; width: 0;
  background: var(--brand-ramp); border-radius: 100px 100px 0 0; opacity: 0;
  transition: width .2s ease, opacity .2s ease;
}
.topbar nav a:hover::before { width: calc(100% - var(--nav-pad) * 2); opacity: 1; }
.topbar nav a[aria-current="page"]::before { width: calc(100% - var(--nav-pad) * 2); opacity: 1; }

.topbar .spacer { margin-left: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4375rem;
  font-weight: 700; text-decoration: none; border: 0; cursor: pointer;
  border-radius: 999px; transition: transform .2s ease, filter .2s ease, background .2s ease;
  box-shadow: 0 3px 6px 0 rgb(var(--shadow-rgb) / .15);
}
.btn:hover { transform: scale(1.05); filter: brightness(1.06); }
.btn:active { transform: scale(.96); }
.btn-orange { background: var(--brand-ramp); color: #fff; height: 3.125rem; padding: 0 1.5rem; font-size: 1.0625rem; }
.btn-sm { height: 2.5rem; padding: 0 1.125rem; font-size: .95rem; }

/* ===== post layout ======================================================= */
.post-layout { padding-top: 2rem; }
.post-main { max-width: var(--column); margin: 0 auto; }

.post-topline {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem;
}
.pill {
  display: inline-flex; align-items: center;
  background: var(--surface-raised); color: var(--text-muted);
  font-weight: 700; font-size: .95rem;
  border-radius: 999px; padding: .4rem 1rem;
}
.post-date { font-weight: 600; color: var(--text-muted); font-size: .95rem; }

.post-head { padding-bottom: 1rem; }
.post-title {
  margin: 0; font-size: 2.25rem; line-height: 1.1; font-weight: 700;
  letter-spacing: -.02em; color: var(--ink); text-wrap: balance;
}
@media (min-width: 768px) { .post-title { font-size: 3rem; } }
.post-tagline {
  margin: .75rem 0 0; max-width: 48rem; font-size: 1.125rem;
  color: var(--text-muted); line-height: 1.5;
}

/* The body is centred, one beat per line — that rhythm is the whole look. */
.post-body { text-align: center; }
.post-body p { margin: 0 0 .55rem; font-size: 1.0625rem; color: var(--text-muted); }
.post-body strong { color: var(--ink); font-weight: 700; }
.post-body em, .post-body i { color: var(--grey); }

/* Section header: orange, bold, underlined the full width of the column. */
.post-body h2 {
  margin: 2.75rem 0 1rem; font-size: 2.1875rem; line-height: 1.2;
  font-weight: 700; color: var(--orange);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.post-body h2:first-child { margin-top: 1rem; }

.post-body h3 {
  margin: 1.75rem 0 .75rem; font-size: 1.3125rem; font-weight: 700; color: var(--ink);
}
.post-body h4 { margin: 1.25rem 0 .5rem; font-size: 1.0625rem; font-weight: 700; color: var(--ink); }

.post-body figure.shot { margin: 1.75rem 0 2rem; }
/* width:auto with both maxes means a wide screenshot fills the column while a
   square logo is capped instead of blowing up to 730x730 and eating the page.
   Nothing is ever upscaled past its natural size, so nothing goes soft. */
.post-body figure.shot img {
  width: auto; max-width: 100%; max-height: 26rem;
  margin-left: auto; margin-right: auto;
  border-radius: var(--img-radius);
  box-shadow: 0 15px 35px rgb(var(--shadow-rgb) / .12);
}
.post-body figure.shot img + img { margin-top: .875rem; }

/* The opening image is allowed a little more height than an inline one. */
.post-body figure.shot.hero { margin-top: .5rem; }
.post-body figure.shot.hero img { max-height: 30rem; }

.post-body ul, .post-body ol { display: inline-block; text-align: left; margin: .5rem 0 1rem; padding-left: 1.35rem; }
.post-body li { margin: .2rem 0; }

.post-body hr { border: 0; height: 1px; background: var(--line); margin: 2.5rem auto; width: 60%; }

.post-body blockquote {
  margin: 1.25rem auto; max-width: 34rem; padding: 1rem 1.25rem; text-align: left;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--orange); border-radius: var(--img-radius);
}
.post-body blockquote p:last-child { margin-bottom: 0; }

.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em;
  background: var(--surface-raised); border-radius: 6px; padding: .1em .4em; color: var(--ink);
}
.post-body pre {
  text-align: left; overflow-x: auto; padding: 1rem 1.125rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--img-radius);
}
.post-body pre code { background: none; padding: 0; }

.post-body table {
  display: block; width: max-content; max-width: 100%; overflow-x: auto;
  margin: 1.25rem auto; border-collapse: collapse; text-align: left; font-size: .95rem;
}
.post-body .table-wrap { overflow-x: auto; }
.post-body th, .post-body td { padding: .55rem .875rem; border-bottom: 1px solid var(--line); }
.post-body th { color: var(--ink); font-weight: 700; white-space: nowrap; }

.signoff { margin: 2rem 0 0; text-align: center; font-size: 1.0625rem; color: var(--text-muted); }
.signoff strong { color: var(--ink); }

/* ===== landing hero ====================================================== */
.hero-band { position: relative; overflow: hidden; padding: 2.5rem var(--rail) 3rem; }
/* Three soft colour orbs behind the hero, as on the reference landing page. */
.hero-band .orb { position: absolute; width: 18rem; height: 18rem; border-radius: 50%; filter: blur(100px); pointer-events: none; }
.hero-band .orb-1 { left: -5rem; top: -5rem; background: rgba(240, 96, 0, .30); }
.hero-band .orb-2 { right: -6rem; top: 2.5rem; background: rgba(59, 130, 246, .22); }
.hero-band .orb-3 { left: 33%; bottom: -6rem; background: rgba(52, 196, 107, .16); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-band .orb-1 { background: rgba(240, 96, 0, .22); }
  :root:not([data-theme="light"]) .hero-band .orb-2 { background: rgba(59, 130, 246, .14); }
  :root:not([data-theme="light"]) .hero-band .orb-3 { background: rgba(52, 196, 107, .10); }
}
:root[data-theme="dark"] .hero-band .orb-1 { background: rgba(240, 96, 0, .22); }
:root[data-theme="dark"] .hero-band .orb-2 { background: rgba(59, 130, 246, .14); }
:root[data-theme="dark"] .hero-band .orb-3 { background: rgba(52, 196, 107, .10); }

.hero-inner {
  position: relative; max-width: var(--page-max); margin: 0 auto; padding: 2rem 0;
  display: flex; flex-direction: column; gap: 2.5rem;
}
@media (min-width: 1024px) {
  .hero-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 3rem; padding: 3.5rem 0; }
}

.hero-copy { position: relative; max-width: 36rem; text-align: center; margin: 0 auto; }
@media (min-width: 1024px) { .hero-copy { flex: 1; text-align: left; margin: 0; } }
/* The wordmark leads the page, at real size. */
.hero-copy .wordmark { width: auto; height: auto; max-width: min(26rem, 100%); max-height: 9rem; margin: 0 auto 1.5rem; }
@media (min-width: 1024px) {
  .hero-copy .wordmark { margin: 0 0 1.75rem; max-width: min(30rem, 100%); max-height: 10.5rem; }
}
.hero-copy h1 {
  margin: 0; font-size: 2.25rem; line-height: 1.1; font-weight: 700;
  letter-spacing: -.02em; color: var(--ink);
}
@media (min-width: 768px) { .hero-copy h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-copy h1 { font-size: 3.75rem; line-height: 1.05; } }
.hero-copy .lede { margin: 1rem 0 0; font-size: 1.25rem; color: var(--text-muted); }
@media (min-width: 1024px) { .hero-copy .lede { font-size: 1.4rem; } }

.hero-cta { display: flex; flex-direction: column; align-items: center; gap: .75rem; margin-top: 2rem; }
@media (min-width: 640px) { .hero-cta { flex-direction: row; justify-content: center; } }
@media (min-width: 1024px) { .hero-cta { justify-content: flex-start; } }
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 3.125rem; padding: 0 1.75rem; border-radius: 999px;
  font-weight: 700; font-size: 1.0625rem; text-decoration: none;
  transition: transform .2s ease, filter .2s ease;
}
@media (min-width: 1024px) { .cta { height: 3.75rem; padding: 0 2rem; } }
.cta:hover { transform: translateY(-2px); filter: brightness(1.08); }
.cta:active { transform: scale(.96); }
.cta-primary { background: var(--brand-ramp); color: #fff; box-shadow: 0 8px 24px rgba(240, 96, 0, .28); }
.cta-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }

/* The framed featured card on the right of the hero. */
.hero-feature { position: relative; width: 100%; }
@media (min-width: 1024px) { .hero-feature { width: 36rem; max-width: 52%; } }
.hero-feature a {
  display: block; overflow: hidden; border-radius: 2rem; padding: .75rem;
  background: var(--surface); text-decoration: none;
  box-shadow: 0 20px 50px rgb(var(--shadow-rgb) / .16);
  transition: transform .3s ease;
}
.hero-feature a:hover { transform: scale(1.02); }
.hero-feature .frame {
  position: relative; overflow: hidden; aspect-ratio: 16 / 9;
  border-radius: 1.5rem; background: var(--surface-raised);
}
.hero-feature .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hero-feature a:hover .frame img { transform: scale(1.04); }
.hero-feature .veil {
  position: absolute; inset: 0 0 auto 0; padding: .9rem 1.25rem 2rem;
  background: linear-gradient(to bottom, rgba(0,0,0,.7), rgba(0,0,0,.3), transparent);
  pointer-events: none;
}
.hero-feature .veil p { margin: 0; color: #fff; font-weight: 700; font-size: 1.5rem; text-shadow: 0 2px 6px rgba(0,0,0,.6); }

/* ===== featured strip ==================================================== */
.eyebrow {
  margin: 0; font-weight: 700; font-size: .9375rem; text-transform: uppercase;
  letter-spacing: .14em; color: var(--brand-orange);
}
.featured { padding: 4rem var(--rail) 1rem; }
.featured-inner { max-width: 64rem; margin: 0 auto; display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 1024px) { .featured-inner { flex-direction: row; align-items: flex-start; gap: 3rem; } }
.featured-art { width: 100%; max-width: 28rem; margin: 0 auto; }
@media (min-width: 1024px) { .featured-art { margin: 0; flex: 0 0 28rem; } }
.featured-art .card-thumb { aspect-ratio: 4 / 3; }
.featured-art .card-thumb .icon { width: 60%; }
.featured-body { text-align: center; }
@media (min-width: 1024px) { .featured-body { text-align: left; flex: 1; } }
.featured-body h2 {
  margin: .75rem 0; font-size: 1.75rem; font-weight: 700;
  color: var(--ink); letter-spacing: -.02em; line-height: 1.15;
}
@media (min-width: 1024px) { .featured-body h2 { font-size: 3rem; } }
.featured-body .lede { margin: 0; font-size: 1.125rem; color: var(--grey); line-height: 1.4; }
.featured-meta {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  justify-content: center; margin-top: .75rem;
}
@media (min-width: 1024px) { .featured-meta { justify-content: flex-start; } }
.featured-meta .date { font-weight: 700; color: var(--text-muted); font-size: .9375rem; }
.featured-body .cta { margin-top: 1.5rem; }

/* ===== index grid ======================================================== */
.section-head { max-width: var(--page-max); margin: 0 auto; padding: 3rem var(--rail) 1.25rem; }
.section-head h2 { margin: .25rem 0 0; font-size: 1.875rem; font-weight: 700; color: var(--ink); }

.card-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.25rem;
  max-width: var(--page-max); margin: 0 auto; padding: 0 var(--rail);
}
@media (min-width: 640px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex; flex-direction: column; gap: .75rem;
  padding: 1rem 0 1.25rem; text-decoration: none; color: inherit;
  max-width: 480px; width: 100%; margin: 0 auto;
  transition: transform .2s ease;
}
@media (min-width: 1024px) { .card:hover { transform: translateY(-4px); } }

/* Blurred, scaled copy of the art fills the tile; a crisp square sits on top. */
.card-thumb {
  position: relative; overflow: hidden; width: 100%;
  aspect-ratio: 13 / 8; border-radius: var(--card-radius);
  background: var(--surface-raised);
  transition: box-shadow .2s ease;
}
.card:hover .card-thumb { box-shadow: 0 0 0 2px var(--brand-orange), 0 18px 40px rgb(var(--shadow-rgb) / .18); }
.card-thumb .blur {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: blur(18px) saturate(1.15); transform: scale(1.18);
}
/* Warms the blurred backdrop toward the brand so every card reads as a set. */
.card-thumb::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(160deg, rgba(240, 48, 0, .12), rgba(240, 144, 48, .06));
}
.card-thumb .icon-wrap {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
}
.card-thumb .icon {
  width: 50%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 1.25rem; transition: transform .2s ease;
}
@media (min-width: 1024px) { .card:hover .card-thumb .icon { transform: scale(1.05); } }

.card-meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; padding: 0 1rem; }
.card-meta .pill { font-size: .8125rem; padding: .25rem .75rem; }
.card-meta .date { font-weight: 700; color: var(--text-muted); font-size: .875rem; letter-spacing: .02em; }
.card h3 {
  margin: 0; padding: 0 1rem; font-size: 1.375rem; font-weight: 700;
  line-height: 1.15; color: var(--ink); letter-spacing: -.01em;
}
@media (min-width: 1024px) { .card h3 { font-size: 1.75rem; } }
.card p {
  margin: 0; padding: 0 1rem; font-size: .9375rem; color: var(--grey); line-height: 1.4;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}

.empty {
  text-align: center; padding: 4rem 1.25rem; color: var(--grey);
  border: 1px dashed var(--line); border-radius: var(--card-radius);
  max-width: var(--page-max); margin: 0 auto;
}

/* ===== community band ==================================================== */
.community { padding: 4rem var(--rail) 0; }
.community-card {
  max-width: var(--page-max); margin: 0 auto; padding: 3rem 2rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 30px; text-align: center;
  box-shadow: 0 20px 50px rgb(var(--shadow-rgb) / .10);
}
.community-card h2 { margin: 0 0 .5rem; font-size: 2rem; font-weight: 700; color: var(--ink); }
@media (min-width: 1024px) { .community-card h2 { font-size: 2.75rem; } }
.community-card p { margin: 0 0 1.75rem; font-size: 1.25rem; color: var(--text-muted); }
.community-links { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.social-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 3.125rem; min-width: 8.5rem; padding: 0 1.5rem; border-radius: 999px;
  color: #fff; font-weight: 700; font-size: 1.0625rem; text-decoration: none;
  box-shadow: 0 3px 6px 0 rgb(var(--shadow-rgb) / .15);
  transition: transform .2s ease, filter .2s ease;
}
.social-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.social-btn:active { transform: scale(.96); }
.social-btn.discord { background: #5865f2; }
.social-btn.apply { background: var(--brand-ramp); }
.social-btn.reddit { background: #ff4500; }
.social-btn.youtube { background: #ff0000; }
.social-btn.x { background: #101215; border: 1px solid rgba(255, 255, 255, .18); }
.social-btn.ip {
  gap: .5rem; border: 0; cursor: pointer; font-family: inherit;
  background: var(--ink); color: var(--surface);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95rem;
}
.social-btn.ip.copied { background: var(--green); color: #fff; }

/* ===== more-updates strip ================================================ */
.more { margin-top: 3rem; }
.more hr { border: 0; border-top: 1px solid var(--line); margin: 0 0 1.75rem; }
.more h5 { margin: 0 0 1.25rem; font-size: 1.875rem; font-weight: 700; color: var(--ink); }

/* ===== footer ============================================================ */
.site-footer { margin-top: 3rem; padding: 0 var(--rail) 3rem; }
.site-footer::before {
  content: ""; display: block; height: 2px; max-width: var(--page-max);
  margin: 0 auto; background: var(--brand-ramp); opacity: .55; border-radius: 2px;
}
.footer-inner { max-width: var(--page-max); margin: 0 auto; }
.footer-cols { display: flex; gap: 3rem; justify-content: space-evenly; padding: 2rem 0; }
@media (min-width: 1024px) { .footer-cols { justify-content: flex-end; gap: 5rem; } }
.footer-col h6 {
  margin: 0 0 .5rem; font-size: 1.0625rem; font-weight: 700; color: var(--ink);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { padding: .2rem 0; }
.footer-col a { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 1.0625rem; }
.footer-col a:hover { color: var(--ink); }

.footer-base { display: flex; flex-direction: column; gap: .75rem; align-items: center; padding-top: 1.5rem; }
@media (min-width: 1024px) { .footer-base { align-items: flex-start; } }
.footer-base img.mark { width: auto; height: auto; max-width: min(11rem, 100%); max-height: 2.75rem; opacity: .9; }
.footer-base p { margin: 0; color: var(--text-muted); font-weight: 500; font-size: .9375rem; }
.footer-addr {
  display: inline-block; padding: .25rem .75rem; border-radius: 999px;
  background: var(--surface-raised); color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .875rem;
}

/* three-state theme switch, mirroring the BIG Games footer control */
.theme-switch {
  display: inline-flex; align-items: center; height: 2.25rem;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: .25rem;
}
.theme-switch button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 1.75rem; width: 2.25rem; border: 0; cursor: pointer; padding: 0;
  border-radius: 999px; background: transparent; color: var(--grey);
  transition: background .15s ease, color .15s ease;
}
.theme-switch button:hover { color: var(--ink); }
.theme-switch button[aria-checked="true"] { background: var(--orange); color: #fff; }
.theme-switch button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* ===== standing pages (guide / rules / apply) ============================ */
.doc { max-width: var(--column); margin: 0 auto; padding: 2.5rem 0 1rem; }
.doc-head { padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.75rem; }
.doc-head h1 {
  margin: 0; font-size: 2.25rem; line-height: 1.1; font-weight: 700;
  letter-spacing: -.02em; color: var(--ink);
}
@media (min-width: 768px) { .doc-head h1 { font-size: 3rem; } }
.page-tagline { margin: .75rem 0 0; font-size: 1.125rem; color: var(--text-muted); line-height: 1.5; }

.doc-body { color: var(--text-muted); }
.doc-body h2 {
  margin: 2.5rem 0 .75rem; font-size: 1.625rem; font-weight: 700;
  color: var(--orange); letter-spacing: -.01em; line-height: 1.2;
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 {
  margin: 1.75rem 0 .5rem; font-size: 1.1875rem; font-weight: 700; color: var(--ink);
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}
.doc-body h4 { margin: 1.25rem 0 .35rem; font-size: 1.0625rem; font-weight: 700; color: var(--ink); }
.doc-body p { margin: 0 0 .9rem; line-height: 1.6; }
.doc-body strong { color: var(--ink); font-weight: 700; }
.doc-body ul, .doc-body ol { margin: .5rem 0 1.1rem; padding-left: 1.35rem; }
.doc-body li { margin: .3rem 0; line-height: 1.55; }
.doc-body a { color: var(--orange-deep); }
.doc-body hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.doc-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em;
  background: var(--surface-raised); border-radius: 6px; padding: .1em .4em; color: var(--ink);
  overflow-wrap: anywhere;
}
.doc-body pre {
  overflow-x: auto; padding: 1rem 1.125rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--img-radius);
}
.doc-body pre code { background: none; padding: 0; }
.doc-body blockquote {
  margin: 1.25rem 0; padding: .875rem 1.125rem;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--orange); border-radius: var(--img-radius);
}
.doc-body blockquote p:last-child { margin-bottom: 0; }
.doc-body table {
  display: block; width: max-content; max-width: 100%; overflow-x: auto;
  border-collapse: collapse; margin: 1.25rem 0; font-size: .95rem;
}
.doc-body th, .doc-body td { padding: .55rem .875rem; border-bottom: 1px solid var(--line); text-align: left; }
.doc-body th { color: var(--ink); font-weight: 700; white-space: nowrap; }
.doc-body img { border-radius: var(--img-radius); margin: 1.25rem 0; }

/* ===== narrow screens ==================================================== */
@media (max-width: 900px) {
  /* Brand text, four nav items and a button do not fit a phone. The wordmark
     text goes first because the icon still identifies the site. */
  .brand span { display: none; }
  .nav-divider { display: none; }
  .topbar-inner { gap: .5rem; }
  .topbar nav {
    flex: 1 1 auto; min-width: 0; overflow-x: auto;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .topbar nav::-webkit-scrollbar { display: none; }
  .topbar nav a { --nav-pad: .55rem; font-size: .9375rem; }
}
@media (max-width: 560px) {
  /* Discord is reachable from the community band and the footer on every page. */
  .nav-cta { display: none; }
}
@media (max-width: 640px) {
  :root { --rail: 16px; }
  .post-body h2 { font-size: 1.75rem; }
  .post-body h3 { font-size: 1.1875rem; }
  .doc-head h1, .post-title { font-size: 2rem; }
  .community-card { padding: 2rem 1.25rem; border-radius: 22px; }
  .community-card h2 { font-size: 1.625rem; }
  .community-card p { font-size: 1.0625rem; }
  .social-btn { min-width: 0; flex: 1 1 auto; padding: 0 1.125rem; }
  .footer-cols { gap: 1.5rem; justify-content: space-between; }
  .hero-inner { padding: 1rem 0 0; gap: 2rem; }
  .featured { padding-top: 2.5rem; }
  .section-head { padding-top: 2rem; }
  .cta { width: 100%; }
}

/* ===== 404 =============================================================== */
.notfound { text-align: center; padding: 6rem 0 3rem; }
.notfound h1 { margin: 0; font-size: 4.5rem; font-weight: 800; color: var(--ink); }
.notfound p { color: var(--grey); }

a:focus-visible, button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
