/* ===== PALETTE ===== */
* {
    --bg: #DCD6D0; /* off-white */
    --hl: grey;
}
  
@media (prefers-color-scheme: dark) {
    * { 
      --bg: grey;
      --hl: black;
    }
}
  

/* ===== LAYOUT ===== */
body {
    max-width: 600px;
    margin: 1em auto;
    font-family: Verdana, Helvetica, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    text-align: justify;
    background: var(--bg);
}
  
img {
    max-width: 600px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

figcaption {
    text-align: center;
    margin-top: 1em;
}
  
a {
    color: blue;
    /* text-decoration: underline double;
    font-weight: bold; */
    text-shadow: 0 0 1px;
}

a:hover {
    text-decoration-style: double;
}

hr {
    width: 75%;
}

::-moz-selection, ::selection {
    background: black; color: var(--bg);
}

mark {
    background: none;
    font-weight: bold;
    text-shadow: 0 0 1px;
}

h1, h2 {
    text-shadow: 0 0 1px;
}


/* ===== HIDDEN ===== */

section { display: none; }

section:target { display: block; }


/* ===== FLEXBOX ===== */
.flex { display: flex; }

.flex div:first-child { width: 40%; }

.flex div:last-child { width: 60%; text-align: center; }


/* ===== MOBILE ===== */
@media screen and (max-width: 605px) {
    table { table-layout: auto; }
    body { padding: 1em; }
}

@media screen and (max-width: 405px) {
    .flex { flex-direction: column; }
    .flex div { width: 100% !important;}
}