:root {
  --measure: 38rem;
  --rail: 12rem;
  --wide-extra: calc(var(--page) - 32px - var(--rail) - var(--measure) - 2 * var(--column-gap));
  --column-gap: 3.5rem;
  --step-title: clamp(2rem, 1.3rem + 2.6vw, 3rem);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
a {
  color: var(--accent-strong);
  text-underline-offset: 0.18em;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
h1,
h2,
h3,
p,
ul,
ol,
pre,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 {
  font-size: var(--step-title);
  font-weight: 750;
  letter-spacing: -0.03em;
}
h2 {
  font-size: var(--step-2);
  font-weight: 700;
}
h3 {
  font-size: var(--step-1);
  font-weight: 650;
  letter-spacing: -0.01em;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  z-index: 30;
  border-radius: 6px;
}
.skip-link:focus {
  top: 1rem;
}
.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}
.brand img {
  width: 26px;
  height: 26px;
  display: block;
}
.site-nav {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
  font-size: 0.95rem;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current] {
  color: var(--ink);
}
.site-nav a[aria-current] {
  font-weight: 600;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.15rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 0.98rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.button:hover {
  background: var(--accent-strong);
}
.header-cta {
  min-height: 2.4rem;
}
@media (max-width: 760px) {
  .site-header .wrap {
    gap: 1rem;
  }
  .site-nav a:not(.nav-blog) {
    display: none;
  }
  .header-cta {
    padding: 0 0.9rem;
  }
}
.article-head {
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--line);
}
.article-head .wrap,
.article-body {
  max-width: calc(var(--measure) + 32px);
}
.breadcrumb {
  font-size: var(--step--1);
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.breadcrumb a {
  color: var(--muted);
}
.standfirst {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--muted);
  margin-top: 1.25rem;
}
.byline {
  margin-top: 1.25rem;
  font-size: var(--step--1);
  color: var(--muted);
}
.article-body {
  padding-block: clamp(2rem, 4vw, 3rem) clamp(3rem, 6vw, 4.5rem);
}
.article-body > * + * {
  margin-top: 1.1rem;
}
.article-body > h2 {
  margin-top: 2.75rem;
}
.article-body > h3 {
  margin-top: 2rem;
}
.article-body > h2 + *,
.article-body > h3 + * {
  margin-top: 0.75rem;
}
.article-body ul,
.article-body ol {
  padding-left: 1.3rem;
}
.article-body li + li {
  margin-top: 0.4rem;
}
.article-body code {
  font-family: var(--font-data);
  font-size: 0.86em;
  background: color-mix(in srgb, var(--ink) 9%, transparent);
  border-radius: 4px;
  padding: 0.08em 0.3em;
  overflow-wrap: anywhere;
}
.code-block {
  background: var(--sunken);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.5rem;
  padding: 0.3rem 0.5rem 0.3rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--muted);
}
.copy-button {
  min-height: 1.9rem;
  padding: 0 0.7rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: 600 0.8rem/1 var(--font-body);
  cursor: pointer;
}
.copy-button:hover {
  border-color: var(--field-border);
}
.copy-button[data-state="copied"] {
  color: var(--good);
}
.code-block pre {
  padding: 1rem 1.1rem;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.55;
}
.code-block pre code {
  background: none;
  padding: 0;
  font-size: inherit;
  overflow-wrap: normal;
}
[data-overflow="end"] {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 3rem), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 3rem), transparent);
}
[data-overflow="start"] {
  -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 3rem), transparent);
  mask-image: linear-gradient(to left, #000 calc(100% - 3rem), transparent);
}
[data-overflow="both"] {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 3rem, #000 calc(100% - 3rem), transparent);
  mask-image: linear-gradient(to right, transparent, #000 3rem, #000 calc(100% - 3rem), transparent);
}
.answer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 1rem 1.2rem;
}
.answer > * + * {
  margin-top: 0.6rem;
}
.answer-label {
  font-weight: 650;
}
.toc {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
}
.toc-title {
  font-weight: 650;
  margin-bottom: 0.4rem;
}
.toc li + li {
  margin-top: 0.2rem;
}
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.45;
}
caption {
  text-align: left;
  font-weight: 650;
  padding: 0.85rem 1rem 0.25rem;
  caption-side: top;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--line);
}
thead th {
  font-weight: 650;
  background: var(--sunken);
}
th[scope="row"] {
  font-weight: 600;
  min-width: 8rem;
}
.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.note {
  font-size: var(--step--1);
  color: var(--muted);
}
.cta {
  margin-top: 3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1.2rem, 3vw, 1.75rem);
  display: grid;
  gap: 1rem;
}
.cta h2 {
  font-size: var(--step-1);
}
.cta p {
  color: var(--muted);
}
.sources {
  font-size: var(--step--1);
  color: var(--muted);
}
.sources > * + * {
  margin-top: 0.75rem;
}
.sources h2 {
  font-size: var(--step-1);
  color: var(--ink);
}
.sources li {
  overflow-wrap: anywhere;
}
.related {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.related > * + * {
  margin-top: 1rem;
}
.related h2 {
  font-size: var(--step-1);
}
.article-body .post-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.article-body .post-list li + li {
  margin-top: 0;
}
.post-card {
  position: relative;
  display: grid;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1.1rem, 2.5vw, 1.5rem);
  transition: border-color 0.15s ease;
}
.post-card:hover {
  border-color: var(--field-border);
}
.post-card:focus-within {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.post-card h2,
.post-card h3 {
  font-size: var(--step-1);
}
.post-card a {
  color: var(--ink);
  text-decoration: none;
}
.post-card a:focus-visible {
  outline: none;
}
.post-card a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
}
.post-card p {
  color: var(--muted);
}
.post-meta {
  font-size: var(--step--1);
}
.waitlist-form {
  display: grid;
  gap: 0.75rem;
}
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.field {
  display: grid;
  gap: 0.3rem;
  flex: 1 1 14rem;
  min-width: 0;
}
.field-size {
  flex: 0 1 12.5rem;
}
.field-wide {
  flex: 1 1 100%;
}
@media (max-width: 560px) {
  .field-size {
    flex-basis: 100%;
  }
}
.optional {
  font-weight: 400;
  color: var(--muted);
}
.field label {
  font-size: var(--step--1);
  font-weight: 600;
}
.field input,
.field select {
  width: 100%;
  min-height: 2.9rem;
  padding: 0 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--field-border);
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem var(--font-body);
}
.field input::placeholder {
  color: var(--placeholder);
  opacity: 1;
}
.field select {
  appearance: none;
  padding-right: 2.6rem;
  background-image: var(--select-chevron);
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 0.8rem;
  cursor: pointer;
}
.field select:has(option[value=""]:checked) {
  color: var(--placeholder);
}
.field select option {
  color: var(--ink);
}
.field input:focus-visible,
.field select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}
.field input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: inset 0 0 0 1px var(--danger);
}
.form-submit {
  align-self: end;
  min-height: 2.9rem;
}
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-feedback {
  display: grid;
  font-size: var(--step--1);
  line-height: 1.5;
}
.form-feedback > * {
  grid-area: 1 / 1;
}
.form-note {
  color: var(--muted);
}
.form-status {
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
}
.form-status:not(:empty) {
  opacity: 1;
}
.form-status:not(:empty) + .form-note {
  visibility: hidden;
}
.form-status[data-state="success"] {
  color: var(--good);
}
.form-status[data-state="error"] {
  color: var(--danger);
}
.form-submit[aria-busy="true"] {
  cursor: progress;
  opacity: 0.75;
}
.site-footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.footer-links a {
  color: var(--muted);
}
.footer-legal {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  max-width: 52rem;
}
@media (min-width: 1120px) {
  .article-head.has-rail .wrap,
  .article-body.has-rail {
    max-width: var(--page);
  }
  .article-head.has-rail .wrap {
    display: grid;
    grid-template-columns: var(--rail) minmax(0, var(--measure)) var(--wide-extra);
    column-gap: var(--column-gap);
  }
  .article-head.has-rail .wrap > * {
    grid-column: 2 / 4;
  }
  .article-head.has-rail .standfirst {
    grid-column: 2;
  }
  .article-body.has-rail {
    display: grid;
    grid-template-columns: var(--rail) minmax(0, var(--measure)) var(--wide-extra);
    column-gap: var(--column-gap);
    align-items: start;
  }
  .article-body.has-rail > * {
    grid-column: 2;
  }
  .article-body.has-rail > .table-scroll,
  .article-body.has-rail > .code-block {
    grid-column: 2 / 4;
  }
  .article-body.has-rail > .toc {
    grid-column: 1;
    grid-row: 1 / span 400;
    position: sticky;
    top: 5.5rem;
    margin-top: 0;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
    border: 0;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.4;
  }
  .toc ol {
    list-style: none;
    padding-left: 0;
    border-left: 1px solid var(--line);
  }
  .toc li + li {
    margin-top: 0;
  }
  .toc a {
    display: block;
    padding: 0.35rem 0 0.35rem 0.85rem;
    margin-left: -1px;
    border-left: 2px solid transparent;
    color: var(--muted);
    text-decoration: none;
  }
  .toc a:hover {
    color: var(--ink);
  }
  .toc a[aria-current="true"] {
    color: var(--ink);
    font-weight: 600;
    border-left-color: var(--accent);
  }
}
