/* Legibility + accessibility floor, loaded last.
   !important because the same elements are sized in several stylesheets with id-level selectors. */

/* Small caps labels: never below 11px (were 7-9px), with tighter tracking so they read as words. */
.hero-top, .hero-rule, .section-index, .eyebrow, .visual-caption,
.home-project-info span, .home-project-type, .project-detail span,
.project-detail-top, .hero-cta, #about .team-number, #about .team-role {
  font-size: 11px !important;
  letter-spacing: .08em !important;
}

/* Reading text: project descriptions and About copy (were 7-11px). */
body.single-page #portfolio .project-description-copy p,
body.single-page #about .about-copy > p:not(.eyebrow),
body.single-page #about .team-bio,
body.single-page #about .team-heading > p:last-child,
body.single-page .home-project-description {
  font-size: 15px !important;
  line-height: 1.5 !important;
}

/* Touch targets: menu button 44px; nav rows 40px on phones only (mouse needs less). */
.menu-toggle { min-width: 44px; min-height: 44px; }

/* Desktop side menu: equal spacing between all links. */
@media (min-width: 761px) {
  body.big-template .main-nav { gap: 4px; }
  body.big-template .main-nav .nav-contact { margin-top: 0; }
}

/* Phones: bottom line keeps page name + motto on one row; the studio name is already in the logo. */
@media (max-width: 760px) {
  .hero-rule > span:last-child:not(:first-child) { display: none; }
}

/* Compact burger menu: rows close together, panel only as tall as its links. */
@media (max-width: 760px) {
  body.single-page .main-nav {
    top: var(--header-h, 78px) !important;
    bottom: auto !important;
    gap: 0 !important;
    padding: 6px 22px 12px !important;
  }
  body.single-page .main-nav a {
    min-height: 28px;
    display: flex;
    align-items: center;
    padding: 0 !important;
    border: 0 !important;
  }
  body.single-page .main-nav .portfolio-subnav {
    border: 0 !important;
    background: none !important;
  }
  body.single-page .main-nav .portfolio-subnav {
    display: none !important;
    margin: 0 0 4px 12px !important;
  }
  /* Project names show only after tapping (or hovering) Portfolio. */
  body.single-page .main-nav .portfolio-nav-item.is-expanded .portfolio-subnav {
    display: grid !important;
  }
  @media (hover: hover) {
    body.single-page .main-nav .portfolio-nav-item:hover .portfolio-subnav {
      display: grid !important;
    }
  }
  body.single-page .main-nav .portfolio-subnav a {
    min-height: 30px;
    font-size: 12px !important;
    color: var(--muted, #6b6b68);
    white-space: normal !important;
    line-height: 1.25;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
