:root {
    --color-bg: #f2f2f2;
    --color-fg: #1c1a18;
    --color-tint: #8e7855;
    --color-accent: #ffd34d;
    --color-mid-1: #5e5a55bb;
    --color-nav: #a99370;
    --color-selection: #cc990030;
}

body {
    max-width: 670px;
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.3;
    background: var(--color-tint);
    font-family: var(--sans);
}

main {
    margin: 0 -1.5rem;
    padding: 3rem 3rem 0;
}

.js main .stage,
.js .honeycomb,
.js footer a[href="/"],
.js #top {
    display: none;
}

.js main .stage.current {
    display: block;
}

.js .honeycomb.current {
    display: grid;
}

.js .stage-nav {
    display: inline;
}

main .stage {
    background: var(--color-bg);
    margin: 2rem -2rem;
    padding: 2.5rem 3rem;
    border-radius: .5rem;
    box-shadow: 0 0 .5rem #00000011;
}

main h1 {
    font-family: Roslindale;
    font-size: 170%;
    font-style: normal;
    font-weight: bold;
    margin: 0;
    text-align: center;
    color: var(--color-accent);
}

main h2 {
    margin: 0 0 .5rem;
    font-family: var(--sans);
    font-size: 130%;
    font-style: normal;
    font-weight: bold;
}

main h2 + div {
    margin-top: 0;
    font-family: var(--sans);
    font-style: normal;
    font-weight: normal;
    color: var(--color-mid-1);
}

main p {
    line-height: 1.45;
    font-family: Tiempos;
}

main p.quote {
    text-align: center;
    margin: 1.75rem auto;
    line-height: 1.3;
    font-family: var(--sans);
    color: var(--color-mid-1);
}

main p.quote + p.quote {
    margin-top: -.75rem;
}

main img {
    width: calc(100% + 6rem);
    margin: 1.2rem -3rem .6rem;
}

img + .sd {
    margin-bottom: 2.5rem;
}

#bee {
    display: block;
    width: 135px;
    margin: 0 auto 1.5rem;
    background: none;
    user-select: none;
}

#info {
    margin: 1.5rem auto -1.75rem;
    max-width: 500px;
    color: var(--color-bg);
    text-align: center;
    padding: .4rem 0;
}

#info a {
    color: var(--color-accent);
    text-decoration-color: transparent;
}

@media (hover: hover) {
    #info a:hover,
    #info a:focus-visible {
        text-decoration-color: var(--color-accent);
    }
}

.honeycomb {
    display: grid;
    width: 80%;
    margin: 3rem auto 0;
    scroll-margin-top: 1.5rem;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 0 .3rem;
    position: relative;
}

.cell {
    width: 100%;
    aspect-ratio: 1/1.15;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cell * {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--color-nav);
    color: var(--color-bg);
    font-weight: bold;
    text-decoration: none;
    font-size: 87%;
    user-select: none;
    transition: all .1s ease;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.cell .active {
    cursor: default;
    background: var(--color-accent);
    color: var(--color-fg);
}

.cell:nth-child(-n+6) {
    grid-row: 1;
    transform: translateX(calc(25% + .075rem));
}

.cell:nth-child(n+7):nth-child(-n+12) {
    grid-row: 2;
    margin: -.6rem 0 0;
    transform: translateX(calc(75% + .225rem));
}

@media (max-width: 600px) {
    .honeycomb {
        width: 95%;
        gap: .2rem;
    }
    
    .cell:nth-child(-n+6) {
        transform: translateX(calc(25% + .05rem));
    }

    .cell:nth-child(n+7):nth-child(-n+12) {
        transform: translateX(calc(75% + .15rem));
    }
}

@media (min-width: 450px) and (max-width: 600px) {
    .cell:nth-child(n+7):nth-child(-n+12) {
        margin-top: -.8rem;
    }
}

#map {
    width: 100%;
    height: 450px;
    margin: 2.5rem 0 1.5rem;
    font-size: 100%;
    display: none;
}

@media all and (max-width: 430px) {
    #map {
        height: 400px;
        margin: -4.5rem 0 -3rem;
    }
}

#stage-text {
    position: absolute;
    color: var(--color-fg);
    background: var(--color-bg);
    padding: 8px 10px;
    border-radius: 5px;
    font-size: 87%;
    font-weight: bold;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity .1s ease;
    display: none;
}

#stage-text.visible {
    opacity: 1;
}

footer {
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

footer a {
    width: 6rem;
    text-align: center;
    margin: .5rem;
    padding: .5rem .7rem;
    border-radius: .5rem;
    background: var(--color-nav);
    color: var(--color-bg);
    text-decoration: none;
    transition: background .1s, color .1s;
}

.stage-nav {
    display: none;
}

@media (hover: hover) {
    a:hover,
    a:focus-visible {
        color: var(--color-tint);
        text-decoration-color: var(--color-tint);
    }

    footer a:hover,
    footer a:focus-visible,
    .cell a:hover,
    .cell a:focus-visible {
        background: var(--color-accent);
        color: var(--color-fg);
        transition: background .1s, color .1s;
    }

    .cell:nth-child(13) a:hover,
    .cell:nth-child(13) a:focus-visible {
        background: var(--color-bg);
    }
}

@media all and (max-width: 680px) {
    body {
        margin: 5vw;
    }

    main {
        margin: 0;
        padding: 5vw 0;
    }

    main .stage {
        margin: 2rem -5vw;
        padding: 1.5rem 5vw;
        border-radius: 0;
    }

    main img {
        max-width: calc(100% + 10vw);
        margin: 1.2rem -5vw .6rem;
        border-radius: 0;
    }
}

@media all and (max-width: 550px) {
    main .stage {
        border-radius: 0;
    }
}

/*! Leaflet */
@media(hover:hover){.leaflet-control{opacity:0;transition:opacity .5s ease}.gpx:hover .leaflet-control{opacity:1}}.leaflet-image-layer,.leaflet-layer,.leaflet-pane,.leaflet-pane>canvas,.leaflet-pane>svg,.leaflet-zoom-box{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-marker-icon,.leaflet-marker-shadow{display:none}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-overlay-pane svg,.leaflet-container .leaflet-shadow-pane img,.leaflet-container img.leaflet-image-layer{max-width:none!important;max-height:none!important;background:0 0!important;}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-overlay-pane{z-index:400;pointer-events:none!important}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-bottom,.leaflet-top{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}.leaflet-zoom-anim .leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-image-layer,.leaflet-pane>svg path{pointer-events:none}.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{outline:0}.leaflet-container a{color:var(--color-fg)}.leaflet-container{font:12px/1.5 var(--sans)}.leaflet-bar{border-radius:4px}.leaflet-bar a,.leaflet-bar a:hover{background-color:var(--color-bg);border-bottom:1px solid var(--color-mid-3);width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:var(--color-fg)}.leaflet-bar a{background-position:50% 50%;background-repeat:no-repeat;display:block;transition:color .1s}.leaflet-bar a:hover{color:var(--color-accent);transition:color .1s}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:var(--color-bg);color:var(--color-tint)}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:bold 18px var(--sans);text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-bar{background-clip:padding-box}