/* Reset, base typography, and the accessibility floor. */

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

* {
    margin: 0;
    padding: 0;
}

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

body {
    min-height: 100vh;
    background-color: var(--black);
    color: var(--bone);
    font-family: var(--font-body);
    font-size: var(--size-body);
    line-height: 1.7;
    font-synthesis-weight: none;
    -webkit-font-smoothing: antialiased;
}

img,
svg,
iframe {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
}

ul {
    list-style: none;
}

/* Headings all sit in the condensed display face. Weight and size carry the
   hierarchy; nothing is centred and nothing is set in a second colour. */
h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    text-wrap: balance;
}

p {
    max-width: var(--measure);
}

/* Shared page shell. The vertical rules read as the edge of a mat. */
.shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* The belt: the club mark is a black belt with a red bar at one end. */
.belt {
    width: clamp(7rem, 14vw, 11rem);
    height: 0.625rem;
    background: linear-gradient(90deg, var(--olive) 0 70%, var(--belt) 70%);
}

.skip-link {
    position: absolute;
    left: var(--gutter);
    top: 0;
    z-index: 200;
    padding: 0.75rem 1.25rem;
    background-color: var(--bone);
    color: var(--black);
    font-weight: 600;
    text-decoration: none;
    transform: translateY(-150%);
}

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

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

::selection {
    background-color: var(--olive);
    color: var(--black);
}

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

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