@font-face {
    font-family: 'OpenDyslexic';
    src: url('https://cdn.jsdelivr.net/npm/open-dyslexic@1.0.3/woff/OpenDyslexic-Regular.woff') format('woff');
    font-style: normal;
    font-weight: 400;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'OpenDyslexic', Arial, sans-serif;
    background: #f7f9f6;
    color: #1f2923;
}

#content-outer-container {
    margin-top: 2.4rem;
    display: flex;
    align-items: center;
    flex-direction: column;
}

p {
    line-height: 1.55;
}

a {
    color: #175f8c;
}

strong {
    font-weight: 700;
}

h1,
h2,
h3 {
    line-height: 1.2;
    margin-top: 0;
}


.layout-nav-shell {
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-image {
    width: 100%;
    max-height: var(--header-max-height);
    overflow: hidden;
}

.header-image img {
    width: 100%;
    height: 100%;
    max-height: var(--header-max-height);
    object-fit: cover;
    object-position: center calc(50% + var(--header-offset));
    display: block;
}

.sfr-article {
    max-width: 105rem;
    width: 100%;
}

.sfr-article.desktop-framed {
    position: relative;
}

.sfr-article.desktop-framed::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--article-background-image);
    background-size: cover;
    background-position: center;
    filter: blur(18px);
    opacity: 0.35;
    transform: scale(1.08);
    z-index: 0;
}

.article-body-wrapper {
    position: relative;
    z-index: 1;
    padding: 1rem;
}

.desktop-framed .article-body-wrapper {
    margin: 0 auto;
    width: 90%;
    background: rgba(255, 255, 255, 0.92);
}

.distributed-content {
    display: grid;
    gap: 1rem;
}

.paragraph-with-image {
    display: grid;
    grid-template-columns: 1fr 6em;
    gap: 1rem;
    align-items: start;
}

.paragraph-with-image.image-left {
    grid-template-columns: 6em 1fr;
}

.paragraph-with-image.image-left .paragraph-html {
    order: 2;
}

.inline-supplementary-image {
    width: 6em;
    height: 6em;
    object-fit: cover;
    border-radius: 0.5rem;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8em, 1fr));
    gap: 0.75rem;
    max-height: 50vh;
}

.image-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
    overflow: hidden;
}

.event-link-card-list {
    display: grid;
    gap: 1rem;
}

.event-link-card {
    border-radius: 1rem;
    background: #fff;
    display: grid;
    grid-template-columns: 1fr minmax(8rem, 12rem);
    gap: 1rem;
    padding: 1rem;
    color: inherit;
}

.event-link-title,
.event-link-url,
.event-link-image-wrap {
    text-decoration: none;
}

.event-link-url {
    word-break: break-all;
    text-decoration: underline;
}

.event-link-card img {
    width: 100%;
    height: 100%;
    max-height: 10rem;
    object-fit: cover;
    border-radius: 0.75rem;
}

.common-main-event-info {
    margin-top: 2rem;
    z-index: 11;
}

.section-separator {
    height: 0.5rem;
    background: linear-gradient(90deg, #8f6b21, #e8cf79, #8f6b21);
}

.common-main-event-info-links {
    display: grid;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #dfeeda;
    border-bottom: 1px solid rgba(40, 65, 49, 0.2);
    font-size: 0.9em;
}

.common-main-event-info-links a div {
    color: #1f2923;
    text-decoration: none;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    display: inline-block;
}

common-main-event-info-subheader-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
}

.common-main-event-info-body {
    background: #dfeeda;
    padding: 1.25rem;
    display: grid;
    overflow-y: scroll;
    max-height: 65vh;
    gap: 2rem;
}

.common-main-event-section {
    scroll-margin-top: 5rem;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.layout-header {
    width: 100%;
    background: #284131;
}

.layout-nav-shell {
    display: flex;
    flex-direction: column;
    position: sticky;
}

.layout-logo-slot {
    aspect-ratio: 1 / 1;
    border: 2px solid rgba(00, 055, 00, 0.7);
    border-radius: 4rem;
    position: absolute;
    left: .9rem;
    top: 0.5rem;
    z-index: 2;
}

.layout-logo {
    width: 5.7rem;
    aspect-ratio: 1 / 1;
    border-radius: 4rem;
    z-index: 2;
    pointer-events: none;
}

.nav-toggle-tab {
    align-self: flex-end;
    border: 0;
    background: #355742;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-bottom-left-radius: 0.5rem;
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

.content {
    flex: 1;
    width: 100%;
    padding: 1rem;
}

.layout-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem;
    background: #eaf4e3;
    z-index: 9;
}

.layout-footer > div {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    text-align: center;
}

.layout-footer a {
    text-decoration: none;
    font-size: 1rem;
}

.footer-gap {
    width: 2ch;
}

.main-nav {
    width: min(80%, 70rem);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    row-gap: 0.5rem;
    padding: 0.75rem 0rem 0.75rem 3.5rem;
}

.nav-item-link {
    color: #f6f6f6;
    text-decoration: none;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
}

.nav-item-link.active {
    background: rgba(255, 255, 255, 0.2);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown summary {
    list-style: none;
    cursor: pointer;
}

.nav-dropdown-list {
    position: absolute;
    display: grid;
    gap: 0.3rem;
    background: #284131;
    padding: 0.6rem;
    border-radius: 0.6rem;
    min-width: 14rem;
    z-index: 2;
}

.home-article {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 13.5rem);
    margin: 0, 2.1rem;
}

.home-introduction {
    text-align: center;
}

.home-article-card-container {
    display: grid;
    flex: 1;
    gap: 0.6rem;
    min-height: 0;
    grid-auto-rows: minmax(0, 1fr);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
    width: 89rem;
    height: 100%;
    max-width: 97vw;
}

.home-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    order: 3;
    text-align: center;
}

.home-card-link:first-child {
    grid-row: span 3;
    order: 1;
}

.home-card-link:not(:first-child) {
    grid-column: 1 / -1;
    padding-left: .8vw;
    padding-right: .8vw;
}

.home-card-link.wee-events-card-link {
    grid-column: auto;
    grid-row: span 3;
    order: 2;
    padding: 0;
}

.home-card {
    height: 100%;
    border-radius: 2.2rem;
    overflow: hidden;
    background-image: var(--home-card-image);
    background-size: cover;
    background-position: center;
    display: grid;
    align-items: end;
}

.home-card-overlay {
    background: rgba(28, 53, 35, 0.83);
    color: #f8fffb;
    padding: 0.75rem 1rem;
    min-height: 33%;
}

.home-card-overlay h2 {
    margin: 0;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.home-card-overlay p {
    margin: 0.3rem 0 0;
    font-size: clamp(0.82rem, 1.4vw, 1rem);
}

.wee-events-card-overlay {
    background: rgba(66, 44, 23, 0.83);
}

.discord-card-overlay {
    background: rgba(20, 42, 64, 0.83);
}

.discord-banner-card {
    background-repeat: no-repeat;
    background-size: contain;
}

.home-card-short {
    min-height: clamp(4.3rem, 8vh, 5.6rem);
}

.values-article {
    max-width: 75rem;
}

@media (max-width: 1100px) {
    #content-outer-container {
        margin-top: 0rem;
    }

    .desktop-framed .article-body-wrapper {
        width: 100%;
    }

    .paragraph-with-image,
    .paragraph-with-image.image-left {
        grid-template-columns: 1fr;
    }

    .event-link-card {
        grid-template-columns: 1fr;
    }

    .common-main-event-info-body {
        max-height: 48vh;
    }

    .layout-nav-shell {
        position: relative;
    }

    .layout-logo {
        width: 4.5rem;
    }

    .home-article {
        min-height: calc(100vh - 13.5rem);
        margin: 0;
    }

    .home-article-card-container {
        gap: 0.5rem;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(auto-fit, minmax(6.8rem, 1fr));
    }

    .home-card-link,
    .home-card-link:first-child,
    .home-card-link:not(:first-child),
    .home-card-link.wee-events-card-link {
        grid-column: auto;
        grid-row: auto;
        order: initial;
        padding: 0;
    }

    .home-card {
        border-radius: 1.5rem;
    }

    .home-card-short {
        min-height: 4.2rem;
    }
}

.external-registration-info {
    align-items: center;
    background-color: #f8f1e7;
    border-left: 0.25rem solid #7b4b2a;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin: 1.5rem 0;
    padding: 1rem;
}

.external-registration-countdown {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .external-registration-info {
        align-items: flex-start;
        flex-direction: column;
    }
}
