@font-face {
    font-family: 'DejaVu Sans';
    src: url('../fonts/DejaVuSans.ttf');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'DejaVu Sans';
    src: url('../fonts/DejaVuSans-Bold.ttf');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'DejaVu Sans Mono';
    src: url('../fonts/DejaVuSansMono.ttf');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'DejaVu Serif';
    src: url('../fonts/DejaVuSerif.ttf');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'DejaVu Serif';
    src: url('../fonts/DejaVuSerif-Bold.ttf');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'DejaVu Serif';
    src: url('../fonts/DejaVuSerif-BoldItalic.ttf');
    font-weight: 600;
    font-style: italic;
}

@font-face {
    font-family: 'DejaVu Serif';
    src: url('../fonts/DejaVuSerif-Italic.ttf');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'DejaVu Serif Condensed';
    src: url('../fonts/DejaVuSerifCondensed.ttf');
    font-weight: 400;
    font-style: normal;
}

body {
    font-size: 20px;
    --color-accent: #377653;
    --color-background-1: #323130;
    --color-background-2: #38495a;
    --color-text-accent-1: #6fb08c;
    --color-paper-bg: #ddcaa7;
    --color-paper-fg: #483b31;
    /* http://smoothshadows.com/#djEsMiw1LDAuMDgsMjQsMzIsMCwjMDMwNzEyLCNmM2Y0ZjYsI2ZmZmZmZiwy */
    --soft-shadow: 0px 1px 1px rgba(3, 7, 18, 0.08),
        0px 5px 4px rgba(3, 7, 18, 0.06),
        0px 12px 9px rgba(3, 7, 18, 0.05),
        0px 20px 15px rgba(3, 7, 18, 0.03),
        0px 32px 24px rgba(3, 7, 18, 0.02);
    background: var(--color-background-1);
    max-width: 100%;
    box-sizing: border-box;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    inset: 0;
    color: #ededed;
    font-family: 'DejaVu Sans';
    background: var(--color-background-1);
    max-width: 1650px;
    margin: 0 auto;
}

h1 {
    margin: 1rem 0;
    line-height: 1;
    font-family: 'DejaVu Serif';
    font-weight: 400;
}

aside {
    line-height: 1;
}

svg {
    outline: 1px solid pink;
    height: 200px;
    aspect-ratio: 7/2;
}

.banner {
    min-height: 33vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section {
    display: flex;
    min-height: 400px;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    flex-wrap: wrap;
    gap: 1rem;
}

.accent {
    background: var(--color-accent);
    padding: 100px;
    gap: 5%;
}

.accent h2 {
    position: absolute;
    top: -1.1rem;
    margin: 0;
    padding: 0;
    line-height: 1;
    font-size: 11vw;
    right: 1rem;
}

.grid {
    --grid-color: var(--color-background-2);
    background-image: linear-gradient(var(--grid-color) 1.5px, transparent 1.5px, transparent calc(100% - 1.5px), var(--grid-color) calc(100% - 1.5px)), linear-gradient(90deg, var(--grid-color) 1.5px, transparent 1.5px, transparent calc(100% - 1.5px), var(--grid-color) calc(100% - 1.5px));
    background-size: 50px 50px;
    background-position: center;
    border: 3px solid var(--grid-color);
    margin: 5vmin;
    padding: 50px;
    width: calc(100% - 10vmin);
    align-items: center;
}

.inset {
    background-color: transparent;
    z-index: 0;
    padding: 100px;
}

.inset:after {
    content: '';
    display: block;
    position: absolute;
    inset: 50px;
    background-color: var(--color-background-1);
    z-index: -1;
    border-radius: 50px;
    /* http://smoothshadows.com/#djEsMiw1LDAuMDgsMjQsMzIsMCwjMDMwNzEyLCNmM2Y0ZjYsI2ZmZmZmZiwy */
    box-shadow: var(--soft-shadow);
}

.inset:before {
    content: '';
    background-color: var(--color-background-2);
    inset: 0;
    position: absolute;
    display: block;
    z-index: -2;
}

.page1,
.page2 {
    background: #ebe8e6;
    color: #202020;
    border-radius: 7px;
    position: absolute;
    font-size: min(1.2rem, 3vw);
    font-family: 'DejaVu Serif Condensed';
    box-shadow: var(--soft-shadow);
    max-width: 70vw;
    overflow: hidden;
}

.page1 {
    left: min(80px, 4vw);
    top: -30px;
    padding: 15px;
}

.page2 {
    right: min(40px, 2vw);
    bottom: 0;
    padding: 15px;
}

.page2 cite {
    display: block;
    margin-left: auto;
    text-align: right;
}

.grid .title {
    margin: 0.25em;
}

.grid h2 {
    font-size: 10vw;
    opacity: 0.4;
    font-weight: 200;
    margin: 0;
}

.shop {
    display: block;
}

.shop_item {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    aspect-ratio: 1/1.3;
    flex-shrink: 0;
    border-radius: 50% 50% 0 0 / 35% 35% 0 0;
    box-shadow: inset 15px 10px 12px rgba(0, 0, 0, 0.05), inset -3px 3px 3px rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.05);
    margin: 0 1rem 1rem 0;
    height: 245px;
}

.shop_item img {
    width: 100%;
    height: auto;
}


.top_banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    font-family: monospace;
    font-size: 16px;
    background: var(--color-paper-bg);
    color: var(--color-paper-fg);
    text-decoration: none;
    z-index: 800;
    display: flex;
    align-content: center;
    justify-content: center;
    flex-direction: row;
    box-shadow: var(--soft-shadow);
    gap: 2em;
    padding: 0.75em;
}
.top_banner .underline{
    color:var(--color-background-2);
    text-decoration: underline;
}

.inset h2 {
    font-size: 1rem;
    font-weight: normal;
    margin: 0;
    padding: 0;
}

.temp_notice {
    font-family: monospace;
    font-size: 16px;
    width: 200px;
    height: 200px;
    position: fixed;
    top: 10px;
    right: 10px;
    border-radius: 100%;
    background: var(--color-paper-bg);
    color: var(--color-paper-fg);
    z-index: 700;
    display: flex;
    align-content: center;
    justify-content: center;
    flex-direction: column;
    box-shadow: var(--soft-shadow);
    user-select: none;
}

.temp_notice p {
    width: 141.42;
    margin: auto;
}

.temp_notice strong {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
    margin-top: -1rem;
}

.more_link {
    font-family: monospace;
    font-size: 16px;
    width: 120px;
    height: 120px;
    position: absolute;
    top: 10px;
    right: -10px;
    border-radius: 100%;
    background: var(--color-paper-bg);
    color: var(--color-paper-fg);
    z-index: 500;
    display: flex;
    align-content: center;
    justify-content: center;
    flex-direction: column;
    box-shadow: var(--soft-shadow);
    user-select: none;
}

.more_link span {
    text-align: center;
}

.more_link:hover,
.more_link:focus {
    box-shadow: var(--soft-shadow), inset 0 0 10px rgba(255, 255, 255, 0.9);
    filter: brightness(0.8) contrast(1.4);
}

.event {
    border: 2px solid;
    padding: 1.5rem;
    line-height: 1;
    display: flex;
    flex-direction: column;
}

.event h3 {
    margin: 0;
    line-height: 1;
    font-size: 1.2em;
}

.event time {
    padding-bottom: 0.5rem;
    display: block;
    font-size: calc(1em - 2px);
}

.event address {
    font-size: 1em;
    margin-bottom: 1em;
}

.event .visit {
    margin-top: auto;
    color: var(--color-text-accent-1);
}

.btn {
    background-color: rgba(255, 255, 255, 0.4);
    color: var(--color-background-2);
    padding: 8px 12px;
    font-size: 16px;
    font-family: 'DejaVu Serif';
    font-style: italic;
    font-weight: bold;
    border-radius: 8px;
    border: none;
}

.btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.poetry .btn {
    margin-left: 2rem;
}

.contact {
    justify-content: end;
}

.contact h2 {
    order: 1;
}

.contact_item {
    font-family: monospace;
    font-size: 16px;
    width: 120px;
    height: 120px;
    border-radius: 100%;
    background: var(--color-paper-bg);
    color: var(--color-paper-fg);
    display: flex;
    align-content: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    box-shadow: var(--soft-shadow);
    user-select: none;
}

.contact_item:hover,
.contact_item:focus {
    box-shadow: var(--soft-shadow), inset 0 0 10px rgba(255, 255, 255, 0.9);
    filter: brightness(0.8) contrast(1.4);
}

.contact_item:nth-child(5n) {
    margin-top: -50px;
}

.contact_item:nth-child(5n-1) {
    margin-top: 0;
}

.contact_item:nth-child(5n-2) {
    margin-top: 100px;
}

.contact_item:nth-child(5n-3) {
    margin-top: -50px;
}

.contact_item:nth-child(5n-4) {
    margin-top: 50px;
}

.about h2 {
    position: relative;
    inset: 0;
    font-size: min(11vw, 66px);
}

.about {
    display: block;
}

.grid.poetry {
    --grid-color: #1c5c6b;
    position: relative;
    background-image:
        linear-gradient(var(--grid-color) 1.5px, transparent 1.5px, transparent calc(100% - 1.5px), var(--grid-color) calc(100% - 1.5px)),
        linear-gradient(90deg, var(--grid-color) 1.5px, transparent 1.5px, transparent calc(100% - 1.5px), var(--grid-color) calc(100% - 1.5px));
    background-size: 50px 50px, 50px 50px;
    background-position: center center, center center;
    background-repeat: repeat, repeat;
    z-index: 0;
}

.grid.poetry:after {
    display: block;
    content: '';
    position: absolute;
    inset: 0;
    left: 15%;
    background-image:
        url(/images/starry_2.png), url(/images/starry_1.png);
    background-position: top left, top right;
    background-repeat: no-repeat, no-repeat;
    z-index: -1;
}

.inset.events:after {
    background-image: url(/images/river_1.png);
    background-position: bottom right;
    background-repeat: no-repeat;
}

.accent.about {
    background-image: url(/images/tile_1.png);
    background-position: center center;
    background-size: auto;
    background-repeat: repeat;
}

@media screen and (max-width: 825px) {
    .more_link {
        display: none;
    }

    .poetry .btn {
        font-family: monospace;
        font-size: 16px;
        width: 84px;
        height: 84px;
        position: absolute;
        bottom: calc(66% - 42px);
        right: -10px;
        border-radius: 100%;
        background: var(--color-paper-bg);
        color: var(--color-paper-fg);
        z-index: 500;
        display: flex;
        align-content: center;
        justify-content: center;
        flex-direction: column;
        box-shadow: var(--soft-shadow);
        user-select: none;
    }
}

@media screen and (max-width: 630px) {
    .accent {
        padding: 5vmin;
    }

    .inset {
        padding: 13vmin;
    }

    .inset:after {
        inset: 5vmin;
    }

    .event {
        font-size: min(14px, 4vw);
        padding: 5px;
    }

    .event .visit {
        display: block;
        background-color: var(--color-text-accent-1);
        color: var(--color-background-1);
        padding: 0.5em;
        text-align: center;
        font-weight: 400;
        font-size: 16px;
    }

    .grid h2 {
        font-size: 62px;
        margin: 0.25em 0;
    }

    .page1,
    .page2 {
        text-wrap: balance;
    }

    .page2 {
        bottom: -42px;
    }
}

@media screen and (max-width: 450px) {
    .section {
        min-height: 100vw;
    }

    .accent {
        padding: 5vmin;
    }

    .inset {
        padding: 13vmin;
    }

    .inset:after {
        inset: 5vmin;
    }

    .event {
        font-size: min(14px, 4vw);
        padding: 5px;
    }

    .event .visit {
        display: block;
        background-color: var(--color-text-accent-1);
        color: var(--color-background-1);
        padding: 0.5em;
        text-align: center;
        font-weight: 400;
        font-size: 16px;
    }

    .grid {
        gap: 0;
        padding: 10px;
    }
}

@media screen and (max-width: 370px) {
    .poetry .btn {
        display: none;
    }
}