:root {
    --sage-dark: #34503f;
    --sage: #4f6f5b;
    --sage-light: #eef3ec;
    --terracotta: #b45a3c;
    --terracotta-dark: #8f4329;
    --cream: #fbf6ee;
    --peach: #f6e3d3;
    --text: #2b2b2b;
    --muted: #555555;
    --heading: Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background: #fff;
    font-family: "Atkinson Hyperlegible", Verdana, Arial, sans-serif;
    font-size: 19px;
    line-height: 1.7;
}

a {
    color: var(--sage-dark);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--terracotta-dark);
}

:focus-visible {
    outline: 3px solid var(--terracotta);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 8px;
    top: -60px;
    z-index: 100;
    padding: 10px 18px;
    border-radius: 8px;
    background: var(--sage-dark);
    color: #fff;
    text-decoration: none;
    transition: top 0.15s ease;
}

.skip-link:focus {
    top: 8px;
    color: #fff;
}

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

/* masthead: navigation + text laid over the banner illustration */
.masthead {
    background:
        linear-gradient(90deg, rgba(251, 246, 238, 0.95) 0%, rgba(251, 246, 238, 0.8) 38%, rgba(251, 246, 238, 0) 62%),
        var(--cream) url("images/banner.png") right center / cover no-repeat;
    border-bottom: 1px solid #eadfce;
}

.topnav {
    max-width: 1140px;
    margin: 0 auto;
    padding: 22px 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px 24px;
}

.topnav .brand {
    font-family: var(--heading);
    font-weight: 700;
    font-size: 19px;
    color: var(--sage-dark);
    text-decoration: none;
}

.topnav nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
}

.topnav nav a {
    font-size: 17px;
    color: var(--text);
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 3px solid transparent;
}

.topnav nav a:hover,
.topnav nav a[aria-current="page"] {
    color: var(--sage-dark);
    border-bottom-color: var(--terracotta);
}

.hero {
    max-width: 1140px;
    margin: 0 auto;
    min-height: clamp(420px, 38vw, 620px);
    padding: 40px 30px 70px;
}

.hero-text {
    max-width: 600px;
}

.hero h1 {
    font-family: var(--heading);
    font-weight: 700;
    font-size: 50px;
    line-height: 1.15;
    color: var(--sage-dark);
    margin: 0;
    white-space: nowrap;
}

.hero .subtitle {
    font-size: 23px;
    line-height: 1.45;
    margin: 18px 0 16px;
}

.hero .meta {
    color: var(--muted);
    margin: 0 0 26px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-block;
    min-height: 52px;
    padding: 12px 26px;
    border-radius: 10px;
    border: 2px solid var(--terracotta);
    background: var(--terracotta);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.btn:hover {
    background: var(--terracotta-dark);
    border-color: var(--terracotta-dark);
    color: #fff;
}

.btn.outline {
    background: transparent;
    border-color: var(--sage-dark);
    color: var(--sage-dark);
}

.btn.outline:hover {
    background: var(--sage-light);
    color: var(--sage-dark);
}

.hero.short {
    min-height: 0;
    padding-top: 30px;
    padding-bottom: 60px;
}

.hero.short > * {
    max-width: 600px;
}

/* sections */
section.block {
    padding: 72px 0;
}

section.alt {
    background: var(--sage-light);
}

.wrap {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 30px;
}

h2 {
    font-family: var(--heading);
    font-weight: 700;
    font-size: 34px;
    line-height: 1.25;
    color: var(--sage-dark);
    margin: 0 0 28px;
}

h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    margin-top: 14px;
    border-radius: 2px;
    background: var(--terracotta);
}

h2.center {
    text-align: center;
}

h2.center::after {
    margin-left: auto;
    margin-right: auto;
}

ul,
ol {
    padding-left: 34px;
}

li {
    margin-bottom: 10px;
}

h3.theme {
    font-family: var(--heading);
    font-weight: 700;
    font-size: 23px;
    line-height: 1.35;
    color: var(--sage-dark);
    margin: 36px 0 12px;
}

h2 + h3.theme {
    margin-top: 0;
}

h3.theme span {
    display: block;
    font-size: 16px;
    color: var(--terracotta-dark);
    margin-bottom: 2px;
}

.callout {
    border-left: 5px solid var(--sage);
    background: var(--sage-light);
    border-radius: 0 10px 10px 0;
    padding: 14px 22px;
    margin: 0 0 28px;
}

table.dates {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

table.dates th,
table.dates td {
    text-align: left;
    padding: 10px 16px;
    font-size: 18px;
    line-height: 1.4;
    border-bottom: 1px solid #dfe6dd;
}

table.dates tr:last-child th,
table.dates tr:last-child td {
    border-bottom: 0;
}

table.dates th {
    font-weight: normal;
    width: 55%;
}

table.dates td {
    font-weight: 700;
    color: var(--sage-dark);
}

.dates-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 36px;
}

.dates-col {
    flex: 1 1 320px;
    min-width: 0;
}

.dates-group {
    font-family: var(--heading);
    font-size: 20px;
    margin: 0 0 10px;
}

.note {
    font-style: italic;
    color: var(--muted);
}

/* call for participation */
#participation .wrap {
    max-width: 760px;
}

#participation p,
#participation li,
#participation .callout {
    line-height: 1.55;
}

#participation h2 {
    font-size: 24px;
    margin: 40px 0 12px;
}

#participation h2:first-of-type {
    margin-top: 24px;
}

.submission-options li {
    margin-bottom: 18px;
}

.submission-options .btn,
.btn.pill {
    display: inline-flex;
    align-items: center;
    min-height: 0;
    margin-top: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--terracotta);
    background: transparent;
    color: var(--terracotta);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    transition: background 0.15s ease, color 0.15s ease;
}

.submission-options .btn:hover,
.btn.pill:hover {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: #fff;
}

/* organizers */
#organizers .wrap {
    max-width: 1080px;
}

.organizers {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 36px 20px;
    text-align: center;
}

.organizers li {
    margin: 0;
    width: 150px;
}

.avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 14px;
    border-radius: 50%;
    border: 6px solid #fff;
    box-shadow: 0 0 0 2px var(--peach);
    background: var(--peach);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--heading);
    font-size: 40px;
    font-weight: 700;
    color: var(--terracotta);
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

.organizers b {
    display: block;
    font-family: var(--heading);
    font-size: 16px;
    line-height: 1.2;
    margin-bottom: 2px;
}

.organizers span {
    display: block;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.2;
}

/* program */
.session {
    border: 2px solid var(--sage);
    border-radius: 14px;
    overflow: hidden;
    margin: 0 0 50px;
    background: #fff;
}

.session-head {
    background: var(--sage-dark);
    color: #fff;
    padding: 24px 30px;
}

.session.second {
    border-color: var(--terracotta);
}

.session.second .session-head {
    background: var(--terracotta-dark);
}

.session-head .session-num {
    display: inline-block;
    margin: 0 0 6px;
    padding: 2px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 16px;
    font-weight: 700;
}

.session-head h2 {
    margin: 0 0 8px;
    font-family: var(--heading);
    font-size: 27px;
    line-height: 1.3;
    color: inherit;
}

.session-head h2::after {
    display: none;
}

.session-head p {
    margin: 0;
}

ol.activities {
    list-style: none;
    margin: 0;
    padding: 0 30px;
}

ol.activities li {
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 22px 0;
    border-bottom: 1px solid #e3e3e3;
}

ol.activities li:last-child {
    border-bottom: 0;
}

ol.activities .time {
    flex: 0 0 84px;
    align-self: flex-start;
    text-align: center;
    padding: 2px 0;
    border-radius: 8px;
    background: var(--sage-light);
    color: var(--sage-dark);
    font-weight: 700;
    white-space: nowrap;
}

.session.second ol.activities .time {
    background: var(--peach);
    color: var(--terracotta-dark);
}

ol.activities b {
    display: block;
    font-size: 20px;
}

ol.activities p {
    margin: 4px 0 0;
    color: #444;
}

.todo {
    background-color: #fff3b0;
    border-bottom: 2px dashed #b39b00;
    color: var(--text);
}

footer {
    background: var(--sage-dark);
    color: #eef3ec;
}

footer a {
    color: #fff;
}

footer .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 20px;
    max-width: none;
    margin: 0;
    padding: 34px 30px;
    font-size: 17px;
}

/* narrower screens: keep the text on the banner, fading top-to-bottom so the scene shows below the buttons */
@media (max-width: 1000px) {
    .masthead {
        background:
            linear-gradient(180deg, rgba(251, 246, 238, 0.95) 0%, rgba(251, 246, 238, 0.88) 55%, rgba(251, 246, 238, 0.1) 88%),
            var(--cream) url("images/banner.png") 72% center / cover no-repeat;
    }

    .hero {
        min-height: 0;
        padding-bottom: 200px;
    }

    .hero.short {
        padding-bottom: 160px;
    }

    .organizers {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 820px) {

    .hero h1 {
        font-size: 38px;
        white-space: normal;
    }

    .hero .subtitle {
        font-size: 21px;
    }

    .topnav {
        padding: 18px 20px;
    }

    .hero,
    .wrap {
        padding-left: 20px;
        padding-right: 20px;
    }

    section.block {
        padding: 52px 0;
    }

    h2 {
        font-size: 29px;
    }

    .organizers {
        grid-template-columns: 1fr 1fr;
    }

    .avatar {
        width: 124px;
        height: 124px;
        font-size: 32px;
    }

    ol.activities {
        padding: 0 20px;
    }

    ol.activities li {
        flex-direction: column;
        gap: 8px;
    }

    .session-head {
        padding: 20px;
    }
}
