:root {
  --primary-color: oklch(60% 0.25 25);
  --primary-color-adjusted: var(--primary-color);
  --lightness-dampened: 0.85;
  --chroma-dampened: 1;
  --logo-back: white;
  --field-color: oklch(94% 0.002 90);
  --box-color: oklch(97.5% 0.002 205);
  --text-color: oklch(40% 0.05 90);
  --secondary-text: oklch(0% 0 0 / 0.3333);
  --secondary-text: oklch(65% 0.01 90 / 0.333);
  --long-shadow: oklch(0% 0 0 / 0.12);
  --short-shadow: oklch(0% 0 0 / 0.24);
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary-color-adjusted: oklch(
      from var(--primary-color) calc(l * 0.9) calc(c * 0.9) h
    );
    --logo-back: oklch(17.5% 0 0);
    --box-color: oklch(22.5% 0.002 205);
    --field-color: oklch(24.5% 0.002 90);
    --text-color: oklch(100% 0.04 90 / 0.333);
    /* --secondary-text: oklch(100% 0 0 / 0.25); */
    --secondary-text: oklch(55% 0.01 90 / 0.333);
    --long-shadow: oklch(0% 0 0 / 0.333);
    --short-shadow: oklch(0% 0 0 / 0.667);
  }

  img {
    filter: brightness(85%);
  }
}

body {
  color: var(--text-color);
  background: var(--field-color);
  font-family: "Times New Roman", serif;
  font-weight: 100;
  overflow: hidden;
  margin: 0;
  padding: 0;
  text-align: center;
  height: 100vh;
}

main {
  text-align: center;
  background: var(--box-color);
  display: inline-block;
  margin-top: calc(18vh - 3.25em);
  padding: 1.5em 2.75em;
  border-radius: 1.25%;
  box-shadow: 0 1px 3px var(--long-shadow),
    0 1px 2px var(--short-shadow);
}

h1,
h3 {
  font-family: Garamond, "Apple Garamond", "ITC Garamond Narrow",
    "New Century Schoolbook", "Century Schoolbook",
    "Century Schoolbook L", Georgia, serif;
  font-weight: 300;
}

h1 {
  font-size: 4em;
  color: var(--primary-color-adjusted);
  margin: 0.25em;
  img,
  svg {
    vertical-align: middle;
    position: relative;
    width: 1.5em;
    top: -0.085em;
    left: -0.12em;
    margin: 0 0.125em;
    height: auto;
    /* height: 2.5em; */
  }
}

img {
  margin: 1em;
  height: 2.5em;
}

h2 {
  font-size: 1.4em;
  font-weight: 300;
  color: var(--text-color);
  margin: 0.5em;
  font-family: system-ui, sans-serif;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

h2,
footer {
  font-family: system-ui, sans-serif;
}

footer,
h3 {
  position: fixed;
  width: 100vw;
  text-align: center;
  left: 0;
}

footer {
  bottom: 0;
  text-transform: uppercase;
  font-size: 0.6667em;
  font-weight: 300;
  color: var(--text-color);
  margin: 0.5em;
  letter-spacing: 0.5em;

  a {
    text-decoration: none;
    color: var(--secondary-text);
  }
}

a {
  color: var(--text-color);
}

h3 {
  display: block;
  /* margin: 2.333em 0; */
  font-size: 2.75em;
  font-weight: 400;
  bottom: 2.5%;
}

@media (max-width: 576px) {
  main {
    margin-top: 0.5em;
    padding: 0;
    border-radius: 0;
    padding-top: calc(10vh - 3.25em);
    box-shadow: none;
    width: 100%;
    height: calc(100vh + 0.5em);
    background: var(--box-color);
  }

  body {
    background: oklch(
      from var(--primary-color-adjusted)
        calc(l * var(--lightness-dampened))
        calc(c * var(--chroma-dampened)) h
    );
  }

  h1 {
    margin-top: 1.333em;
  }

  h2 {
    font-size: 1.3em;
  }

  img {
    margin-top: calc(66.6667vh - 15.66667em);
    height: 3em;
  }

  footer {
    letter-spacing: 0.3333em;
    font-size: 0.5em;
  }
}
