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

* {
  margin: 0;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--sp-4));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  scrollbar-width: thin;
  scrollbar-color: var(--c-sky) var(--c-mist);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  font-family: var(--f-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  font-synthesis-weight: none;
  line-height: var(--lh-base);
  color: var(--c-ink);
  background-color: var(--c-white);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  position: relative;
  isolation: isolate;
}

.site-main {
  flex: 1 0 auto;
}

[hidden] {
  display: none !important;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + var(--sp-4));
}

[tabindex="-1"]:focus {
  outline: none;
}

img,
picture,
video,
canvas,
svg,
iframe,
object {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

img {
  border-style: none;
}

svg {
  flex-shrink: 0;
}

input,
button,
textarea,
select,
optgroup {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  margin: 0;
}

button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

button:disabled,
input:disabled,
textarea:disabled,
select:disabled {
  cursor: not-allowed;
}

textarea {
  resize: vertical;
}

::placeholder {
  color: var(--c-ink-3);
  opacity: 1;
}

a,
button,
input,
select,
textarea,
label,
summary,
[tabindex] {
  touch-action: manipulation;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

ul:not([class]),
ol:not([class]) {
  padding-left: var(--sp-6);
  list-style: revert;
}

ul:not([class]) li,
ol:not([class]) li {
  margin-block-start: var(--sp-2);
}

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

fieldset {
  min-width: 0;
  padding: 0;
  border: 0;
}

legend {
  padding: 0;
}

hr {
  height: 1px;
  border: 0;
  background-color: var(--ctx-line);
}

abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--f-head);
  font-weight: var(--fw-bold);
  line-height: var(--lh-head);
  letter-spacing: var(--ls-head);
  color: inherit;
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-black);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}

h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-black);
  letter-spacing: var(--ls-tight);
}

h3 {
  font-size: var(--fs-h3);
}

h4 {
  font-size: var(--fs-lead);
}

h5 {
  font-size: var(--fs-base);
}

h6 {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
}

p {
  text-wrap: pretty;
}

strong,
b {
  font-weight: var(--fw-bold);
}

small {
  font-size: var(--fs-sm);
}

sub,
sup {
  font-size: 0.72em;
  line-height: 0;
}

code,
kbd,
samp,
pre {
  font-family: var(--f-mono);
  font-size: 0.92em;
}

pre {
  overflow-x: auto;
  padding: var(--sp-5);
  border-radius: var(--r-md);
  background-color: var(--c-mist);
  color: var(--c-ink);
}

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

a:not([class]) {
  color: var(--ctx-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: color var(--dur-fast) var(--ease-out), text-decoration-color var(--dur-fast) var(--ease-out);
}

a:not([class]):hover {
  color: var(--c-azure);
  text-decoration-color: currentColor;
}

:is(h1, h2, h3, h4, h5, h6, p, ul, ol, dl, blockquote, figure, table, pre, hr):not([class]) + :is(h1, h2, h3, h4, h5, h6, p, ul, ol, dl, blockquote, figure, table, pre, hr):not([class]) {
  margin-block-start: var(--sp-4);
}

:is(p, ul, ol, dl, blockquote, figure, table, pre, hr):not([class]) + :is(h2, h3, h4):not([class]) {
  margin-block-start: var(--sp-7);
}

blockquote:not([class]) {
  padding-left: var(--sp-5);
  border-left: var(--bw-thick) solid var(--ctx-accent);
  font-size: var(--fs-lead);
  line-height: var(--lh-relaxed);
  color: var(--ctx-muted);
}

table:not([class]) {
  font-size: var(--fs-sm);
}

table:not([class]) :is(th, td) {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: var(--bw-hair) solid var(--ctx-line);
  text-align: left;
  vertical-align: top;
}

table:not([class]) th {
  font-weight: var(--fw-semibold);
  color: var(--ctx-text);
}

table:not([class]) td {
  color: var(--ctx-muted);
}

:focus-visible {
  outline: 2px solid var(--c-azure);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

::selection {
  background-color: var(--c-brand);
  color: var(--c-white);
  text-shadow: none;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background-color: var(--c-mist);
}

::-webkit-scrollbar-thumb {
  border: 2px solid var(--c-mist);
  border-radius: var(--r-pill);
  background-color: var(--c-sky);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--c-azure);
}

::-webkit-scrollbar-corner {
  background-color: var(--c-mist);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--flush {
  padding-inline: 0;
}

.section {
  position: relative;
  padding-block: var(--sp-10);
  color: var(--ctx-text);
  background-color: var(--ctx-surface);
}

.section--light {
  --ctx-text: var(--c-ink);
  --ctx-muted: var(--c-ink-2);
  --ctx-soft: var(--c-ink-3);
  --ctx-accent: var(--c-brand);
  --ctx-line: var(--c-line-light);
  --ctx-surface: var(--c-white);
}

.section--mist {
  --ctx-text: var(--c-ink);
  --ctx-muted: var(--c-ink-2);
  --ctx-soft: var(--c-ink-3);
  --ctx-accent: var(--c-brand);
  --ctx-line: var(--c-ice);
  --ctx-surface: var(--c-mist);
}

.section--dark {
  --ctx-text: var(--c-on-dark);
  --ctx-muted: var(--c-on-dark-2);
  --ctx-soft: var(--c-on-dark-3);
  --ctx-accent: var(--c-sky);
  --ctx-line: var(--c-line-dark);
  --ctx-surface: var(--c-navy);
}

.section--gradient {
  --ctx-text: var(--c-on-dark);
  --ctx-muted: var(--c-on-dark-2);
  --ctx-soft: var(--c-on-dark-3);
  --ctx-accent: var(--c-sky);
  --ctx-line: var(--c-line-dark);
  --ctx-surface: var(--c-navy);
  background-image: var(--g-deep);
}

.section--tight {
  padding-block: var(--sp-8);
}

.section--loose {
  padding-block: var(--sp-11);
}

.section--flush-top {
  padding-block-start: 0;
}

.section--flush-bottom {
  padding-block-end: 0;
}

.section--dark ::selection,
.section--gradient ::selection {
  background-color: var(--c-sky);
  color: var(--c-abyss);
}

.section--dark,
.section--gradient {
  scrollbar-color: var(--c-navy-soft) var(--c-track-dark);
}

.section--dark ::-webkit-scrollbar-track,
.section--gradient ::-webkit-scrollbar-track,
.section--dark ::-webkit-scrollbar-corner,
.section--gradient ::-webkit-scrollbar-corner {
  background-color: var(--c-track-dark);
}

.section--dark ::-webkit-scrollbar-thumb,
.section--gradient ::-webkit-scrollbar-thumb {
  border-color: transparent;
  background-color: var(--c-navy-soft);
}

.section--dark ::-webkit-scrollbar-thumb:hover,
.section--gradient ::-webkit-scrollbar-thumb:hover {
  background-color: var(--c-brand);
}

.section__head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-block-end: var(--sp-8);
}

.section__title {
  font-family: var(--f-head);
  font-size: var(--fs-h2);
  font-weight: var(--fw-black);
  line-height: var(--lh-head);
  letter-spacing: var(--ls-tight);
  color: var(--ctx-text);
  text-wrap: balance;
}

.section__lead {
  max-width: 62ch;
  font-size: var(--fs-lead);
  line-height: var(--lh-relaxed);
  color: var(--ctx-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--f-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--ctx-accent);
}

.grid {
  display: grid;
  gap: var(--grid-gap, var(--sp-6));
}

.grid--cards {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.grid--tight {
  --grid-gap: var(--sp-4);
}

.grid--loose {
  --grid-gap: var(--sp-8);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap, var(--sp-4));
}

.stack--sm {
  --stack-gap: var(--sp-2);
}

.stack--lg {
  --stack-gap: var(--sp-7);
}

.stack--center {
  align-items: center;
  text-align: center;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.skip-link {
  position: fixed;
  top: var(--sp-3);
  left: var(--sp-3);
  z-index: var(--z-toast);
  display: inline-flex;
  align-items: center;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-md);
  background-image: var(--g-brand);
  background-color: var(--c-brand);
  color: var(--c-white);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  box-shadow: var(--sh-brand);
  transform: translateY(calc(-100% - var(--sp-8)));
  transition: transform var(--dur-base) var(--ease-out);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-9) var(--sp-6);
  border: var(--bw-hair) dashed var(--ctx-line);
  border-radius: var(--r-lg);
  text-align: center;
  color: var(--ctx-muted);
}

.empty__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--sp-9);
  height: var(--sp-9);
  border-radius: 50%;
  background-color: color-mix(in srgb, var(--ctx-accent) 14%, transparent);
  color: var(--ctx-accent);
}

.empty__icon svg {
  width: 55%;
  height: auto;
}

.empty__title {
  font-family: var(--f-head);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-head);
  color: var(--ctx-text);
  text-wrap: balance;
}

.empty__text {
  max-width: 56ch;
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--ctx-muted);
}

.empty__action {
  margin-block-start: var(--sp-2);
}

.text-muted {
  color: var(--ctx-muted);
}

.text-soft {
  color: var(--ctx-soft);
}

.text-accent {
  color: var(--ctx-accent);
}

.text-center {
  text-align: center;
}

.text-balance {
  text-wrap: balance;
}

.no-wrap {
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
