:root {
  --button-bg: #e9e9ed;
  --highlight-color: #7c4600;
  --input-borders: #b7b7b7;
  --page-border: #d3d3d3;
  --border-subtle: #b7b7b7;
  --border-accent: #705d43;
  --color-alpha: #faebd7;
  --letter-bg: #f5f5f7;
  --frame-border: #f5f5f7;
  --surface-bg: #fff;
}

.disabled-feature {
  display: none !important;
  visibility: hidden !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Varta", sans-serif;
  box-sizing: border-box;
}

button {
  border: 1px solid transparent;
  padding: 1rem;
  background-color: var(--button-bg);
  font-family: inherit;
}
button:hover {
  border-color: var(--highlight-color);
}

.content-column {
  width: min(100%, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
  box-sizing: border-box;
}

.page-header {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--page-border);
  background-color: var(--surface-bg);
  height: 80px;
  width: 100%;
  box-sizing: border-box;
}

.page-header__content {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;

  .site-logo {
    height: 80px;
  }
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.2rem;
  height: 100%;
  padding: 1em;

  .nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: content-box;
    gap: 0.4em;
    border: 0;
    padding: 1em;
    background: none;
    height: 50px;
    /*border-radius: 30px;*/

    img {
      width: 1em;
      height: 1em;
    }
  }
  .nav-button:hover {
    border-bottom: 3px solid var(--highlight-color);
  }

  .social-link {
    height: 35px;
    padding: 0.5em;
  }
}

.section {
  display: flex;
  flex-direction: column;
  padding-bottom: 2em;

  .section__title {
    h1 {
      font-family: "Playwrite CA Guides", cursive;
      font-weight: 400;
      font-style: normal;
      font-size: 25px;
      padding-block: 0.5em;
    }
  }

  hr {
    color: inherit;
  }
}

.section .section__title,
.section--secondary {
  background-color: var(--color-alpha);
}

.section-unbounded {
  height: auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  font-family: inherit;
  gap: 0.5em;
  label,
  button {
    font-weight: bold;
  }
  textarea {
    height: 200px;
    border: 1px solid var(--border-subtle);
    resize: none;
  }
  input {
    border: 1px solid var(--border-subtle);
  }
  textarea,
  input {
    padding: 0.5em;
  }
  button {
    margin-top: 1em;
  }

  h3 {
    font-size: 15px;
    margin-bottom: 0;
  }
  p {
    margin-bottom: 0;
  }
  .form-legal {
    font-style: italic;
    color: #555;
  }
}

.text-container {
  padding: 1em;
}

.resume-button {
  display: flex;
  flex-direction: row;
  padding:.5em;
  background-color: #f5f5f7;
  align-items: center;
  justify-content: center;
  gap: .5em;
  height:100%;

  p {
    align-self: self-start;
    text-decoration: none;
    color: inherit;
  }

  img {
    width:30px;
    align-self: self-end;
  }
}

.biography-card {
  background-color: var(--letter-bg);
  padding: 2em;
}

.certificate-list {
  .certificate-item {
    border: 1px solid var(--page-border);
    margin-bottom: 1em;
    display: flex;
    flex-direction: row;
    .certificate-item__image {
      width: 50%;
      text-align: center;
      img {
        align-self: center;
        width: 70%;
      }
      p {
        margin-top: 1em;
        font-size: 10px;
      }
    }
    .certificate-item__content {
      p {
        margin: 5px;
      }
      .certificate-item__issuer {
        color: var(--highlight-color);
        font-weight: bold;
      }
      .certificate-item__expiration {
        font-style: italic;
      }
    }
  }
}

.certificate-list .certificate-item,
.project-catalog .project-card {
  background-color: var(--surface-bg);
  padding: 1em;
  border: 1px solid var(--border-subtle);
}

.section--tertiary {
  background-color: var(--surface-bg);
  color: #000;

  .section__title {
    background-color: inherit;
  }
}

.section--hero {
  position: relative;
  overflow: hidden;

  .section__content {
    position: relative;
    z-index: 1;
  }

  padding-bottom: 1.5em;
}

.hero {
  display: flex;
  flex-direction: row;
  padding-block: 1em;
  justify-content: center;

  .profile-image {
    width: clamp(250px, 35vw, 450px);
    height: auto;
    border-radius: 50%;
  }

  .hero__content {
    padding: 1em;

    h2,
    h3 {
      margin: 0;
      margin-bottom: 0.3em;
    }

    .hero__name {
      color: inherit;
      font-size: 30px;
    }
    .hero__role {
      color: var(--highlight-color);
      font-size: 20px;
    }
    .hero__bio {
      font-style: italic;
    }
    .hero__meta {
      color: #555;
      font-size: 15px;
    }
  }
}

.hero__actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__primary-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__secondary-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero__link,
.hero__social-link {
  color: inherit;
  text-decoration: none;
}

.hero__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.hero__button {
  min-width: 8rem;
  margin-right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.hero__button img {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.hero__social-link img,
.hero__social-link .social-link {
  display: block;
  margin-right: 0;
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.project-catalog {
  padding-block: 2em;
  display: flex;
  flex-direction: column;
  gap: 1em;
  justify-content: center;
}

.page-footer {
  background-color: var(--surface-bg);
  padding-block: 1em;
  border-top: 1px solid var(--page-border);
  text-align: center;
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero__content {
    padding: 1em 0 0;
  }

  .hero__actions {
    justify-content: center;
  }

  .profile-image {
    width: min(100%, 360px);
    height: auto;
  }
}

@media (max-width: 620px) {
  .certificate-list {
    .certificate-item {
      flex-direction: column;
      align-items: center;
    }
  }
}

@media (max-width: 480px) {
  .hero__actions {
    width: 100%;
    flex-direction: column;
  }

  .hero__primary-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }

  .hero__link {
    width: 100%;
  }

  .hero__button {
    width: 100%;
    min-width: 0;
  }

}

@media (max-width: 480px) {
  .main-nav {
    img {
      display: none;
      visibility: hidden;
    }
  }

  .profile-image {
    width: min(100%, 250px);
  }

  .certificate-list {
    .certificate-item {
      .certificate-item__image {
        img {
          width: 100%;
        }
      }
    }
  }

  .hero__actions {
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    height: auto;

    a {
      display: inline-flex;
      align-items: center;
    }

    .hero__button {
      display: inline-block;
      width: 100%;
    }

    .social-link {
      display: block;
      width: 40px;
      height: 40px;
    }
  }
}

.site-notice {
  max-width: 28rem;
  padding: 1.5rem;
  border: 1px solid var(--border-accent);
  color: #212121;
  background: #fff;
  box-shadow: 0 1rem 3rem rgb(0 0 0 / 25%);
}

.site-notice::backdrop {
  background: rgb(0 0 0 / 60%);
}

.site-notice h2 {
  margin-top: 0;
}

.site-notice button {
  padding: 0.6rem 1rem;
  border: 0;
  color: #fff;
  background: #705d43;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  top: 80px;
  right: 0;
  z-index: 3;
  display: none;
  height:100%;
  width: min(18rem, 90vw);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 1rem;
  border: 1px solid var(--page-border);
  background-color: var(--surface-bg);
  box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 15%);

  .mobile-menu__footer {
    text-align: center;
    padding:.2em;
    font-size: 15px;
  }

  .mobile-menu__list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .mobile-menu__list a {
    display: block;
  }
  .mobile-menu__button {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    width: 100%;
    text-align: left;
    cursor: pointer;

    img {
      width: 1em;
      height: 1em;
      flex: 0 0 auto;
    }
  }

  .mobile-menu__socials {
    display: flex;
    flex-direction: row;
    gap: 1em;
    justify-content: center;
    .mobile-menu__social-link {
      width:35px;
    }
  }
}

.mobile-menu-toggle {
  display: none;
  img {
    width:20px;
  }
}

.page-header:has(.mobile-menu-toggle:hover, .mobile-menu-toggle:focus) + .mobile-menu,
.mobile-menu:hover,
.mobile-menu:focus-within {
  display: block;
}

@media (prefers-color-scheme: dark) {
  .site-notice {
    color: #fff;
    background: #212121;
  }

  .site-notice h2,
  .site-notice p {
    color: #fff !important;
  }
}

@media (prefers-color-scheme: dark) {
  body,
  .page-header,
  .page-footer {
    background-color: #212121;
    .nav-button {
      color: white;
    }
  }
  p,
  h1,
  h2,
  li,
  label {
    color: white !important;
  }
  h3 {
    color: #ffe7c3 !important;
  }
  a {
    color: red;
  }
  .certificate-item {
    background-color: transparent !important;
    border: none !important;
  }
  .section {
    background-color: #212121;
  }
  .biography-card {
    background-color: #705d43 !important;
  }
  .section__title {
    background-color: #705d43 !important;
  }
  .site-logo {
    filter: grayscale() brightness(100);
  }
  .project-card {
    background-color: #705d43 !important;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
  }
}

@media (max-width: 380px) {
  .page-header__content {
    .site-logo {
      width: 70px;
    }
  }
}
