:root {
    --bg: rgb(137, 157, 163);
    --fg: rgb(31, 31, 31);
    --accent: rgb(44, 94, 123);
    --muted: rgb(102, 117, 122);
    --margin: rgb(250, 250, 250);
    --marker: PermanentMarker, Tahoma, Verdana, sans-serif;
}

@font-face {
    font-family: "PermanentMarker";
    src: url("/static/PermanentMarker-Regular.woff2") format("woff2");
}

* {box-sizing: border-box;}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: Tahoma, Verdana, sans-serif;
    line-height: 1.6;
    font-size: 1rem;
    max-width: 800px;
    margin: 1rem auto;
    padding: 10px;
}

h1, h2, h3 {font-family: var(--marker); margin: 0;}
h1 {font-size: clamp(2.2rem, 5vw, 3rem);}
h2 {font-size: clamp(1.6rem, 3vw, 2rem);}
h3 {font-size: clamp(1.3rem, 2vw, 1.6rem);}

a {color: var(--accent); text-decoration: none;}
a:hover {text-decoration: underline;}

img {max-width: 100%; height: auto;}

section {margin: 1.3rem 0;}

.section-sep {
    margin: 0.8rem 20%;
    border-bottom: 3px solid var(--fg);
    flex-basis: 100%;
}    

header {margin: 0; display: flex; align-items: center;}
#logo {max-width: 100%; max-height: 80px; margin-left: auto;}

/* navigation strip */

nav {
    font-family: var(--marker);
    font-size: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
nav a, nav button {
    color: var(--fg);
    font-family: var(--marker);
    font-size: 1.2rem;
}
nav button {border: 0; background: none;}
nav a:hover, nav button:hover {
    text-decoration: underline solid var(--fg) 20%;
}
nav .nav-sep::before {content: "•"; margin: 0 0.8rem;}
#main-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(137, 157, 163, .8);
}

/* chip cloud */

.chip-cloud {
    font-family: var(--marker);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    line-height: 1.1rem;
    gap: 0.3rem 0.8rem;
}
.chip-cloud * {margin: 0;}
.chip-cloud a {color: var(--fg);}
.chip-cloud a:hover {
    text-decoration: underline solid var(--fg) 20%;
}
.current-chip {font-size: larger;}

/* post (or project) list */

.post-list {list-style: none; padding: 0;}
.post-list-headline {
    font-family: var(--marker);
    display: flex;
    align-items: baseline;
}
.post-list a {color: var(--fg);}
.post-list a:hover {text-decoration: underline solid var(--fg) 20%;}
.post-list-info {margin-left: auto; white-space: nowrap;}
.summary {margin: 0 1.2rem 0.6rem 1.2rem;}

.post-date {font-family: var(--marker);}

/* project cover image and gallery */

.cover-image {
    width: fit-content;
    margin: 0 auto;
    padding: 0.5rem;
    border: 1px solid var(--muted);
    border-radius: 6px;
    background: var(--margin);
}
.cover-image img {
    max-width: 100%;
    max-height: 350px;
    display: block;
    margin: 0 auto;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    margin: 0.8rem 0;
    gap: 1rem;
}
.gallery-item {
    padding: 0.5rem;
    margin: 0;
    border: 1px solid var(--muted);
    border-radius: 6px;
    background: var(--margin);
}
.gallery-item img {
    display: block;
    height: 220px;
    width: auto;
    max-width: 100%;
}
.gallery-item figcaption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--muted);
    text-align: center;
}

