:root {
  --color-bg: #ffffff;
  --color-raise: #f6f7f8;
  --color-text: #16181d;
  --color-muted: #5c6270;
  --color-accent: #5a3f7a;
  --color-accent-deep: #46315f;
  --color-border: #e4e6ea;
  --font-head: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mark: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1080px;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
}

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

a {
  color: var(--color-accent);
}

a:hover {
  color: var(--color-accent-deep);
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(1.9rem, 4.4vw, 2.7rem);
}

h2 {
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  margin-top: 0;
}

p {
  margin: 0 0 16px;
}

.wx-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}

.wx-skip:focus {
  left: 12px;
  top: 12px;
}

.wx-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Header */

.wx-head {
  border-bottom: 1px solid var(--color-border);
  padding: 18px 0;
}

.wx-head__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wx-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-text);
  text-decoration: none;
}

.wx-head__actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.wx-nav__list {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
}

.wx-nav__list a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
}

.wx-nav__list a:hover {
  color: var(--color-accent);
}

.wx-head__mail {
  font-family: var(--font-mark);
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}

.wx-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  position: relative;
  cursor: pointer;
}

.wx-burger__bar,
.wx-burger__bar::before,
.wx-burger__bar::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--color-text);
}

.wx-burger__bar {
  top: 21px;
}

.wx-burger__bar::before {
  top: -7px;
}

.wx-burger__bar::after {
  top: 7px;
}

.wx-mobile-nav {
  display: none;
  border-top: 1px solid var(--color-border);
  padding: 14px 0 4px;
}

.wx-mobile-nav.is-open {
  display: block;
}

.wx-mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wx-mobile-nav__list a {
  color: var(--color-text);
  text-decoration: none;
}

/* Hero */

.wx-hero {
  padding: 56px 0 48px;
}

.wx-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 760px) {
  .wx-hero__inner {
    grid-template-columns: 1.3fr 1fr;
    align-items: start;
  }
}

.wx-hero__lead {
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 56ch;
}

.wx-hero__facts {
  display: grid;
  gap: 16px;
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
}

.wx-hero__facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 12px;
}

.wx-hero__facts div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.wx-hero__facts dt {
  color: var(--color-muted);
  font-size: 0.92rem;
}

.wx-hero__facts dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

/* Sections */

.wx-section {
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
}

.wx-section:first-of-type {
  border-top: none;
}

.wx-section--raise {
  background: var(--color-raise);
  border-top: none;
  border-bottom: none;
}

/* Table */

.wx-table__scroll {
  overflow-x: auto;
  margin: 20px 0;
}

table.wx-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 640px;
}

table.wx-table caption {
  text-align: left;
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 10px;
}

table.wx-table th,
table.wx-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

table.wx-table thead th {
  font-family: var(--font-mark);
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  color: var(--color-muted);
  font-weight: 500;
}

table.wx-table td:last-child,
table.wx-table th[scope="col"]:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.wx-table-note {
  font-style: italic;
  color: var(--color-muted);
  font-size: 0.92rem;
}

/* Cards */

.wx-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 24px;
}

@media (min-width: 700px) {
  .wx-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.wx-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.wx-card__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.wx-card__body {
  min-width: 0;
}

.wx-card__dev {
  font-family: var(--font-mark);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-muted);
  margin-bottom: 4px;
}

.wx-card__title {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.wx-card__shot {
  width: 100%;
  max-width: 220px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  margin: 10px 0;
}

.wx-card__note {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 8px 0;
}

/* Buttons */

.wx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 14px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 600;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
  border: 1px solid transparent;
}

.wx-btn--primary {
  background: var(--color-accent);
  color: #fff;
}

.wx-btn--primary:hover {
  background: var(--color-accent-deep);
  color: #fff;
}

.wx-btn--secondary {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: transparent;
}

.wx-btn--secondary:hover {
  background: var(--color-accent);
  color: #fff;
}

.wx-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

.wx-more::after {
  content: "\2192";
  transition: transform 140ms ease;
}

.wx-more:hover::after {
  transform: translateX(4px);
}

.wx-more:hover {
  text-decoration: underline;
}

/* Glossary */

.wx-glossary {
  display: grid;
  gap: 18px;
  margin: 0;
}

@media (min-width: 700px) {
  .wx-glossary {
    grid-template-columns: 1fr 1fr;
  }
}

.wx-glossary dt {
  font-weight: 600;
  margin-bottom: 4px;
}

.wx-glossary dd {
  margin: 0;
  color: var(--color-muted);
}

/* Contact */

.wx-contact__email {
  font-size: 1.4rem;
  font-family: var(--font-mark);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 10px;
}

.wx-contact__note {
  color: var(--color-muted);
  max-width: 56ch;
}

/* Footer */

.wx-footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 0 48px;
}

.wx-footer__nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 14px;
  padding: 0;
}

.wx-footer__nav a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9rem;
}

.wx-footer__meta {
  color: var(--color-muted);
  font-size: 0.85rem;
  margin: 0;
}

/* Cookie banner */

.wx-cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 640px;
  margin: 0 auto;
  background: var(--color-text);
  color: #fff;
  padding: 20px;
  border-radius: var(--radius);
  z-index: 200;
}

.wx-cookie[hidden] {
  display: none;
}

.wx-cookie__text {
  margin: 0 0 14px;
  font-size: 0.92rem;
}

.wx-cookie__text a {
  color: #fff;
  text-decoration: underline;
}

.wx-cookie__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Legal pages */

.wx-prose h1 {
  margin-bottom: 8px;
}

.wx-updated {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.wx-prose h2 {
  margin-top: 34px;
}

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

/* 404 */

.wx-404 {
  padding: 96px 0;
  text-align: center;
}

.wx-404 h1 {
  font-size: clamp(2.4rem, 8vw, 4rem);
}

@media (max-width: 760px) {
  .wx-nav,
  .wx-head__mail {
    display: none;
  }

  .wx-burger {
    display: block;
  }
}
