@import url("/static/fonts/urw-c059/c059.css");
@import url("/static/fonts/barlow/barlow.css");

:root {
    --b-hill-pattern-height: 125px;
    --b-header-footer-background: #2E613B;
    --b-header-footer-foreground: #ffffff;
    --b-page-background: #102315;
    --b-page-foreground: #ffffff;
    --standard-padding: 1.6em;
}

* {
    box-sizing: border-box;
    font-family: Barlow, sans-serif;
    line-height: 1.5;
}

body {
    background-color: var(--b-page-background);
    color: var(--b-page-foreground);
    margin: 0;
}

a {
   color: #00e63d;
}

main {
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--standard-padding);
    padding-right: var(--standard-padding);
    max-width: 90ch;
}

main p {
    width: 100%;
    text-align: left;
}

header, footer {
    width: 100%;
    background-color: var(--b-header-footer-background);
    color: var(--b-header-footer-foreground);
}

footer {
    margin-top: calc(var(--standard-padding) * 2);
    padding-top: calc(var(--b-hill-pattern-height));
    mask:   linear-gradient(to top, var(--b-header-footer-background), var(--b-header-footer-background))
                top calc(var(--b-hill-pattern-height)) left 0
                / 100% calc(100% - var(--b-hill-pattern-height))
                no-repeat,
            url("/static/headermask_lower.png")
                top 0 left 0
                / 100% var(--b-hill-pattern-height)
                no-repeat;
}

header {
    padding-bottom: calc(var(--b-hill-pattern-height));
    mask: linear-gradient(to top, var(--b-header-footer-background), var(--b-header-footer-background)) top 0 left 0 / 100% calc(100% - var(--b-hill-pattern-height) + 2px) no-repeat, url("/static/headermask_upper.png") bottom 0 left 0 / 100% var(--b-hill-pattern-height) no-repeat;
}

.bws-hf-content {
    padding: var(--standard-padding);
    display: flex;
    flex-wrap: wrap;
    gap: var(--standard-padding);
    justify-content: center;
}

.bws-footer-entry {
    text-align: center;
    flex-grow: 1;
    font-weight: bold;
    margin: 0;
}

.bws-footer-entry a {
    color: #61FF8B;
}

.site-name {
    flex-grow: 1;
    font-family: "C059", serif;
    font-size: clamp(1.8rem, 6vw, 3rem);
    font-style: italic;
    font-weight: bold;
    text-wrap: nowrap;
    text-align: center;
    text-decoration: none;
    color: white;
}

.site-name:hover {
    text-decoration: 2px solid underline;
}

h1 {
    font-size: clamp(2rem, 7vw, 3.5rem);
}

.site-name-spacer {
    width: 55%;
}

hr {
    border-color: #00e63d;
}

.page-list  {
    list-style: none;
    padding-left: 0;
}

.page-list a {
    display: block;
    background-color: #2E613B;
    color: white;
    text-decoration: none;
    padding: 20px;
    margin: 20px;
    border-radius: 10px;
}

.page-list a:hover {
    background-color: #61FF8B;
    color: black;
}

.page-list article :is(h1, h2, h3, h4, h5, h6, p) {
    margin: 0;
}

main :is(img, video) {
    max-height: 50%;
    max-width: 100%;
    margin: auto;
}