/* SPDX-License-Identifier: CC-BY-4.0 */
/* Native CSS only. No external fonts, images, scripts, or network requests. */

:root {
  --font-sans:
    ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono:
    ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono",
    monospace;

  --bg: #f5f5f3;
  --surface: #ffffff;
  --surface-subtle: #fafaf8;
  --surface-2: #f0f0ed;
  --ink: #17181c;
  --ink-soft: #3c3e44;
  --muted: #5f6169;
  --faint: #6a6c74;
  --line: #e6e6e2;
  --line-soft: #efefeb;
  --line-strong: #d6d6d0;
  --accent: #6673dc;
  --accent-strong: #4f5ccc;
  --accent-soft: #edefff;
  --accent-line: #c9cef8;
  --primary: #17181c;
  --primary-ink: #ffffff;

  --radius-card: 16px;
  --radius-control: 10px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(24, 26, 32, 0.04), 0 10px 28px rgba(24, 26, 32, 0.035);
  --shadow-float: 0 24px 60px rgba(24, 26, 32, 0.09);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
  background: var(--bg);
  color-scheme: light;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font-sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

p,
li,
td {
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

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

code {
  padding: 0.1em 0.36em;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.82em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-control);
  background: var(--primary);
  color: var(--primary-ink);
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-160%);
}

.skip-link:focus {
  color: var(--primary-ink);
  transform: translateY(0);
}

.wrap {
  width: min(calc(100% - 40px), 1120px);
  margin-inline: auto;
}

.icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.16em;
}

/* Header ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  background: rgba(245, 245, 243, 0.9);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex: none;
  padding: 5px;
  border-radius: 9px;
  background: var(--primary);
  color: var(--primary-ink);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav .icon {
  width: 14px;
  height: 14px;
  color: var(--faint);
}

/* Hero -------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  align-items: center;
  gap: clamp(2rem, 5.5vw, 5rem);
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

h1 {
  max-width: 11em;
  font-size: clamp(2.7rem, 5.8vw, 4.85rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

h1 em {
  color: var(--accent-strong);
  font-style: normal;
}

.lede {
  max-width: 560px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.11rem);
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    color 120ms ease,
    transform 160ms var(--ease-out);
}

.button:active {
  transform: scale(0.98);
}

.button-primary {
  background: var(--primary);
  color: var(--primary-ink);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}

.button-primary:hover {
  background: #2b2c33;
  color: var(--primary-ink);
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink-soft);
  box-shadow: var(--shadow-card);
}

.button-secondary:hover {
  border-color: var(--faint);
  background: var(--surface-subtle);
  color: var(--ink);
}

.button-block {
  width: 100%;
  margin-top: 14px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin-top: 26px;
  padding: 0;
  color: var(--faint);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  list-style: none;
}

.hero-facts li {
  display: inline-flex;
  align-items: center;
}

.hero-facts li + li::before {
  width: 1px;
  height: 11px;
  margin-inline: 11px;
  background: var(--line-strong);
  content: "";
}

/* Queue diagram ----------------------------------------------------------- */

.queue-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-float);
}

.queue-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.queue-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.chip {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface-subtle);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}

.chip-accent {
  margin-left: 2px;
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.queue-heading {
  padding: 18px 0 16px;
}

.queue-heading h2 {
  font-size: 21px;
  letter-spacing: -0.035em;
}

.queue-heading p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
}

.flow {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 12px;
  padding-bottom: 20px;
}

.flow-step:not(:last-child)::before {
  position: absolute;
  top: 31px;
  bottom: 1px;
  left: 14px;
  width: 1px;
  background: linear-gradient(var(--accent-line), var(--line));
  content: "";
}

.flow-step:last-child {
  padding-bottom: 0;
}

.flow-num {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.flow-step-final .flow-num {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-ink);
}

.flow-body {
  min-width: 0;
  padding-top: 3px;
}

.flow-body h3 {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.018em;
  line-height: 1.35;
}

.flow-body p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.flow-tag {
  padding-top: 5px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.check-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-subtle);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.check-pill .icon {
  width: 12px;
  height: 12px;
  color: var(--accent-strong);
}

.queue-note {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.queue-note p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.kicker {
  margin-right: 5px;
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Sections ---------------------------------------------------------------- */

.section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 730px;
  margin-bottom: 28px;
}

.section-head .eyebrow {
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(2rem, 3.7vw, 3.15rem);
  letter-spacing: -0.048em;
  text-wrap: balance;
}

.section-head > p:last-child {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.section-head a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Limits table ------------------------------------------------------------ */

.table-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

thead th {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-subtle);
  color: var(--faint);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

tbody th,
tbody td {
  padding: 14px 18px;
  border-top: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

tbody tr:first-child th,
tbody tr:first-child td {
  border-top: 0;
}

tbody th {
  width: 18%;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 650;
  white-space: nowrap;
}

tbody td {
  color: var(--muted);
  line-height: 1.5;
}

tbody td:nth-child(2) {
  width: 35%;
  color: var(--ink-soft);
  font-weight: 550;
}

.safety-note {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.safety-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.safety-mark .icon {
  width: 20px;
  height: 20px;
}

.safety-note h3 {
  font-size: 13.5px;
  letter-spacing: -0.01em;
}

.safety-note p {
  max-width: 900px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

/* Setup ------------------------------------------------------------------- */

.setup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 28px;
}

.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 15px;
  padding: 19px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.step-num {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.step-body {
  min-width: 0;
}

.step-body h3 {
  font-size: 14.5px;
  letter-spacing: -0.02em;
}

.step-body p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 7px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 650;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.read-next {
  position: sticky;
  top: 88px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.read-next .eyebrow {
  margin-bottom: 6px;
}

.read-next h3 {
  font-size: 18px;
  letter-spacing: -0.03em;
}

.read-next ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.read-next li {
  border-top: 1px solid var(--line-soft);
}

.read-next li:first-child {
  border-top: 0;
}

.read-next li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.read-next li a::after {
  color: var(--faint);
  content: "→";
}

.read-next li a:hover {
  color: var(--accent-strong);
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

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

.footer-brand {
  max-width: 370px;
}

.footer-brand p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
  padding-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.footer-nav a:hover {
  color: var(--ink);
}

.footer-license {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px 34px;
  border-top: 1px solid var(--line-soft);
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.6;
}

.footer-license p:first-child {
  max-width: 760px;
}

.footer-license p:last-child {
  flex: none;
  white-space: nowrap;
}

.footer-license a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-license a:hover {
  color: var(--accent-strong);
}

/* Responsive -------------------------------------------------------------- */

@media (width <= 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 3.25rem 3.75rem;
  }

  h1 {
    max-width: 13em;
  }

  .queue-card {
    width: min(100%, 620px);
  }

  .setup-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .read-next {
    position: static;
  }

  .footer-top {
    flex-direction: column;
    gap: 24px;
  }

  .footer-nav {
    justify-content: flex-start;
    padding-top: 0;
  }
}

@media (width <= 720px) {
  .section {
    padding-block: 3.25rem;
  }

  .table-shell {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  table,
  tbody,
  tr,
  th,
  td {
    display: block;
    width: 100%;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  tbody {
    display: grid;
    gap: 10px;
  }

  tbody tr {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
  }

  tbody th,
  tbody td,
  tbody tr:first-child th,
  tbody tr:first-child td {
    padding: 0;
    border: 0;
  }

  tbody th {
    width: auto;
    margin-bottom: 8px;
    color: var(--accent-strong);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: normal;
  }

  tbody td {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
    padding: 4px 0;
    font-size: 12.5px;
  }

  tbody td::before {
    color: var(--faint);
    content: attr(data-label);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
    line-height: 1.7;
    text-transform: uppercase;
  }

  tbody td:nth-child(2) {
    width: auto;
  }

  .queue-note {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  .footer-license {
    flex-direction: column;
    gap: 10px;
  }

  .footer-license p:last-child {
    white-space: normal;
  }
}

@media (width <= 480px) {
  .wrap {
    width: min(calc(100% - 32px), 1120px);
  }

  .header-inner {
    min-height: 62px;
    gap: 12px;
  }

  .brand {
    font-size: 17px;
  }

  .brand-mark {
    width: 29px;
    height: 29px;
  }

  .nav {
    gap: 14px;
    font-size: 13px;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3rem);
  }

  .lede {
    margin-top: 18px;
    font-size: 15px;
  }

  .actions {
    margin-top: 24px;
  }

  .actions .button {
    width: 100%;
  }

  .queue-card {
    padding: 17px;
  }

  .queue-heading h2 {
    font-size: 19px;
  }

  .flow-step {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
  }

  .flow-num {
    width: 27px;
    height: 27px;
  }

  .flow-step:not(:last-child)::before {
    left: 13px;
  }

  .flow-tag {
    display: none;
  }

  .step {
    grid-template-columns: 37px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .step-num {
    width: 34px;
    height: 34px;
  }

  .safety-note {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }

  tbody td {
    display: block;
  }

  tbody td::before {
    display: block;
    margin-bottom: 1px;
  }

  .footer-nav {
    gap: 9px 18px;
    font-size: 12.5px;
  }

  .hero-facts {
    font-size: 10.5px;
  }

  .hero-facts li + li::before {
    margin-inline: 8px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .text-link:hover,
  .read-next li a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .button:active {
    transform: none;
  }
}
