@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

/* ######### */
/* see https://www.joshwcomeau.com/css/custom-css-reset/ */
/* and https://medium.com/@rounakbajoriastar/creating-responsive-ui-without-a-framework-pure-html-css-guide-aad7530c9db1 */
/* and https://easyhtmlcode.com/learncss/howto-make-print-link.html */
/* and https://github.com/twbs/bootstrap/tree/main */
/* ######### */

/*
--heading: color-mix(in srgb, #fafac3, black 70%);
*/

:root {
  --heading-bg: #fafac3;
  --sub-heading-bg: rgba(250, 250, 195, 0.5);
  --body-bg:#f9f9f9;
  --body: #212529;
}

#root, #__next {
  isolation: isolate;
}

*, *::before, *::after {
  box-sizing: border-box;
}

*:not(dialog) {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

figure {
  overflow: hidden;
}

figure > p {
  display: flex;
  align-items: space-around;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

figure > figcaption {
  text-align: center;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

@media (min-width: 576px) {
  img, picture, video, canvas, svg {
    max-width: calc(320px - 1rem);
  }
}

input, button, textarea, select {
  font: inherit;
}

p {
  overflow-wrap: break-word;
  text-wrap: pretty;
  margin-bottom: 0.5rem;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  text-wrap: balance;
  margin-top: 0;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.675rem, 1.375rem + 1.5vw, 1.975rem);
  margin:0;
  padding:0;
}

h2 {
  font-size: clamp(1.505rem, 1.325rem + 0.9vw, 1.685rem);
}

h3 {
  font-size: clamp(1.42rem, 1.3rem + 0.6vw, 1.54rem);
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  background-color: var(--body-bg);
  color: var(--body);
  max-width: 640px;
  margin: auto;
}

header, footer {
  background: var(--heading-bg);
  padding: 1rem 0.5rem;
  text-align: center;
}

article {
  padding: 0.5rem;
}

section {
  margin-bottom: 1rem;
}

nav {
  background-color: var(--sub-heading-bg);
  padding: 0 0.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

nav a {
  text-decoration: none;
  font-weight: bold;
}

div.info {
  padding: 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

div.sub-footer {
  background-color: var(--sub-heading-bg);
  padding: 0 0.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: rgba(33, 37, 41, 0.5);
  font-size: smaller;
}

ul {
  list-style-type: none;
  padding: 0;
}