@font-face {
  font-family: Montserrat;
  src: url("../fonts/Montserrat-Regular.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: Montserrat;
  src: url("../fonts/Montserrat-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: Montserrat;
  src: url("../fonts/Montserrat-Italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: Montserrat;
  src: url("../fonts/Montserrat-BoldItalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --primary: #153d94;
  --primary-text: #142941;
  --secondary: #f4b400;
  --background: #f9f7f7;
  --font-heading:
    Montserrat,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  --font-body: Georgia, Cambria, "Times New Roman", Times, serif;
  --font-mono:
    "SF Mono", "Fira Code", "Fira Mono", Menlo, Monaco, Consolas, monospace;
}

body,
html {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--primary-text);
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.6;
}

body {
  margin: 60px auto;
  padding: 0 24px;
  max-width: 1000px;

  @media (max-width: 768px) {
    margin: 20px auto;
    padding: 0 12px;
  }
}

::selection {
  background: var(--secondary);
}

a {
  margin: 0 10px;
  padding-bottom: 4px;
  text-decoration: none;
  font-weight: inherit;
  text-transform: lowercase;
  color: inherit;
  transition: all 0.1s ease;
  white-space: nowrap;
  border-bottom: 2px solid var(--secondary);

  &:hover {
    padding-bottom: 0;
    border-bottom: 4px solid var(--secondary);
  }
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

footer {
  text-align: center;
  font-size: small;
  margin-top: 30px;
}

.tag {
  display: inline;
  background: white;
  color: var(--primary);
  padding: 3px 6px;
  border-radius: 3px;
  margin-right: 4px;
  white-space: nowrap;
  font-size: small;
  line-height: 2;
}

header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;

  h1 {
    margin-bottom: 0;
  }

  p {
    margin-top: 4px;
  }

  nav {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 24px;
    row-gap: 24px;

    a[aria-current="page"] {
      padding-bottom: 0;
      border-bottom: 6px solid var(--secondary);
    }
  }

  .profile-picture {
    border-radius: 50%;
    max-width: 250px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
  }
}

.content-section {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 80px auto;

  >h2 {
    font-size: 1.25rem;
    color: var(--primary);
    flex-shrink: 0;
    width: 200px;
    margin: 0;
  }

  @media (max-width: 768px) {
    flex-direction: column;
    gap: 8px;
    margin: 60px auto;

    >h2 {
      width: auto;
    }
  }
}