/* A conventional reading face and a consistent minimum text size. */
@media screen {
  :root {
    --text-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --muted: #536158;
  }
  body { font-family: var(--text-font); font-size: 18px; line-height: 1.65; }
  h1, h2, h3 { font-family: var(--text-font); }
  .eyebrow, .edition, .language-label, .language-switch button,
  .company-number, .company-meta, .company-date, .tags li,
  .career-index a span:last-child, .profile-location span, .skill-number,
  .project-signature span { font-family: var(--text-font); letter-spacing: normal; }
  .eyebrow { font-size: 14px; font-weight: 500; text-transform: none; }
  .wordmark { font-size: 36px; letter-spacing: -1.5px; }
  #main-nav { font-size: 16px; gap: 30px; }
  .language-label { font-size: 14px; }
  .language-switch button { font-size: 14px; min-width: 46px; min-height: 40px; font-weight: 500; }
  .hero { padding-top: 35px; }
  .hero-topline { margin-bottom: 26px; }
  .hero-topline .eyebrow { font-size: 15px; letter-spacing: normal; }
  .hero-grid { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 70px; }
  .hero h1 { font-size: clamp(62px,6.2vw,82px); font-weight: 600; line-height: 1.03; letter-spacing: -.035em; }
  .hero-role { font-size: 28px; line-height: 1.3; font-weight: 400; letter-spacing: -.015em; margin-top: 25px; }
  .hero-intro { font-size: 19px; line-height: 1.65; max-width: 49ch; margin-top: 22px; }
  .hero-actions { gap: 26px; margin-top: 27px; }
  .button { font-size: 16px; font-weight: 500; min-height: 52px; padding: 13px 20px; }
  .text-link { font-size: 16px; }
  .profile { max-width: 340px; margin-right: 0; }
  .portrait-shell { padding: 0; border-radius: 14px; overflow: hidden; background: #c3c6b9; }
  .portrait-shell > img { aspect-ratio: 4/5; width: 100%; height: auto; border-radius: 14px; object-fit: cover; filter: none; }
  .portrait-shell:before, .portrait-shell:after { display: none; }
  .profile-location { font-size: 14px; margin-top: 14px; }
  .profile-location span { font-size: 13px; }
  .hero-bottom { margin-top: 35px; padding-block: 25px; }
  .stats { gap: 38px; }
  .stat { gap: 18px; }
  .stat strong { font-size: 36px; font-weight: 500; letter-spacing: -.025em; }
  .stat span { font-size: 15px; line-height: 1.5; max-width: 230px; }
  .section-header h2 { font-size: 38px; font-weight: 500; letter-spacing: -.025em; }
  .section-header .eyebrow { font-size: 14px; margin-bottom: 12px; }
  .section-header p:not(.eyebrow) { font-size: 18px; line-height: 1.55; }
  .quiet-button { font-size: 15px; min-height: 48px; }
  .experience-layout { grid-template-columns: 174px minmax(0,1fr); gap: 28px; }
  .career-index > .eyebrow { font-size: 14px; }
  .career-index a { font-size: 14px; min-height: 46px; }
  .career-index a span:last-child { font-size: 13px; }
  .index-note { font-size: 13px; line-height: 1.65; max-width: none; }
  .company-body { padding: 29px 28px 8px; }
  .company-number { font-size: 13px; width: 30px; height: 30px; }
  .company-meta { font-size: 13px; line-height: 1.5; gap: 12px; flex-wrap: wrap; }
  .company h3 { font-size: 27px; letter-spacing: -.02em; line-height: 1.2; }
  .company-date, .featured .company-date { font-size: 15px; line-height: 1.5; margin-top: 11px; }
  .company-role { font-size: 20px; line-height: 1.4; letter-spacing: normal; }
  .company-place { font-size: 15px; line-height: 1.55; }
  .company-summary, .featured .company-summary { font-size: 18px; line-height: 1.65; min-height: 0; }
  .tags { gap: 8px; }
  .tags li { font-size: 13px; padding: 6px 9px; line-height: 1.5; }
  summary { font-size: 16px; min-height: 62px; }
  .plus { width: 26px; height: 26px; }
  .plus:before, .plus:after { left: 8px; top: 12px; }
  .details-content ul { font-size: 17px; line-height: 1.7; padding-left: 20px; }
  .details-content li + li { margin-top: 14px; }
  .company-link { font-size: 15px; min-height: 44px; }
  .featured .company-body { max-width: 72%; }
  .featured .company-number { display: none; }
  .featured .company-heading h3 { font-size: 36px; letter-spacing: -.025em; }
  .featured .company-role { font-size: 24px; }
  .featured:after { background: linear-gradient(90deg,#100f0e 30%,#100f0ef5 53%,#100f0e66 78%,transparent); }
  .project-signature span { display: none; }
  .project-signature img { width: 118px; }
  .skill-number { font-size: 14px; }
  .skill h3 { font-size: 21px; line-height: 1.35; letter-spacing: -.01em; min-height: 57px; }
  .skill p, .skill p.skill-stack { font-size: 16px; line-height: 1.65; }
  .skill p.skill-stack { min-height: 53px; }
  .about-section { gap: 70px; }
  .about-section h2 { font-size: 38px; font-weight: 500; letter-spacing: -.025em; }
  .about-copy > p { font-size: 18px; line-height: 1.75; }
  .education h3 { font-size: 18px; line-height: 1.5; }
  .education p { font-size: 16px; line-height: 1.65; }
  .contact-section h2 { font-size: 42px; font-weight: 500; letter-spacing: -.025em; }
  .contact-section h2 + p { font-size: 18px; line-height: 1.65; max-width: 430px; }
  .contact-email { font-size: 28px; letter-spacing: -.015em; }
  .copy-button, .social-links, .social-links span { font-size: 15px; }
  .cv-links { font-size: 15px; }
  .source-hint { font-size: 14px; line-height: 1.6; }
  footer > span, footer > a:last-child { font-size: 14px; }
  #toast { font-size: 16px; }
}
@media screen and (max-width: 1050px) {
  .hero-grid { gap: 38px; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); }
  .hero h1 { font-size: 68px; }
  .hero-role { font-size: 26px; }
  .hero-intro { font-size: 18px; }
  .profile { max-width: 300px; }
  .stats { gap: 26px; }
  .stat { gap: 14px; }
  .stat span { font-size: 14px; }
  .experience-layout { grid-template-columns: 145px minmax(0,1fr); gap: 22px; }
  .career-index a { font-size: 13px; }
  .career-index a span:last-child { font-size: 13px; }
  .company-body { padding-inline: 23px; }
  .company h3 { font-size: 25px; }
  .company-summary, .featured .company-summary { font-size: 17px; }
  .featured .company-body { max-width: 78%; }
  .project-signature { display: none; }
  .skills-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; }
  .skill h3, .skill p.skill-stack { min-height: 0; }
  .contact-grid { gap: 40px; }
  .contact-actions { flex-wrap: wrap; gap: 12px 20px; }
}
@media screen and (max-width: 800px) {
  #main-nav { font-size: 15px; gap: 20px; }
  .hero h1 { font-size: 58px; }
  .hero-role { font-size: 24px; }
  .hero-actions { gap: 20px; flex-wrap: wrap; }
  .profile { max-width: 250px; }
  .button, .text-link { font-size: 15px; }
  .stat { display: block; }
  .stat span { display: block; margin-top: 8px; }
  .section-header h2 { font-size: 34px; }
  .section-header p:not(.eyebrow) { font-size: 17px; }
  .experience-layout { display: block; }
  .company h3 { font-size: 25px; }
  .company-role { font-size: 19px; }
  .company-summary, .featured .company-summary { font-size: 17px; }
  .about-section { gap: 35px; }
  .about-section h2 { font-size: 34px; }
  .contact-section h2 { font-size: 34px; }
  .contact-email { font-size: 24px; }
}
@media screen and (max-width: 600px) {
  .header-inner { gap: 14px; }
  #main-nav { gap: 14px; }
  #main-nav a { font-size: 14px; }
  .language-switch button { min-width: 38px; min-height: 40px; font-size: 14px; }
  .hero-topline .eyebrow { font-size: 14px; max-width: none; }
  .hero h1 { font-size: clamp(46px,13vw,68px); letter-spacing: -.03em; }
  .hero-role { font-size: 25px; line-height: 1.35; }
  .hero-intro { font-size: 18px; line-height: 1.65; }
  .hero-actions { gap: 20px; }
  .button, .text-link { font-size: 16px; }
  .profile { display: grid; max-width: none; grid-template-columns: 112px minmax(0,1fr); gap: 0 18px; padding: 16px; border-radius: 14px; }
  .portrait-shell { width: 112px; height: 140px; border-radius: 8px; grid-row: auto; }
  .portrait-shell > img { border-radius: 8px; }
  .profile-location { font-size: 14px; align-self: center; margin-top: 0; }
  .profile-location span { font-size: 13px; }
  .stats { gap: 18px; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .stat strong { font-size: 31px; }
  .stat span { font-size: 13px; line-height: 1.5; max-width: none; }
  .section-header .eyebrow { font-size: 14px; }
  .section-header h2 { font-size: 33px; }
  .section-header p:not(.eyebrow) { font-size: 17px; }
  .quiet-button { font-size: 15px; }
  .company-body, .featured .company-body { padding: 25px 24px 6px; max-width: none; }
  .company h3 { font-size: 27px; }
  .company-meta { font-size: 13px; }
  .company-date, .featured .company-date { font-size: 15px; }
  .company-role, .featured .company-role { font-size: 21px; }
  .company-place { font-size: 15px; }
  .company-summary, .featured .company-summary { font-size: 17px; line-height: 1.7; }
  .featured .company-number { display: grid; }
  .featured:after { background: linear-gradient(0deg,#100f0e 65%,#100f0ed9 82%,#100f0e55); }
  .tags li { font-size: 13px; }
  summary { font-size: 16px; }
  .details-content ul { font-size: 17px; }
  .company-link { font-size: 15px; }
  .skills-grid { grid-template-columns: 1fr; }
  .skill h3 { font-size: 21px; }
  .skill p, .skill p.skill-stack { font-size: 17px; }
  .about-section h2 { font-size: 34px; }
  .about-copy > p { font-size: 18px; }
  .education h3 { font-size: 18px; }
  .education p { font-size: 16px; }
  .contact-section h2 { font-size: 35px; }
  .contact-section h2 + p { font-size: 18px; }
  .contact-email { font-size: 25px; }
  .copy-button, .social-links, .social-links span, .cv-links { font-size: 15px; }
  .source-hint { font-size: 14px; }
  footer { flex-wrap: wrap; padding-block: 22px; gap: 15px 20px; }
  footer > span, footer > a:last-child { font-size: 13px; }
}
@media screen and (max-width: 370px) {
  #main-nav a:last-child { display: none; }
  .profile { grid-template-columns: 92px minmax(0,1fr); gap: 0 12px; padding: 12px; }
  .portrait-shell { width: 92px; height: 115px; }
  .profile-location { font-size: 13px; }
  .company-body, .featured .company-body { padding-inline: 20px; }
  .hero-role { font-size: 24px; }
  .hero-actions { gap: 16px; }
  .button { padding-inline: 16px; }
}

@media screen {
  .cv-links { align-items: center; gap: 12px; }
  .cv-links .cv-download { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 13px; border: 1px solid #ffffff66; border-radius: 6px; }
  .cv-links .cv-download:hover { background: #ffffff12; border-color: #ffffffbb; }
  .cv-links button { margin-right: 6px; }
}
