:root {
    --primary: #5E915C;
    --primary-10: rgba(94, 145, 92, 0.1);
    --primary-20: rgba(94, 145, 92, 0.2);
    --secondary: #013830;
    --neutral-100: #fff;
    --neutral-150: #fafafa;
    --neutral-200: #EDEDED;
    --neutral-300: #ddd;
    --neutral-400: #bbb;
    --neutral-500: #888;
    --neutral-600: #666;
    --neutral-700: #444;
    --neutral-800: #222;
    --neutral-900: #000;
    --neutral-cool-dark: #7E8A97;
    --neutral-warm: #E7DEC8;
    --accent: #FFE971;
    --nav-bg-color: var(--neutral-100);
    --divider: #eeeeeeee;

    --system-ui: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";

    --fs-title: 5rem;
    --fs-h1: 3rem;
    --fs-h2: 2.5rem;
    --fs-h3: 1.8rem;
    --fs-h4: 1.5rem;
    --fs-text: 1.2rem;
    --fs-primary: 1rem;
    --fs-small: 0.9rem;

    --lh-text: 1.6;

    --fw-xstrong: 700;
    --fw-strong: 500;
    --fw-regular: 400;
    --fw-thin: 200;

    --background: var(--neutral-200);

    --footer-bg-color: var(--neutral-100);
}

/* https://piccalil.li/blog/a-modern-css-reset */

/* Box sizing rules */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove default margin */
body,
figure,
blockquote,
dl,
dd,
ul {
    margin: 0;
    padding: 0;
}

ol {
    padding-inline: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
    list-style: none;
}

/* Set core root defaults */
html:focus-within {
    scroll-behavior: smooth;
}

/* Set core body defaults */

html,
body {
    height: 100%;
}

body {
    text-rendering: optimizeSpeed;
    line-height: var(--lh-text);
}

/* A elements that don't have a class get default styles */
a:not([class]) {
    text-decoration-skip-ink: auto;
    text-decoration: none;
}

/* Make images easier to work with */
img,
picture,
svg {
/ / max-width: 100 %;
    display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
    font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
        scroll-behavior: auto !important;
    }
}


body {
    margin: 0;
    padding: 0;
    font-family: var(--system-ui);
}

nav {
    background-color: transparent;
    position: absolute;
    z-index: 10;
    width: 100%;
}

.nav-placeholder {
    position: absolute;
    height: 4rem;
    width: 1px;
}

.nav-fixed {
    position: fixed;
}

.nav-hide {
    opacity: 0;
    transition: opacity 300ms ease-in-out;
}

.nav-show {
    opacity: 1;
    transition: opacity 100ms ease-in-out;
}

nav #nav-inner {
    background-color: white;
    margin: auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-short {
    width: 52rem;
    height: 4rem;
    border-radius: 0 0 1rem 1rem;
    transition: width 300ms ease-in, border-radius 500ms ease-out;
}

.nav-full {
    width: 100%;
    height: 4.5rem;
    border-radius: 0;
    transition: width 300ms ease-in, height 300ms ease-in, border-radius 500ms ease-in;
}

nav #logo {
    height: 2.5rem;
    width: 8rem;
    cursor: pointer;
    position: relative;
    top: 0;
    left: 0;
    transition: background .15s ease-out, top .1s ease-out, left .1s ease-out, filter 0.2s ease-out;
    background: var(--img-logo);
}

nav #logo:hover {
    top: -0.05rem;
    left: -0.1rem;
    filter: drop-shadow(0.1rem 0.1rem 0.1rem #ddd);
    background: var(--char-logo);
}

#top-nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 2rem;
}

#top-nav ul li {
    list-style: none;
    margin-right: 1.5rem;
}

#top-nav ul li a {
    color: #666;
    height: 100%;
    box-shadow: none;
    display: inline-block;
    transition: box-shadow .2s ease-out, text-shadow .3s ease-out, padding .2s ease-out;
}

#top-nav ul li a:hover {
    color: #013830;
    background-color: #eee;
    padding: 1.3rem;
    box-shadow: 0 0.5rem 0 0 #ffe971;
    text-shadow: 0.1rem 0.1rem 0.5rem rgba(0, 0, 0, 0.15);
}

#top-nav ul li img {
    height: 1.5rem;
    opacity: 0.6;
    position: relative;
    top: 0.1rem;
}

#top-nav #search {
    float: right;
    opacity: 0.5;
}

.nav-toggle {
    display: none;
}

footer {
    background-color: var(--footer-bg-color);
    margin: 1rem auto;
    width: min(95vw, 68rem);
    position: relative;
    color: #aaa;
    display: flex;
    justify-content: space-between;
    align-items: end;
    font-size: var(--fs-small);
    font-weight: 200;
}

.footer-left ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr));
    width: 13rem;
    margin-left: 1rem;
}

.footer-left ul li {
    list-style: none;
    white-space: nowrap;
}

.footer-middle #copyright {
    text-align: center;
}

footer a {
    color: inherit;
    display: inline-block;
    padding: .5rem;
    margin: -.5rem;
    border-radius: 2rem;
}

footer a:hover {
    color: white;
    background-color: #013830;
    transition: background-color .3s ease-out;
}

footer #beian[data-url^="#"] {
    display: none;
}

.footer-middle {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-right {
    display: grid;
    grid-template-rows: 1fr 1.5fr 1fr;
    grid-template-columns: 1fr 7fr 1fr;
    align-items: end;
}

.event-title {
    grid-row: 1/2;
    grid-column: 2/3;
    justify-self: end;
    font-size: var(--fs-small);
}

.event-name {
    grid-row: 2/3;
    grid-column: 2/3;
    font-size: var(--fs-text);
    font-weight: var(--fw-regular);
    color: var(--secondary);
    transform: scale(1, 1);
    transform-origin: top;
    transition: transform .1s ease-out;
}

.event-dl {
    grid-row: 3/4;
    grid-column: 2/3;
    font-size: var(--fs-primary);
    font-weight: var(--fw-thin);
    color: var(--primary);
    transform: scale(1, 1);
    transform-origin: top;
    transition: transform .1s ease-out;
}

.hidden {
    transform: scale(1, 0);
    transform-origin: bottom;
    transition: transform .1s ease-out;
}

.arrow {
    --border-color: var(--neutral-300);
    --border-width: calc(var(--fs-text) * 0.1);
    --rotation: 45deg;

    border-left: var(--border-width) solid var(--border-color);
    border-bottom: var(--border-width) solid var(--border-color);
    width: 1rem;
    height: 1rem;
    padding: .5rem;
    margin: -.5rem;
    border-radius: var(--border-width);
    display: inline-block;
    transform: rotate(var(--rotation));
    cursor: pointer;
    position: relative;
    bottom: var(--fs-text);
}

.arrow:hover {
    --border-color: var(--accent);
    --border-width: calc(var(--fs-text) * 0.3);
}

.arrow.left {
    --rotation: 45deg;
    grid-row: 2/4;
    grid-column: 1/2;
}

.arrow.right {
    --rotation: 225deg;
    grid-row: 2/4;
    grid-column: -2/-1;
    left: 1rem;
}

@media screen and (max-width: 800px) {
    /* Navbar */
    #nav-inner {
        width: 100%;
        border-radius: 0;
    }

    #top-nav ul {
        position: absolute;
        width: 100%;
        height: auto;
        top: 100%;
        left: 0;
        margin: 0;
        display: block;
        transform: scale(1, 0);
        transform-origin: top;
        transition: transform 400ms ease-in-out;
        background-color: var(--nav-bg-color);
    }

    #top-nav ul a {
        opacity: 0;
    }

    .nav-toggle:checked ~ #nav-links {
        transform: scale(1, 1);
    }

    .nav-toggle:checked ~ #nav-links a {
        opacity: 1;
        transition: opacity 250ms ease-in-out 250ms;
    }

    #top-nav ul li {
        padding: 0.6rem 2.5rem;
        border-top: 1px solid var(--divider);
    }

    #top-nav ul li a:hover {
        width: 100%;
    }

    .nav-toggle {
        position: absolute !important;
        top: -9999px !important;
        left: -9999px !important;
    }

    .nav-toggle:focus ~ .nav-toggle-label {
        outline: 3px solid rgba(0, 100, 250, .5);
    }

    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        background: var(--secondary);
        height: 2px;
        width: 2em;
        border-radius: 2px;
        position: relative;
    }

    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        content: '';
        position: absolute;
    }

    .nav-toggle-label span::before {
        bottom: 7px;
    }

    .nav-toggle-label span::after {
        top: 7px;
    }

    /* footer */
    footer {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }

    footer > * {
        margin: 1rem auto;
    }

    .footer-left {
        width: 100%;
    }

    .footer-left > ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
        width: 100%;
        margin-left: 0;
    }

    .footer-right {
        order: 1;
        margin-bottom: 3rem;
    }

    .footer-left {
        order: 2;
        margin: 0;
    }

    .footer-middle {
        order: 3;
    }
}