@font-face {
    font-family: "Playfair Display";
    src: url("../fonts/playfair-display-400.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Playfair Display";
    src: url("../fonts/playfair-display-700.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Open Sans";
    src: url("../fonts/open-sans-400.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Open Sans";
    src: url("../fonts/open-sans-400-italic.woff2") format("woff2");
    font-style: italic;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Open Sans";
    src: url("../fonts/open-sans-700.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    --ink: #212121;
    --muted: #68747a;
    --heading: #546e7a;
    --line: #eeeeee;
    --paper: #ffffff;
    --black: #050505;
    --content-width: 1155px;
    --focus: #ffc400;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.62;
}

body.menu-open {
    overflow: hidden;
}

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

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.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: 10px;
    left: 10px;
    padding: 10px 14px;
    transform: translateY(-160%);
    background: var(--focus);
    color: #000;
    font-weight: 700;
}

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

.site-header {
    position: relative;
    z-index: 50;
    min-height: 56px;
    background: var(--black);
    color: #fff;
}

.site-header__inner {
    display: flex;
    align-items: stretch;
    width: min(100%, 1370px);
    min-height: 56px;
    margin: 0 auto;
    padding: 0 28px;
}

.site-brand {
    display: flex;
    align-items: center;
    margin-right: auto;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 18px;
    text-decoration: none;
    white-space: nowrap;
}

.main-navigation ul {
    display: flex;
    height: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
}

.main-navigation li {
    display: flex;
}

.main-navigation a {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 15px;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}

.main-navigation a:hover {
    background: #161616;
}

.main-navigation a.is-active::after {
    position: absolute;
    right: 14px;
    bottom: 0;
    left: 14px;
    height: 7px;
    background: #fff;
    content: "";
}

.search-toggle,
.nav-toggle {
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.search-toggle {
    display: grid;
    width: 48px;
    place-items: center;
}

.search-toggle svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.nav-toggle {
    display: none;
    width: 48px;
    padding: 13px;
}

.nav-toggle > span:not(.sr-only) {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
}

.search-panel {
    background: #151515;
    border-top: 1px solid #2e2e2e;
}

.search-panel[hidden] {
    display: none;
}

.search-form {
    width: min(calc(100% - 40px), var(--content-width));
    padding: 20px 0 24px;
    margin: 0 auto;
}

.search-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
}

.search-form__row {
    display: flex;
    gap: 10px;
}

.search-form input {
    min-width: 0;
    flex: 1;
    padding: 11px 13px;
    border: 1px solid #595959;
    border-radius: 0;
    background: #fff;
    color: #111;
    font: inherit;
}

.search-form button {
    padding: 11px 22px;
    border: 1px solid #fff;
    background: #fff;
    color: #111;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.site-main {
    min-height: calc(100vh - 150px);
}

.content-shell {
    width: min(calc(100% - 48px), var(--content-width));
    margin-right: auto;
    margin-left: auto;
}

.home-layout {
    padding-top: 24px;
}

.home-hero {
    margin: 0;
}

.home-hero img {
    width: 100%;
    aspect-ratio: 1280 / 524;
    object-fit: cover;
}

.home-intro {
    padding: 34px 8px 24px;
}

.home-intro p:first-child {
    margin-top: 0;
}

.home-intro p:nth-last-child(1) {
    font-style: italic;
}

.home-feature {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 58%);
    gap: 30px;
    padding: 24px 0 44px;
}

.home-feature__image img {
    width: 100%;
    aspect-ratio: 1280 / 719;
    object-fit: cover;
}

.home-feature__content {
    padding-top: 4px;
}

.standard-layout {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 58%);
    gap: 38px;
    padding: 24px 0 34px;
}

.page-hero {
    margin: 0;
}

.page-hero img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    object-position: top center;
}

.page-hero figcaption,
.image-gallery figcaption {
    margin-top: 12px;
    color: #444;
    font-size: 12px;
    font-style: italic;
    line-height: 1.5;
}

.section-title {
    padding: 14px 0 15px;
    margin: 0 0 27px;
    border-top: 5px solid var(--line);
    border-bottom: 5px solid var(--line);
}

.section-title h1,
.section-title h2 {
    margin: 0;
    color: var(--heading);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(38px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.12;
}

.section-title--compact {
    padding: 10px 0 12px;
    margin-bottom: 20px;
    border-width: 4px;
}

.section-title--compact h2 {
    font-size: clamp(32px, 3.5vw, 44px);
}

.rich-content {
    color: var(--ink);
    font-size: 16px;
    line-height: 1.65;
}

.rich-content p {
    margin: 0 0 1.15em;
}

.rich-content h2,
.rich-content h3 {
    margin: 1.75em 0 0.55em;
    color: var(--ink);
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 1.08rem;
    line-height: 1.4;
}

.rich-content h2:first-child,
.rich-content h3:first-child {
    margin-top: 0;
}

.rich-content ul,
.rich-content ol {
    padding-left: 1.5em;
}

.rich-content blockquote {
    padding-left: 18px;
    margin-left: 0;
    border-left: 4px solid var(--heading);
    color: #424d52;
}

.rich-content a,
.text-link {
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.rich-content a:hover,
.text-link:hover {
    color: var(--heading);
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 34px 28px;
    padding: 14px 0 48px;
}

.image-gallery__item {
    margin: 0;
}

.image-gallery__item img {
    width: 100%;
    height: 360px;
    object-fit: contain;
    object-position: center bottom;
}

.legal-layout,
.search-results,
.not-found {
    max-width: 930px;
    padding-top: 34px;
    padding-bottom: 60px;
}

.rich-content--legal {
    font-size: 14px;
    line-height: 1.65;
}

.rich-content--legal h2 {
    margin-top: 1.8em;
    color: var(--heading);
    font-size: 1rem;
}

.search-results__count {
    color: var(--muted);
}

.search-result {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.search-result h2 {
    margin: 0 0 7px;
    color: var(--heading);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 27px;
}

.search-result p {
    margin: 0;
}

.site-footer {
    padding: 30px 0 28px;
    font-size: 11px;
    text-align: right;
}

.site-footer__inner a {
    text-underline-offset: 2px;
}

.system-message {
    width: min(calc(100% - 40px), 760px);
    padding: 60px 0;
    margin: 0 auto;
}

.system-message h1 {
    color: var(--heading);
    font-family: "Playfair Display", Georgia, serif;
}

code {
    padding: 0.12em 0.35em;
    background: #f0f0f0;
    font-size: 0.92em;
}

@media (max-width: 980px) {
    .site-header__inner {
        padding-right: 14px;
        padding-left: 20px;
    }

    .main-navigation a {
        padding: 0 9px;
        font-size: 13px;
    }

    .image-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .nav-toggle {
        display: block;
        order: 2;
    }

    .search-toggle {
        order: 3;
    }

    .main-navigation {
        position: fixed;
        z-index: 60;
        top: 56px;
        right: 0;
        bottom: 0;
        left: 0;
        display: none;
        overflow: auto;
        background: #090909;
    }

    .menu-open .main-navigation {
        display: block;
    }

    .main-navigation ul {
        display: block;
        height: auto;
        padding: 20px;
    }

    .main-navigation li {
        display: block;
    }

    .main-navigation a {
        display: block;
        padding: 13px 10px;
        border-bottom: 1px solid #292929;
        font-size: 18px;
    }

    .main-navigation a.is-active::after {
        top: 13px;
        right: auto;
        bottom: 13px;
        left: 0;
        width: 4px;
        height: auto;
    }

    .menu-open .nav-toggle > span:nth-child(2) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-open .nav-toggle > span:nth-child(3) {
        opacity: 0;
    }

    .menu-open .nav-toggle > span:nth-child(4) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .standard-layout,
    .home-feature {
        grid-template-columns: 1fr;
    }

    .standard-layout {
        gap: 28px;
    }

    .standard-layout__media {
        order: 2;
    }

    .standard-layout__content {
        order: 1;
    }

    .page-hero img {
        max-height: none;
    }
}

@media (max-width: 620px) {
    body {
        font-size: 15px;
    }

    .content-shell {
        width: min(calc(100% - 30px), var(--content-width));
    }

    .home-layout,
    .standard-layout {
        padding-top: 15px;
    }

    .home-intro {
        padding: 25px 0 15px;
    }

    .section-title {
        padding: 10px 0 12px;
        margin-bottom: 21px;
        border-width: 4px;
    }

    .section-title h1,
    .section-title h2 {
        font-size: 34px;
    }

    .rich-content {
        font-size: 15px;
    }

    .image-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 14px;
    }

    .image-gallery__item img {
        height: 250px;
    }

    .search-form__row {
        display: block;
    }

    .search-form button {
        width: 100%;
        margin-top: 8px;
    }

    .site-footer {
        text-align: center;
    }
}

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