@font-face {
  font-family: "Trebuchet MS";
  src: local("Trebuchet MS"), url("./trebuchetms.ttf") format("truetype");
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  font: 16px/1.2 "Trebuchet MS", sans-serif;
}

body {
  padding: 32px 0;
  background-color: #f5f5f5;
}

a {
  color: currentColor;
  text-underline-offset: 0.25rem;
}

ul {
  list-style-position: inside;
}

.header__title,
.section__title {
  font-weight: normal;
}

.section__title {
  margin: 1.5rem 0 0.5rem;
}

.section__list-item {
  margin-top: 0.25em;
}

.section__sublist {
  margin-left: 1.5em;
}

.container {
  margin: 0 auto;
  padding: 32px;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0px 0px 35px 10px #e6e6e6;
}

.photo {
  max-width: 320px;
  aspect-ratio: 1 / 1;
}

.photo__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.header__nav {
  margin-top: 0.5rem;
}

.header__nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
}

.footer {
  margin: 2rem auto 0;
  max-width: fit-content;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 14px;
}

.footer__text {
  text-align: center;
}

.footer__copyright {
  opacity: 0.5;
}

.header__nav-link,
.footer__dev-link,
.footer__school-link {
  opacity: 0.5;
  transition: opacity ease 0.3s;
}

pre {
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 16px;
}

@media (hover: hover) {

  .header__nav-link:hover,
  .header__nav-link:focus-visible,
  .footer__dev-link:hover,
  .footer__dev-link:focus-visible,
  .footer__school-link:hover,
  .footer__school-link:focus-visible {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
}
