@font-face {
    font-family: "Fraunces";
    src: url("fonts/fraunces-latin-variable.woff2") format("woff2-variations");
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("fonts/manrope-latin-variable.woff2") format("woff2-variations");
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
}

:root {
    --ink: #24172b;
    --ink-soft: #493e4e;
    --muted: #675d6b;
    --paper: #fffaf1;
    --canvas: #f5eddf;
    --canvas-deep: #eadfce;
    --night: #24172b;
    --night-soft: #3a2843;
    --brand: #c83b30;
    --brand-dark: #9c2c27;
    --accent: #dff36c;
    --sun: #efd250;
    --violet: #6855c9;
    --sky: #9edbe1;
    --lagoon: #2f727c;
    --lagoon-dark: #23565e;
    --peach: #ef927b;
    --line: #cfc1ae;
    --line-strong: #a89988;
    --success-bg: #e5f2de;
    --success-ink: #265438;
    --danger-bg: #f9dfda;
    --danger-ink: #842a26;
    --warning-bg: #fff0b8;
    --radius-sm: 4px;
    --radius: 7px;
    --radius-lg: 10px;
    --shadow-sm: 4px 4px 0 rgba(36, 23, 43, .13);
    --shadow: 8px 9px 0 rgba(36, 23, 43, .15);
    --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
    --display: "Fraunces", Georgia, serif;
    --focus: #246bff;
    --content-wide: 1240px;
}

html {
    scroll-padding-top: 96px;
}

body {
    background-color: var(--canvas);
    background-image:
        radial-gradient(ellipse 40rem 30rem at -5% 9%, rgba(76, 161, 174, .22), transparent 68%),
        radial-gradient(ellipse 35rem 28rem at 104% 27%, rgba(220, 104, 79, .18), transparent 70%),
        radial-gradient(ellipse 34rem 25rem at 4% 85%, rgba(239, 210, 80, .16), transparent 72%),
        radial-gradient(circle, rgba(36, 23, 43, .045) 0 1px, transparent 1.4px),
        linear-gradient(180deg, #f8f1e7 0%, #f4ecdf 54%, #f8f1e7 100%);
    background-size: auto, auto, auto, 15px 15px, auto;
    background-attachment: scroll;
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.58;
}

::selection {
    color: var(--night);
    background: var(--accent);
}

h1,
h2,
h3 {
    font-family: var(--display);
    font-variation-settings: "SOFT" 60, "WONK" 1;
    letter-spacing: -.035em;
    text-wrap: balance;
}

h1 { font-weight: 780; }
h2 { font-weight: 730; }
h3 { font-weight: 680; }

p,
li,
dd {
    text-wrap: pretty;
}

.container {
    width: min(var(--content-wide), calc(100% - 48px));
}

.page-content {
    position: relative;
    padding-block: 34px 88px;
}

a,
button,
input,
select,
textarea,
summary,
[tabindex]:not([tabindex="-1"]) {
    -webkit-tap-highlight-color: transparent;
}

:where(a, button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
    outline: 3px solid var(--focus) !important;
    outline-offset: 3px !important;
}

.skip-link:focus {
    color: #fff;
    background: var(--night);
    border: 2px solid var(--accent);
    border-radius: 3px;
    box-shadow: 4px 4px 0 var(--brand);
}

/* Masthead */
.site-header {
    background: rgba(255, 250, 241, .96);
    border-bottom: 2px solid var(--night);
    backdrop-filter: blur(12px);
}

.site-header::before {
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    content: "";
    background: linear-gradient(90deg, var(--brand) 0 31%, var(--accent) 31% 54%, var(--lagoon) 54% 79%, var(--sun) 79%);
}

.header-inner {
    min-height: 80px;
    padding-top: 4px;
}

.brand {
    gap: 12px;
}

.brand-mark {
    position: relative;
    width: 46px;
    height: 46px;
    color: var(--night);
    background: var(--accent);
    border: 2px solid var(--night);
    border-radius: 2px;
    box-shadow: 4px 4px 0 var(--brand);
    transform: rotate(-2deg);
    transition: transform .18s ease, box-shadow .18s ease;
}

.brand:hover .brand-mark {
    box-shadow: 2px 2px 0 var(--brand);
    transform: translate(2px, 2px) rotate(1deg);
}

.brand-mark svg {
    width: 37px;
    height: 37px;
}

.brand-mark .brand-landmark { fill: var(--brand); }
.brand-mark .brand-clock { fill: var(--paper); }

.brand-copy {
    gap: 3px;
    font-size: 1rem;
    line-height: 1;
    letter-spacing: -.04em;
}

.brand-name {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.brand-copy .brand-name strong,
.brand-copy .brand-name > span {
    color: var(--ink);
    font-size: 1.08rem;
    font-weight: 800;
    text-transform: lowercase;
}

.brand-copy .brand-name > span { color: var(--brand); }

.brand-copy small {
    color: var(--muted);
    font-size: .55rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.desktop-nav { gap: 4px; }

.nav-link {
    padding: 10px 12px;
    font-size: .78rem;
    font-weight: 760;
    letter-spacing: .025em;
    text-transform: uppercase;
}

.nav-link::after {
    left: 12px;
    right: 12px;
    bottom: 5px;
    height: 3px;
    background: var(--brand);
}

.mobile-nav summary,
.mobile-nav nav {
    border: 2px solid var(--night);
    border-radius: 3px;
}

.mobile-nav nav {
    padding: 8px;
    background: var(--paper);
    box-shadow: 6px 6px 0 rgba(36, 23, 43, .2);
}

.mobile-nav nav a {
    border-radius: 2px;
}

.mobile-nav nav a:hover { background: var(--warning-bg); }

/* Editorial controls */
.button {
    min-height: 44px;
    padding: 10px 18px;
    color: #fff;
    background: var(--brand);
    border: 2px solid var(--night);
    border-radius: 3px;
    box-shadow: 4px 4px 0 var(--night);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .01em;
    transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}

.button:hover {
    color: #fff;
    background: var(--brand-dark);
    border-color: var(--night);
    box-shadow: 2px 2px 0 var(--night);
    transform: translate(2px, 2px);
}

.button:active {
    box-shadow: 0 0 0 var(--night);
    transform: translate(4px, 4px);
}

.button-secondary {
    color: var(--ink);
    background: var(--paper);
    border-color: var(--night);
}

.button-secondary:hover {
    color: #fff;
    background: var(--lagoon-dark);
}

.button-light {
    color: var(--night);
    background: var(--accent);
    border-color: var(--night);
}

.button-light:hover {
    color: var(--night);
    background: #efff8e;
}

.button-danger { background: #9f2f2f; }
.button-quiet { color: var(--brand-dark); box-shadow: none; border: 0; }

.overline,
.eyebrow,
.tag {
    font-family: var(--font);
    font-weight: 800;
    letter-spacing: .12em;
}

.overline {
    width: fit-content;
    gap: 7px;
    padding: 4px 7px;
    color: var(--paper);
    background: var(--brand);
    border: 1px solid var(--night);
    font-size: .62rem;
    line-height: 1.1;
    transform: rotate(-1deg);
}

.overline > span { display: none; }

.overline-light {
    color: var(--night);
    background: var(--accent);
}

.eyebrow { color: var(--brand-dark); font-size: .65rem; }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 2px;
    color: var(--ink);
    border-bottom: 2px solid var(--brand);
    font-size: .8rem;
    font-weight: 800;
    text-decoration: none;
}

.text-link:hover {
    color: var(--brand-dark);
    text-decoration: none;
}

.text-link span { color: inherit; }

.alert {
    border-width: 2px;
    border-color: currentColor;
    border-radius: 3px;
    box-shadow: var(--shadow-sm);
}

.field input,
.field select,
.field textarea,
.filter-panel input,
.filter-panel select,
.subscription-form input {
    color: var(--ink);
    background: #fffdf8;
    border: 1.5px solid var(--line-strong);
    border-radius: 3px;
}

.field input::placeholder,
.field textarea::placeholder,
.filter-panel input::placeholder,
.subscription-form input::placeholder {
    color: #6b626f;
    opacity: 1;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.filter-panel input:focus,
.filter-panel select:focus,
.subscription-form input:focus {
    border-color: var(--night);
    box-shadow: 0 0 0 3px rgba(36, 107, 255, .22);
}

.field:focus-within label,
.field:focus-within .label {
    color: var(--lagoon-dark);
}

/* Footer as the closing edge of a printed programme */
.site-footer {
    position: relative;
    color: #eee6f0;
    background:
        radial-gradient(circle at 15% 15%, rgba(223, 243, 108, .08), transparent 28%),
        radial-gradient(circle at 86% 75%, rgba(76, 161, 174, .14), transparent 30%),
        var(--night);
    border-top: 5px solid var(--brand);
}

.site-footer::before {
    position: absolute;
    inset: -12px 0 auto;
    height: 8px;
    content: "";
    background: repeating-linear-gradient(90deg, var(--accent) 0 22px, transparent 22px 32px);
}

.site-footer .brand-copy .brand-name strong { color: #fff; }
.site-footer .brand-copy small { color: #bfb2c4; }

.footer-grid {
    grid-template-columns: 1.35fr .7fr .7fr 1fr;
    gap: 42px;
    padding-block: 58px 42px;
}

.footer-grid h2 {
    color: var(--accent);
    font-family: var(--font);
}

.footer-note span {
    color: var(--night);
    background: var(--accent);
    border: 0;
    border-radius: 2px;
    transform: rotate(1deg);
}

.footer-bottom { color: #a99eae; }

/* Shared motion and accessible state */
[aria-busy="true"] { cursor: progress; }

body.gallery-lightbox-open { overflow: hidden; }

@media (max-width: 820px) {
    .container { width: min(100% - 30px, var(--content-wide)); }
    .page-content { padding-block: 24px 72px; }
    .header-inner { min-height: 72px; }
    .brand-mark { width: 42px; height: 42px; }
    .brand-mark svg { width: 34px; height: 34px; }
    .footer-grid { gap: 28px; }
}

@media (max-width: 560px) {
    .container { width: min(100% - 24px, var(--content-wide)); }
    .brand-copy small { display: none; }
    .brand-name { flex-direction: column; gap: 0; line-height: .86; }
    .brand-copy .brand-name strong,
    .brand-copy .brand-name > span { font-size: .92rem; }
    .button { max-width: 100%; }
    .footer-grid { padding-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

@media (forced-colors: active) {
    .brand-mark,
    .button,
    .overline { border: 2px solid ButtonText; }
}
