@font-face {
    font-family: "Cormorant Garamond";
    src: url("../fonts/cormorant_garamond_600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cormorant Garamond";
    src: url("../fonts/cormorant_garamond_600_italic.woff2") format("woff2");
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Source Sans 3";
    src: url("../fonts/source_sans_3_variable.woff2") format("woff2");
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}

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

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

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    margin: 0;
    background: var(--colour_ivory);
    color: var(--colour_ink);
    font-family: var(--font_sans);
    font-size: var(--text_body);
    line-height: var(--leading_body);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 var(--space_m);
    color: var(--colour_navy);
    font-family: var(--font_serif);
    font-weight: 600;
    line-height: var(--leading_heading);
    text-wrap: balance;
}

h1 {
    font-size: var(--text_h1);
    letter-spacing: -0.015em;
}

h2 {
    font-size: var(--text_h2);
    letter-spacing: -0.01em;
}

h3 {
    font-size: var(--text_h3);
}

h4 {
    font-size: var(--text_h4);
}

p,
ul,
ol {
    margin: 0 0 var(--space_m);
}

p {
    text-wrap: pretty;
}

a {
    color: var(--colour_navy);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

a:hover {
    text-decoration-color: var(--colour_brass);
    text-decoration-thickness: 2px;
}

:focus-visible {
    outline: var(--focus_ring);
    outline-offset: 3px;
}

[tabindex="-1"]:focus {
    outline: none;
}

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

figure {
    margin: 0;
}

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

::selection {
    background: var(--colour_stone);
    color: var(--colour_navy_deep);
}

[hidden] {
    display: none !important;
}

.visually_hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip_link {
    position: absolute;
    top: var(--space_s);
    left: var(--space_s);
    z-index: 100;
    padding: var(--space_xs) var(--space_m);
    background: var(--colour_navy);
    color: var(--colour_ivory);
    font-weight: 600;
    text-decoration: none;
    transform: translateY(-200%);
}

.skip_link:focus {
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
