/*
 * Veterinary Training Camp
 *
 * The palette comes from the operating theatre: surgical drape blue, scrub teal (the logo's cross),
 * povidone-iodine orange (the logo's roof) and the violet of absorbable suture, which is used for
 * one thing only: the stitch line that runs through the site.
 */

/* ------------------------------------------------------------------ tokens */
:root {
    --drape: #c4dde2;
    --drape-soft: #e4eff1;
    --scrub: #0e4f47;
    --scrub-deep: #0a3a34;
    --ink: #14302c;
    --ink-soft: #46605b;
    --paper: #f6fafa;
    --white: #ffffff;
    --iodine: #db7d1b;
    --iodine-deep: #b5620c;
    --vicryl: #6e4aa8;
    --vicryl-light: #b9a2e0;
    --line: rgb(20 48 44 / 0.16);

    --font-display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
    --font-body: "VTC Text", "Atkinson Hyperlegible Next", system-ui, sans-serif;

    --step--1: 0.889rem;
    --step-0: 1.125rem;
    --step-1: 1.333rem;
    --step-2: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
    --step-3: clamp(1.9rem, 1.3rem + 2.4vw, 3.25rem);
    --step-4: clamp(2.5rem, 1.4rem + 4.6vw, 5.5rem);

    --wrap: 1240px;
    --gutter: clamp(1rem, 4vw, 3rem);
    --section: clamp(4rem, 3rem + 5vw, 8rem);
    --window-radius: clamp(28px, 4vw, 56px);
}

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

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

html.nav-open {
    overflow: hidden;
}

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

img {
    height: auto;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-variation-settings: "wdth" 88;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--scrub);
    text-wrap: balance;
}

p {
    margin: 0 0 1em;
}

a {
    color: inherit;
}

ul,
ol,
dl,
dd,
figure,
blockquote {
    margin: 0;
    padding: 0;
}

:focus-visible {
    outline: 3px solid var(--iodine);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    background: var(--vicryl-light);
    color: var(--ink);
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    background: var(--ink);
    color: var(--paper);
    border-radius: 8px;
}

.skip-link:focus {
    top: 1rem;
}

main:focus {
    outline: none;
}

.wrap {
    width: min(100% - 2 * var(--gutter), var(--wrap));
    margin-inline: auto;
}

.section {
    padding-block: var(--section);
}

.section--drape {
    background: var(--drape-soft);
}

.display-1 {
    font-size: var(--step-4);
}

.display-2 {
    font-size: var(--step-3);
}

.display-3 {
    font-size: var(--step-2);
    font-variation-settings: "wdth" 92;
}

.icon {
    width: 1.15em;
    height: 1.15em;
    flex-shrink: 0;
    vertical-align: -0.2em;
}

/* ------------------------------------------------------------------ buttons and links */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 0.85em 1.5em;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    font-variation-settings: "wdth" 95;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button--iodine {
    background: var(--iodine);
    color: var(--ink);
}

.button--iodine:hover {
    background: #e8913a;
}

.button--ghost {
    border-color: var(--scrub);
    color: var(--scrub);
}

.button--ghost:hover {
    background: var(--scrub);
    color: var(--paper);
}

.button:disabled {
    opacity: 0.6;
    cursor: progress;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    color: var(--scrub);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.3em;
}

.text-link:hover {
    color: var(--iodine-deep);
}

/* ------------------------------------------------------------------ the suture */
.suture {
    display: block;
    width: 100%;
    height: 24px;
    overflow: visible;
}

.suture__thread {
    fill: none;
    stroke: var(--vicryl);
    stroke-width: 2.5;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.suture__knots path {
    fill: none;
    stroke: var(--vicryl);
    stroke-width: 2.5;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

/* ------------------------------------------------------------------ header */
.site-header {
    position: relative;
    z-index: 20;
    background: var(--drape);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    min-height: 88px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-right: auto;
    color: var(--scrub);
    text-decoration: none;
}

.brand__mark {
    width: 58px;
    border-radius: 12px;
    mix-blend-mode: multiply;
}

.brand__name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    font-variation-settings: "wdth" 85;
    line-height: 1;
    letter-spacing: -0.01em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-nav__list {
    display: flex;
    gap: 1.75rem;
    list-style: none;
}

.site-nav__item {
    position: relative;
}

.site-nav__link,
.site-nav__sub a {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 600;
    font-variation-settings: "wdth" 95;
    color: var(--ink);
    text-decoration: none;
}

/* The current page is underlined with a stitch, like the line under page titles. */
.site-nav__link[aria-current="page"],
.site-nav__link:hover {
    text-decoration: underline wavy var(--vicryl) 2px;
    text-underline-offset: 0.45em;
}

.site-nav__link:hover {
    text-decoration-color: var(--ink-soft);
}

.site-nav__sub {
    position: absolute;
    left: -1rem;
    top: 100%;
    min-width: 14rem;
    padding: 0.75rem 1rem;
    list-style: none;
    background: var(--paper);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgb(10 58 52 / 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.site-nav__sub li + li {
    margin-top: 0.4rem;
}

.site-nav__sub a:hover,
.site-nav__sub a[aria-current="page"] {
    color: var(--vicryl);
}

.has-children:hover .site-nav__sub,
.has-children:focus-within .site-nav__sub {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.site-nav__contact {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.site-nav__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav__phone:hover {
    color: var(--scrub);
}

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 2px solid var(--scrub);
    border-radius: 50%;
    background: transparent;
    color: var(--scrub);
    cursor: pointer;
}

.nav-toggle .icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.nav-toggle__close {
    display: none;
}

@media (max-width: 1100px) {
    .site-nav__phone {
        display: none;
    }
}

@media (max-width: 959px) {
    .site-header__inner {
        min-height: 72px;
    }

    .brand__mark {
        width: 48px;
    }

    .nav-toggle {
        display: inline-grid;
        place-items: center;
        position: relative;
        z-index: 2;
    }

    .site-nav {
        position: fixed;
        inset: 0;
        z-index: 1;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        gap: 2rem;
        padding: 6.5rem var(--gutter) 2.5rem;
        background: var(--drape);
        overflow-y: auto;
    }

    .nav-open .site-nav {
        display: flex;
    }

    .nav-open .nav-toggle__open {
        display: none;
    }

    .nav-open .nav-toggle__close {
        display: inline;
    }

    .site-nav__list {
        flex-direction: column;
        gap: 0.9rem;
    }

    .site-nav__link {
        font-size: var(--step-3);
        font-weight: 700;
        font-variation-settings: "wdth" 85;
        color: var(--scrub);
    }

    .site-nav__sub {
        position: static;
        min-width: 0;
        margin-top: 0.5rem;
        padding: 0 0 0 0.25rem;
        background: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .site-nav__sub a {
        font-size: var(--step-1);
        font-weight: 500;
    }

    .site-nav__contact {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav__phone {
        display: inline-flex;
        font-size: var(--step-1);
    }
}

/* ------------------------------------------------------------------ fenestration (drape window) */
.fenestration {
    position: relative;
    border-radius: var(--window-radius);
    /* the reinforced edge of the drape window */
    box-shadow: 0 0 0 10px var(--drape-soft), 0 30px 60px -30px rgb(10 58 52 / 0.45);
}

.fenestration > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.fenestration__suture {
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: -12px;
    width: auto;
}

/* The one orchestrated moment: the stitch closes along the window on first load. */
.fenestration__suture--draw .suture__thread {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: suture-draw 1.6s cubic-bezier(0.6, 0, 0.3, 1) 0.4s forwards;
}

.fenestration__suture--draw .suture__thread {
    stroke-dasharray: 520;
    stroke-dashoffset: 520;
    vector-effect: none;
    stroke-width: 2.2;
}

.fenestration__suture--draw .suture__knots path {
    opacity: 0;
    animation: knot-in 0.25s ease forwards;
}

.fenestration__suture--draw .suture__knots path:nth-child(1) { animation-delay: 0.6s; }
.fenestration__suture--draw .suture__knots path:nth-child(2) { animation-delay: 0.8s; }
.fenestration__suture--draw .suture__knots path:nth-child(3) { animation-delay: 1s; }
.fenestration__suture--draw .suture__knots path:nth-child(4) { animation-delay: 1.2s; }
.fenestration__suture--draw .suture__knots path:nth-child(5) { animation-delay: 1.4s; }
.fenestration__suture--draw .suture__knots path:nth-child(6) { animation-delay: 1.55s; }
.fenestration__suture--draw .suture__knots path:nth-child(7) { animation-delay: 1.7s; }
.fenestration__suture--draw .suture__knots path:nth-child(8) { animation-delay: 1.85s; }

@keyframes suture-draw {
    to { stroke-dashoffset: 0; }
}

@keyframes knot-in {
    to { opacity: 1; }
}

/* ------------------------------------------------------------------ home: hero */
.hero {
    background: var(--drape);
    padding-block: clamp(2rem, 1rem + 4vw, 5rem) clamp(4rem, 2rem + 6vw, 8rem);
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: clamp(2rem, 1rem + 4vw, 5rem);
}

.hero__title {
    font-size: var(--step-4);
    font-variation-settings: "wdth" 80;
    line-height: 0.98;
    letter-spacing: -0.03em;
}

.hero__lead {
    max-width: 34em;
    margin-top: 1.5rem;
    font-size: var(--step-1);
    line-height: 1.5;
    color: var(--ink);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.hero__window {
    aspect-ratio: 4 / 5;
}

@media (max-width: 859px) {
    .hero__grid {
        grid-template-columns: 1fr;
    }

    .hero__window {
        aspect-ratio: 4 / 3;
        order: -1;
    }
}

/* ------------------------------------------------------------------ home: intro */
.intro__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 2rem + 4vw, 6rem);
}

.intro__statement h2 {
    margin-bottom: 1.5rem;
}

.intro__statement p {
    max-width: 32em;
}

.reasons {
    display: grid;
    gap: 1.75rem;
    align-content: start;
}

.reasons__item {
    padding-top: 1.25rem;
    border-top: 1.5px solid var(--line);
}

.reasons dt {
    font-family: var(--font-display);
    font-size: var(--step-1);
    font-weight: 700;
    font-variation-settings: "wdth" 92;
    color: var(--scrub);
}

.reasons dd {
    margin-top: 0.35rem;
    color: var(--ink-soft);
}

@media (max-width: 859px) {
    .intro__grid {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------------------------------------------ home: theatre strip */
.theatre {
    padding-bottom: 0;
}

.theatre__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.theatre__strip {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0 max(var(--gutter), (100% - var(--wrap)) / 2) 1.5rem;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: max(var(--gutter), (100% - var(--wrap)) / 2);
    scrollbar-color: var(--scrub) var(--drape-soft);
}

.theatre__shot {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.theatre__shot img {
    height: clamp(260px, 40vw, 440px);
    width: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 24px;
}

.theatre__shot:first-child img {
    aspect-ratio: 3 / 4;
}

/* ------------------------------------------------------------------ home: why */
.why__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 1rem + 4vw, 5rem);
}

.why h2 {
    margin-bottom: 1rem;
}

.why p {
    max-width: 34em;
    color: var(--ink-soft);
}

@media (max-width: 759px) {
    .why__grid {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------------------------------------------ home: five days */
.five-days {
    background: var(--scrub);
    color: var(--paper);
}

.five-days__inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    align-items: end;
    gap: clamp(2rem, 1rem + 4vw, 5rem);
}

.five-days h2 {
    color: var(--paper);
    font-variation-settings: "wdth" 80;
}

.five-days__where {
    display: flex;
    gap: 0.5rem;
    color: var(--drape);
}

@media (max-width: 859px) {
    .five-days__inner {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------------------------------------------ reviews (home and reviews page) */
.voices__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.voices__list--compact {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2.5rem;
}

.voices__list--compact .voice {
    grid-template-columns: 1fr;
    align-content: space-between;
    align-items: start;
}

.voices__list--compact .voice__quote p {
    font-size: var(--step-1);
    line-height: 1.4;
}

.voices__list {
    display: grid;
    gap: 3rem;
}

.voice {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    gap: 1rem 3rem;
    align-items: end;
    padding-top: 2rem;
    border-top: 1.5px solid var(--line);
}

.voice__quote p {
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--step-2);
    font-weight: 500;
    font-variation-settings: "wdth" 95;
    line-height: 1.3;
    color: var(--ink);
    text-wrap: pretty;
}

.voice__quote p::before {
    content: "\201C";
}

.voice__quote p::after {
    content: "\201D";
}

.voice__who {
    display: grid;
    gap: 0.4rem;
}

.voice__name {
    font-weight: 700;
    color: var(--scrub);
}

.voice__source {
    justify-self: start;
    font-size: var(--step--1);
    color: var(--ink-soft);
    text-underline-offset: 0.2em;
}

@media (max-width: 759px) {
    .voice {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------------------------------------------ inner pages: title band */
.page-head {
    background: var(--drape);
    padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(2.5rem, 1.5rem + 3vw, 4rem);
}

.page-head__title {
    max-width: 18ch;
    font-size: var(--step-4);
    font-variation-settings: "wdth" 80;
    letter-spacing: -0.03em;
}

.page-head__lead {
    max-width: 38em;
    margin-top: 1rem;
    font-size: var(--step-1);
}

.page-head__suture {
    width: min(260px, 60%);
    margin-top: 1.5rem;
}

.crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.6rem;
    margin-bottom: 1rem;
    list-style: none;
    font-size: var(--step--1);
}

.crumbs li + li::before {
    content: "/";
    margin-right: 0.6rem;
    color: var(--ink-soft);
}

.crumbs a {
    color: var(--ink-soft);
    text-underline-offset: 0.25em;
}

.crumbs a:hover {
    color: var(--scrub);
}

/* ------------------------------------------------------------------ prose (CMS content) */
.prose {
    max-width: 68ch;
}

.prose--intro {
    margin-bottom: 3rem;
}

.prose__lead {
    margin-bottom: 1.25rem;
    font-size: var(--step-1);
    line-height: 1.5;
    color: var(--ink);
}

.prose h2,
.prose h3,
.prose h4 {
    margin: 2rem 0 0.75rem;
    font-size: var(--step-2);
}

/* the CMS editor writes paragraphs as <div>s */
.prose > div {
    margin-bottom: 1em;
}

/* Bold-only blocks in CMS content, marked by the cms_html Twig filter */
.prose .cms-heading {
    display: inline-block;
    margin-top: 1.25rem;
    margin-bottom: 0.25rem;
    font-family: var(--font-display);
    font-size: var(--step-2);
    font-weight: 700;
    font-variation-settings: "wdth" 88;
    line-height: 1.15;
    color: var(--scrub);
}

.prose strong {
    color: var(--ink);
}

.prose a {
    color: var(--scrub);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.25em;
}

.prose ul,
.prose ol {
    margin: 1rem 0 1.5rem;
    list-style: none;
}

.prose li {
    position: relative;
    margin-bottom: 0.75rem;
    padding-left: 1.75rem;
}

/* list markers are single stitches */
.prose ul > li::before {
    content: "";
    position: absolute;
    left: 0.1rem;
    top: 0.55em;
    width: 0.75rem;
    height: 0.75rem;
    background:
        linear-gradient(45deg, transparent 42%, var(--vicryl) 42% 58%, transparent 58%),
        linear-gradient(-45deg, transparent 42%, var(--vicryl) 42% 58%, transparent 58%);
}

.prose ol {
    counter-reset: step;
}

.prose ol > li::before {
    counter-increment: step;
    content: counter(step) ".";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--scrub);
}

.prose img {
    margin-block: 1.5rem;
    border-radius: 20px;
}

/* text + photo pages */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(2.5rem, 2rem + 4vw, 6rem);
}

.split__media {
    position: sticky;
    top: 2rem;
    aspect-ratio: 4 / 5;
}

@media (max-width: 859px) {
    .split {
        grid-template-columns: 1fr;
    }

    .split__media {
        position: static;
        aspect-ratio: 4 / 3;
        order: -1;
    }
}

.cta-band {
    padding-block: clamp(3rem, 2rem + 3vw, 5rem);
    background: var(--drape-soft);
}

.cta-band__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cta-band p {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--scrub);
}

/* ------------------------------------------------------------------ tutors */
.portraits {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    list-style: none;
}

.portrait a {
    display: block;
    text-decoration: none;
}

.portrait__img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 60% 30%;
    /* an arched window: portraits read as people, not as cards */
    border-radius: 999px 999px 24px 24px;
    transition: border-radius 0.3s ease;
}

.portrait a:hover .portrait__img,
.portrait a:focus-visible .portrait__img {
    border-radius: 24px;
}

.portrait__name {
    display: block;
    margin-top: 1rem;
    font-family: var(--font-display);
    font-size: var(--step-1);
    font-weight: 700;
    font-variation-settings: "wdth" 90;
    color: var(--scrub);
}

/* ------------------------------------------------------------------ info entries */
.entries {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr));
    gap: 2.5rem 3rem;
    list-style: none;
}

.entry__link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.entry__media {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--window-radius);
    background: var(--drape-soft);
}

.entry__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.entry__media img.entry__placeholder {
    object-fit: contain;
    padding: 20%;
    mix-blend-mode: multiply;
}

.entry__link:hover .entry__media img {
    transform: scale(1.04);
}

.entry__title {
    display: block;
    font-family: var(--font-display);
    font-size: var(--step-2);
    font-weight: 700;
    font-variation-settings: "wdth" 88;
    line-height: 1.1;
    color: var(--scrub);
}

.entry__link:hover .entry__title {
    text-decoration: underline wavy var(--vicryl) 2px;
    text-underline-offset: 0.3em;
}

.entry__text {
    display: block;
    margin-top: 0.5rem;
    color: var(--ink-soft);
}

.entry__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.4rem;
    margin-top: 0.75rem;
    font-size: var(--step--1);
    font-weight: 700;
    color: var(--ink-soft);
}

.entry__meta .icon + .icon,
.entry__meta svg {
    margin-left: 0.25rem;
}

@media (max-width: 479px) {
    .entry__link {
        grid-template-columns: 1fr;
    }

    .entry__media {
        aspect-ratio: 4 / 3;
    }
}

.empty {
    max-width: 40em;
    color: var(--ink-soft);
}

.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    font-weight: 700;
}

.pager__pages {
    display: flex;
    gap: 0.35rem;
    list-style: none;
}

.pager a,
.pager span {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    padding-inline: 0.75rem;
    border-radius: 999px;
    color: var(--scrub);
    text-decoration: none;
}

.pager a:hover {
    background: var(--drape-soft);
}

.pager [aria-current="page"] {
    background: var(--scrub);
    color: var(--paper);
}

/* ------------------------------------------------------------------ article */
.article-meta {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--ink-soft);
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1rem;
    margin-top: 3rem;
    list-style: none;
}

.photo-grid__item {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 20px;
    background: var(--drape-soft);
    cursor: zoom-in;
}

.photo-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.photo-grid__item:hover img {
    transform: scale(1.04);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.video {
    overflow: hidden;
    border-radius: 20px;
    background: var(--scrub-deep);
}

.video video {
    width: 100%;
    max-height: 75vh;
    background: #000;
}

.video figcaption {
    padding: 0.75rem 1.25rem;
    color: var(--drape);
}

.article-back {
    margin: 3rem 0 0;
}

.lightbox {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    padding: clamp(1rem, 4vw, 3rem);
    border: 0;
    background: transparent;
}

.lightbox[open] {
    display: grid;
    place-items: center;
}

.lightbox::backdrop {
    background: rgb(10 58 52 / 0.94);
}

.lightbox__img {
    max-width: 100%;
    max-height: calc(100vh - 8rem);
    border-radius: 16px;
}

.lightbox__count {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    margin: 0;
    transform: translateX(-50%);
    color: var(--drape);
    font-weight: 700;
}

.lightbox__btn {
    position: fixed;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: var(--paper);
    color: var(--scrub);
    cursor: pointer;
}

.lightbox__btn--prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: 1rem; top: 50%; transform: translateY(-50%) scaleX(-1); }
.lightbox__btn--close { right: 1rem; top: 1rem; }

/* ------------------------------------------------------------------ contact */
.contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: clamp(2.5rem, 2rem + 4vw, 6rem);
    align-items: start;
}

.contact__intro {
    font-size: var(--step-1);
    line-height: 1.5;
}

.contact__list {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact__list > div {
    padding-top: 1.25rem;
    border-top: 1.5px solid var(--line);
}

.contact__list dt {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--ink-soft);
}

.contact__list dd {
    display: grid;
    gap: 0.35rem;
    justify-items: start;
    margin-top: 0.35rem;
    font-family: var(--font-display);
    font-size: var(--step-1);
    font-weight: 600;
    font-variation-settings: "wdth" 95;
    color: var(--scrub);
}

.contact__list dd a {
    color: inherit;
    text-underline-offset: 0.25em;
}

.contact__list dd .text-link {
    font-family: var(--font-body);
    font-size: var(--step-0);
}

.contact__form {
    padding: clamp(1.5rem, 1rem + 3vw, 3rem);
    background: var(--white);
    border-radius: var(--window-radius);
    box-shadow: 0 0 0 10px var(--drape-soft);
}

.contact__form h2 {
    margin-bottom: 1.5rem;
}

@media (max-width: 859px) {
    .contact {
        grid-template-columns: 1fr;
    }
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
}

@media (max-width: 559px) {
    .field-row {
        grid-template-columns: 1fr;
    }
}

.field {
    margin-bottom: 1.25rem;
}

.field label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 700;
}

.field label.required::after {
    content: " (required)";
    font-weight: 400;
    color: var(--ink-soft);
    font-size: var(--step--1);
}

.field input,
.field textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid rgb(20 48 44 / 0.35);
    border-radius: 12px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
}

.field textarea {
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--scrub);
    outline: 3px solid rgb(219 125 27 / 0.45);
    outline-offset: 0;
}

.field ul {
    margin-top: 0.35rem;
    list-style: none;
    color: #a3260f;
    font-weight: 700;
    font-size: var(--step--1);
}

.contact-form__submit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.contact-form__status {
    margin: 0;
    font-weight: 700;
    color: var(--scrub);
}

.map iframe {
    width: 100%;
    height: clamp(320px, 40vw, 480px);
    border: 0;
    filter: saturate(0.7);
}

/* ------------------------------------------------------------------ footer */
.site-footer {
    background: var(--scrub-deep);
    color: var(--drape);
    padding-top: clamp(3.5rem, 2rem + 5vw, 6rem);
}

.site-footer a {
    color: var(--paper);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(auto-fit, minmax(180px, 1fr));
    gap: 3rem;
}

.site-footer__say {
    margin-bottom: 0.75rem;
    color: var(--drape);
}

.site-footer__mail {
    display: inline-block;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 0.8rem + 2.6vw, 2.6rem);
    font-weight: 700;
    font-variation-settings: "wdth" 85;
    line-height: 1.1;
    word-break: break-word;
    text-decoration: underline wavy var(--vicryl-light) 2px;
    text-underline-offset: 0.3em;
}

.site-footer__mail:hover {
    color: var(--vicryl-light);
}

.site-footer__phone {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.25rem;
    font-weight: 700;
    text-decoration: none;
}

.site-footer__phone span {
    font-weight: 400;
    color: var(--drape);
}

.site-footer__heading {
    margin-bottom: 1rem;
    font-size: var(--step-0);
    font-variation-settings: "wdth" 95;
    color: var(--paper);
    letter-spacing: 0;
}

.site-footer__links,
.site-footer__social {
    display: grid;
    gap: 0.6rem;
    list-style: none;
}

.site-footer__social {
    margin-top: 1rem;
}

.site-footer__links a,
.site-footer__social a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
}

.site-footer__links a:hover,
.site-footer__social a:hover {
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

.site-footer__base {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: clamp(3rem, 2rem + 3vw, 5rem);
    padding-block: 1.5rem;
    border-top: 1px solid rgb(196 221 226 / 0.2);
    font-size: var(--step--1);
}

.site-footer__base p {
    margin: 0;
}

.site-footer__mark {
    width: 44px;
    border-radius: 10px;
}

/* ------------------------------------------------------------------ admin login */
.login {
    display: grid;
    place-items: center;
    padding-block: var(--section);
}

.login__panel {
    width: min(100%, 440px);
    padding: clamp(1.5rem, 1rem + 3vw, 2.75rem);
    background: var(--white);
    border-radius: var(--window-radius);
    box-shadow: 0 0 0 10px var(--drape-soft);
}

.login__panel h1 {
    margin-bottom: 1.5rem;
    font-size: var(--step-3);
}

.login__error {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: #fbe7e2;
    color: #a3260f;
    font-weight: 700;
}

.login__remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

/* ------------------------------------------------------------------ motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-delay: 0s !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
