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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: clip;
    background: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: var(--font-size-md);
    line-height: var(--line-body);
    text-rendering: optimizeLegibility;
}

body.public {
    background:
        radial-gradient(ellipse 70% 40% at 100% 0%, rgba(156, 61, 28, 0.08), transparent 60%),
        var(--color-background);
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 560;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

h1 {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-4);
}

h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-3);
}

h3 {
    font-family: var(--font-sans);
    font-size: var(--font-size-lg);
    font-weight: var(--weight-semibold);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-2);
}

p {
    margin-bottom: var(--space-4);
    overflow-wrap: anywhere;
}

li,
td,
.bubble {
    overflow-wrap: anywhere;
}

a {
    color: var(--color-link);
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--color-link-hover);
}

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

::selection {
    background: var(--color-primary-soft);
    color: var(--color-text);
}

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

ul,
ol {
    margin: 0;
    padding: 0;
}

.skip-link {
    position: absolute;
    left: var(--space-4);
    top: -48px;
    z-index: 50;
    background: var(--color-surface);
    color: var(--color-text);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-sm);
}

.skip-link:focus {
    top: var(--space-4);
}

.eyebrow {
    margin-bottom: var(--space-3);
    color: var(--color-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lede {
    color: var(--color-text-muted);
    font-size: var(--font-size-lg);
    max-width: 42rem;
}

.fine-print {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

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

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