:root {
    color-scheme: light;
    --ink: #172b3b;
    --muted: #526474;
    --blue: #145c91;
    --deep-blue: #102b46;
    --red: #d33b46;
    --pale-blue: #edf4f8;
    --paper: #fff;
    --line: #d7e0e6;
    --content-width: 1120px;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    font-size: 16px;
    line-height: 1.65;
}

a {
    color: var(--blue);
    text-underline-offset: 4px;
}

a:hover {
    text-decoration-thickness: 2px;
}

a:focus-visible {
    outline: 3px solid #ee8e52;
    outline-offset: 4px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.15;
}

h1,
h2 {
    letter-spacing: -0.04em;
}

.skip-link {
    position: absolute;
    z-index: 5;
    top: 8px;
    left: 8px;
    padding: 8px 12px;
    transform: translateY(-150%);
    color: var(--paper);
    background: var(--deep-blue);
}

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

.site-header {
    width: 100%;
    min-height: 108px;
    padding: 14px max(24px, calc((100% - var(--content-width)) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background:
        linear-gradient(90deg, rgba(9, 31, 51, 0.98), rgba(9, 31, 51, 0.84)),
        url("../images/YT_Banner_2022V3.png") center 55% / cover;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-decoration: none;
    white-space: nowrap;
}

.brand img {
    width: 128px;
    height: 128px;
    margin: -25px -10px -25px -14px;
    object-fit: contain;
    filter: invert(1);
    mix-blend-mode: screen;
}

.brand {
    gap: 12px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    line-height: 1.05;
    letter-spacing: 0.08em;
}

.brand strong {
    display: block;
    margin-top: 5px;
    color: #c6e8f7;
    font-size: 29px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.brand strong,
.footer-brand strong {
    font-weight: 800;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 24px);
}

.site-nav a {
    color: #e3eef5;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.site-nav a[aria-current="page"] {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: #80c9e7;
}

.site-nav .nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #80c9e7;
    border-radius: 2px;
    color: #d9f1fc;
}

.site-nav .nav-cta:hover {
    color: var(--deep-blue);
    background: #c6e8f7;
}

.featured-events {
    padding: 14px 0 18px;
    border-top: 4px solid #80c9e7;
    color: var(--paper);
    background: #0b2339;
}

.featured-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-bottom: 10px;
}

.featured-heading h2 {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.featured-heading .text-link {
    color: #b2dff2;
    font-size: 12px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.featured-note {
    margin: 0 0 10px;
    color: #c5ddeb;
    font-size: 12px;
    line-height: 1.4;
}

.featured-event {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 14px 18px;
    border-left: 4px solid #ff626b;
    color: var(--paper);
    background: linear-gradient(120deg, #244460, #17344e);
    text-decoration: none;
}

.featured-event-recent {
    border-color: #80c9e7;
    background: linear-gradient(120deg, #183d50, #123044);
}

.featured-event.event-ended {
    border-color: #80c9e7;
}

.featured-event:hover {
    outline: 1px solid #80c9e7;
    outline-offset: -1px;
}

.featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 12px;
    color: #c5ddeb;
    font-size: 11px;
    line-height: 1.4;
}

.featured-meta > span {
    color: #fff;
    font-weight: 600;
}

.featured-event h3 {
    margin: 0;
    max-width: 440px;
    font-size: 23px;
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.featured-action {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    color: #c5ddeb;
    font-size: 12px;
    font-weight: 400;
}

.featured-action > span[aria-hidden] {
    color: #fff;
    font-size: 20px;
    line-height: 1;
}

.featured-event:hover .featured-action {
    text-decoration: underline;
}

.featured-details {
    padding-top: 36px;
    padding-bottom: 40px;
}

.featured-details > h1 {
    margin-bottom: 24px;
    font-size: clamp(32px, 4vw, 44px);
}

.featured-detail {
    padding: 24px 0;
    border-top: 1px solid var(--line);
    scroll-margin-top: 20px;
}

.featured-detail h2 {
    max-width: 850px;
    margin-bottom: 14px;
    font-size: clamp(24px, 3vw, 32px);
}

.featured-detail > p:not(.card-label) {
    max-width: 800px;
    color: var(--muted);
}

.event-update {
    padding: 14px 18px;
    border-left: 3px solid var(--red);
    background: var(--pale-blue);
    font-size: 14px;
}

.hero {
    position: relative;
    min-height: 470px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--paper);
    background-color: var(--deep-blue);
    background-image:
        linear-gradient(90deg, rgba(9, 31, 51, 0.92) 0%, rgba(9, 31, 51, 0.76) 50%, rgba(9, 31, 51, 0.2) 100%),
        url("../images/YT_Banner_2022V3.png");
    background-position: center, 58% 51%;
    background-size: cover;
}

.hero-content {
    width: min(calc(100% - 48px), var(--content-width));
    margin: 0 auto;
    padding: 72px 0 88px;
}

.eyebrow {
    margin-bottom: 14px;
    color: #d9eaf5;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.eyebrow-red {
    color: var(--red);
}

.hero h1 {
    max-width: 680px;
    margin-bottom: 18px;
    font-size: clamp(40px, 6vw, 68px);
}

.hero-content > p:not(.eyebrow) {
    max-width: 560px;
    margin-bottom: 28px;
    color: #e1e9ef;
    font-size: 18px;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.button-light {
    color: var(--deep-blue);
    background: var(--paper);
}

.button-light:hover {
    background: #eaf2f7;
}

.text-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.text-link-light {
    color: var(--paper);
}

.hero-caption {
    position: absolute;
    right: 24px;
    bottom: 8px;
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 11px;
}

.section-wrap {
    width: min(calc(100% - 48px), var(--content-width));
    margin: 0 auto;
}

.intro {
    max-width: 900px;
    padding-top: 94px;
    padding-bottom: 82px;
    text-align: center;
}

.intro h2,
.section-heading h2,
.stories-copy h2 {
    margin-bottom: 18px;
    font-size: clamp(30px, 4vw, 42px);
}

.intro-copy {
    max-width: 760px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 18px;
}

.intro-link {
    margin-top: 20px;
}

.about-mission {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
    padding-top: 64px;
    padding-bottom: 48px;
}

.about-mission h2,
.organizers-section > h2 {
    margin-bottom: 16px;
    font-size: clamp(30px, 4vw, 40px);
}

.about-mission > div:last-child,
.organizer-note,
.organizer-profile p {
    color: var(--muted);
}

.organizers-section {
    padding-bottom: 80px;
}

.organizer-note {
    max-width: 760px;
    margin-bottom: 28px;
    font-size: 14px;
}

.organizer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.organizer-profile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 20px;
    border-top: 2px solid var(--line);
}

.organizer-portrait {
    display: block;
    width: 128px;
    height: 128px;
    margin-bottom: 14px;
    border: 2px solid var(--blue);
    border-radius: 10px;
    object-fit: cover;
}

.organizer-profile h3 {
    margin-bottom: 12px;
    font-size: 22px;
}

.organizer-profile p {
    margin-bottom: 16px;
    font-size: 15px;
}

.organizer-profile .text-link {
    margin-top: auto;
}

.content-list {
    padding-top: 48px;
    padding-bottom: 72px;
}

.content-list > .empty-state {
    margin: 0 auto;
}

.recording-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.recording-card h3 {
    margin: 18px 0 12px;
    font-size: 24px;
}

.recording-card h3 a,
.story-listing h2 a {
    color: var(--ink);
    text-decoration: none;
}

.recording-card h3 a:hover,
.story-listing h2 a:hover {
    text-decoration: underline;
}

.recording-card p,
.story-listing > p:not(.card-label) {
    color: var(--muted);
}

.recording-thumbnail {
    position: relative;
    display: block;
    color: #fff;
    background: var(--deep-blue);
}

.recording-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.recording-thumbnail > span {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 12px;
    background: #102b46;
    font-size: 14px;
    font-weight: 700;
}

.article-body {
    max-width: 800px;
    padding-top: 40px;
    padding-bottom: 72px;
    overflow-wrap: anywhere;
}

.article-body h2 {
    margin-top: 32px;
    font-size: 28px;
}

.article-body p,
.article-body li {
    color: var(--muted);
}

.article-body img {
    max-width: 100%;
    height: auto;
}

.recording-watch {
    display: block;
    margin-bottom: 28px;
    text-decoration: none;
}

.recording-watch img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin-bottom: 14px;
}

.story-listing {
    max-width: 800px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.story-listing h2,
.home-recordings h2 {
    font-size: clamp(28px, 3vw, 36px);
}

.home-recordings {
    padding-top: 36px;
    padding-bottom: 64px;
    border-top: 1px solid var(--line);
}

@media (min-width: 721px) and (max-width: 1020px) {
    .site-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .site-nav {
        flex-wrap: wrap;
    }
}

.section-events {
    padding-bottom: 96px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.section-heading h2 {
    margin-bottom: 0;
}

.section-heading > .text-link {
    margin-bottom: 5px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.event-card {
    position: relative;
    min-height: 270px;
    padding: 32px;
    border-top: 4px solid var(--blue);
    background: var(--pale-blue);
}

.event-card-red {
    border-color: var(--red);
    background: #f8f1f0;
}

.card-number {
    position: absolute;
    top: 22px;
    right: 26px;
    color: rgba(20, 92, 145, 0.25);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}

.event-card-red .card-number {
    color: rgba(211, 59, 70, 0.28);
}

.card-label {
    margin-bottom: 10px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.event-card-red .card-label {
    color: #a42e38;
}

.event-card h3 {
    margin-bottom: 12px;
    font-size: 25px;
}

.event-card > p:not(.card-label) {
    max-width: 440px;
    margin-bottom: 18px;
    color: var(--muted);
}

.availability-note {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.community-band {
    color: var(--paper);
    background: var(--deep-blue);
}

.community-inner {
    width: min(calc(100% - 48px), var(--content-width));
    min-height: 260px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 42px;
    padding: 50px 0;
}

.community-inner > div {
    max-width: 700px;
}

.community-inner h2 {
    max-width: 620px;
    margin-bottom: 12px;
    font-size: clamp(28px, 4vw, 42px);
}

.community-inner > div > p:last-child {
    max-width: 620px;
    margin-bottom: 0;
    color: #d9e4ec;
}

.button-outline {
    flex: 0 0 auto;
    border-color: #9dc4df;
    color: var(--paper);
}

.button-outline:hover {
    color: var(--deep-blue);
    background: var(--paper);
}

.stories-section {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 48px;
    padding-top: 90px;
    padding-bottom: 96px;
}

.stories-copy > p:not(.eyebrow) {
    max-width: 520px;
    margin-bottom: 18px;
    color: var(--muted);
}

.stories-art {
    min-height: 250px;
    display: flex;
    align-items: end;
    justify-content: end;
    padding: 24px;
    background:
        linear-gradient(0deg, rgba(12, 41, 66, 0.8), rgba(12, 41, 66, 0.03)),
        url("../images/m365ChicagoGeneral.jpg") center / cover;
}

.stories-art span {
    color: var(--paper);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.25;
    text-align: right;
}

.site-footer {
    padding: 38px 24px 20px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.footer-brand {
    justify-content: center;
}

.site-footer > p:not(.copyright) {
    margin: 8px 0 20px;
    color: var(--muted);
    font-size: 13px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 24px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}

.social-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    vertical-align: -4px;
}

.copyright {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.page-hero {
    padding: 72px max(24px, calc((100% - var(--content-width)) / 2)) 68px;
    color: var(--paper);
    background:
        linear-gradient(110deg, rgba(9, 31, 51, 0.96), rgba(16, 43, 70, 0.79)),
        url("../images/YT_Banner_2022V3.png") center / cover;
}

.page-hero h1,
.page-hero h2 {
    max-width: 790px;
    margin-bottom: 16px;
    font-size: clamp(38px, 5vw, 58px);
}

.page-hero > p:last-child {
    max-width: 650px;
    margin-bottom: 0;
    color: #e1e9ef;
    font-size: 17px;
}

.event-formats {
    padding-top: 52px;
    padding-bottom: 88px;
}

.format-card {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 26px;
    padding: 38px 0;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 20px;
}

.format-card:first-child {
    padding-top: 14px;
}

.format-mark {
    color: var(--blue);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -0.08em;
    line-height: 1;
}

.format-card-accent .format-mark {
    color: var(--red);
}

.format-card h2 {
    margin-bottom: 14px;
    font-size: 32px;
}

.format-card > div:last-child > p:not(.eyebrow) {
    max-width: 760px;
    margin-bottom: 18px;
    color: var(--muted);
}

.format-details {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 20px;
    color: var(--ink);
}

.format-details li::marker {
    color: var(--red);
}

.event-status {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 30px;
    padding: 22px 24px;
    background: var(--pale-blue);
}

.event-status p {
    flex: 1;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.event-status p strong {
    color: var(--ink);
}

.status-dot {
    width: 11px;
    height: 11px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--red);
}

.button-dark {
    color: var(--paper);
    background: var(--blue);
}

.button-dark:hover {
    background: var(--deep-blue);
}

.empty-state {
    max-width: 720px;
    padding-top: 70px;
    padding-bottom: 100px;
    text-align: center;
}

.empty-mark {
    display: block;
    margin-bottom: 16px;
    color: var(--red);
    font-size: 46px;
    line-height: 1;
}

.empty-state h2 {
    margin-bottom: 14px;
    font-size: clamp(30px, 4vw, 42px);
}

.empty-state > p:not(.eyebrow) {
    margin-bottom: 24px;
    color: var(--muted);
}

@media (max-width: 720px) {
    .site-header {
        width: 100%;
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 12px 18px 14px;
    }

    .brand img {
        width: 112px;
        height: 112px;
        margin: -22px -8px -22px -12px;
    }

    .brand {
        font-size: 17px;
    }

    .brand strong {
        font-size: 25px;
    }

    .site-nav {
        width: 100%;
        flex-wrap: wrap;
        gap: 10px 20px;
    }

    .site-nav a {
        font-size: 13px;
    }

    .site-nav .nav-cta {
        padding: 7px 10px;
    }

    .featured-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .featured-events {
        padding-top: 12px;
        padding-bottom: 14px;
    }

    .featured-event {
        gap: 4px;
        padding: 10px 12px;
    }

    .featured-event h3 {
        font-size: 20px;
    }

    .featured-meta {
        font-size: 10px;
    }

    .about-mission,
    .organizer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-mission {
        padding-top: 40px;
        padding-bottom: 24px;
    }

    .hero {
        min-height: 450px;
        background-position: center, 63% center;
    }

    .hero-content,
    .section-wrap,
    .community-inner {
        width: min(calc(100% - 36px), var(--content-width));
    }

    .hero-content {
        padding: 58px 0 76px;
    }

    .hero-content > p:not(.eyebrow) {
        font-size: 16px;
    }

    .hero-caption {
        left: 18px;
        right: 18px;
        text-align: right;
    }

    .intro {
        padding-top: 68px;
        padding-bottom: 60px;
    }

    .intro-copy {
        font-size: 16px;
    }

    .section-events {
        padding-bottom: 68px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .card-grid,
    .stories-section,
    .recording-grid {
        grid-template-columns: 1fr;
    }

    .event-card {
        min-height: 0;
        padding: 26px 24px;
    }

    .community-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
        padding: 42px 0;
    }

    .stories-section {
        gap: 28px;
        padding-top: 68px;
        padding-bottom: 72px;
    }

    .stories-art {
        min-height: 200px;
    }

    .page-hero {
        padding: 52px 18px 48px;
    }

    .event-formats {
        padding-top: 34px;
        padding-bottom: 64px;
    }

    .format-card {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 14px;
        padding: 30px 0;
    }

    .format-mark {
        font-size: 36px;
    }

    .format-card h2 {
        font-size: 27px;
    }

    .event-status {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 12px;
        padding: 18px;
    }

    .event-status p {
        flex-basis: calc(100% - 28px);
    }

    .event-status .button {
        margin-left: 23px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
