html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    min-width: 320px;
    overflow-x: hidden;
    background: var(--color-surface);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

.container {
    width: min(calc(100% - 2rem), var(--container-width));
    margin-inline: auto;
}

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

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--color-secondary);
    color: #111;
    font-weight: 700;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.page-placeholder {
    min-height: 38vh;
    padding-block: clamp(4rem, 9vw, 8rem);
    background: var(--color-surface-soft);
    text-align: center;
}

.page-placeholder h1 {
    color: var(--color-primary);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.15;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.font-condensed {
    font-family: var(--font-condensed);
}

.page-placeholder p {
    max-width: 48rem;
    margin: 1rem auto 0;
    color: var(--color-muted);
}

body.mobile-navigation-open {
    overflow: hidden;
}
