@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url(../fonts/AtkinsonHyperlegible-Regular.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter SemiBold";
  src: url(../fonts/Inter-SemiBold.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root, .theme {
  color-scheme: light dark;
  --clr-light: #fff;
  --clr-dark: #212121;
  --clr-primary: #3152B4;
  --clr-body-bg: #fff;
  --clr-body-text: #212121;
  --clr-side-bg: #212121;
  --clr-side-text: #fff;
  --clr-menu-bg: #fff;
  --clr-menu-text: #212121;
  --clr-menu-text-alt: #fff;
  --clr-menu-hover: rgba(255, 255, 255, 0.1);
  --clr-switch-bg: rgba(255, 255, 255, 0.1);
  --clr-switch-text: #fff;
  --clr-icon-bg: rgba(255, 255, 255, 0.1);
  --clr-icon-text: #fff;
  --ff-body: "Atkinson Hyperlegible", Arial, Verdana, sans-serif;
  --ff-headings: "Inter SemiBold", Arial, Verdana, sans-serif;
  --l-radius: 3px;
  --l-offset: 3px;
}

.theme--lightgray {
  --clr-side-bg: #f3f3f3;
  --clr-side-text: #212121;
  --clr-menu-bg: #212121;
  --clr-menu-text: #fff;
  --clr-menu-text-alt: #212121;
  --clr-menu-hover: rgba(33, 33, 33, 0.1);
  --clr-icon-bg: rgba(33, 33, 33, 0.1);
  --clr-icon-text: #212121;
  --clr-switch-bg: rgba(33, 33, 33, 0.1);
  --clr-switch-text: #212121;
}
.theme--primary {
  --clr-side-bg: #3152B4;
  --clr-switch-bg: rgba(255, 255, 255, 0.1);
  --clr-switch-text: #fff;
}

.scheme--dark {
  --clr-light: #212121;
  --clr-dark: #000;
  --clr-primary: #3152B4;
  --clr-body-bg: #000;
  --clr-body-text: #fff;
  --clr-side-bg: #212121;
  --clr-side-text: #fff;
  --clr-menu-bg: #fff;
  --clr-menu-text: #212121;
  --clr-menu-text-alt: #fff;
  --clr-menu-hover: rgba(255, 255, 255, 0.1);
}

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

body {
  background-color: var(--clr-body-bg);
  box-sizing: border-box;
  color: var(--clr-body-text);
  display: flex;
  flex-direction: column;
  font-family: var(--ff-body);
  font-size: 1.125rem;
  line-height: 1.5;
  margin: 0;
}
@media screen and (min-width: 1260px) {
  body {
    position: relative;
  }
}

h1, h2, h3, h4 {
  font-family: var(--ff-headings);
  font-weight: 600;
  hyphens: auto;
  margin: 2em 0 0;
}

h1 {
  font-size: 2.5rem;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}

p {
  margin-top: 1em;
}

a {
  color: var(--clr-primary);
}

strong {
  font-weight: 700;
}

hr {
  background-color: rgba(33, 33, 33, 0.2);
  border: 0;
  display: block;
  height: 1px;
  margin-top: 2em;
}

img {
  height: auto;
  max-width: 100%;
  overflow: hidden;
}

.sr-only {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.btn {
  background-color: rgba(49, 82, 180, 0.1);
  border-radius: var(--l-radius);
  border: 1px solid transparent;
  color: var(--clr-primary);
  cursor: pointer;
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  padding: 0.5em;
  text-align: center;
  text-decoration: none;
}
.btn--switch {
  background-color: var(--clr-switch-bg);
  color: var(--clr-switch-text);
}
.btn--icon {
  background-color: var(--clr-icon-bg);
  color: var(--clr-icon-text);
  min-width: 2.25rem;
}
.btn--icon svg {
  fill: var(--clr-icon-text);
}

.side {
  background-color: var(--clr-side-bg);
  color: var(--clr-side-text);
  padding: 0 2em;
}
@media screen and (min-width: 1260px) {
  .side {
    min-height: 100vh;
    padding: 0 4em;
    position: fixed;
    top: 0;
    width: 45%;
  }
}
.side::before, .side::after {
  clear: both;
  content: "";
  display: table;
}
.side__container {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  margin: 0 auto;
  max-width: 45rem;
  min-height: 100vh;
}
@media screen and (min-width: 1260px) {
  .side__container {
    margin-left: auto;
    margin-right: 0;
    width: 60%;
  }
}
.side__container::before, .side__container::after {
  clear: both;
  content: "";
  display: table;
}

.hero {
  margin: 5em 0;
}
.hero a {
  color: inherit;
}
.hero a:hover {
  color: var(--clr-light);
}
.hero p {
  color: rgba(255, 255, 255, 0.5);
}

.navigation__title {
  display: none;
}

.menu__item {
  color: var(--clr-menu-text-alt);
  display: inline-block;
  padding: 4em 0.5em 0.2em;
  text-decoration: none;
}
.menu__item:hover {
  background-color: var(--clr-menu-hover);
}
.menu__item--home {
  background-color: var(--clr-menu-bg);
  color: var(--clr-menu-text);
}
.menu__item--home:hover {
  background-color: var(--clr-menu-bg);
}

.tagline {
  display: block;
}

.phonetic {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.5rem;
  font-style: normal;
  margin: 0;
}

.avatar {
  background-color: var(--clr-light);
  box-shadow: rgba(33, 33, 33, 0.2) 0 2px 8px 0;
  margin: 1em 0 0;
  padding: calc(var(--l-offset) * 2);
  width: 10rem;
}

.main {
  padding: 0 2em;
}
@media screen and (min-width: 1260px) {
  .main {
    margin-left: 45%;
    padding: 0 3em;
  }
}
.main::before, .main::after {
  clear: both;
  content: "";
  display: table;
}
.main__container {
  margin: 0 auto;
  max-width: 45rem;
  padding: 3em 0 4em;
}
@media screen and (min-width: 1260px) {
  .main__container {
    margin-left: 0;
    margin-right: auto;
    width: 100%;
  }
}
.main__container::before, .main__container::after {
  clear: both;
  content: "";
  display: table;
}

@media screen and (min-width: 1260px) {
  .content {
    max-width: 65ch;
  }
}

.tags {
  list-style: none outside none;
  margin: 1em 0 0;
  padding: 0;
}
@media screen and (min-width: 768px) {
  .tags__item {
    display: inline-block;
  }
}
.tags__item-link {
  font-size: 0.875rem;
  text-decoration: none;
}
.tags--post-list {
  margin-top: 0.75em;
}

.postnav {
  border-top: 1px solid rgba(33, 33, 33, 0.2);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1em 0 0;
  padding: 1em 0;
}
@media screen and (min-width: 1260px) {
  .postnav {
    flex-direction: row;
    justify-content: space-between;
  }
}
.postnav__tab {
  display: block;
  text-decoration: none;
}
@media screen and (min-width: 1260px) {
  .postnav__tab {
    flex: 50%;
  }
}
.postnav__tab-text {
  color: rgba(0, 0, 0, 0.5);
  display: block;
  font-size: 0.875rem;
}
.postnav__tab-link {
  display: block;
}

.postlist::before, .postlist::after {
  clear: both;
  content: "";
  display: table;
}

.post {
  margin: 3em 0 0;
}
.post__date {
  font-size: 1rem;
  margin: 0;
}
.post__title {
  margin: 0;
}

.contentinfo {
  background-color: var(--clr-side-bg);
  color: var(--clr-side-text);
  padding: 2em;
}
@media screen and (min-width: 1260px) {
  .contentinfo {
    bottom: 0;
    left: 0;
    padding: 0 4em;
    position: fixed;
    width: 45%;
  }
}
@media screen and (min-width: 1260px) {
  .contentinfo__container {
    margin-left: auto;
    margin-right: 0;
    width: 60%;
  }
}
.contentinfo a:not(.btn) {
  color: inherit;
}
.contentinfo a:not(.btn):hover {
  color: inherit;
}

.buttonbox {
  display: flex;
  justify-content: space-between;
  margin: 1em 0;
}

.socials {
  list-style: none;
  margin: 0;
  padding: 0;
}
.socials__item {
  display: inline-block;
  margin-left: 1em;
}

.social-icon {
  fill: var(--clr-light);
}
