/* Copyright (c) 2025 HaxScrpt */
:root {
  --bg: fixed linear-gradient(#eaeef2, #f5f5f5);
  --bg-alt: #2e3135;
  --color: #2e3135;
  --color-alt: #eaeef2;
  --lnk: #0c3fcd;
  --lnk-alt: #93d1e5;
}
@media screen and (prefers-color-scheme: dark) {
  :root {
    --bg: #2f3133;
    --bg-alt: #202225;
    --color: #eaeef2;
    --color-alt: #b0b1b3;
    --lnk: #93d1e5;
    --lnk-alt: #93d1e5;
  }
}

a:link, a:visited, a:link:hover, a:link:active {
  color: var(--lnk);
}

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "header"
    "."
    "footer";
  row-gap: 1rem;
  color: var(--color);
  background: var(--bg);
}

address {
  font-style: normal;
}

details {
  margin-block: 1rem;
  padding-inline: 1rem;
}

dt {
  font-weight: bold;
}
* + dt {
  margin-block-start: .25rem;
}

summary {
  margin-inline: -1rem;
  cursor: default;
}

.icon {
  vertical-align: middle;
}

.link--none {
  text-decoration: none;
}
.link__text {
  text-decoration: underline;
}

.site-content {
  margin-inline: auto;
  padding-inline: 2rem;
  max-width: 48rem;
}
.site-content > :first-child {
  margin-block-start: 0;
}

.site-header {
  grid-area: header;

  padding-block-start: 1rem;
  padding-inline: 1rem;
  display: grid;
  grid-template-areas:
    "home ext"
    "nav nav";
  column-gap: 2rem;
  row-gap: 1rem;
}

.site-header__home {
  grid-area: home;
  justify-self: start;
  align-self: start;
  text-decoration: none;
}
.site-header__home * {
  margin: 0;
  text-decoration: none;
}
.site-header__home > p {
  width: fit-content;
  display: grid;
  grid-auto-flow: column;
  column-gap: .5rem;
}
.site-header__home > p * {
  align-self: center;
}
.site-header__home .link__icon {
  border-radius: 9999rem;
}
.site-header__home .link__text {
  display: none;
  color: var(--color);
  font-size: 2.5rem;
  font-weight: bold;
  vertical-align: middle;
}
@media screen and (min-width: 576px) {
  .site-header__home .link__text {
    display: unset;
  }
}

.site-header nav {
  grid-row: 1 / -1;
  grid-column: 1 / -1;

  display: grid;
  grid-template-rows: subgrid;
  grid-template-columns: subgrid;
  pointer-events: none;
}
.site-header nav > * {
  pointer-events: auto;
}

.site-header__nav {
  grid-area: nav;
  margin: 0;
  padding: 0;
  border-block: 1px solid var(--color);
  display: flex;
}
.site-header__nav li {
  list-style-type: none;
}
.site-header__nav a {
  padding-block: .25rem;
  padding-inline: .75rem;
  display: inline-block;
}
.site-header__nav a:hover {
  background-color: rgba(0, 0, 0, .1);
}
@media screen and (prefers-color-scheme: dark) {
  .site-header__nav a:hover {
    background-color: rgba(255, 255, 255, .1);
  }
}

.site-header__ext {
  grid-area: ext;
  justify-self: end;
  align-self: center;

  margin: 0;
  padding: 0;
  display: flex;
  gap: .5rem;
}
.site-header__ext li {
  list-style-type: none;
}
.site-header__ext a {
  padding: .25em;
  display: inline-block;
}

.site-footer {
  grid-area: footer;

  padding-block: 1.5rem 2rem;
  padding-inline: 2rem;
  display: grid;
  gap: 1rem;
  color: var(--color-alt);
  box-shadow: inset 0 1rem 1rem -1rem black;
  background: var(--bg-alt);
}
@media screen and (prefers-color-scheme: dark) {
  .site-footer {
    color: var(--color);
  }
}

.site-footer :link,
.site-footer :visited,
.site-footer :link:hover,
.site-footer :link:active {
  color: var(--lnk-alt);
}

.site-footer__copy,
.site-footer__info {
  margin: 0;
}

.site-footer__info {
  padding: 0;
  display: flex;
  column-gap: 1rem;
}
.site-footer__info > li {
  list-style-type: none;
}
.site-footer__info :link,
.site-footer__info :visited,
.site-footer__info :link:hover,
.site-footer__info :link:active {
  color: #b9bec3;
}

.site-footer #label-footer-ext {
  margin-block-start: 0;
  font-weight: bold;
}
.site-footer__ext {
  padding-inline-start: 0;
}
.site-footer__ext > li {
  list-style-type: none;
}
