:root {
    --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-serif: Georgia, "Times New Roman", serif;

    --color-bg: #fffaf5;
    --color-surface: #ffffff;
    --color-surface-alt: #fff3e8;
    --color-surface-soft: #fff7f1;
    --color-text: #2c221c;
    --color-text-muted: #6b5b52;
    --color-title: #201611;
    --color-border: #ecd8c8;
    --color-border-strong: #d8b89f;
    --color-primary: #e16f3d;
    --color-primary-hover: #cb5f31;
    --color-secondary: #8c5e3c;
    --color-accent: #ffd166;
    --color-success: #2f7d4a;
    --color-shadow: rgb(58 31 17 / 0.08);

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;

    --radius-sm: 0.5rem;
    --radius-md: 0.875rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.75rem;
    --radius-pill: 999px;

    --shadow-sm: 0 0.125rem 0.5rem var(--color-shadow);
    --shadow-md: 0 0.75rem 2rem var(--color-shadow);

    --container-width: 74rem;
    --container-wide: 82rem;

    --text-xs: 0.8125rem;
    --text-sm: 0.9375rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: clamp(1.75rem, 3vw, 2.5rem);
    --text-3xl: clamp(2.1rem, 5vw, 3.5rem);

    --line-base: 1.7;
    --line-tight: 1.2;

    --transition-fast: 160ms ease;
    --transition-normal: 220ms ease;
}

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

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--line-base);
    color: var(--color-text);
    background:
        radial-gradient(circle at top, #fff4e9 0%, transparent 35%),
        var(--color-bg);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

picture {
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.15em;
}

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

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

button {
    cursor: pointer;
}

input,
select,
textarea {
    width: 100%;
}

summary {
    cursor: pointer;
}

h1,
h2,
h3,
h4 {
    margin-top: 0;
    color: var(--color-title);
    line-height: var(--line-tight);
}

p,
ul,
ol {
    margin-top: 0;
}

ul[role="list"],
ol[role="list"] {
    padding: 0;
    margin: 0;
    list-style: none;
}

.site__skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
}

.site__skip-link:focus {
    left: var(--space-4);
    top: var(--space-4);
    z-index: 1000;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-pill);
    background: var(--color-title);
    color: #fff;
}

.u-visually-hidden {
    position: absolute !important;
    width: 0.0625rem;
    height: 0.0625rem;
    padding: 0;
    margin: -0.0625rem;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
