@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/dm-sans-400.ttf) format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/dm-sans-500.ttf) format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/dm-sans-600.ttf) format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/dm-sans-700.ttf) format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/manrope-600.ttf) format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/manrope-700.ttf) format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/manrope-800.ttf) format('truetype');
}

/* Portfolio typography. Project identity specimens keep their source typefaces. */
:root {
  --font-heading: 'Manrope', 'Segoe UI', sans-serif;
  --font-body: 'DM Sans', 'Segoe UI', Arial, sans-serif;
  --type-hero: clamp(2.4rem, 4.8vw, 5.25rem);
  --type-section: clamp(1.65rem, 2.5vw, 2.65rem);
  --type-card: clamp(1.15rem, 1.5vw, 1.4rem);
  --type-body: clamp(1rem, .94rem + .25vw, 1.125rem);
  --type-small: .9375rem;
  --reading-width: 70ch;
  --focus-color: #344e94;
}
body, button, input, textarea, select { font-family: var(--font-body); }
h1, h2, h3, h4, h5, h6, .stat-value, .task-metric strong { font-family: var(--font-heading); }
h1 { font-weight: 800; letter-spacing: -.04em; }
h2 { font-weight: 700; letter-spacing: -.035em; }
h3, h4 { font-weight: 700; letter-spacing: -.02em; }
p, li { line-height: 1.7; }
button, a { -webkit-tap-highlight-color: transparent; }
.navbar, footer, .home-project-index, .quizhang-tags { font-family: var(--font-body); }
.home-page .home-hero-copy h1 { letter-spacing: -.04em; }
.home-page .home-section-heading h2, .home-page .home-contact-intro h2 { letter-spacing: -.035em; }
footer { font-size: var(--type-small); }
/* Shared interactive and intrinsic sizing rules, including legacy pages. */
:where(a, button, input, textarea, select, summary):focus-visible { outline: 3px solid var(--focus-color); outline-offset: 5px; }
img, video { max-width: 100%; }
.home-project-copy, .home-contact-card > div, .case-meta > div { min-width: 0; }
.case-lightbox-toolbar { flex-wrap: wrap; }
.disk-profile-summary, .disk-profile-note p { font-family: var(--font-body); }
@media (max-width: 390px) {
  .nav-logo a { font-size: 1rem; }
  .nav-container { gap: .5rem; }
}
