:root {
    --background: #e3e9d5;
    --color: #4b7c6c;
    --width: 600px;
    --link: var(--color);
}

@keyframes focus {
    0% {
        background: rgba(255, 255, 0, 0);
    }

    50% {
        background: lavenderblush;
    }

    100% {
        background: rgba(255, 255, 0, 0);
    }
}

body {
    padding: 1rem;
    transition: none;
    font-family: var(--font-secondary);
    position: relative;
}

h1 {
    font-size: 1rem;
    line-height: 0.8;
    font-weight: normal;
    text-transform: uppercase;
    margin: 8rem auto;
    text-align: center;
}

span.small {
    text-transform: uppercase;
    font-size: 0.8em;
}

a.reference-link,
span.rediscover {
    opacity: 0.5;
}

.dotted {
    background: radial-gradient(rgba(0, 0, 0, 0.1) 20%, transparent 11%),
        radial-gradient(rgba(0, 0, 0, 0.1) 20%, transparent 11%);
    background-repeat: repeat;
    background-size: 5px 5px;
}

.grass {
    z-index: -1;
    user-select: none;
}

button {
    cursor: pointer;
    background-color: var(--background);
    border: 1px solid var(--color);
    padding: 0.2rem;
    color: inherit;
    font: 1rem var(--font-main);
}

main.garden {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    align-items: start;
    gap: 5rem;
    align-items: stretch;
    gap: 3rem 1rem;
    max-width: var(--width);
    margin: 0 auto;
}

main.garden h3 {
    font-weight: normal;
    font-style: italic;
    text-align: left;
    margin-bottom: 0;
}

/* Inline Lists */
ul.inline {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

ul.inline li {
    flex-grow: 1;
    display: block;
    font: 1rem var(--font-main);
    background-color: var(--background);
}

ul.inline li:nth-child(even) {
    font: italic 1.1em var(--font-secondary);
}

ul.inline li:hover {
    background-color: lavenderblush;
    transition: 0.2s background ease;
}

/* Description List */
dt {
    font-size: 0.9em;
    font-family: var(--font-main);
    border-bottom: 3px double var(--color);
    border-top: 1px solid var(--color);
    margin-top: -1px;
    padding: 0.25rem;
}

dt:last-child {
    border-bottom: 0;
}

dd {
    margin-left: 2rem;
    border-left: 3px double var(--color);
    border-bottom: 3px double var(--color);
    padding: 0.25rem;
}

/* Beds */
.bed {
    background: radial-gradient(rgba(0, 0, 0, 0.1) 20%, transparent 11%),
        radial-gradient(rgba(0, 0, 0, 0.1) 20%, transparent 11%);
    background-color: var(--background);
    background-repeat: repeat;
    background-size: 5px 5px;
    padding: 0.5rem;
    border: 3px double var(--color);
}

/* Beds with Extras */
.bed--extra {
    position: relative;
    min-height: 200px;
}

.bed--extra > .bed-list {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    overflow-y: auto;
    background: var(--background);
    display: none;
    width: 100%;
}

.bed--extra > .bed-list.show {
    display: block;
}

.bed--extra > .bed-list > dl {
    clear: both;
}

.bed--extra > .bed-list > dl dt.focus {
    animation: focus 2s linear 0s 3 alternate;
}

.bed--extra > .bed-list button.close {
    position: sticky;
    top: 0;
    float: right;
    font-size: 0.8rem;
    text-transform: uppercase;
    height: auto;
    margin-bottom: 1rem;
    border-right: 0;
    border-top: 0;
}

.bed--extra > .btn-group {
    display: flex;
    align-items: flex-end;
    /* justify-content: space-between; */
    gap: 0.3rem;
    flex-wrap: wrap;
}

.bed--extra > .btn-group button {
    transition: background-color 2s linear,
        transform 2s ease-out;
    padding: 0.1rem;
    border: 0;
    white-space: nowrap;
    overflow: hidden;
    flex-grow: 1;
    border-radius: 0.5rem;
}

.bed--extra > .btn-group button:hover {
    background-color: var(--background) !important;
    transition: background-color 0.1s linear,
        transform 2s ease-out;
}

.footnote {
    margin-top: 2rem;
    font-style: italic;
}

footer {
    border: 0;
    max-width: var(--width);
    margin: 8rem auto;
    padding: 0;
    text-align: center;
}