/* web-font-size-defaults: shared reading and control sizes. */
:root {
  --fs-note: .8rem;
  --fs-sm: .9rem;
  --fs-base: 1rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.6rem;
  --fs-xl: 2rem;
  --fs-2xl: 3rem;
  --fs-fluid-lead: clamp(1.1rem, 2.6vw, 1.25rem);
  --fs-fluid-md: clamp(1.25rem, 3.2vw, 1.6rem);
  --fs-fluid-section-title: clamp(1.25rem, 3.7vw, 2rem);
  --fs-fluid-page-title: clamp(1.6rem, 5.6vw, 3rem);
  --lh-base: 1.8;
  --lh-tight: 1.5;
  --measure: 45em;
  /* Approved portfolio display sizes. */
  --portfolio-section-size: 2.25rem;
  --portfolio-nav-size: 1.25rem;
  --portfolio-copy-size: clamp(1.75rem, 2.8vw, 3rem);
}

html { font-size: 100%; }
body { font-size: var(--fs-base); line-height: var(--lh-base); }
h1, h2, h3 { font-feature-settings: "palt"; }
p { font-size: var(--fs-base); line-height: var(--lh-base); }
button, input, select, textarea { font-size: var(--fs-base); }
.eyebrow, .skip-link { font-size: var(--fs-base); }
.primary-nav a, .primary-nav a:first-child { font-size: var(--portfolio-nav-size); }
.brand span, .footer-wordmark { font-size: var(--fs-lg); }
.footer-subline { font-size: var(--fs-note); }
.menu-toggle { min-height: 44px; font-size: var(--fs-base); }
.text-link { min-height: 44px; font-size: var(--fs-base); }
.text-link span, .image-arrow, .gallery-prev, .gallery-next, .back-top {
  font-size: var(--fs-md);
}
.flat-button, .square-button { font-size: var(--fs-fluid-lead); }

.fv-copy h1 { font-size: var(--portfolio-copy-size); }
.fv-copy > p { font-size: var(--fs-fluid-lead); line-height: var(--lh-base); }
.category-shortcuts > a { min-height: 44px; font-size: var(--fs-fluid-lead); }
.hero-shortcuts > a { font-size: var(--fs-base); }
.panel-category { min-height: 44px; font-size: var(--fs-sm); bottom: -32px; }
.panel-category > span { font-size: inherit; }
.panel-category > span[aria-hidden] { font-size: var(--fs-base); }
.gallery-current {
  height: auto; min-height: 28px; font-size: var(--fs-sm);
  line-height: var(--lh-tight); align-items: center;
}
#gallery-name {
  font-size: var(--fs-sm); line-height: var(--lh-tight);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  white-space: normal; overflow: hidden;
}
.gallery-current .meta-badge { font-size: var(--fs-note); min-height: 26px; }
.gallery-actions { gap: 8px; }
.gallery-detail {
  font-size: var(--fs-note); min-height: 44px;
  padding: 6px 10px; gap: 6px;
}
#gallery-position { font-size: var(--fs-sm); }
#gallery-toggle { min-height: 44px; font-size: var(--fs-note); }

.section-heading h2, .profile-title h2, .contact-inner h2 {
  font-size: var(--fs-fluid-section-title);
}
#works-heading, #profile-heading, #contact-heading {
  font-size: var(--portfolio-section-size);
}
.works-filter > label, .feature-options legend, .works-filter select {
  font-size: var(--fs-base);
}
.works-filter select { min-height: 44px; }
.feature-options span {
  font-size: var(--fs-base); min-height: 44px; line-height: var(--lh-tight);
}
.filter-reset, .results-line, .results-line .text-link, .results-line strong {
  font-size: var(--fs-base);
}
.filter-reset { min-height: 44px; }
.work-card-meta { font-size: var(--fs-sm); }
.work-card h3 { font-size: var(--fs-md); line-height: var(--lh-tight); }
.work-card h3 a { display: inline-flex; align-items: center; min-height: 44px; }
.meta-badge {
  font-size: var(--fs-base); min-height: 44px; line-height: var(--lh-tight);
}
.card-badges .meta-badge {
  font-size: var(--fs-note); min-height: 1.625rem; line-height: var(--lh-tight);
  padding: .125rem .625rem; border-radius: 999px;
}
.shown-count { font-size: var(--fs-sm); }
.load-more-wrap > .flat-button { font-size: var(--fs-fluid-lead); }
.empty-state .empty-title { font-size: var(--fs-md); }
.empty-state > p + p { font-size: var(--fs-base); line-height: var(--lh-base); }
.empty-state .flat-button { font-size: var(--fs-fluid-lead); }

.profile-body { max-width: var(--measure); }
.profile-body > p, .profile-body > p:not(.profile-name) {
  font-size: var(--fs-base); line-height: var(--lh-base);
}
.profile-name { font-size: var(--fs-md); }
.profile-name span, .profile-skills span { font-size: var(--fs-base); }
.contact-inner p:last-child, .inquiry-heading p {
  font-size: var(--fs-base); line-height: var(--lh-base);
}
.inquiry-field label, .inquiry-field input, .inquiry-field textarea {
  font-size: var(--fs-base); line-height: var(--lh-base);
}
.inquiry-required, .inquiry-privacy {
  font-size: var(--fs-note); line-height: var(--lh-base);
}
.inquiry-submit { font-size: var(--fs-fluid-lead); }
.inquiry-status, .inquiry-success p, .inquiry-thanks p {
  font-size: var(--fs-base); line-height: var(--lh-base); max-width: var(--measure);
}
.inquiry-success h3, .inquiry-thanks h2 { font-size: var(--fs-fluid-md); }
.inquiry-thanks h1 { font-size: var(--fs-fluid-page-title); }

.breadcrumbs { font-size: var(--fs-base); }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.detail-main .breadcrumbs > span:last-child { max-width: 100%; }
.archive-heading h1, .archive-heading .common-page-title,
.case-heading h1, .not-found h1 {
  font-size: var(--fs-fluid-page-title); line-height: var(--lh-tight);
}
.archive-heading > p:last-child { font-size: var(--fs-base); line-height: var(--lh-base); }
.archive-shortcuts > a { font-size: var(--fs-fluid-lead); }
.archive-home, .return-link { font-size: var(--fs-base); }
.year-index strong { font-size: var(--fs-2xl); }
.year-index span:first-of-type { font-size: var(--fs-sm); }
.year-index span:last-child { font-size: var(--fs-md); }
.case-heading > p { font-size: var(--fs-base); line-height: var(--lh-base); max-width: var(--measure); }
.case-content { min-width: 0; max-width: var(--measure); }
.case-facts h2 { font-size: var(--fs-md); }
.case-facts dt { font-size: var(--fs-sm); }
.case-facts dd { font-size: var(--fs-base); line-height: var(--lh-base); }
.case-facts .flat-button { font-size: var(--fs-fluid-lead); gap: 8px; padding-inline: 10px; }
.case-section h2, .section-heading.simple h2 {
  font-size: var(--fs-fluid-md); line-height: var(--lh-tight);
}
.case-section p { font-size: var(--fs-base); line-height: var(--lh-base); max-width: var(--measure); }
.section-heading.simple .text-link { font-size: var(--fs-base); }
.case-end > a { font-size: var(--fs-fluid-lead); }
.site-footer, .site-footer nav { font-size: var(--fs-base); }
.footer-name { font-size: var(--fs-md); }
.footer-meta, .site-footer small { font-size: var(--fs-sm); line-height: var(--lh-base); }
.back-top { min-width: 44px; min-height: 44px; }

@media (max-width: 1100px) {
  .panel-category { font-size: var(--fs-sm); }
  .panel-banner .panel-category { left: auto; right: 0; transform: none; }
}

@media (min-width: 700px) and (max-width: 1100px) {
  :root { --portfolio-copy-size: clamp(1.1rem, 2.7vw, 3rem); }
  .hero-shortcuts > a { font-size: var(--fs-base); }
  .gallery-controls { width: 50%; margin-left: 46%; }
  .gallery-prev, .gallery-next { width: 44px; min-height: 44px; }
}

@media (max-width: 699px) {
  :root {
    --portfolio-section-size: 1.625rem;
    --portfolio-nav-size: 1rem;
    --portfolio-copy-size: clamp(1.5rem, 7.7vw, 2.5rem);
  }
  .hero-shortcuts > a { font-size: var(--fs-base); }
  .gallery-controls { width: calc(100% - 44px); }
  .lead-break { display: initial; }
  .lead-phrase { display: inline-block; max-width: 100%; }
  .filter-dropdowns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-dropdowns select[name="kind"] { grid-column: 1 / -1; }
  .inquiry-heading p { max-width: var(--measure); }
  .case-facts dl { grid-template-columns: minmax(0, 1fr); }
  .case-end > a { font-size: var(--fs-fluid-lead); }
  .section-heading { gap: 20px; }
}

@media (min-width: 500px) and (max-width: 699px) {
  :root { --portfolio-copy-size: clamp(1.5rem, 6.8vw, 3rem); }
}
