/* Simple, readable text sizes for the whole portfolio. */
body {
  font-size: 18px;
  line-height: 1.6;
}

p,
li,
label,
input,
textarea,
select {
  font-size: 1em;
  line-height: 1.6;
}

button,
.button {
  font-size: 16px;
}

.hero h1 {
  font-size: clamp(40px, 5vw, 58px);
}

.hero h2 {
  font-size: clamp(18px, 2vw, 22px);
}

.section-heading h2 {
  font-size: clamp(26px, 3vw, 34px);
}

.project-info p,
.skill-card p,
.note-card p,
.section-heading p,
.footer nav,
.footer-contact,
.footer small {
  font-size: 15px;
}

/* Use the compact menu on tablets and smaller screens. */
@media (max-width: 1100px) {
  .site-header {
    height: 64px;
    padding: 0 20px;
    gap: 12px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .navigation {
    display: none;
    position: absolute;
    top: 63px;
    left: 0;
    right: 0;
    height: auto;
    padding: 12px 20px;
    background: #08192b;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
  }

  .navigation.open {
    display: flex;
  }

  .navigation a {
    min-height: 46px;
    height: auto;
    padding: 10px;
    font-size: 16px;
  }

  .photo-note {
    display: none;
  }

  .portrait-wrap {
    overflow: hidden;
    min-width: 0;
  }

  .portrait-ring {
    max-width: 100%;
  }
}

@media (max-width: 650px) {
  body {
    font-size: 17px;
  }

  .site-header {
    padding: 0 12px;
    gap: 8px;
  }

  .brand {
    font-size: 16px;
  }

  .section-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
  }

  .hero h1 {
    justify-content: center;
  }

  .hero-copy {
    grid-row: 2;
  }

  .portrait-wrap {
    grid-row: 1;
    overflow: hidden;
  }

  .hero-actions,
  .social-links {
    justify-content: center;
  }

  .heading-action {
    flex-basis: 100%;
    width: max-content;
    margin-left: 40px;
    max-width: calc(100% - 40px);
    white-space: normal;
  }

  .project-grid,
  .skill-grid,
  .notes-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout,
  .admin-columns {
    grid-template-columns: 1fr;
  }

  .notes-toolbar {
    grid-template-columns: 1fr;
  }

  .search-control {
    grid-column: auto;
  }

  .footer {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .footer nav,
  .footer-contact {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 850px) and (min-width: 651px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 8px;
  }

  .hero h1 {
    justify-content: center;
  }

  .hero-copy {
    grid-row: 2;
  }

  .portrait-wrap {
    grid-row: 1;
    overflow: hidden;
  }

  .hero-actions,
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .site-header {
    padding-left: 8px;
    padding-right: 8px;
    gap: 5px;
  }

  .brand {
    min-width: 0;
    font-size: 13px;
  }

  .code-mark {
    font-size: 14px;
  }

  .site-header .admin-link {
    padding: 4px 5px;
    font-size: 12px;
  }

  .section-wrap {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 420px) {
  .site-header {
    padding-left: 8px;
    padding-right: 8px;
    gap: 5px;
  }

  .brand {
    font-size: 15px;
  }

  .site-header .theme-toggle,
  .site-header .admin-link {
    min-width: 0;
    padding: 5px 6px;
    font-size: 13px;
  }
}

/* Portfolio typography sizes for desktop, tablet, and phone screens. */
body {
  font-size: 17px;
}

.about-card p,
.project-info p,
.skill-card p,
.education-card p,
.section-heading p {
  font-size: 17px;
}

.hero h1 {
  font-size: clamp(40px, 5vw, 58px);
}

.hero-copy > p {
  font-size: clamp(18px, 1.6vw, 21px);
}

.hero-copy > .hero-intro {
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.6;
}

@media (max-width: 650px) {
  .hero-copy > .hero-intro {
    font-size: 15px;
  }
}

.project-info h3 {
  font-size: 24px;
}

.certificate-info p {
  font-size: 13px;
}

.contact-card h3 {
  font-size: 22px;
}

.contact-card p {
  font-size: 18px;
}

.contact-card p:first-of-type {
  font-size: 16px;
}

.brand {
  font-size: 19px;
}

.eyebrow,
.navigation a,
.lesson-meta,
.tags span {
  font-size: 13px;
}

.button,
button.button,
.button.small {
  font-size: 14px;
}

.footer nav,
.footer-contact,
.footer small {
  font-size: 12px;
}

.footer strong {
  font-size: 12px;
}

@media (max-width: 650px) {
  body,
  .about-card p,
  .project-info p,
  .skill-card p,
  .education-card p,
  .section-heading p {
    font-size: 16px;
  }
}
