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

html {
    scroll-behavior: smooth;
    font-family: var(--font-family-base);
    font-size: var(--font-size-root);
    background: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    overflow-x: clip;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
figure {
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.04em;
}

body {
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-base);
    background: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    overflow-x: clip;
}

body > header,
body > main,
body > footer,
.page-shell > *,
.hero__copy,
.hero__media,
.contact-layout > *,
.site-header__top > *,
.site-footer__inner > * {
    min-width: 0;
}

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

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

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

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

button {
    cursor: pointer;
}

input,
textarea,
select,
button {
    border-radius: 0;
}

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

[hidden] {
    display: none !important;
}

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

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

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

h1,
h2,
h3 {
    color: var(--color-text);
    line-height: var(--line-height-tight);
    letter-spacing: -0.03em;
    line-height: 1;
}

h1 {
    font-size: clamp(2rem, 4.4vw, 3.25rem);
}

h2 {
    font-size: clamp(1.5rem, 2.8vw, 2.15rem);
}

h3 {
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}

p,
li,
dd,
dt,
span,
input,
textarea {
    color: inherit;
}

.copy {
    display: grid;
    gap: var(--space-2);
}

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
