/* Helldesk brand: ink-outlined orange, cream and blue on charcoal,
   with the logo's flat look carried through: thick outlines, hard shadows. */

@font-face {
  font-family: "Oxanium";
  src: url("../fonts/oxanium-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --ground: #1f1c1f;
  --panel: #2a2629;
  --panel-2: #332e32;
  --rule: #3a3438;
  --ink: #120f12;
  --cream: #ece6dc;
  --dim: #b9b1a7;
  --faint: #91897f;
  --orange: #ed6b21;
  --orange-hi: #ff8a47;
  --orange-deep: #b9541d;
  --blue: #7399cc;
  --display: "Oxanium", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;
  --wrap: 72rem;
  --pad: clamp(1rem, 4vw, 2.5rem);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); color: var(--cream); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.5rem); line-height: 1; color: var(--orange); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.1; color: var(--cream); }
h3 { font-size: 1.25rem; line-height: 1.25; color: var(--cream); }
a { color: var(--blue); text-underline-offset: 0.2em; }
a:hover { color: var(--cream); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
::selection { background: var(--orange); color: var(--ink); }
code, kbd {
  font: 0.88em var(--mono);
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--cream);
  overflow-wrap: anywhere;
}
kbd { color: var(--orange); font-weight: 600; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; padding: 0.6rem 1rem; background: var(--orange); color: var(--ink); font-weight: 700; }
.skip:focus { top: 1rem; }

/* ---------- header ---------- */

.top { border-bottom: 3px solid var(--ink); background: var(--panel); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; min-height: 4.25rem; padding-block: 0.6rem; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 2.6rem; width: auto; }
.logo .logo-mark { height: 2.9rem; }
.top nav ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; list-style: none; }
.top nav a { color: var(--cream); text-decoration: none; font-weight: 700; font-size: 1rem; padding-block: 0.3rem; border-bottom: 3px solid transparent; }
.top nav a:hover { color: var(--orange); }
.top nav a[aria-current="page"] { border-bottom-color: var(--orange); }

/* ---------- hero ---------- */

.hero { padding-block: clamp(3rem, 8vw, 6rem); border-bottom: 3px solid var(--ink); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-logo { display: flex; justify-content: center; margin: 0 0 clamp(1.75rem, 4vw, 2.75rem); line-height: 0; }
.hero-logo picture { display: block; width: min(100%, 48rem); }
.hero-logo img { display: block; width: 100%; height: auto; }
.hero-line { font: 700 clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem)/1.1 var(--display); color: var(--cream); margin-bottom: 1rem; text-wrap: balance; }
.lede { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem); color: var(--cream); max-width: 34em; margin-bottom: 1.5rem; }
.state {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font: 600 0.875rem/1.3 var(--mono);
  color: var(--cream);
  background: var(--panel);
  border: 2px solid var(--ink);
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
}
.state::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(237, 107, 33, 0.28); }
.hero-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; margin-top: 1.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 2.9rem;
  padding: 0 1.2rem;
  font: 700 1rem/1 var(--display);
  letter-spacing: 0.01em;
  color: var(--ink);
  background: var(--orange);
  border: 3px solid var(--ink);
  border-radius: 6px;
  box-shadow: 4px 4px 0 var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { color: var(--ink); background: var(--orange-hi); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-ghost { background: var(--panel); color: var(--cream); }
.btn-ghost:hover { background: var(--panel-2); color: var(--cream); }

/* ---------- the ticket ---------- */

.ticket {
  background: var(--panel);
  border: 3px solid var(--ink);
  border-radius: 10px;
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
}
.ticket-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
  background: var(--orange);
  color: var(--ink);
  font: 700 0.8125rem/1.2 var(--mono);
  border-bottom: 3px solid var(--ink);
}
.ticket-body { padding: 1.25rem 1.25rem 1.1rem; }
.ticket-from { font: 700 1.25rem/1.2 var(--display); color: var(--orange); margin-bottom: 0.15rem; }
.ticket-where { font-size: 0.9375rem; color: var(--dim); margin-bottom: 0.9rem; }
.ticket-quote {
  margin: 0 0 1.1rem;
  padding: 0.9rem 1rem;
  background: var(--ground);
  border: 2px solid var(--rule);
  border-radius: 6px;
  font-size: 1.1875rem;
  line-height: 1.45;
}
.ticket-fix { display: grid; gap: 0.6rem; margin: 0 0 1.1rem; }
.ticket-fix div { padding: 0.7rem 0.9rem; border-left: 4px solid var(--blue); background: var(--panel-2); border-radius: 0 6px 6px 0; }
.ticket-fix div + div { border-left-color: var(--orange); }
.ticket-fix dt { font: 700 0.75rem/1.2 var(--mono); color: var(--dim); margin-bottom: 0.2rem; }
.ticket-fix dd { margin: 0; }
.ticket-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.ticket-actions .btn { min-height: 2.6rem; font-size: 0.9375rem; }
.ticket-count { font: 600 0.8125rem/1 var(--mono); color: var(--faint); margin-left: auto; }
.ticket .closed {
  display: inline-block;
  font: 800 0.875rem/1 var(--mono);
  color: var(--ink);
  background: var(--blue);
  padding: 0.35rem 0.55rem;
  border-radius: 3px;
  transform: rotate(-3deg);
}
.ticket.is-open .ticket-fix,
.ticket.is-open .closed,
.ticket.is-open [data-next] { display: none; }
.ticket.is-solved [data-solve] { display: none; }
.ticket-nojs { font-size: 0.875rem; color: var(--faint); }
.js .ticket-nojs { display: none; }
.no-js-hide { display: none; }
.js .no-js-hide { display: inline-flex; }
@media (prefers-reduced-motion: no-preference) {
  .ticket.is-solved .ticket-fix { animation: reveal 0.3s ease-out; }
  .ticket.is-solved .closed { animation: stamp 0.35s cubic-bezier(.2, 1.6, .4, 1); }
}
@keyframes reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes stamp { from { opacity: 0; transform: rotate(-3deg) scale(1.8); } to { opacity: 1; transform: rotate(-3deg) scale(1); } }

/* ---------- sections ---------- */

.section { padding-block: clamp(3.5rem, 8vw, 6rem); border-bottom: 3px solid var(--ink); }
.section-alt { background: var(--panel); }
.section-head { max-width: 44rem; margin-bottom: 2.5rem; }
.section-head h2 { margin-bottom: 0.75rem; }
.section-head p { color: var(--dim); }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; list-style: none; }
.pillars li {
  background: var(--ground);
  border: 3px solid var(--ink);
  border-radius: 8px;
  padding: 1.2rem 1.25rem;
}
.pillars h3 { margin-bottom: 0.5rem; color: var(--orange); font-size: 1.1875rem; }
.pillars p { color: var(--dim); font-size: 1rem; }

/* the descent: each circle runs hotter, until the last one freezes */
.descent { list-style: none; max-width: 56rem; }
.circle {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1.25rem;
  padding-block: 1.25rem;
  border-top: 2px solid var(--rule);
}
.circle:last-child { border-bottom: 2px solid var(--rule); }
.depth {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--c, var(--orange));
  color: var(--ink);
  font: 800 1.375rem/1 var(--display);
  box-shadow: 3px 3px 0 var(--ink);
}
.circle h3 { margin-bottom: 0.25rem; }
.circle h3 span { color: var(--faint); font-weight: 600; font-size: 0.9375rem; margin-left: 0.5rem; }
.circle .premise { font-style: italic; color: var(--cream); margin-bottom: 0.35rem; }
.circle .skills { color: var(--dim); font-size: 0.9375rem; }
.circle:nth-child(1) { --c: #ece6dc; }
.circle:nth-child(2) { --c: #f2c7a3; }
.circle:nth-child(3) { --c: #f3a878; }
.circle:nth-child(4) { --c: #f08a4c; }
.circle:nth-child(5) { --c: #ed6b21; }
.circle:nth-child(6) { --c: #d9601e; }
.circle:nth-child(7) { --c: #c8581d; }
.circle:nth-child(8) { --c: #b9541d; }
.circle:nth-child(9) { --c: #9c4519; }
.circle:nth-child(10) { --c: #7399cc; }
.note { color: var(--faint); font-size: 0.9375rem; margin-top: 1.25rem; }

/* ---------- news ---------- */

.posts { list-style: none; max-width: 48rem; }
.post-item { padding-block: 1.4rem; border-top: 2px solid var(--rule); }
.post-item:last-child { border-bottom: 2px solid var(--rule); }
.post-item time { display: block; font: 600 0.8125rem/1.2 var(--mono); color: var(--faint); margin-bottom: 0.4rem; }
.post-item h3 { margin-bottom: 0.4rem; }
.post-item h3 a { color: var(--cream); text-decoration: none; }
.post-item h3 a:hover { color: var(--orange); }
.post-item p { color: var(--dim); }

.page-head { padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 4vw, 3rem); border-bottom: 3px solid var(--ink); }
.page-head h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.75rem); margin-bottom: 0.9rem; }
.page-head p { color: var(--dim); max-width: 40em; font-size: 1.125rem; }
.eyebrow { font: 700 0.8125rem/1.2 var(--mono); color: var(--orange); margin-bottom: 0.9rem; }

.article { padding-block: clamp(2.5rem, 6vw, 4rem); }
.article > * { max-width: 44rem; }
.article h2 { font-size: 1.625rem; margin: 2.25rem 0 0.75rem; }
.article p, .article li { color: var(--cream); }
.article ul, .article ol { padding-left: 1.3em; display: grid; gap: 0.4rem; margin-bottom: 1em; }
.article .back { margin-top: 2.5rem; }

/* ---------- playtest guide ---------- */

.guide { padding-block: clamp(2.5rem, 6vw, 4rem); display: grid; gap: 2.75rem; }
.guide > * { max-width: 46rem; }
.guide h2 { font-size: 1.625rem; margin-bottom: 0.75rem; }
.guide h3 { margin: 1rem 0 0.4rem; }
.guide ul, .guide ol { padding-left: 1.3em; display: grid; gap: 0.4rem; margin-bottom: 1em; }
.guide .callout {
  background: var(--panel);
  border: 3px solid var(--ink);
  border-left: 8px solid var(--orange);
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  box-shadow: 5px 5px 0 var(--ink);
}
.guide .callout .meta { font: 700 0.8125rem/1.3 var(--mono); color: var(--dim); margin-bottom: 0.4rem; }
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.platform { background: var(--panel); border: 3px solid var(--ink); border-radius: 8px; padding: 1rem 1.1rem; min-width: 0; }
.platform h3 { margin-top: 0; color: var(--orange); }
.platform p { font-size: 0.96875rem; }
.dim { color: var(--dim); }
.warn { color: var(--orange); font-weight: 700; }
.keys { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; }
th, td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 2px solid var(--rule); vertical-align: top; }
th { font: 700 0.8125rem/1.2 var(--mono); color: var(--dim); }
td:first-child { white-space: nowrap; }

/* ---------- 404 ---------- */

.lost { min-height: 55vh; display: grid; align-content: center; padding-block: 4rem; }
.lost .ticket { max-width: 34rem; margin-top: 2rem; }

/* ---------- footer ---------- */

.foot { background: var(--panel); color: var(--dim); font-size: 0.9375rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding-block: 2rem; }
.foot p { margin: 0; }
.foot a { color: var(--cream); }

/* ---------- responsive ---------- */

@media (max-width: 60rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 38rem) {
  .pillars, .platforms { grid-template-columns: 1fr; }
  .circle { grid-template-columns: 3.25rem minmax(0, 1fr); gap: 0.9rem; }
  .depth { width: 2.75rem; height: 2.75rem; font-size: 1.125rem; }
  .ticket { box-shadow: 5px 5px 0 var(--ink); }
  .ticket-count { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.circle:nth-child(8) .depth, .circle:nth-child(9) .depth { color: var(--cream); }
.article h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem); margin-bottom: 1.25rem; }
