/* Generated by scripts/site/render.js from src/styles/tokens.css and scripts/site/site.css. */
@font-face { font-family: 'Big Noodle Titling'; src: url('fonts/big_noodle_titling.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Big Noodle Titling'; src: url('fonts/big_noodle_titling_oblique.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Config'; src: url('fonts/config-regular-webfont.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

/*
 * Design tokens. Components only use these variables, so the whole theme can
 * be retuned from this file.
 */

/* Registered so the active tier colour can animate between ranks. */
@property --tier {
  syntax: '<color>';
  inherits: true;
  initial-value: #5d9ef2;
}

:root {
  /* Surfaces: the deep navy of the Overwatch site hero */
  --navy-950: #050a1a;
  --navy-900: #0a1230;
  --navy-800: #101b40;
  --navy-700: #182654;
  --navy-600: #24356b;
  --navy-500: #34488a;

  /* Text and lines: cool whites */
  --ice-50: #ffffff;
  --ice-100: #f1f5fc;
  --ice-200: #dbe3f2;
  --ice-300: #b4c0db;
  --ice-400: #8794b6;
  --ice-500: #5e6c93;

  /* Accents */
  --orange: #f06414;
  --orange-hot: #ff8336;
  --blue: #28a9ff;

  --line: rgb(160 185 255 / 0.14);
  --line-strong: rgb(160 185 255 / 0.28);
  --panel-top: rgb(28 42 92 / 0.74);
  --panel-bottom: rgb(12 20 50 / 0.82);

  /* Type */
  --font-display: 'Big Noodle Titling', 'Impact', 'Arial Narrow', sans-serif;
  --font-body: 'Config', 'Segoe UI', system-ui, sans-serif;
  --font-body-weight: 700;

  /* Shape and motion */
  --chamfer: 14px;
  --radius: 4px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --gutter: clamp(12px, 1.6vw, 22px);
}

/*
 * Static pages (articles, the articles index, 404). Uses the app's tokens
 * (src/styles/tokens.css, prepended at build time) so both look like one
 * product: navy surfaces, Big Noodle Titling headings, Config body text,
 * the orange accent and chamfered panels. No JavaScript.
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--ice-100);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 620px at 78% -8%, #2c428f 0%, transparent 62%),
    radial-gradient(900px 600px at 0% 100%, #16255a 0%, transparent 60%),
    linear-gradient(180deg, #0f1a3f 0%, #080e24 100%) fixed;
  background-color: var(--navy-900);
}

::selection {
  background: var(--orange);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--orange-hot);
  outline-offset: 2px;
}

a {
  color: var(--orange-hot);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #ffa66b;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--orange);
  color: #fff;
}

.skip:focus {
  left: 8px;
}

/* ---------- Shared pieces (mirroring src/styles/base.css) ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.slanted {
  font-style: italic;
  transform: skewX(-9deg);
  transform-origin: 0 100%;
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice-400);
}

.panel {
  --cut: var(--chamfer);
  --shape: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  position: relative;
  isolation: isolate;
  clip-path: var(--shape);
  background: linear-gradient(160deg, var(--line-strong), var(--line) 40%, var(--line));
}

.panel::before {
  content: '';
  position: absolute;
  inset: 1px;
  z-index: -1;
  clip-path: var(--shape);
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bottom));
}

.button {
  display: inline-block;
  padding: 10px 20px 9px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, var(--orange-hot), var(--orange));
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: filter 200ms;
}

.button:hover {
  color: #fff;
  filter: brightness(1.12);
}

/* ---------- Header and footer ---------- */

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  width: min(1120px, 100% - 2 * var(--gutter));
  margin: 16px auto 0;
  padding: 10px 16px;
  background: rgb(10 18 48 / 0.6);
  border: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ice-50);
  text-decoration: none;
}

.brand .display {
  font-size: 26px;
}

.logo {
  width: 32px;
  height: 32px;
  flex: none;
}

.top nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 700;
  font-size: 15px;
}

.top nav a:not(.button) {
  color: var(--ice-200);
  text-decoration: none;
}

.top nav a:not(.button):hover {
  color: var(--orange-hot);
}

.top .button {
  font-size: 18px;
  padding: 7px 14px 6px;
}

main {
  flex: 1;
  width: min(820px, 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.bottom {
  width: min(1120px, 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding: 18px 4px 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ice-400);
}

.bottom p {
  margin: 0 0 6px;
}

.bottom a {
  color: var(--ice-200);
}

/* ---------- Breadcrumbs ---------- */

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--ice-400);
}

.crumbs li + li::before {
  content: '/';
  margin-right: 4px;
  color: var(--ice-500);
}

.crumbs a {
  color: var(--ice-300);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--orange-hot);
}

/* ---------- Article ---------- */

.article-head {
  margin-bottom: 28px;
}

.article-head h1 {
  margin: 8px 0 14px;
  font-size: clamp(42px, 7vw, 68px);
  color: var(--ice-50);
}

.article-head .meta {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--ice-400);
}

.lede {
  font-size: 19px;
  color: var(--ice-200);
}

.prose > * {
  margin: 0 0 18px;
}

.prose h2 {
  position: relative;
  margin: 44px 0 14px;
  padding-left: 16px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4.5vw, 38px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ice-50);
}

.prose h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 6px;
  width: 5px;
  background: var(--orange);
  transform: skewX(-9deg);
}

.prose h3 {
  margin: 28px 0 6px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.prose p,
.prose li {
  color: var(--ice-200);
}

.prose strong {
  color: var(--ice-50);
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose li {
  margin-bottom: 6px;
}

.prose li::marker {
  color: var(--orange);
}

.tier {
  color: var(--c);
  font-weight: 700;
}

.prose h3 .tier {
  font-weight: 400;
}

.facts {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ice-400) !important;
}

.formula {
  padding: 12px 18px;
  font-size: 19px;
  font-weight: 700;
  text-align: center;
  color: var(--ice-50) !important;
  background: rgb(10 18 48 / 0.5);
  border: 1px solid var(--line);
}

.note {
  padding: 14px 18px;
  font-size: 15px;
  background: rgb(240 100 20 / 0.08);
  border-left: 3px solid var(--orange);
}

.note p {
  margin: 0;
}

/* ---------- Figures ---------- */

.chart,
.bars,
.table-wrap {
  margin: 26px 0;
  padding: 18px 18px 14px;
}

.chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart text {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chart text.mark {
  font-size: 16px;
  paint-order: stroke;
  stroke: #0a1230;
  stroke-width: 4px;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ice-400);
}

.bars ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bars li {
  display: grid;
  grid-template-columns: 110px 1fr 70px;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.bar-name {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c);
}

.bar-track {
  height: 12px;
  background: rgb(160 185 255 / 0.08);
}

.bar-fill {
  display: block;
  height: 100%;
  min-width: 2px;
  background: var(--c);
  clip-path: polygon(0 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}

.bar-value {
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

caption {
  padding-bottom: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
  color: var(--ice-300);
}

th,
td {
  padding: 7px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

thead th {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ice-400);
}

tbody th {
  font-weight: 700;
}

tbody tr:last-child > * {
  border-bottom: 0;
}

.tier-list {
  display: grid;
  gap: 6px;
  padding: 0 !important;
  list-style: none;
  counter-reset: tier;
}

.tier-list li {
  display: grid;
  grid-template-columns: 34px 1fr auto auto;
  gap: 14px;
  align-items: baseline;
  margin: 0;
  padding: 8px 14px;
  background: rgb(10 18 48 / 0.5);
  border-left: 3px solid var(--c);
  counter-increment: tier;
}

.tier-list li::before {
  content: counter(tier);
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ice-500);
}

.tier-list strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c);
}

.tier-list span {
  font-size: 14px;
  color: var(--ice-300);
  font-variant-numeric: tabular-nums;
}

/* ---------- Calls to action and cards ---------- */

.cta {
  margin: 36px 0;
  padding: 22px 24px 24px;
}

.cta .display {
  margin: 0 0 6px;
  font-size: 30px;
  color: var(--ice-50);
}

.cta p {
  margin: 0 0 16px;
}

.related {
  margin-top: 48px;
}

.related h2 {
  margin: 0 0 14px;
  font-size: 32px;
}

.related ul,
.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-list {
  margin-top: 28px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 16px 18px 18px;
  text-decoration: none;
  color: var(--ice-300);
  font-size: 14px;
  line-height: 1.5;
  transition: transform 200ms var(--ease-out);
}

.card strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ice-50);
}

.card time {
  margin-top: auto;
  font-size: 12px;
  color: var(--ice-500);
}

.card:hover {
  color: var(--ice-200);
  transform: translateY(-2px);
}

.card:hover strong {
  color: var(--orange-hot);
}

.qa h2 {
  font-size: clamp(26px, 4vw, 32px);
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .top {
    flex-wrap: nowrap;
    padding: 8px 10px;
  }

  .brand {
    gap: 8px;
  }

  .brand .display {
    font-size: 18px;
  }

  .logo {
    width: 26px;
    height: 26px;
  }

  .top .button {
    font-size: 15px;
    padding: 6px 10px 5px;
    white-space: nowrap;
  }

  .top nav a:not(.button) {
    display: none;
  }

  .bars li {
    grid-template-columns: 84px 1fr 58px;
    gap: 8px;
  }

  .tier-list li {
    grid-template-columns: 22px 1fr auto;
    gap: 0 10px;
    line-height: 1.3;
  }

  /* Name and share on the first line, the SR range under the name. */
  .tier-list span:nth-of-type(2) {
    grid-column: 3;
    grid-row: 1;
  }

  .tier-list span:nth-of-type(1) {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
