:root {
  --ink: #111b38;
  --ink-2: #1b294f;
  --cream: #fff8e9;
  --paper: #fffdf8;
  --orange: #ff6235;
  --orange-dark: #e44825;
  --purple: #7c3ff2;
  --yellow: #ffd334;
  --mint: #55d79c;
  --pink: #f65076;
  --muted: #646b7d;
  --line: #d9d4c9;
  --page-pad: clamp(18px, 5vw, 76px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 116px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(17, 27, 56, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 27, 56, 0.035) 1px, transparent 1px),
    var(--cream);
  background-size: 32px 32px;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  background: var(--yellow);
  color: var(--ink);
}

a {
  color: var(--purple);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

a:hover {
  color: var(--orange-dark);
}

img {
  display: block;
  max-width: 100%;
}

.skip {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 11px 15px;
  border: 2px solid white;
  background: var(--ink);
  color: white;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  transform: translateY(-170%);
  transition: transform 160ms ease;
}

.skip:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 2px solid var(--ink);
  background: rgba(255, 248, 233, 0.96);
  backdrop-filter: blur(12px);
}

.header,
.footer,
.shell {
  width: min(1220px, calc(100% - (var(--page-pad) * 2)));
  margin-inline: auto;
}

.header {
  display: flex;
  justify-content: space-between;
  gap: 34px;
  align-items: center;
  min-height: 94px;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  width: max-content;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  position: relative;
  display: block;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border: 3px solid var(--ink);
  background: #050505;
  box-shadow: 5px 5px 0 var(--orange);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: 1.46;
}

.brand-type {
  display: grid;
  font-family: "Courier New", Courier, monospace;
  font-size: 1.34rem;
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: 0.02em;
}

.brand-type b:last-child {
  margin-top: 6px;
  color: var(--orange);
}

.nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(14px, 2.4vw, 32px);
  align-items: center;
}

.nav a {
  position: relative;
  padding: 10px 1px;
  color: var(--ink);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav a::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 2px;
  left: 50%;
  height: 4px;
  background: var(--orange);
  transition: right 160ms ease, left 160ms ease;
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  right: 0;
  left: 0;
}

.hero {
  padding: clamp(54px, 7vw, 92px) 0 34px;
}

.hero-card {
  position: relative;
  min-height: 390px;
  padding: clamp(34px, 6vw, 76px);
  overflow: hidden;
  border: 3px solid var(--ink);
  background: var(--paper);
  box-shadow: 10px 10px 0 var(--ink);
}

.hero-card::before {
  content: "QS";
  position: absolute;
  right: clamp(28px, 7vw, 90px);
  bottom: -18px;
  color: rgba(124, 63, 242, 0.09);
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(9rem, 23vw, 20rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.18em;
  pointer-events: none;
}

.hero-card::after {
  content: "";
  position: absolute;
  top: 27px;
  right: 29px;
  width: 13px;
  height: 13px;
  background: var(--orange);
  box-shadow:
    -23px 23px 0 var(--purple),
    -46px 0 0 var(--yellow),
    0 46px 0 var(--mint);
}

.support-page .hero-card::before {
  content: "?!";
  color: rgba(255, 98, 53, 0.1);
}

.eyebrow {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 18px;
  color: var(--purple);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 12px;
  height: 12px;
  background: currentColor;
  clip-path: polygon(33% 0, 67% 0, 67% 33%, 100% 33%, 100% 67%, 67% 67%, 67% 100%, 33% 100%, 33% 67%, 0 67%, 0 33%, 33% 33%);
}

h1,
h2,
h3 {
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0;
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(2.5rem, 6vw, 5.6rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.085em;
  text-transform: uppercase;
}

h2 {
  margin: 3.5rem 0 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--ink);
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

h3 {
  margin: 1.9rem 0 0.45rem;
  font-size: 1.1rem;
}

.lead {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.23rem);
  line-height: 1.72;
}

.meta {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.badge {
  display: inline-flex;
  padding: 8px 10px;
  border: 2px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
}

.badge:first-child {
  background: var(--yellow);
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 32px;
  align-items: start;
  padding: 34px 0 clamp(80px, 10vw, 130px);
}

.grid:has(.article:only-child) {
  grid-template-columns: minmax(0, 1fr);
}

.article {
  min-width: 0;
  padding: clamp(26px, 4.5vw, 58px);
  border: 3px solid var(--ink);
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
}

.article > :first-child {
  margin-top: 0;
}

.article p,
.article li {
  max-width: 78ch;
}

.article ul,
.article ol {
  padding-left: 1.3rem;
}

.article li + li {
  margin-top: 0.55rem;
}

.article strong {
  color: var(--ink);
}

.notice {
  margin: 1.7rem 0;
  padding: 18px 20px;
  border: 3px solid var(--ink);
  border-left: 11px solid var(--orange);
  background: #fff0e8;
  box-shadow: 4px 4px 0 rgba(17, 27, 56, 0.16);
}

.notice.good {
  border-left-color: var(--mint);
  background: #eafbf3;
}

.toc {
  position: sticky;
  top: 116px;
  padding: 22px;
  border: 3px solid var(--ink);
  background: var(--ink);
  box-shadow: 7px 7px 0 var(--orange);
  color: white;
}

.toc h2 {
  margin: 0 0 14px;
  padding: 0 0 12px;
  border-bottom-color: rgba(255, 255, 255, 0.25);
  color: var(--yellow);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.toc li + li {
  margin-top: 0.4rem;
}

.toc a {
  color: #dbe3f4;
  font-size: 0.84rem;
  text-decoration: none;
}

.toc a:hover {
  color: var(--yellow);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.card {
  position: relative;
  display: block;
  min-height: 165px;
  padding: 22px;
  border: 3px solid var(--ink);
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--ink);
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.card::after {
  content: "→";
  position: absolute;
  right: 18px;
  bottom: 15px;
  color: var(--purple);
  font-family: "Courier New", Courier, monospace;
  font-size: 1.3rem;
  font-weight: 900;
}

.card:hover {
  color: var(--ink);
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(4px, 4px);
}

.card strong {
  display: block;
  font-family: "Courier New", Courier, monospace;
  font-size: 1.08rem;
  line-height: 1.08;
  text-transform: uppercase;
}

.card span {
  display: block;
  margin-top: 10px;
  padding-right: 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

.credit {
  padding: 20px;
  border: 3px dashed var(--purple);
  background: #f4efff;
}

.credit p {
  margin: 0;
}

.contact {
  padding: 24px;
  border: 3px solid var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    var(--purple);
  background-size: 20px 20px;
  box-shadow: 6px 6px 0 var(--ink);
  color: white;
}

.contact h2,
.contact h3 {
  margin-top: 0;
  border: 0;
  color: white;
}

.contact p:last-child {
  margin-bottom: 0;
}

.contact a {
  color: var(--yellow);
}

hr {
  margin: 3rem 0;
  border: 0;
  border-top: 3px solid var(--ink);
}

.site-footer {
  padding: 46px 0;
  border-top: 3px solid var(--ink);
  background: var(--ink);
  color: #d6deed;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 44px;
  align-items: flex-start;
}

.footer-brand {
  color: white;
}

.footer-brand .brand-logo {
  border-color: white;
}

.footer-tagline {
  margin: 20px 0 8px;
  color: var(--yellow);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 10px 22px;
  flex-wrap: wrap;
  max-width: 520px;
  justify-content: flex-end;
}

.site-footer a {
  color: white;
}

.footer-links a {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.68rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.footer-links a:hover {
  color: var(--orange);
}

.site-footer p {
  margin-top: 0;
}

.small {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .small {
  margin-bottom: 4px;
  color: #9fabc0;
}

@media (max-width: 920px) {
  .header {
    gap: 24px;
    align-items: flex-start;
    flex-direction: column;
    padding-block: 18px;
  }

  .nav {
    justify-content: flex-start;
    width: 100%;
    padding-top: 4px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .nav a {
    flex: 0 0 auto;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    order: -1;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 160px;
  }

  .header,
  .footer,
  .shell {
    width: min(100% - 32px, 1220px);
  }

  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .brand-type {
    font-size: 1.05rem;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-card {
    min-height: 0;
    padding: 30px 22px 34px;
    box-shadow: 6px 6px 0 var(--ink);
  }

  .hero-card::after {
    display: none;
  }

  .hero-card::before {
    right: 12px;
    font-size: 8rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .article {
    padding: 26px 20px;
    box-shadow: 5px 5px 0 var(--ink);
  }

  .footer {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body {
    background: white;
    color: black;
  }

  .site-header,
  .toc,
  .site-footer {
    display: none;
  }

  .hero {
    padding: 0 0 18px;
  }

  .hero-card,
  .article,
  .contact,
  .card {
    border: 0;
    box-shadow: none;
  }

  .hero-card,
  .article {
    padding: 0;
  }

  .hero-card::before,
  .hero-card::after {
    display: none;
  }

  .grid {
    display: block;
    padding: 0;
  }

  a {
    color: black;
  }
}
