:root {
  --color-background: #e6e6e6;
  --color-foreground: #320591;
}

body {
  font-family: "Inter", sans-serif, system-ui, -apple-system, BlinkMacSystemFont;
  background: var(--color-background);
  color: var(--color-foreground);
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: never;
}

main {
  flex-grow: 1;
  padding-inline: 2rem;
  padding-block: 1.875rem;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

main > div {
  width: 100%;
  margin-bottom: 1.25rem;
}

header {
  aspect-ratio: 1217 / 190;
  height: auto;
  width: 100%;
  overflow: hidden;
  margin-bottom: 1.25rem;
}
svg.logo {
  width: 100%;
  height: auto;
}

p {
  font-style: normal;
  font-weight: 500;
  font-size: 1.375rem;
  line-height: 1.3;
  margin: 0;
  margin-bottom: 1.25rem;
}

nav {
  font-style: normal;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.21;
}

nav dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  border-right: 2px solid var(--color-foreground);
  margin: 0;
}

nav dl > div {
  border-left: 2px solid var(--color-foreground);
  padding-inline: 0.75rem;
}

nav dl > div dd {
  margin: 0;
}

a,
a:active,
a:visited,
a:focus,
a:link {
  appearance: none;
  text-decoration-line: underline;
  color: var(--color-foreground);
  cursor: pointer;
}

a:hover {
  opacity: 0.6;
}

footer {
  aspect-ratio: 1217 / 112;
  width: 100%;
  height: auto;
  overflow: hidden;
}

svg.footer {
  width: 100%;
  height: auto;
}

.content-width {
  width: 100%;
  margin-inline: auto;
}

@media screen and (max-width: 768px) {
  main {
    padding: 1.125rem;
  }
  header {
    margin-bottom: 1.125rem;
  }

  p {
    font-style: normal;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.3;
    margin-bottom: 1em;
  }

  nav dl {
    grid-template-columns: auto;
    gap: 0;
    border-right: 0;
  }

  nav dl div {
    font-style: normal;
    font-weight: 600;
    font-size: 0.75rem;
    line-height: 1.17;

    color: #320591;

    padding-inline: 0.5rem;
    padding-bottom: 1em;
  }

  nav dl div:last-child {
    padding-bottom: 0;
  }
}

@media screen and (max-width: 768px), 
       screen and (max-device-width: 768px) and (orientation: landscape) {
  nav dl div,
  nav dl dt,
  nav dl dd {
    font-size: 0.75rem;
    font-weight: 600;
    color: #320591;
  }
  nav dl dt {
    font-size: 0.75rem !important;
  }
}
