:root {
  --p-cream: #FFFFFF;
  --p-cream-2: #F4F4F4;
  --p-paper: #FFFFFF;
  --p-blush: #EEEEEE;
  --p-blush-soft: #F4F4F4;
  --p-peach: #EEEEEE;
  --p-peach-soft: #F4F4F4;
  --p-rose: #5C5E62;
  --p-rose-deep: #171A20;
  --p-plum: #171A20;
  --p-plum-2: #393C41;
  --p-ink: #171A20;
  --p-ink-soft: #5C5E62;
  --p-mint: #EEF3EF;
  --p-leaf: #5C5E62;
  --p-butter: #F4F4F4;
  --p-lilac: #F4F4F4;
  --p-night: #101114;
  --p-white: #FFFFFF;
  --p-sage: #8E9093;
  --p-sage-deep: #1B7F3B;
  --p-sand: #F4F4F4;
  --p-mauve: #EEEEEE;

  --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-ui: var(--font-body);
  --font-pixel: var(--font-display);
  --font-num: var(--font-display);
  --font-hand: var(--font-body);

  --fs-2xs: 0.6875rem;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.25rem + 1vw, 1.75rem);
  --fs-2xl: clamp(1.875rem, 1.4rem + 1.9vw, 2.5rem);
  --fs-3xl: clamp(2.25rem, 1.5rem + 3vw, 3.25rem);

  --tracking-caps: 0.08em;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 72px;
  --s-9: 104px;

  --px: 1px;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-pill: 4px;
  --ease: cubic-bezier(0.5, 0, 0, 0.75);
  --dur: 330ms;

  --container: 1200px;
  --container-narrow: 720px;
  --gutter: 24px;
  --header-h: 56px;
}

:root,
.theme-site {
  --bg: #FFFFFF;
  --bg-alt: #F4F4F4;
  --surface: #FFFFFF;
  --surface-alt: #F4F4F4;
  --ink: #393C41;
  --ink-soft: #5C5E62;
  --heading: #171A20;
  --line: #E2E3E3;
  --line-soft: #EEEEEE;
  --line-strong: #A2A3A5;
  --shadow: #EEEEEE;
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lift: 0 12px 32px rgba(0, 0, 0, 0.10);
  --shadow-hair: 0 0 0 rgba(0, 0, 0, 0);
  --primary: #3E6AE1;
  --primary-ink: #FFFFFF;
  --primary-hover: #3457B1;
  --accent: #F4F4F4;
  --accent-ink: #393C41;
  --link: #171A20;
  --focus: #3E6AE1;
  --ok: #1B7F3B;
  --ok-bg: #EAF6EC;
  --warn: #8A5A00;
  --warn-bg: #FFF4DC;
  --err: #C5271B;
  --err-bg: #FDECEA;
  --info: #393C41;
  --info-bg: #F4F4F4;
  color-scheme: light;
}

.theme-panel {
  --bg: #F4F5F7;
  --bg-alt: #FFFFFF;
  --surface: #FFFFFF;
  --surface-alt: #F4F5F7;
  --ink: #393C41;
  --ink-soft: #5C5E62;
  --heading: #171A20;
  --line: #E2E4E8;
  --line-soft: #ECEEF1;
  --line-strong: #A2A3A5;
  --shadow: rgba(23, 26, 32, 0.08);
  --shadow-soft: 0 1px 2px rgba(23, 26, 32, 0.06), 0 8px 24px rgba(23, 26, 32, 0.06);
  --shadow-lift: 0 2px 4px rgba(23, 26, 32, 0.06), 0 16px 40px rgba(23, 26, 32, 0.1);
  --shadow-hair: 0 1px 2px rgba(23, 26, 32, 0.06);
  --primary: #3E6AE1;
  --primary-ink: #FFFFFF;
  --primary-hover: #3457B1;
  --accent: #EEF0F3;
  --accent-ink: #393C41;
  --link: #3457B1;
  --focus: #3E6AE1;
  --ok: #1B7F3B;
  --ok-bg: #E8F5EC;
  --warn: #8A5A00;
  --warn-bg: #FFF4DB;
  --err: #B3261E;
  --err-bg: #FDECEA;
  --info: #393C41;
  --info-bg: #EEF0F3;
  color-scheme: light;
}

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s-4));
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}

@supports (overflow-x: clip) {
  body {
    overflow-x: clip;
  }
}

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

img {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--heading);
  text-wrap: balance;
}

h1 em,
h2 em,
h3 em,
h4 em {
  font-style: normal;
  color: inherit;
}

.theme-panel h1 em,
.theme-panel h2 em,
.theme-panel h3 em {
  color: inherit;
}

h1 {
  font-size: var(--fs-2xl);
}

h2 {
  font-size: var(--fs-xl);
}

h3 {
  font-size: var(--fs-lg);
  line-height: 1.2;
}

h4 {
  font-size: var(--fs-md);
  line-height: 1.25;
  font-weight: 500;
}

h5,
h6 {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--link);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  text-underline-offset: 0.22em;
  transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
}

a:hover {
  color: var(--primary-hover);
  text-decoration-color: currentColor;
}

strong,
b {
  font-weight: 650;
}

em,
i {
  font-style: italic;
}

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

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

::selection {
  background: #D6E0FA;
  color: #171A20;
}

.theme-panel ::selection {
  background: #D6E0FA;
  color: #171A20;
}

:focus {
  outline: none;
}

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

[tabindex="-1"]:focus:not(:focus-visible) {
  outline: none;
}

[hidden] {
  display: none !important;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: calc(var(--container-narrow) + var(--gutter) * 2);
}

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

.stack > * {
  margin: 0;
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gap, var(--s-3));
}

.grid {
  display: grid;
  gap: var(--gap, var(--s-5));
  grid-template-columns: minmax(0, 1fr);
}

.split {
  display: grid;
  gap: var(--gap, var(--s-6));
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

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

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--ink-soft);
}

.serif {
  font-family: var(--font-display);
}

.hand {
  font-family: var(--font-hand);
  font-size: max(1.375rem, 1em);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--p-rose-deep);
}

.theme-panel .hand {
  color: var(--primary);
}

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

.skip-link {
  position: absolute;
  top: var(--s-2);
  left: var(--s-2);
  z-index: 1000;
  padding: var(--s-2) var(--s-4);
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: var(--primary-ink);
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

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

.px-hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.site-error-fallback {
  padding-block: var(--s-9);
}

@media (min-width: 768px) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 400px) {
  :root {
    --gutter: 16px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
