@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Playfair:ital,opsz,wght@0,5..1200,300..900;1,5..1200,300..900&display=swap');

* { box-sizing: border-box; }

body {
    background: #f4f2f4;
    color: #222233;
    font-family: 'Playfair', Times, serif;
    font-size: 18pt;
    margin: 3em;
}

h1, h2, h3 {
    font-family: 'Playfair Display', 'Playfair', Times, serif;
}

code, pre {
    font-family: 'JetBrains Mono', 'Fira Code', 'Source Code Pro', monospace;
}

li {
    margin-bottom: 0.4em;
}

h1 a, h1 a:visited {
    color: inherit;
    text-decoration: none;
}

h1 a:hover {
    text-decoration: underline;
    text-decoration-thickness: 0.3rem;
}

section > h2 {
    font-size: 1.5rem;
    margin-top: 2em;
}

section > .page-link, section > .page-link:visited {
    background: #dad8da;
    border: 1px solid #979497;
    color: inherit;
    display: block;
    margin-left: -1em;
    margin-right: -1em;
    padding: 1em;
    text-decoration: none;
}


section .page-link > h3 {
    margin: 0 0 0.5em 0;
    text-decoration: underline;
}

section .page-link > h3 > a {
    color: inherit;
}

section > .page-link > p {
    margin: 0;
}

form {
    display: flex;
    flex-direction: column;
    max-width: 20rem;
}

form label {
    display: flex;
    flex-direction: column;
    font-weight: 800;
    margin-bottom: 1rem;
}

form label.same-line {
    flex-direction: row;
}

form input, form textarea, form select {
    background: #fff;
    border: none;
    border-right: 5px solid #76b376;
    box-shadow: inset 0 0.2rem rgba(0,0,0,0.2);
    font-size: 24pt;
    margin: 0 -0.5rem;
    outline: 2px solid #222;
    padding: 0.5rem;
}

form textarea {
    font-size: 16pt;
}

form input:focus, form textarea:focus, form input[type="checkbox"]:focus, form input[type="radio"]:focus  {
    outline: 4px solid dodgerblue;
}

form input:invalid, form textarea:invalid {
    border-right-color: red;
}

form input[type="checkbox"], form input[type="radio"] {
    aspect-ratio: 1;
    margin-right: 0.5rem;
    outline-color: transparent;
}

div[role="radiogroup"], fieldset {
    background: #dad8da;
    border: 1px solid #222;
    display: flex;
    flex-direction: column;
    margin: 0 -1rem 1rem -1rem;
    padding: 0 1rem 0 1rem;
}

legend {
    background: #dad8da;
    border-image: linear-gradient(to bottom, #222 52%, transparent 50%) 1 100%;
    border-left: 1px solid #222;
    border-right: 1px solid #222;
    display: block;
    font-weight: bold;
    margin: 0 0 0.25rem -0.5rem;
    padding: 0.25rem 0.5rem 0 0.5rem;
    position: relative;
}

legend:before {
    border-top: 1px solid #222;
    content: ' ';
    display: block;
    height: 1px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

form input[type="submit"] {
    background: #222233;
    box-shadow: inset 0 -0.2rem rgba(0,0,0,0.2);
    color: #eee;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
}

