@font-face {
    font-family: Outfit;
    src: url('outfit.woff2') format('woff2');
    font-weight: 400 700;
    font-display: swap;
}

:root {
    --red: #c61428;
    --ink: #292126;
    --footer: #231b20;
    --gold: #e6bd6b;
    --canvas: #f8eee8;
    --cream: #ead8ce;
    --muted: #71545b;
    --line: #decbc4;
    --radius: 16px;
    --edge: 40px;
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; font: 400 1.0625rem/1.6 Outfit, sans-serif; color: var(--ink); background: var(--canvas); }
body { display: flex; min-height: 100vh; flex-direction: column; }
main { flex: 1; padding-bottom: clamp(44px, 6vw, 84px); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .23em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
::selection { color: white; background: var(--red); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.08; letter-spacing: -.032em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.65rem, 6vw, 4.9rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.8rem); }
p { overflow-wrap: anywhere; }
.shell { width: min(1200px, calc(100% - 2 * var(--edge))); margin-inline: auto; }
.skip { position: absolute; top: 8px; left: 8px; z-index: 4; padding: 10px 16px; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }
.site-header { background: white; }
.header-row { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { width: clamp(105px, 14vw, 174px); flex-shrink: 0; }
.header-row nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: clamp(4px, 2vw, 25px); }
.header-row nav a { min-height: 44px; display: inline-flex; align-items: center; padding-inline: 5px; text-decoration: none; font-size: .94rem; }
.header-row nav a:hover { color: var(--red); text-decoration: underline; }
.header-row .language-options { display: inline-flex; align-items: center; gap: 4px; }
.header-row .language { color: var(--red); font-weight: 600; }
.preview { text-align: center; background: var(--cream); padding: 10px; font-weight: 600; }
.page-title { padding-block: 36px; }

.hero, .event-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 72px); align-items: center; padding-block: clamp(30px, 4vw, 60px); }
.hero.text-only { grid-template-columns: minmax(0, 1fr); }
.hero-accent, .hero-subtitle { display: block; }
.hero-accent { color: var(--red); }
.hero-subtitle { font-size: .73em; font-weight: 500; margin-top: .22em; }
.hero-image { width: 100%; aspect-ratio: 1.03; border-radius: var(--radius); background: var(--cream); object-fit: cover; object-position: center 43%; }
.prose { white-space: pre-line; color: var(--muted); max-width: 65ch; }
.hero .prose, .event-intro .prose { margin-top: 22px; font-size: 1.125rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions:not(:empty) { margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid transparent; border-radius: 100px; padding: 10px 21px; font: 500 1rem/1.2 Outfit, sans-serif; text-decoration: none; text-align: center; cursor: pointer; transition: background .18s ease, color .18s ease; }
.primary { background: var(--red); color: white; }
.primary:hover { background: var(--ink); }
.secondary { border-color: var(--red); color: var(--red); }
.secondary:hover { background: white; }
.light { background: white; color: var(--red); }
.light:hover { background: var(--cream); }

.featured { display: grid; grid-template-columns: minmax(78px, auto) minmax(0, 1fr) auto; align-items: center; gap: clamp(16px, 3vw, 34px); padding: 27px 32px; margin-bottom: 26px; background: var(--red); border-radius: var(--radius); color: white; }
.featured h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); }
.featured p { margin-top: 5px; }
.featured :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }
.date-stamp { display: grid; line-height: 1.1; padding-right: 20px; border-right: 1px solid #ffffff6b; }
.date-stamp strong { font-size: 2.6rem; letter-spacing: -.04em; font-weight: 500; }
.date-stamp span { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.return-link { color: var(--red); display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 10px; }
.event-facts { display: grid; grid-template-columns: 1.4fr 1fr; gap: 13px 22px; margin: 26px 0; }
.event-facts > div { border-top: 1px solid var(--line); padding-top: 9px; }
.event-facts dt { color: var(--muted); font-size: .88rem; }
.event-facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.event-poster { width: 100%; border-radius: var(--radius); }
.type-poster { min-height: 365px; display: grid; align-content: space-between; gap: 20px; background: var(--ink); color: white; padding: clamp(26px, 4vw, 54px); border-radius: var(--radius); overflow: hidden; }
.type-poster strong { color: var(--gold); display: block; font-size: clamp(2.4rem, 5.2vw, 4.8rem); line-height: .98; letter-spacing: -.04em; overflow-wrap: anywhere; }
.type-poster time { font-size: 1.05rem; border-top: 1px solid var(--gold); padding-top: 10px; font-variant-numeric: tabular-nums; }

.body-section { margin-top: 26px; }
.paper { background: white; border-radius: var(--radius); padding: clamp(22px, 3vw, 40px); }
.paper h2 { margin-bottom: 15px; }
.school-profile .profile-centre { margin-bottom: 6px; font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.program { padding: 0; margin: 0; list-style: none; }
.program li { display: grid; grid-template-columns: 6ch minmax(0, 1fr); gap: 13px; border-top: 1px solid var(--line); padding-block: 13px; }
.program time { color: var(--red); font-variant-numeric: tabular-nums; }
details { border-top: 1px solid var(--line); }
summary { min-height: 48px; padding: 12px 0; font-weight: 600; cursor: pointer; }
details p { padding: 0 0 15px 18px; }
.site-footer { background: var(--footer); color: white; padding-block: 28px; }
.site-footer .shell { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 15px; }
.site-footer span { color: var(--cream); font-size: .9rem; }
.footer-brand { display: grid; gap: 2px; }
.footer-info { display: grid; gap: 6px; min-width: 0; }
.site-footer .footer-info ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.site-footer .footer-info a { color: var(--cream); font-size: .9rem; text-underline-offset: .2em; }
.site-footer .footer-info a:hover { color: white; }

.info-page { max-width: 840px; padding-block: clamp(30px, 5vw, 64px); }
.info-header { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.info-kicker { margin-bottom: 8px; color: var(--red); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.info-header h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.info-content { display: grid; gap: 20px; margin-top: 28px; }
.info-content h2 { margin-top: 14px; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.info-content h3 { margin-top: 10px; font-size: clamp(1.2rem, 2vw, 1.5rem); }
.info-list { display: grid; gap: 8px; margin: 0; padding-left: 1.25em; }
.info-link a { color: var(--red); font-weight: 600; }
.info-figure { margin: 6px 0; }
.info-figure img { border-radius: var(--radius); }

@media (max-width: 950px) {
    :root { --edge: 28px; }
    .header-row { min-height: 78px; }
}

@media (max-width: 660px) {
    :root { --edge: 20px; }
    .header-row { min-height: 66px; }
    .header-row nav a { font-size: .83rem; }
    .hero, .event-intro { grid-template-columns: minmax(0, 1fr); }
    .hero-image { aspect-ratio: 1.15; object-position: center 27%; }
    .featured { padding: 21px; grid-template-columns: 64px minmax(0, 1fr); }
    .featured .button { grid-column: 2; justify-self: start; }
    .date-stamp { padding-right: 8px; }
    .date-stamp strong { font-size: 2rem; }
    .date-stamp span { font-size: .7rem; }
    .type-poster { min-height: 280px; }
    .course-intro.has-poster { grid-template-columns: minmax(0, 1fr); }
    .course-poster { aspect-ratio: 4 / 3; }
}

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

.course-intro .prose { margin-top: 16px; }
.course-intro .event-facts { max-width: 540px; }
.course-intro-copy { min-width: 0; }
.course-intro.has-poster { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 72px); align-items: start; }
.course-poster { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--cream); }
.course-poster img { width: 100%; height: 100%; object-fit: cover; }
.catalog-poster { aspect-ratio: 16 / 9; overflow: hidden; border-radius: calc(var(--radius) - 4px); background: var(--cream); margin-bottom: 16px; }
.catalog-poster img { width: 100%; height: 100%; object-fit: cover; }
.catalog-schedule { margin-top: 6px; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.session-list { margin: 16px 0 0; padding: 0; list-style: none; }
.session-list li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px 16px; border-top: 1px solid var(--line); padding-block: 13px; }
.session-list .status { color: var(--muted); font-size: .9rem; }
.session-list .cancelled { color: var(--red); font-weight: 600; }

.trial-form { display: grid; gap: 8px; max-width: 760px; margin-top: 20px; }
.trial-form label, .trial-form legend { display: block; font-weight: 500; }
.trial-form input:not([type="radio"]), .trial-form select { width: 100%; min-height: 48px; padding: 9px 12px; background: white; border: 1px solid var(--muted); border-radius: 8px; color: var(--ink); font: inherit; }
.trial-form input[type="radio"] { width: 18px; height: 18px; accent-color: var(--red); margin: 0 6px 0 0; }
.trial-form fieldset { margin: 10px 0 0; padding: 0; border: 0; }
.trial-form fieldset label { display: inline-flex; min-height: 44px; align-items: center; margin-right: 16px; }
.contact-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.contact-fields label, .partner-field label { margin-bottom: 6px; }
.partner-field { margin-top: 5px; }
.trial-form:has(input[value="single"]:checked) .partner-field { display: none; }
.trial-form button { justify-self: start; margin-top: 6px; }
.trial-form .prose { margin-top: 8px; }
.trial-form [aria-invalid="true"] { border: 2px solid var(--red); }
.field-error { color: var(--red); font-size: .95rem; }
.form-feedback { padding: 12px 16px; border-radius: 8px; border: 1px solid var(--red); margin-block: 10px; }
.form-feedback ul { margin-block: 4px 0; }
.form-feedback.success { background: var(--canvas); border-color: var(--line); }

.topic-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 20px; }
.topic-filter label { font-weight: 500; }
.topic-filter select { min-width: 0; max-width: 100%; min-height: 48px; padding: 8px 12px; border: 1px solid var(--muted); border-radius: 8px; color: var(--ink); background: white; font: inherit; }
.topic-paths ul { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 10px 0 0; padding: 0; list-style: none; }
.topic-paths a { display: inline-flex; align-items: center; min-height: 44px; color: var(--red); overflow-wrap: anywhere; }

.agenda-filters { align-items: end; margin-bottom: 12px; }
.agenda-filters [data-filter-hint] { flex-basis: 100%; grid-column: 1 / -1; color: var(--muted); }
.agenda-filters label { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; min-width: 0; max-width: 100%; }
.agenda-filters input { width: 14em; max-width: 100%; min-height: 48px; padding: 8px 12px; border: 1px solid var(--muted); border-radius: 8px; font: inherit; color: var(--ink); }
.agenda-navigation { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.agenda-navigation a, .agenda-ics { display: inline-flex; align-items: center; min-height: 44px; color: var(--red); }
.agenda-list h3 { margin: 4px 0; font-size: 1.3rem; }
.agenda-download { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 16px; }

.catalog-filters .return-link { margin: 0; }
.catalog-item h2 { overflow-wrap: anywhere; }
.catalog-item .status { margin-bottom: 5px; color: var(--muted); }

.session-choice { display: inline-flex; align-items: center; min-height: 44px; color: var(--red); }
.agenda-date-actions { display: flex; flex-wrap: wrap; gap: 0 1rem; }

/* At narrow reading widths, leave space for the reader's chosen font size. */
@media (max-width: 16em) {
    .header-row { flex-wrap: wrap; }
    .header-row nav { width: 100%; justify-content: start; }
    .featured .button { grid-column: 1 / -1; max-width: 100%; }
    .program li { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .agenda-filters input[type="month"]::-webkit-datetime-edit-fields-wrapper { display: flex; flex-wrap: wrap; }
}
