/* Hollow Phoenix. Dark ash ground, Ashborn red and Coldwire cyan accents
   (docs/world.md). System fonts only: no third-party requests. */
:root {
  color-scheme: dark;
  --bg: #121212;
  --panel: #1c1b1a;
  --line: #2e2c2a;
  --text: #e8e4de;
  --muted: #9a948c;
  --ash: #e0523a;
  --ash-btn: #c03b25;
  --cw: #3ec7d6;
  --ok: #67c26b;
  --radius: 8px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--cw); }
a:hover { color: #7fe1ec; }
code, kbd, pre { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.92em; }
kbd { border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 0.35em; background: var(--panel); }
pre { background: #0c0c0c; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.75rem; overflow-x: auto; }

.top {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; justify-content: space-between;
  padding: 0.9rem 1rem; border-bottom: 1px solid var(--line);
  max-width: 64rem; margin: 0 auto;
}
.brand { font-weight: 800; font-size: 1.25rem; text-decoration: none; letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 0.5rem; }
.ash { color: var(--ash); }
.cw { color: var(--cw); }
nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
nav a { color: var(--text); text-decoration: none; padding: 0.2rem 0; border-bottom: 2px solid transparent; }
nav a:hover, nav a[aria-current="page"] { border-bottom-color: var(--ash); }

main, footer { max-width: 64rem; margin: 0 auto; padding: 0 1rem; }
main { padding-block: 1.5rem 2rem; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0.5rem 0 0.75rem; }
h2 { font-size: 1.35rem; margin: 1.75rem 0 0.5rem; }
h3 { font-size: 1.05rem; margin: 1rem 0 0.35rem; }
.lede { font-size: 1.1rem; color: #cfc9c1; max-width: 44rem; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

.hero h1 { font-size: 2.25rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; margin: 1.25rem 0 0.5rem; }

.card, .panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem;
}
.panel { margin: 1.5rem 0; }
.panel h2 { margin-top: 0; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.card h3 { margin: 0; }
.state { font-size: 0.85rem; color: var(--ash); }
.state::before { content: "\25CF\00A0"; }
.state.up { color: var(--ok); }
.where { margin: 0.35rem 0 0.75rem; color: #cfc9c1; }
.counts { display: flex; gap: 1.5rem; margin: 0 0 0.9rem; }
.counts div { min-width: 3.5rem; }
.counts dt { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.counts dd { margin: 0; font-size: 1.5rem; font-weight: 700; }
.connect { display: flex; gap: 0.5rem; align-items: stretch; flex-wrap: wrap; margin: 0.5rem 0; }
.connect code {
  flex: 1 1 auto; background: #0c0c0c; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.5rem 0.65rem; white-space: nowrap; overflow-x: auto; max-width: 100%;
}
button, .button {
  display: inline-block; background: var(--ash-btn); color: #fff; border: 0; border-radius: var(--radius);
  padding: 0.5rem 0.95rem; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
button:hover, .button:hover { background: #d4472f; color: #fff; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--cw); outline-offset: 2px; }

.server { display: grid; grid-template-columns: minmax(17rem, 24rem) 1fr; gap: 1.25rem; margin: 1.5rem 0; align-items: start; }
.server-info h2 { margin-top: 0; }
@media (max-width: 44rem) { .server { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
td:nth-child(2) { white-space: normal; overflow-wrap: anywhere; }
tbody tr:hover { background: #222120; }

.steps { padding-left: 1.25rem; }
.steps > li { margin-bottom: 1.25rem; }
.steps h3 { margin-top: 0; }
.rules li { margin-bottom: 0.6rem; }
.cmds { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; }
.cmds dd { margin: 0; }
.wins li { margin-bottom: 0.3rem; }

.crews { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.crew { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; border-top: 3px solid; }
.crew.ash { border-top-color: var(--ash); }
.crew.cw { border-top-color: var(--cw); }
.crew h2 { margin-top: 0; }
.crew.ash h2 { color: var(--ash); }
.crew.cw h2 { color: var(--cw); }
.tag { font-size: 0.9rem; color: var(--muted); }
blockquote { margin: 0.75rem 0 0; padding-left: 0.75rem; border-left: 3px solid var(--line); font-style: italic; color: #cfc9c1; }

footer { border-top: 1px solid var(--line); padding-block: 1rem 2rem; color: var(--muted); font-size: 0.875rem; }

/* Skip link: hidden until it gets keyboard focus (DMT review, 2026-10-25). */
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--panel); color: var(--text); padding: 0.5rem 0.75rem; border-radius: var(--radius); z-index: 10; }
.skip:focus { left: 0.5rem; }

/* Emblems (Hollow Phoenix is World 1 of Quickscope). */
.world { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: start; }
.world .emblem { grid-row: span 3; }
.world > :not(.emblem) { grid-column: 2; }
.emblem { display: block; max-width: 100%; height: auto; }
.emblem.big { margin: 1rem 0 0.25rem; }
@media (max-width: 30rem) { .world { grid-template-columns: 1fr; } .world .emblem { grid-row: auto; } .world > :not(.emblem) { grid-column: 1; } }
