/**
  * CSS Starter from https://piccalil.li/blog/a-more-modern-css-reset/
  **/
/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
  margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4,
button, input, label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1, h2,
h3, h4 {
  text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input, button,
textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}


/**
  * Local style rules
  **/

html {
    /* Self-hosted font, increase font size a little */
    font-family: "bricolage";
    font-size: larger;

    text-wrap-style: pretty;
}

body {
    /* Basic rules */
    margin: 0;
    padding: 0;
    
    background-color: #b9cee1; /*aliceblue*/
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    padding: 0;
    margin: 0;
}

header, main {
    /* Make content not full-width */
    min-width: 0;
    max-width: 60em;
}

.headerc {
    background-color: #d3e7fd;
}

header {
    padding-top: 1em;
}

/* Title + logo */
header > h1 {
    margin-top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 350%;
}

header > h1 > img {
    height: 1.5em;
    font-size: calc(min(max(24pt, 7vw),60pt));
    margin-right: 0.1em;
    margin-left: 0;
}

header > h1 > span {
    font-size: calc(min(max(18pt, 7vw),60pt));
}

/* Nav links, a bit bigger, centered, with lines between */

nav > ul {
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style-type: none;
    
    padding-left: 0;
    font-size: larger;
    font-weight: bold;
}

nav > ul > li {
    padding-left: 0.75em;
    padding-right: 0.75em;
    border-right: 2px ridge; /* Border between elements */
}

nav > ul > li:last-child {
    border-right: none;
}

/* Main content, paragraphs with an image on the left or right. Flex so they wrap nicely.
 * Flex-wrap alternates so the images always wrap to above the paragraphs. */
main {
    margin-top: 1.5em;
    margin-bottom: 2em;
    margin-left: 1.5em;
    margin-right: 1.5em;
}

main > div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1em;
    margin-top: 1em;
}

main > div > div {
    flex: 1;
    min-width: 50%
}

main > div > img {
    display: block;
    max-height: 18em;
    box-shadow: 2px 2px 5px 3px #444444;
}

dt {
    margin-top: 2em;
    font-weight: bold;
}

.pimgleft {
    flex-wrap: wrap;
}

.pimgright {
    flex-wrap: wrap-reverse;
}

.bold {
    font-weight: bold;
}
