﻿/* ==========================================================================
   Theme
   Change the colour and background in config.php. Everything follows.
   ========================================================================== */

:root {
  --bg:        #1d1510;
  --panel:     rgba(48, 35, 25, .78);
  --panel-2:   rgba(62, 45, 32, .72);
  --solid:     #2b2018;
  --line:      rgba(140, 104, 72, .34);
  --line-soft: rgba(140, 104, 72, .18);
  --edge:      rgba(255, 226, 190, .10);

  --text:  #f4ebdd;
  --muted: #bdaa92;
  --dim:   #8e7860;

  --accent:      #ff6f22;
  --accent-warm: #f7a24b;
  --accent-soft: rgba(255, 111, 34, .16);
  --accent-line: rgba(255, 111, 34, .5);
  --on-accent:   #1a1109;

  --online: #9dc25b;
  /* Big surfaces are rounder than small ones. A chip with the same
     corner as the card it sits in looks wrong. */
  --radius: 14px;      /* cards, panels, anything with padding around it */
  --radius-sm: 9px;    /* buttons, nav items, the connect box */
  --radius-xs: 6px;    /* tags, kbd, inline code */

  /* Discord's own mark. Kept here so it is easy to find and replace. */
  --discord-mark: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 127.14 96.36'><path fill='black' d='M107.7 8.07A105.15 105.15 0 0 0 81.47 0a72.06 72.06 0 0 0-3.36 6.83 97.68 97.68 0 0 0-29.11 0A72.37 72.37 0 0 0 45.64 0a105.89 105.89 0 0 0-26.25 8.09C2.79 32.65-1.71 56.6.54 80.21a105.73 105.73 0 0 0 32.17 16.15 77.7 77.7 0 0 0 6.89-11.11 68.42 68.42 0 0 1-10.85-5.18c.91-.66 1.8-1.34 2.66-2a75.57 75.57 0 0 0 64.32 0c.87.71 1.76 1.39 2.66 2a68.68 68.68 0 0 1-10.87 5.19 77 77 0 0 0 6.89 11.1 105.25 105.25 0 0 0 32.19-16.14c2.64-27.38-4.51-51.11-18.9-72.15ZM42.45 65.69C36.18 65.69 31 60 31 53s5-12.74 11.43-12.74S54 46 53.89 53s-5.05 12.69-11.44 12.69Zm42.24 0C78.41 65.69 73.25 60 73.25 53s5-12.74 11.44-12.74S96.23 46 96.12 53s-5.04 12.69-11.43 12.69Z'/></svg>");

  /* Cart, for the store link. */
  --cart-mark: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 3h3l2.4 11.2a2 2 0 0 0 2 1.6h7.7a2 2 0 0 0 2-1.5L21 7H6'/><circle cx='10' cy='20' r='1.4'/><circle cx='18' cy='20' r='1.4'/></svg>");

  /* Globe, for the language picker. */
  --globe-mark: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='12' cy='12' r='9.2'/><ellipse cx='12' cy='12' rx='4' ry='9.2'/><path d='M2.9 9h18.2M2.9 15h18.2'/></svg>");

  /* Chain link, for the account-linking button. */
  --link-mark: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'><path d='M10 13a5 5 0 0 0 7.5.5l3-3a5 5 0 0 0-7-7l-1.7 1.7'/><path d='M14 11a5 5 0 0 0-7.5-.5l-3 3a5 5 0 0 0 7 7l1.7-1.7'/></svg>");

  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, monospace;
  --body:    'Barlow', system-ui, sans-serif;
}

.theme-rust  { --accent:#e04b22; --accent-warm:#f08046; --accent-soft:rgba(224,75,34,.16); --accent-line:rgba(224,75,34,.5); }
.theme-steel { --accent:#5c9ec9; --accent-warm:#8fc2e3; --accent-soft:rgba(92,158,201,.16); --accent-line:rgba(92,158,201,.5); --on-accent:#0e1519; }
.theme-moss  { --accent:#8fae4e; --accent-warm:#b6cd77; --accent-soft:rgba(143,174,78,.16); --accent-line:rgba(143,174,78,.5); --on-accent:#141a0c; }
.theme-ash   { --accent:#c2ac92; --accent-warm:#dbcab3; --accent-soft:rgba(194,172,146,.16); --accent-line:rgba(194,172,146,.5); --on-accent:#191410; }

/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

/* The photograph sits behind everything, dimmed so type stays readable. */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: var(--bg);
  background-size: cover;
  background-position: 50% 42%;
}
.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(29,21,16,.62) 0%, rgba(29,21,16,.80) 38%, rgba(29,21,16,.95) 78%, var(--bg) 100%),
    radial-gradient(1100px 620px at 18% 0%, rgba(255,142,60,.20), transparent 68%);
}

/* Fine grain over the whole page. This is what stops it looking like a slide. */
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'>\
<filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/>\
<feColorMatrix type='saturate' values='0'/></filter>\
<rect width='140' height='140' filter='url(%23n)' opacity='.35'/></svg>");
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: .012em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.02;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-warm); }

code, kbd { font-family: var(--mono); }

kbd {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 1px 5px;
  font-size: .85em;
}

::selection { background: var(--accent); color: var(--on-accent); }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

.skip { position: absolute; left: -9999px; background: var(--accent); color: var(--on-accent); padding: 10px 16px; z-index: 50; }
.skip:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent-warm);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--accent);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: rgba(86, 62, 42, .8); border-color: var(--accent-line); color: var(--text); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 1px 0 rgba(255,255,255,.22) inset;
}
.btn-primary:hover { background: var(--accent-warm); border-color: var(--accent-warm); color: var(--on-accent); }

.btn-ghost { background: rgba(29,21,16,.42); }

/* The Discord mark, drawn as a mask so it takes the button's own colour
   and stays sharp at any size. */
.btn-discord::before {
  content: "";
  width: 19px;
  height: 15px;
  flex: none;
  background: currentColor;
  opacity: .95;
  -webkit-mask: var(--discord-mark) center / contain no-repeat;
  mask: var(--discord-mark) center / contain no-repeat;
}

.btn-copy { flex: 1 1 auto; }
.btn-copy.is-done { border-color: var(--online); color: var(--online); }

.btn-join {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 1px 0 rgba(255,255,255,.22) inset;
}
.btn-join:hover { background: var(--accent-warm); border-color: var(--accent-warm); color: var(--on-accent); }

/* ==========================================================================
   Header
   ========================================================================== */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(24,17,12,.92), rgba(24,17,12,.72));
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 1px 0 var(--edge) inset;
}

.head-inner { display: flex; align-items: center; gap: 22px; min-height: 68px; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  flex: none;
}
.brand img { height: 36px; width: auto; }

.nav { display: flex; align-items: center; gap: 2px; margin-right: auto; flex-wrap: wrap; }
.nav a {
  padding: 10px 13px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .11em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}
.nav a:hover { color: var(--text); background: rgba(86,62,42,.5); }
.nav a.is-here { color: var(--accent-warm); }

/* The store is where a server actually earns, so it stands with the
   buttons instead of sitting in the menu looking like another page.
   Only shown when 'store' is set. */
.head-store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 40px;
  padding: 0 13px;
  color: var(--accent-warm);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
}
.head-store:hover { color: var(--text); background: rgba(255,111,34,.26); }
.head-store::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--cart-mark) center / contain no-repeat;
  mask: var(--cart-mark) center / contain no-repeat;
}

/* Only shown when more than one language is switched on in config.
   A dropdown, because a row of codes eats the whole header.
   It sits ahead of the buttons with a hairline between them: changing
   language is a setting, not one of the things you came here to do. */
.langs { position: relative; flex: none; }
.langs::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  width: 1px;
  height: 20px;
  transform: translateY(-50%);
  background: var(--line);
}

.langs summary {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .1em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  list-style: none;          /* no default triangle */
  user-select: none;
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary::before {     /* globe */
  content: "";
  width: 15px;
  height: 15px;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--globe-mark) center / contain no-repeat;
  mask: var(--globe-mark) center / contain no-repeat;
}
.langs summary::after {      /* chevron */
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: .7;
}
.langs summary:hover { color: var(--text); background: rgba(86,62,42,.5); }
.langs[open] summary { color: var(--accent-warm); background: var(--accent-soft); }
.langs[open] summary::after { transform: translateY(1px) rotate(225deg); }

.langs-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  min-width: 168px;
  display: flex;
  flex-direction: column;
  padding: 6px;
  background: var(--solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(0,0,0,.45);
}
.langs-menu a {
  padding: 10px 12px;
  color: var(--muted);
  font-family: var(--body);
  font-size: 14.5px;
  letter-spacing: 0;
  text-transform: none;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.langs-menu a:hover { color: var(--text); background: var(--panel-2); }
.langs-menu a.is-here { color: var(--accent-warm); background: var(--accent-soft); }

/* Only shown when 'linking' is filled in. It sits beside the Discord
   button rather than in the menu: it is an action, not a page. Kept as
   a text link so the filled Discord button stays the loudest thing. */
.head-linking {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 12px 6px;
  color: var(--accent-warm);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .11em;
  text-transform: uppercase;
  white-space: nowrap;
}
.head-linking:hover { color: var(--text); }
.head-linking::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--link-mark) center / contain no-repeat;
  mask: var(--link-mark) center / contain no-repeat;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { padding: clamp(64px, 10vw, 132px) 0 clamp(44px, 6vw, 78px); }

.hero-title {
  font-size: clamp(56px, 12vw, 148px);
  letter-spacing: -.012em;
  margin: 16px 0 0;
  text-shadow: 0 2px 30px rgba(0,0,0,.5);
}

.hero-tagline {
  margin-top: 18px;
  max-width: 44ch;
  font-size: clamp(17px, 2.2vw, 22px);
  color: var(--muted);
  text-wrap: pretty;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ==========================================================================
   Server band
   ========================================================================== */

.band { padding-bottom: clamp(48px, 7vw, 88px); }

.band-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.band-head h2 { font-size: 25px; letter-spacing: .1em; }

.band-meta {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
}
.band-meta .sep { padding: 0 6px; opacity: .5; }
/* Break between the two facts, never inside one of them. */
.band-meta .meta-part { white-space: nowrap; }

.server-list { display: flex; flex-direction: column; gap: 14px; padding-top: 20px; }
.server-list-full { padding-bottom: clamp(48px, 7vw, 88px); }

.empty {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--muted);
}
.empty code { color: var(--accent-warm); }

/* -- the card ------------------------------------------------------------ */

.server {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 384px);
  gap: 28px;
  padding: 24px 26px;
  background: var(--panel);
  backdrop-filter: blur(3px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 var(--edge) inset, 0 12px 28px rgba(0,0,0,.28);
}
/* A live server lifts its whole edge rather than wearing a bar down one
   side. A thick single border cuts a wedge out of a rounded corner. */
.server.is-online {
  border-color: var(--accent-line);
  box-shadow:
    0 1px 0 var(--edge) inset,
    0 0 0 3px var(--accent-soft),
    0 12px 28px rgba(0,0,0,.28);
}
.server.is-soon { opacity: .8; }

.server-name { display: flex; align-items: center; gap: 12px; font-size: clamp(22px, 3vw, 29px); }
.server-name a { color: inherit; }
.server-name a:hover { color: var(--accent-warm); }

.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); flex: none; }
.is-online .dot { background: var(--online); box-shadow: 0 0 0 3px rgba(157,194,91,.18); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

.tag {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(29,21,16,.5);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xs);
  padding: 4px 9px;
}
.tag-rate { color: var(--accent-warm); border-color: var(--accent-line); background: var(--accent-soft); }
.tag-link { padding: 0; }
.tag-link a { display: block; padding: 9px 9px; color: inherit; }
.tag-link:hover { color: var(--accent-warm); border-color: var(--accent-line); }
.tag-fresh { color: var(--online); border-color: rgba(157,194,91,.42); background: rgba(157,194,91,.12); }

.server-blurb { margin-top: 14px; color: var(--muted); max-width: 52ch; text-wrap: pretty; }

.server-side { display: flex; flex-direction: column; gap: 16px; }

.stats { display: flex; gap: 22px; }
.stat { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.stat-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.stat-value { font-family: var(--mono); font-size: 20px; font-weight: 600; color: var(--text); }
.stat-status .stat-value { font-size: 13px; padding-top: 6px; color: var(--muted); }
.is-online .stat-status .stat-value { color: var(--online); }

.connect {
  background: rgba(20, 14, 10, .58);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.connect-address { display: block; font-size: 15px; color: var(--text); padding-bottom: 10px; word-break: break-all; }
.connect-actions { display: flex; gap: 8px; }
.connect-help { margin-top: 10px; font-size: 12.5px; line-height: 1.5; color: var(--dim); }

/* Shown only while a server still has the placeholder IP. */
.connect-setup { border-color: var(--accent-line); background: var(--accent-soft); }
.setup-title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-warm);
}
.setup-text { margin-top: 7px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }

/* A server that is announced but not open yet. Without this the right
   column would be empty and the card would sit half the height of a
   live one. */
.connect-soon .setup-title { color: var(--muted); }
.btn-soon { width: 100%; margin-top: 12px; }
.setup-text code {
  font-family: var(--mono);
  font-size: .93em;
  color: var(--text);
  background: rgba(20,14,10,.5);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xs);
  padding: 1px 5px;
}

/* ==========================================================================
   Home sections
   ========================================================================== */

.intro { padding-bottom: clamp(48px, 7vw, 88px); }
.intro-title { font-size: clamp(32px, 5.4vw, 58px); max-width: 20ch; }

.intro-list { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; max-width: 62ch; }
.intro-list li { position: relative; padding-left: 28px; text-wrap: pretty; }
.intro-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .58em;
  width: 10px; height: 10px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.cta {
  position: relative;
  padding: clamp(34px, 5vw, 56px) clamp(22px, 4vw, 46px);
  margin-bottom: clamp(48px, 7vw, 88px);
  background: var(--panel);
  backdrop-filter: blur(3px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 var(--edge) inset;
}
.cta-title { font-size: clamp(28px, 4.4vw, 44px); max-width: 18ch; }
.cta-text { margin-top: 14px; color: var(--muted); max-width: 54ch; }
.cta .btn { margin-top: 24px; }

/* ==========================================================================
   Inner pages
   ========================================================================== */

.page-head { padding: clamp(52px, 7vw, 96px) 0 clamp(24px, 3vw, 40px); }
.page-head h1 { font-size: clamp(44px, 8vw, 92px); margin-top: 12px; text-shadow: 0 2px 30px rgba(0,0,0,.45); }
.page-lede { margin-top: 16px; max-width: 58ch; color: var(--muted); text-wrap: pretty; }
.notfound .btn { margin-top: 28px; }

.rule-list { display: flex; flex-direction: column; gap: 10px; padding-bottom: clamp(48px, 7vw, 88px); }
.rule {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 6px;
  padding: 20px 22px;
  background: var(--panel);
  backdrop-filter: blur(3px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 var(--edge) inset;
}
.rule-number { font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--accent); }
.rule h2 { font-size: 21px; }
.rule p { margin-top: 8px; color: var(--muted); max-width: 66ch; text-wrap: pretty; }

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  padding-bottom: clamp(48px, 7vw, 88px);
}
.person {
  padding: 26px 20px;
  background: var(--panel);
  backdrop-filter: blur(3px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 var(--edge) inset;
  text-align: center;
}
.person-avatar {
  width: 84px; height: 84px;
  margin: 0 auto 14px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--panel-2);
  border: 1px solid var(--line);
}
.person-avatar-blank { display: block; }
.person h2 { font-size: 20px; }
.person-role { margin-top: 4px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-warm); }

.faq-list { display: flex; flex-direction: column; gap: 8px; padding-bottom: clamp(48px, 7vw, 88px); }
.faq-item {
  background: var(--panel);
  backdrop-filter: blur(3px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 var(--edge) inset;
  padding: 4px 20px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "+"; font-family: var(--mono); color: var(--accent); font-size: 18px; line-height: 1; }
.faq-item[open] summary::before { content: "\2212"; }
.faq-item p { padding: 0 0 18px 30px; color: var(--muted); max-width: 66ch; text-wrap: pretty; }

/* ==========================================================================
   Footer
   ========================================================================== */

/* Short pages still push the footer to the bottom of the window. */
main { flex: 1 0 auto; }

.site-foot { flex-shrink: 0; border-top: 1px solid var(--line-soft); background: rgba(20,14,10,.55); }

.foot-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 0 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
}
.foot-name { color: var(--muted); }
.foot-nav { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-nav a { color: var(--dim); padding: 12px 0; }
.foot-nav a:hover { color: var(--text); }
.foot-note { margin-left: auto; }

/* ==========================================================================
   Narrow screens
   ========================================================================== */

/* Between a laptop and a phone. With every button switched on there is
   no longer room for the menu beside them, so it takes its own row -
   but the buttons keep their words, because there is still room for
   those. Without this the menu breaks into three ragged lines. */
@media (min-width: 901px) and (max-width: 1180px) {
  .head-inner { flex-wrap: wrap; row-gap: 0; min-height: 64px; }
  .nav { order: 3; width: 100%; margin: 0 0 8px; }
}

@media (max-width: 900px) {
  .wrap { width: min(1180px, 100% - 28px); }

  /* Two rows. The brand and every action share the top one; the menu
     gets the second to itself, because it is a different length in
     every language and grows with the pages you switch on.
     The buttons drop their labels and become square icons, which is
     what buys the room. */
  .head-inner { gap: 10px; min-height: 60px; row-gap: 0; flex-wrap: wrap; }
  .brand { font-size: 19px; padding: 7px 0; }
  .brand img { height: 31px; }

  .nav { order: 3; width: 100%; margin: 0 0 8px; gap: 2px; }
  .nav a { padding: 11px 10px; font-size: 12px; letter-spacing: .07em; }

  .langs { margin-left: auto; }
  .langs::after { right: -8px; height: 18px; }
  .langs summary { padding: 0 8px; gap: 6px; min-height: 40px; }

  .head-store,
  .head-linking,
  .btn-discord {
    width: 40px;
    min-height: 40px;
    padding: 0;
    margin-left: 0;
    justify-content: center;
    border-radius: var(--radius-sm);
  }
  .head-linking,
  .btn-discord {
    border: 1px solid var(--line);
    background: var(--panel-2);
  }
  .head-linking { color: var(--accent-warm); }
  .head-linking:hover,
  .btn-discord:hover { border-color: var(--accent-line); }
  .head-store::before { width: 17px; height: 17px; }
  .head-linking::before { width: 17px; height: 17px; }
  .btn-discord::before { width: 18px; height: 14px; }

  /* The labels are gone from view but still read out, and still there
     on a long press. */
  .head-store-label,
  .head-linking-label,
  .btn-discord .btn-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .server { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 20px; }
  .stats { justify-content: space-between; gap: 12px; }
  .connect-actions { flex-direction: column; }
  .connect-actions .btn { width: 100%; }

  .foot-note { margin-left: 0; width: 100%; }
}

@media (max-width: 560px) {
  .wrap { width: min(1180px, 100% - 22px); }

  /* The community name gives way to the logo when there is one. This is
     what lets the menu, the picker and both buttons fit on a phone.
     A site with no logo keeps its name, because something has to be
     the brand. */
  .brand:has(img) span { display: none; }
  .brand:has(img) { padding: 4px 0; }
  .brand img { height: 34px; }

  .rule { grid-template-columns: 34px minmax(0, 1fr); padding: 18px 16px; }
  .server { padding: 18px 16px; }

  /* Three stats side by side get too tight for the status wording,
     so they become two rows. */
  .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
  .stat-status { grid-column: 1 / -1; }
  .stat-label { font-size: 11px; letter-spacing: .14em; }
  .stat-value { font-size: 19px; }
  .stat-status .stat-value { padding-top: 2px; font-size: 14px; }

  /* Stacked buttons look ragged at different widths. */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  /* Two to a row instead of one huge card each. */
  .staff-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .person { padding: 20px 12px; }
  .person-avatar { width: 62px; height: 62px; margin-bottom: 11px; }
  .person h2 { font-size: 17px; }

  .server-list { gap: 10px; }
  .server { gap: 16px; }
  .connect { padding: 10px; }
  .connect-address { font-size: 14px; padding-bottom: 8px; }
  .setup-text { font-size: 13px; }
}

/* --------------------------------------------------------------------
   Touch devices
   --------------------------------------------------------------------
   Rust does not run on a phone or a tablet, so Join now cannot do
   anything there and the console instructions are for a keyboard that
   is not present. Both go, and the card gets noticeably shorter.
   Copy connect stays, because sending the address to yourself or to a
   friend is exactly what people do from a phone.

   This is deliberately about the device, not the window width: a small
   desktop window keeps both buttons, and a large tablet loses them. */
@media (hover: none) and (pointer: coarse) {
  .btn-join,
  .connect-help { display: none; }

  .connect-actions { flex-direction: row; }
  .btn-copy { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
