:root {
  --ink: #141414;
  --muted: #666660;
  --secondary: #333333;
  --rule: #e4e4e0;
  --bg: #ffffff;
  --code: #f4f4f1;
  --header: #fafaf8;
  --np: #f4f7fd;
  --accent: #2159d9;
  --accent-deep: #163fa3;
  --emergency: #c8161d;
  --measure: 66ch;
  --page: 70rem;
  --gutter: clamp(1.25rem, 3.2vw, 2rem);
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

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

html { font-size: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 26px;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

p, li, dd, h1, h2, h3, figcaption { overflow-wrap: break-word; }

h1, h2, h3, p { text-wrap: pretty; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

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

:focus { outline: none; }

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  background: var(--bg);
  color: var(--ink);
  padding: 0.4rem 0.6rem;
  z-index: 10;
}

.skip:focus { top: 0.5rem; }

.wrap {
  width: min(var(--page), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
  border-bottom: 1px solid var(--rule);
}

.mast {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand span {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: block;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 18px;
  margin-left: auto;
}

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

.nav a[aria-current="page"] { text-decoration-thickness: 2px; }

.nav a.cta,
.nav-store {
  color: var(--ink);
  border: 1px solid #c8c8c2;
  border-radius: 6px;
  padding: 8px 12px;
  text-decoration: none;
  font-weight: 600;
  background: transparent;
}

.nav a.cta:visited,
.nav-store:visited { color: var(--ink); }

.nav-store { display: none; }

main { min-width: 0; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 40px 0;
}

.page-head { padding: 8px 0 40px; max-width: 760px; }

.block { padding: 40px 0; border-top: 1px solid var(--rule); }

h1 {
  margin: 0 0 16px;
  font-size: 30px;
  line-height: 36px;
  letter-spacing: -0.025em;
  font-weight: 600;
  max-width: 18em;
}

h2 {
  margin: 0;
  font-size: 24px;
  line-height: 30px;
  letter-spacing: -0.02em;
  font-weight: 600;
}

h3 {
  margin: 22px 0 6px;
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
}

.block-body > p,
.block-body > ul,
.block-body > ol,
.page-head > p,
.hero-copy > p,
.callout,
.states dd,
.spec dd {
  max-width: var(--measure);
}

p { margin: 0 0 14px; }

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

ul, ol {
  margin: 0 0 14px;
  padding-left: 1.2rem;
}

li { margin: 6px 0; }

li p { margin: 0; }

.kicker,
.idx,
.byline,
.fine,
figcaption,
caption,
.table-note,
.spec dt,
.crumbs,
.diagram figcaption {
  font-family: var(--mono);
}

.kicker,
.idx,
.spec dt {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.byline,
.fine,
figcaption,
caption,
.table-note {
  color: var(--secondary);
  font-size: 13px;
  line-height: 20px;
}

.table-note { margin: 0 0 14px; }

.block-table .rail { margin-bottom: 12px; }

.byline { margin: 0 0 16px; }

.fine { margin-top: 12px; }

.cta-row { margin: 20px 0 0; }

a.cta-fill {
  display: inline-block;
  background: #141414;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  border: 0;
}

a.cta-fill:visited,
a.cta-fill:hover { color: #ffffff; }

a.cta-fill:hover { background: #000000; }

.shot { margin: 0; max-width: 24rem; }

.bezel {
  padding: 10px;
  background: #1a1a1a;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(20, 20, 20, 0.1);
}

.bezel img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 11px;
}

.shot figcaption {
  margin-top: 10px;
  max-width: 24rem;
  padding-inline: 2px;
}

code, kbd, pre { font-family: var(--mono); }

p code, li code, dd code, td code, th code, figcaption code {
  background: var(--code);
  padding: 0.08em 0.28em;
  font-size: 0.92em;
}

p code, li code, dd code, figcaption code { overflow-wrap: anywhere; }

.diagram { margin: 4px 0 16px; max-width: 440px; }

.diagram pre,
pre {
  width: 100%;
  max-width: 440px;
  margin: 0;
  padding: 20px 24px;
  overflow-x: auto;
  background: var(--code);
  border: 1px solid #e4e4e0;
  border-radius: 6px;
  line-height: 1.45;
  font-size: 13px;
}

pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}

.diagram figcaption { margin-top: 8px; }

.spec {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 2px;
  margin: 0;
}

.spec dt { margin: 14px 0 0; }

.spec dt:first-child { margin-top: 0; }

.spec dd { margin: 2px 0 0; }

.states { margin: 0; }

.states dt {
  margin: 16px 0 0;
  font-weight: 600;
  font-size: 16px;
  line-height: 26px;
  color: var(--ink);
}

.states dt:first-child { margin-top: 0; }

.states dd { margin: 2px 0 0; }

.chip {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 2px;
  border: 1px solid transparent;
  vertical-align: 1px;
}

.chip-ready { background: #fff; border-color: #d4d4ce; }
.chip-paged { background: transparent; border: 1.5px solid #2159d9; }
.chip-occupied { background: #2159d9; border-color: #2159d9; }
.chip-on { background: #eab308; border-color: #eab308; }
.chip-hold { background: #73736d; border-color: #73736d; }
.chip-timer { background: transparent; border: 1.5px solid #141414; }
.chip-emergency { background: #c8161d; border-color: #c8161d; }

.callout {
  margin: 16px 0;
  padding: 2px 0 2px 14px;
  border-left: 3px solid var(--ink);
}

.callout p { margin: 8px 0; }

.callout.warn { border-left-color: var(--emergency); }

.table-scroll {
  width: 100%;
  max-width: 100%;
  margin: 8px 0 6px;
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

.table-scroll table {
  width: 100%;
  table-layout: fixed;
}

col.c-label { width: 24%; }

th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--rule);
  line-height: 24px;
  font-weight: 400;
  overflow-wrap: break-word;
}

th { font-weight: 600; }

thead th { background: var(--header); }

table.cmp td:nth-child(2),
table.vendors td:nth-child(2) {
  background: var(--np);
}

table.cmp thead th:nth-child(2),
table.vendors thead th:nth-child(2) {
  background: #eef2fb;
}

caption {
  caption-side: bottom;
  text-align: left;
  padding-top: 8px;
}

.crumbs { margin: 18px 0 0; }

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
}

.crumbs li {
  display: flex;
  gap: 8px;
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
}

.crumbs li:not(:last-child)::after { content: "/"; color: var(--secondary); }

.crumbs [aria-current="page"] { color: var(--secondary); text-decoration: none; }

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 28px 0 48px;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 16px;
}

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

.built, .legal { margin: 2px 0; max-width: var(--measure); }

.legal { color: var(--secondary); }

@media (max-width: 720px) {
  .mast { padding-block: 10px; row-gap: 8px; }

  .nav-store { padding: 5px 10px; }

  .nav-store { display: inline-block; margin-left: auto; }

  .nav {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    gap: 8px 16px;
  }

  .nav a.cta { display: none; }

  table.cmp,
  table.cost,
  table.vendors,
  table.cmp tbody,
  table.cost tbody,
  table.vendors tbody,
  table.cmp tr,
  table.cost tr,
  table.vendors tr,
  table.cmp th,
  table.cost th,
  table.vendors th,
  table.cmp td,
  table.cost td,
  table.vendors td,
  table.cmp caption,
  table.cost caption,
  table.vendors caption {
    display: block;
    width: auto;
  }

  table.cmp thead,
  table.cost thead,
  table.vendors thead { display: none; }

  table.cmp tr,
  table.cost tr,
  table.vendors tr {
    border-bottom: 1px solid var(--rule);
    padding-bottom: 6px;
  }

  table.cmp th[scope="row"],
  table.cost th[scope="row"],
  table.vendors th[scope="row"] {
    border-bottom: 0;
    padding: 14px 0 2px;
    background: transparent;
  }

  table.cmp td,
  table.cost td,
  table.vendors td {
    border-bottom: 0;
    padding: 6px 0 4px;
  }

  table.cmp td::before,
  table.cost td::before,
  table.vendors td::before {
    content: attr(data-col);
    display: block;
    margin-bottom: 2px;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 12px;
  }
}

@media (min-width: 640px) {
  .spec {
    grid-template-columns: 9.5rem minmax(0, 1fr);
    column-gap: 20px;
    row-gap: 12px;
  }

  .spec dt { margin: 0; padding-top: 4px; }

  .spec dd { margin: 0; }
}

@media (min-width: 880px) {
  .hero {
    grid-template-columns: minmax(0, 66ch) minmax(16rem, 22rem);
    gap: 48px;
    justify-content: space-between;
    padding: 56px 0;
  }

  .page-head { padding-bottom: 56px; }

  .block {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    padding: 56px 0;
  }

  /* A full-bleed table used to slide left by the rail width (280px + 48px).
     That painted the thead over the heading. Table blocks stack instead. */
  .block-table {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .block-table .rail { margin-bottom: 0; }

  h1 {
    font-size: 40px;
    line-height: 44px;
  }

  table.cmp col.c-label,
  table.vendors col.c-label { width: 16%; }

  table.cost col.c-label { width: 18%; }
}
