* { box-sizing: border-box; }

:root {
    --ink: #1f302f;
    --muted: #4b5e59;
    --accent: #105452;
    background: #fff;
    color: var(--ink);
    font: 16px/1.5 system-ui, sans-serif;
    scroll-padding-top: 1rem;
}

body, h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; text-wrap: balance; }
a { color: inherit; text-underline-offset: .24em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
img { display: block; max-width: 100%; }

.site-status {
    background: #e7efec;
    color: var(--ink);
    padding-block: .75rem;
    font-size: .9rem;
}

.frame { width: min(75rem, 100% - 3rem); margin-inline: auto; }

.visually-hidden, .skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link:focus {
    position: absolute;
    z-index: 2;
    top: .75rem;
    left: .75rem;
    padding: .5rem 1rem;
    background: white;
}

.masthead, .masthead nav, .school, .actions, .section-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .65rem 1.5rem;
}

.masthead { justify-content: space-between; padding-block: 1rem; }
.school { flex-wrap: nowrap; gap: .6rem; text-decoration: none; font-weight: 700; line-height: 1.16; }
.masthead nav { font-size: .9rem; font-weight: 650; }
.masthead nav a { padding-block: .4rem; text-decoration: none; }
.masthead nav a:hover { text-decoration: underline; }
.section-heading { justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.archive { color: var(--accent); font-size: .875rem; font-weight: 650; }

.events { padding-top: clamp(1.5rem, 4vw, 2.75rem); }
.section-heading h2 { font-size: clamp(1.9rem, 4vw, 3.25rem); letter-spacing: -.025em; }

.event {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(9rem, 24%) 1fr;
    align-items: stretch;
    column-gap: clamp(1.5rem, 5vw, 4.5rem);
    padding: clamp(2rem, 5.6vw, 4.75rem) clamp(1.25rem, 5vw, 4rem);
    background: #123448;
    color: #fff;
    text-decoration: none;
}

.event:hover { color: #fff; }
.event:focus-visible { outline-color: var(--accent); }

.event-background {
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
}

.event-background [data-gradient-canvas] {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 450ms ease-out;
}

.event-background [data-gradient-canvas][data-gradient-ready] { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    .event-background [data-gradient-canvas] { transition: none; }
}

.event-background canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.event-background [data-gradient-canvas]:has(canvas)::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: rgb(6 8 30 / 52%);
    content: '';
}

.event-date { display: grid; align-content: start; gap: .7rem; color: rgb(255 255 255 / 78%); }
.event-date b { font-size: clamp(4rem, 9vw, 7.5rem); line-height: .9; letter-spacing: -.04em; }
.event-date-range b { font-size: clamp(2.5rem, 5.7vw, 5.35rem); white-space: nowrap; }
.event-date > span { font-weight: 700; }
.event-details { min-width: 0; }
.event-details h3 { font-size: clamp(1.65rem, 3.8vw, 2.9rem); line-height: 1.18; letter-spacing: -.025em; }
.event-details p { margin-top: .7rem; color: #fff; }
.event-details .event-kicker { margin: 0 0 1rem; color: rgb(255 255 255 / 78%); font-weight: 650; }
.avatar-list, .video-list, .tags { margin: 0; padding: 0; list-style: none; }
.avatar-list { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: clamp(1.3rem, 3vw, 2.15rem); }
.event .avatar { width: clamp(2.35rem, 6vw, 3rem); height: auto; aspect-ratio: 1; }
.avatar {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    object-fit: cover;
    background: #e7efec;
    color: var(--accent);
    font-weight: 750;
    font-size: .78rem;
}

.actions { margin-top: clamp(1.25rem, 2.7vw, 2rem); font-size: .91rem; font-weight: 650; }
.primary { padding: .7rem 1rem; border: 1px solid #fff; color: #fff; }
.event:hover .primary, .event:focus-visible .primary { background: rgb(255 255 255 / 14%); }

.home-section { margin-top: clamp(3rem, 7vw, 5.5rem); }

.video-list {
    display: grid;
    gap: clamp(2.25rem, 5vw, 4.25rem);
}

.video {
    display: grid;
    grid-template-columns: minmax(0, min(38%, 20rem)) minmax(0, 1fr);
    align-items: start;
    gap: clamp(1.1rem, 3.8vw, 3rem);
}

.video-preview { position: relative; display: block; background: #e7efec; }
.thumbnail { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.play {
    position: absolute;
    inset: auto auto .75rem .75rem;
    width: 2.75rem;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
}
.play::after { content: ''; margin-left: .13rem; border-block: .32rem solid transparent; border-left: .52rem solid currentColor; }
.video-preview:hover .play { background: var(--accent); }
.video-details .video-title { font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.25; }
.video-details .video-title a { text-decoration: none; }
.video-details .video-title a:hover { text-decoration: underline; }
.video-speaker, .tags, .article-link { display: flex; align-items: center; }
.video-speaker { flex-wrap: wrap; gap: .65rem; margin-top: .9rem; color: var(--muted); font-size: .9rem; }
.video-speaker .avatar { width: 2.25rem; height: 2.25rem; }
.video-speaker time::before { content: '·'; margin-inline-end: .45rem; }
.video-filter { margin-bottom: 1rem; color: var(--muted); }
.video-filter a { margin-inline-start: .5rem; }
.tags { flex-wrap: wrap; gap: .3rem .7rem; margin-top: .85rem; font-size: .85rem; color: var(--muted); }
.tags li + li::before { content: '·'; margin-right: .7rem; }
.article-link { width: fit-content; gap: .45rem; margin-top: .8rem; color: var(--accent); font-size: .83rem; font-weight: 650; }
.article-link svg { flex-shrink: 0; }
.doi { margin-left: .25rem; overflow-wrap: anywhere; }

.journal-carousel { min-width: 0; container-type: inline-size; }
.journal-slides {
    --active-cover-scale: 1.43;
    padding: .75rem .75rem 3rem 2rem;
}
.journal-slides .swiper-wrapper {
    height: auto;
    align-items: flex-end;
}
.journal-slides:not(.swiper-initialized) .swiper-slide:not(:first-child) { display: none; }
.journal-slides .swiper-slide {
    width: min(72%, 16rem);
    height: auto;
    perspective: 60rem;
    perspective-origin: left bottom;
}

.journal-slides.swiper-initialized {
    padding-top: calc(.75rem + min(43cqw, 9.74rem));
}

.journal-slides.swiper-initialized .issue {
    transform: translate3d(var(--cover-offset, 0%), 0, var(--cover-depth, 0px)) rotateY(var(--cover-angle, 0deg)) scale(var(--cover-scale, 1));
    transform-origin: left bottom;
    transition: transform var(--cover-duration, 0ms), filter var(--cover-duration, 0ms);
}

.journal-slides.swiper-initialized .swiper-slide:not(.swiper-slide-active) .issue {
    filter: grayscale(1);
}

.journal-controls:not([hidden]) {
    display: flex;
    justify-content: center;
    gap: .65rem;
}

.journal-controls button {
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--accent);
    border-radius: 50%;
    background: #fff;
    color: var(--accent);
    font: inherit;
    cursor: pointer;
}

.journal-controls button:disabled { opacity: .45; cursor: default; }
.journal-controls button:hover:not(:disabled) { background: #e7efec; }

.issue {
    display: grid;
    grid-template-rows: auto 1fr auto;
    aspect-ratio: 210 / 297;
    width: 100%;
    padding: clamp(1rem, 4vw, 1.75rem);
    background: #fff;
    box-shadow: 0 .7rem 1.75rem rgb(31 48 47 / 16%);
    color: var(--ink);
    text-decoration: none;
}

.archive-issue {
    display: grid;
    place-items: center;
    background: #e7efec;
    color: var(--accent);
    text-align: center;
}

.archive-issue:hover strong { text-decoration: underline; }

.issue:hover, .issue:focus-visible {
    color: var(--ink);
    box-shadow: 0 1rem 2rem rgb(31 48 47 / 23%);
}

.issue img { width: 100%; height: auto; }
.issue-caption { align-self: center; display: grid; gap: .5rem; overflow-wrap: anywhere; }
.issue-caption > span, .issue time { color: var(--accent); font-weight: 650; }
.issue-caption strong { font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.12; }
.issue-footer { display: flex; align-items: baseline; gap: .5rem; }
.issue-label { font-size: .75rem; color: var(--muted); overflow-wrap: anywhere; min-width: 0; }
.issue time { margin-inline-start: auto; font-size: .9rem; font-weight: 700; }


@media (max-width: 35rem) {
    .frame { width: calc(100% - 2rem); }
    .masthead nav { gap: .35rem 1rem; }
    .event { grid-template-columns: 1fr; gap: 1.5rem; }
    .event-date { display: flex; align-items: baseline; gap: .5rem; }
    .event-date b { font-size: 3rem; }
    .video { grid-template-columns: 1fr; }
    .video-preview { width: min(100%, 20rem); }
    .journal-slides {
        --active-cover-scale: 1.3;
        padding-inline-start: 1.5rem;
    }
    .journal-slides .swiper-slide { width: min(58%, 13rem); }
    .journal-slides.swiper-initialized { padding-top: calc(.75rem + min(25cqw, 5.52rem)); }
    .issue { padding: .85rem; }
    .issue-caption strong { font-size: .9375rem; }
}

.event-speaker-summary, .event-speaker-summary-avatars {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.event-speaker-summary { margin-top: .5rem; gap: .4rem .65rem; font-size: .875rem; }
.event-speaker-summary-avatars { gap: .45rem; }
.event .event-speaker-summary { margin-top: clamp(1.3rem, 3vw, 2.15rem); }

.video-preview { aspect-ratio: 16 / 9; }
.video-preview .thumbnail[hidden] { display: none; }
.video-speaker:empty { display: none; }
.video-speaker-name { display: inline-flex; align-items: center; gap: .5rem; }
.video-speaker time:first-child::before { content: none; }

.site-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.5rem; }
.site-pagination a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); }
.site-pagination a[rel] { padding-inline: .5rem; }
.site-pagination a[aria-label] { justify-content: center; min-width: 44px; text-decoration: none; }
.site-pagination a[aria-current="page"] { background: var(--accent); color: #fff; }
.masthead a[aria-current="page"] { text-decoration: underline; }

.video-library { padding-top: clamp(1.5rem, 4vw, 3rem); }
.video-library h1 { font-size: clamp(2.25rem, 6vw, 4rem); letter-spacing: -.025em; margin-bottom: 1.5rem; }

.video-library .video-list { gap: clamp(1.75rem, 3.5vw, 3rem); }
.video-library .video-title { max-width: 48ch; text-wrap: pretty; }
.video-library .video-preview:not(:has(img:not([hidden]))) .play { inset: 50% auto auto 50%; translate: -50% -50%; }

@media (max-width: 35rem) {
    .video-library .video-preview { width: 100%; }
}
