/* Warden. Black and white only: the one loud thing is Warden's own chat output, drawn in pixel type on
   black, the way staff see it in game. Headlines are Archivo pulled narrow, like lettering on a sign. */

:root {
  --paper: #ffffff;
  --ink: #000000;
  --graphite: #555555;
  --hairline: #d6d6d6;
  --wash: #f3f3f3;
  --screen: #000000;
  --on-screen: #ffffff;
  --on-screen-dim: #9a9a9a;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --pixel: "Pixelify Sans", "Courier New", monospace;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --measure: 66ch;
  --page: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #000000; --ink: #ffffff; --graphite: #a6a6a6; --hairline: #2b2b2b; --wash: #121212;
    --screen: #ffffff; --on-screen: #000000; --on-screen-dim: #5c5c5c; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #000000; --ink: #ffffff; --graphite: #a6a6a6; --hairline: #2b2b2b; --wash: #121212;
  --screen: #ffffff; --on-screen: #000000; --on-screen-dim: #5c5c5c; color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--sans); font-stretch: 100%;
  padding-inline: 16px;
}
.page { max-width: var(--page); margin: 0 auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 800; }
p { margin: 0; }
code, .mono { font: 500 0.88em var(--mono); }
code { background: var(--wash); padding: 2px 6px; }
.muted { color: var(--graphite); }
.small { font-size: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- header ---------- */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-block: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 19px/1 var(--sans); font-stretch: 75%; letter-spacing: 0.01em; }
.brand svg { width: 28px; height: 28px; flex: none; }
/* The logo is always the real one, a black square with a white W; in dark mode a hairline keeps its edge. */
.brand svg rect { fill: #000; stroke: var(--hairline); stroke-width: 60; }
.brand svg polygon { fill: #fff; }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--graphite); }
.top nav a:hover { color: var(--ink); }
.top nav .btn:not(.ghost) { color: var(--paper); }
.top nav .btn.ghost { color: var(--ink); }
.top nav .btn:hover { color: var(--ink); }
.top nav .btn.ghost:hover { color: var(--paper); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border: 1.5px solid var(--ink); border-radius: 0;
  background: var(--ink); color: var(--paper); font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.btn:hover { background: var(--paper); color: var(--ink); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; }
.btn[disabled]:hover { background: var(--ink); color: var(--paper); }
.btn.ghost[disabled]:hover { background: transparent; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 9vw, 112px) 40px; display: grid; gap: 28px; }
.hero h1 {
  font-size: clamp(52px, 11.5vw, 156px); line-height: 0.86; font-stretch: 62%; letter-spacing: -0.01em;
  text-transform: none; max-width: 11ch;
}
.hero .lede { font-size: clamp(18px, 2vw, 21px); max-width: 52ch; color: var(--graphite); }
.hero .lede b { color: var(--ink); font-weight: 600; }

/* The chat: Warden's alerts as staff see them. Lines appear one by one as it scrolls into view. */
.screen { background: var(--screen); color: var(--on-screen); padding: clamp(18px, 3vw, 34px); margin-top: 12px; overflow: hidden; }
.chat { font: 400 clamp(13px, 1.55vw, 18px)/1.75 var(--pixel); display: grid; gap: 2px; }
.chat p { margin: 0; }
.chat .w { font-weight: 500; }
.chat .dim { color: var(--on-screen-dim); }
.chat .act { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.caption { font-size: 14px; color: var(--graphite); max-width: var(--measure); }
.js .chat p { opacity: 0; transform: translateY(6px); }
.js .chat.shown p { animation: line-in 380ms steps(4, end) forwards; }
.js .chat.shown p:nth-child(2) { animation-delay: 420ms; }
.js .chat.shown p:nth-child(3) { animation-delay: 840ms; }
.js .chat.shown p:nth-child(4) { animation-delay: 1260ms; }
.js .chat.shown p:nth-child(5) { animation-delay: 1680ms; }
@keyframes line-in { to { opacity: 1; transform: none; } }

.facts { display: flex; flex-wrap: wrap; gap: 8px 0; border-block: 1px solid var(--hairline); padding-block: 14px; font-size: 15px; color: var(--graphite); }
.facts span { padding-right: 22px; margin-right: 22px; border-right: 1px solid var(--hairline); }
.facts span:last-child { border-right: 0; }
.facts b { color: var(--ink); font-weight: 700; }

/* ---------- sections ---------- */
section { padding-block: clamp(64px, 9vw, 120px) 0; display: grid; gap: 24px; }
section > h2, .section-title { font-size: clamp(34px, 5.4vw, 64px); line-height: 0.95; font-stretch: 62%; letter-spacing: 0; }
section > .intro { max-width: var(--measure); color: var(--graphite); }

/* Reveal on scroll: whole sections ease in once. Nothing moves for people who ask for less motion. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 600ms cubic-bezier(.2,.7,.2,1); }
.js .reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .chat p { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
}

dl.rows { margin: 0; display: grid; grid-template-columns: minmax(160px, 260px) minmax(0, 1fr); border-top: 1px solid var(--ink); }
dl.rows dt, dl.rows dd { padding-block: 16px; border-bottom: 1px solid var(--hairline); }
dl.rows dt { font-weight: 700; padding-right: 24px; }
dl.rows dd { margin: 0; color: var(--graphite); max-width: var(--measure); }

.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px 40px; }
.groups h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.groups p { color: var(--graphite); font-size: 15px; }

ol.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border-top: 1px solid var(--ink); counter-reset: step; }
ol.steps li { counter-increment: step; padding: 18px 22px 22px 0; display: grid; gap: 6px; align-content: start; }
ol.steps li::before { content: counter(step); font: 800 44px/1 var(--sans); font-stretch: 62%; }
ol.steps b { display: block; }
ol.steps span { color: var(--graphite); font-size: 15px; }
pre.console { margin: 0; background: var(--wash); padding: 18px 20px; overflow-x: auto; font: 400 14px/1.75 var(--mono); }
pre.console .c { color: var(--graphite); }

/* ---------- pricing ---------- */
.billing-choice { display: inline-flex; border: 1.5px solid var(--ink); width: fit-content; }
.billing-choice button {
  min-height: 42px; padding: 0 18px; border: 0; background: transparent; color: var(--ink);
  font: 600 15px/1 var(--sans); cursor: pointer;
}
.billing-choice button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--hairline); }
.plan { padding: 26px 28px 30px; display: grid; gap: 14px; align-content: start; border-left: 1px solid var(--hairline); }
.plan:first-child { border-left: 0; padding-left: 0; }
.plan h3 { font-size: 17px; font-weight: 700; }
.plan .price { font: 800 clamp(56px, 7vw, 88px)/0.9 var(--sans); font-stretch: 62%; letter-spacing: -0.01em; }
.plan .price small { font-size: 0.32em; font-stretch: 100%; font-weight: 600; letter-spacing: 0; margin-left: 4px; }
.plan .per { color: var(--graphite); font-size: 15px; min-height: 2lh; }
.plan .btn { justify-self: start; }
.included { columns: 2 260px; column-gap: 40px; margin: 0; padding: 0; list-style: none; color: var(--graphite); font-size: 15px; }
.included li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid var(--hairline); }

/* ---------- questions ---------- */
.qa { border-top: 1px solid var(--ink); }
.qa details { border-bottom: 1px solid var(--hairline); }
.qa summary { cursor: pointer; font-weight: 600; padding-block: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 400 22px/1 var(--sans); }
.qa details[open] summary::after { content: "\2212"; }
.qa p { color: var(--graphite); padding-bottom: 18px; max-width: var(--measure); }

footer.foot { margin-top: clamp(72px, 10vw, 140px); padding-block: 22px 40px; border-top: 1px solid var(--ink); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; font-size: 14px; color: var(--graphite); }
footer.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* ---------- notices ---------- */
.notice { border: 1.5px solid var(--ink); padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.notice[hidden] { display: none; }
.notice.error { border-style: dashed; }
.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 20;
  background: var(--ink); color: var(--paper); padding: 12px 18px; font-size: 15px; max-width: calc(100vw - 32px);
}
.toast[hidden] { display: none; }

/* ---------- documents (terms, privacy) ---------- */
.doc { max-width: 720px; padding-block: 40px 0; display: grid; gap: 18px; }
.doc h1 { font-size: clamp(44px, 7vw, 80px); line-height: 0.92; font-stretch: 62%; }
.doc h2 { font-size: 20px; margin-top: 18px; }
.doc ol, .doc ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: var(--graphite); }
.doc p { color: var(--graphite); }
.doc li b, .doc p b { color: var(--ink); }

/* ---------- dashboard ---------- */
.dash { display: grid; gap: 0; }
.dash-head { padding-block: 36px 8px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.dash-head h1 { font-size: clamp(44px, 7vw, 84px); line-height: 0.9; font-stretch: 62%; }
.who { display: flex; align-items: center; gap: 10px; color: var(--graphite); font-size: 15px; }
.who img { width: 32px; height: 32px; border-radius: 50%; filter: grayscale(1); }
.panel { padding-block: 44px 0; display: grid; gap: 18px; }
.panel > h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1; font-stretch: 62%; }
.license { border-top: 1px solid var(--ink); padding-block: 22px 26px; display: grid; gap: 16px; }
.license + .license { border-top-color: var(--hairline); }
.license > .btn { justify-self: start; }
.license-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; align-items: baseline; }
.license h3 { font-size: 18px; }
.state { font-size: 14px; font-weight: 600; padding: 3px 10px; border: 1.5px solid var(--ink); }
.state.off { border-style: dashed; color: var(--graphite); border-color: var(--graphite); }
.keyline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.key { font: 600 clamp(15px, 2.2vw, 20px)/1.3 var(--mono); letter-spacing: 0.02em; background: var(--wash); padding: 10px 14px; overflow-wrap: anywhere; user-select: all; }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 28px; margin: 0; }
.facts-grid div { display: grid; gap: 2px; }
.facts-grid dt { font-size: 13px; color: var(--graphite); }
.facts-grid dd { margin: 0; font-size: 15px; }
.license .note { font-size: 14px; color: var(--graphite); }
.empty { border-top: 1px solid var(--ink); padding-block: 22px; color: var(--graphite); display: grid; gap: 14px; justify-items: start; }
.buy-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.buy-row select { min-height: 44px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); font: 500 15px var(--sans); padding: 0 12px; border-radius: 0; }
.updates { display: grid; gap: 26px; border-top: 1px solid var(--ink); padding-top: 20px; }
.updates article { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 4px 20px; }
.updates h3 { font: 800 28px/1 var(--sans); font-stretch: 62%; }
.updates .summary { color: var(--ink); max-width: var(--measure); }
.updates h4 { margin: 12px 0 4px; font-size: 14px; }
.updates ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--graphite); font-size: 15px; max-width: var(--measure); }
.updates li b { color: var(--ink); }
.updates details summary { cursor: pointer; font-size: 14px; font-weight: 600; margin-top: 8px; }

dialog { border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); padding: 26px; max-width: min(480px, calc(100vw - 32px)); }
dialog::backdrop { background: rgb(0 0 0 / 0.55); }
dialog h2 { font-size: 30px; line-height: 1; font-stretch: 62%; margin-bottom: 12px; }
dialog p { color: var(--graphite); margin-bottom: 18px; }

/* ---------- admin ---------- */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--hairline); vertical-align: top; white-space: nowrap; }
th { font-weight: 600; color: var(--graphite); }
td.wrap { white-space: normal; min-width: 220px; }
.totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-top: 1px solid var(--ink); }
.totals div { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--hairline); }
.totals b { display: block; font: 800 40px/1 var(--sans); font-stretch: 62%; }
.totals span { font-size: 14px; color: var(--graphite); }
.form-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.form-row label { display: grid; gap: 4px; font-size: 13px; color: var(--graphite); }
.form-row input { min-height: 40px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); padding: 0 10px; font: 15px var(--sans); border-radius: 0; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan, .plan:first-child { border-left: 0; padding-left: 0; padding-right: 0; border-top: 1px solid var(--hairline); }
  .plan:first-child { border-top: 0; }
  dl.rows { grid-template-columns: minmax(0, 1fr); }
  dl.rows dt { border-bottom: 0; padding-bottom: 0; }
  .updates article { grid-template-columns: minmax(0, 1fr); }
  .facts span { border-right: 0; margin-right: 0; padding-right: 18px; }
}
