* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 9rem;
}
body {
  margin: 0;
  background: var(--es-ground);
  color: var(--es-ink);
  font-family: var(--es-font-body);
  font-size: var(--es-step-0);
  line-height: 1.7;
}
a {
  color: var(--es-pore-hi);
  text-underline-offset: 0.3em;
}
button,
input,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 0;
  color: var(--es-ink);
  background: var(--es-surface);
  padding: 0.7rem 1.2rem;
  border-radius: var(--es-radius-pill);
  transition:
    background var(--es-dur-ui),
    transform var(--es-dur-ui);
}
button:hover {
  background: var(--es-surface-2);
  transform: translateY(-2px);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}
button[aria-pressed="true"],
.primary {
  background: var(--es-pore);
  color: var(--es-pore-ink);
}
a.primary {
  display: inline-block;
  text-decoration: none;
  padding: 0.75rem 1.4rem;
  border-radius: var(--es-radius-pill);
}
:focus-visible {
  outline: 2px solid var(--es-pore);
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
.skip {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 5;
  background: var(--es-ground);
  padding: 1rem;
}
.skip:focus {
  top: 1rem;
}
.docs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem max(1.25rem, calc((100vw - 1260px) / 2));
}
.identity {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  text-decoration: none;
  color: var(--es-ink);
}
.identity-mark {
  display: block;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  background: var(--es-pore);
  mask: url("/brand/interface-mark.svg") center / contain no-repeat;
}
.identity strong {
  font-weight: 400;
  color: var(--es-muted);
}
.docs-nav {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.8rem;
  padding: 1rem 1.25rem;
  background: color-mix(in srgb, var(--es-ground) 94%, transparent);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--es-line);
}
.docs-nav a {
  text-decoration: none;
  color: var(--es-muted);
}
.docs-nav a:hover {
  color: var(--es-pore);
}
main {
  max-width: 1260px;
  padding: 0 2rem;
  margin: auto;
}
section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--es-line);
}
.hero {
  position: relative;
  background: radial-gradient(
    ellipse at 75% 45%,
    var(--es-glow-soft),
    transparent 60%
  );
}
h1,
h2,
h3 {
  line-height: 1.13;
  font-weight: 400;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(3rem, 7.3vw, 7rem);
  margin: 1rem 0 2rem;
}
h2 {
  font-size: clamp(2.2rem, 4.5vw, 4.5rem);
  max-width: 20ch;
  margin: 0.8rem 0 2rem;
}
h3 {
  font-size: clamp(1.3rem, 2.2vw, 2rem);
}
p {
  max-width: 75ch;
}
.lead {
  font-size: var(--es-step-1);
  max-width: 36ch;
}
.eyebrow {
  font-family: var(--es-font-data);
  font-size: max(0.875rem, var(--es-step--1));
  color: var(--es-pore);
  letter-spacing: 0.05em;
}
.note {
  color: var(--es-muted);
  font-size: 1rem;
}
.hero-links,
.choices,
.artifact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}
.sense-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3rem;
}
.sense {
  padding: 1.5rem 0 2.5rem;
  border-bottom: 1px solid var(--es-line);
}
.sense h3 {
  margin: 0.5rem 0;
}
dl {
  display: grid;
  grid-template-columns: minmax(6rem, 0.5fr) 1fr;
  gap: 0.5rem 1rem;
}
dt {
  color: var(--es-muted);
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.action-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 3rem;
}
.action-list article {
  padding: 1rem 0;
  border-bottom: 1px solid var(--es-line);
}
code {
  font-family: var(--es-font-data);
  font-size: 0.95em;
  overflow-wrap: anywhere;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow: auto;
  padding: 1.5rem;
  background: var(--es-surface);
  border-radius: var(--es-radius-m);
  line-height: 1.6;
  font-size: 1rem;
}
pre code {
  font-size: 1em;
}
label {
  display: block;
  margin: 1.5rem 0 0.6rem;
}
input,
textarea {
  width: 100%;
  border: 1px solid var(--es-line);
  background: var(--es-surface);
  color: var(--es-ink);
  padding: 1rem;
  border-radius: var(--es-radius-m);
  font-size: 1rem;
}
textarea {
  resize: vertical;
  min-height: 20rem;
  font-family: var(--es-font-data);
  line-height: 1.5;
}
.endpoint {
  padding: 2rem 0;
  border-bottom: 1px solid var(--es-line);
}
.endpoint h3 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
}
.method {
  color: var(--es-pore);
  font: 1rem var(--es-font-data);
}
.responses {
  grid-template-columns: 4rem 1fr;
}
summary {
  cursor: pointer;
  color: var(--es-pore-hi);
  padding: 0.75rem 0;
}
.timeline {
  padding: 0;
  list-style: none;
}
.timeline > li {
  padding: 2rem 0 2rem 2rem;
  border-left: 1px solid var(--es-pore);
  position: relative;
}
.timeline > li::before {
  content: "";
  position: absolute;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--es-pore);
  border-radius: 50%;
  top: 2.8rem;
  left: -0.35rem;
}
li {
  margin-bottom: 0.6rem;
  max-width: 75ch;
}
.assurance {
  padding: 1.5rem 0;
}
#downloads-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
#downloads-list article {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--es-line);
}
#downloads-list code {
  color: var(--es-muted);
  font-size: 0.875rem;
}
footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1260px;
  margin: auto;
  padding: 2rem;
  color: var(--es-muted);
}
@media (max-width: 700px) {
  main {
    padding: 0 1.25rem;
  }
  section {
    padding: 3rem 0;
  }
  .sense-grid,
  .action-list,
  #downloads-list {
    grid-template-columns: 1fr;
  }
  .docs-header {
    flex-wrap: wrap;
  }
  .docs-nav {
    justify-content: flex-start;
    gap: 0.4rem 1.1rem;
  }
  .identity strong {
    display: block;
  }
  pre {
    padding: 1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  button {
    transition: none;
  }
}
