:root {
  --color-bg: oklch(98% 0.01 90);
  --color-surface: oklch(100% 0 0);
  --color-primary: oklch(45% 0.15 250);
  --color-text: oklch(20% 0.02 250);
  --color-border: oklch(90% 0.01 250);
  --font-main: Arial, Helvetica, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-main);
  line-height: 1.6;
  background-color: var(--color-bg);
  color: var(--color-text);
}

main,
#main-content {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.home-logo {
  max-height: 3rem;
  width: auto;
  border-radius: 0.375rem;
  border: 0.125rem solid var(--color-primary);
}

.container {
  width: min(100% - 2rem, 68.75rem);
  margin-inline: auto;
}

.site-header {
  background-color: var(--color-surface);
  border-block-end: 0.063rem solid var(--color-border);
  padding-block: 1rem;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-primary);
  text-decoration: none;
}

.main-nav {
  width: 100%;

  & ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.75rem 1.25rem;
  }

  & a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;

    &.active,
    &:hover {
      color: var(--color-primary);
    }
  }
}

.site-footer {
  margin-block-start: auto;
  background-color: var(--color-text);
  color: var(--color-surface);
  padding-block: 2rem;
  text-align: center;

  & a {
    color: var(--color-surface);
  }
}

@media (min-width: 40rem) {
  .header-content {
    flex-direction: row;
    justify-content: space-between;
  }

  .main-nav {
    width: auto;

    & ul {
      justify-content: flex-end;
    }
  }
}
