/*
 * Generative platform stylesheet, platform version 1.
 * Copied into every published version. Sites style themselves with theme.css (tokens) and
 * site.css, which may use only the tokens below.
 */

/* 1. Reset */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

img,
video {
  height: auto;
}

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

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

table {
  border-collapse: collapse;
}

/* 2. Token defaults. theme.css overrides them. */

:root {
  --color-primary: #1d4ed8;
  --color-primary-contrast: #ffffff;
  --color-accent: #f59e0b;
  --color-bg: #ffffff;
  --color-surface: #f8fafc;
  --color-text: #0f172a;
  --color-muted: #64748b;
  --color-border: #e2e8f0;
  --font-heading: ui-sans-serif, system-ui, sans-serif;
  --font-body: ui-sans-serif, system-ui, sans-serif;
  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
  --text-md: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --text-xl: clamp(1.375rem, 1.25rem + 0.6vw, 1.75rem);
  --text-2xl: clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem);
  --text-3xl: clamp(2.25rem, 1.8rem + 2.2vw, 3.75rem);
  --leading-tight: 1.15;
  --leading-normal: 1.6;
  --weight-heading: 700;
  --weight-body: 400;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --section-py: clamp(3rem, 2rem + 5vw, 6rem);
  --gap: 1.5rem;
  --container-max: 72rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.06);
  --shadow-md: 0 4px 12px rgb(15 23 42 / 0.08);
  --shadow-lg: 0 12px 32px rgb(15 23 42 / 0.12);
  --border-width: 1px;
}

/* 3. Base elements */

html {
  color-scheme: light;
  scroll-padding-top: var(--space-8);
}

body {
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: var(--weight-body);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  line-height: var(--leading-tight);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-3xl);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-2xl);
  letter-spacing: -0.015em;
}

h3 {
  font-size: var(--text-xl);
}

h4 {
  font-size: var(--text-lg);
}

h5,
h6 {
  font-size: var(--text-md);
}

p {
  text-wrap: pretty;
}

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

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

a:hover {
  text-decoration-thickness: 2px;
}

strong,
b {
  font-weight: 700;
}

ul,
ol {
  padding-left: 1.25em;
}

hr {
  border: 0;
  border-top: var(--border-width) solid var(--color-border);
}

blockquote {
  padding-left: var(--space-5);
  border-left: 3px solid var(--color-accent);
  font-size: var(--text-lg);
}

code,
kbd,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

pre {
  overflow-x: auto;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

button {
  cursor: pointer;
}

label {
  font-size: var(--text-sm);
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

::selection {
  background: color-mix(in srgb, var(--color-primary) 22%, transparent);
}

/* A photo the platform has not placed yet holds its space at the ratio of its width and height. */
:where(img[data-photo]:not([src])) {
  width: 100%;
  background: var(--color-surface);
  color: transparent;
  content: linear-gradient(var(--color-surface) 0 0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 4. Layout primitives */

.container {
  width: min(100% - 2 * var(--space-5), var(--container-max));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-py);
}

.section--surface {
  background: var(--color-surface);
}

.section--primary {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
}

.section--primary a:not(.button) {
  color: inherit;
}

/* Vertical flow. The attribute selector preserves designs saved with the former layout system. */
.stack,
[data-layout='stack'] {
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap, var(--space-4));
}

/* Wrapping flow. The attribute selector preserves designs saved with the former layout system. */
.cluster,
[data-layout='row'] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--cluster-gap, var(--space-3));
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 16rem), 100%), 1fr));
  gap: var(--gap);
}

.split {
  display: grid;
  align-items: center;
  gap: calc(var(--gap) * 2);
}

@media (min-width: 48rem) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.center {
  max-width: var(--measure, 42rem);
  margin-inline: auto;
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.prose {
  max-width: 65ch;
}

.prose > * + * {
  margin-top: 1em;
}

.prose > :is(h2, h3) {
  margin-top: 1.6em;
}

/* 5. Components */

.lead {
  color: var(--color-muted);
  font-size: var(--text-lg);
}

.eyebrow {
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border: var(--border-width) solid var(--color-primary);
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.button:hover {
  background: color-mix(in srgb, var(--color-primary) 86%, black);
  box-shadow: var(--shadow-md);
}

.button:active {
  transform: translateY(1px);
}

.button--secondary {
  border-color: var(--color-border);
  background: transparent;
  color: var(--color-text);
}

.button--secondary:hover {
  background: var(--color-surface);
}

.card {
  padding: var(--space-6);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
}

.media {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--color-accent) 20%, var(--color-bg));
  color: var(--color-text);
  font-size: var(--text-xs);
  font-weight: 600;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-block: var(--space-4);
  border-bottom: var(--border-width) solid var(--color-border);
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(8px);
}

.site-footer {
  padding-block: var(--space-7);
  border-top: var(--border-width) solid var(--color-border);
  color: var(--color-muted);
  font-size: var(--text-sm);
}

/*
 * Bound socials (data-bind="socials") render icon-only links, one per list item: a bulletless row.
 * Inline, so the surrounding text alignment places it; :where() keeps site.css able to restyle it.
 */
:where([data-bind='socials']) {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  padding: 0;
  list-style: none;
  vertical-align: middle;
}

/* The nav toggle pairs with runtime.js: the button carries data-nav-toggle and the open nav gets data-open. */

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.nav__brand {
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-heading);
  text-decoration: none;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: 0;
  list-style: none;
}

.nav__menu a:not(.button) {
  color: var(--color-text);
  font-weight: 500;
  text-decoration: none;
}

.nav__menu a[aria-current='page']:not(.button) {
  color: var(--color-primary);
}

.nav__toggle {
  display: none;
  padding: var(--space-2) var(--space-3);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: var(--text-sm);
  font-weight: 600;
}

@media (max-width: 47.99rem) {
  .nav__toggle {
    display: inline-flex;
  }

  .nav__menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding-block: var(--space-3);
  }

  .nav[data-open] .nav__menu {
    display: flex;
  }
}
