/* Shared screen typography for all themes; control colors follow each palette. */
@media screen {
  :root:is([data-theme="light"], [data-theme="dark"], [data-theme="eva01"], :not([data-theme])) {
    --small-readable-text: 0.8125rem;
  }

  :root:is([data-theme="light"], [data-theme="dark"], [data-theme="eva01"], :not([data-theme])) :is(
    .theme-toggle, .eyebrow, .footer-note, .hero-terminal,
    .console-code, .console-bottom, .console-count, .console-help,
    .tile-code, .tile-bottom, .key-help, .key-help kbd, .mobile-help,
    .back-link, .profile-overline, .profile-origin, .profile-actions a, .copy-id,
    .projects-kicker, .project-category, .project-details,
    .ai-card-top, .ai-card-bottom > span,
    .section-label, .job-period, .job-company, .badge,
    .edu-year, .edu-note, .credential-status, .credential-link, .footer-date
  ) {
    font-size: var(--small-readable-text);
  }

  :root:is([data-theme="light"], [data-theme="dark"], [data-theme="eva01"], :not([data-theme])) :is(
    .console-code, .console-bottom, .tile-code, .tile-bottom, .section-label
  ) {
    line-height: 1.4;
    letter-spacing: .025em;
  }

  :root:is([data-theme="light"], [data-theme="dark"], [data-theme="eva01"], :not([data-theme])) .section-label {
    white-space: normal;
  }

  :root:is([data-theme="light"], [data-theme="dark"], :not([data-theme])) :is(
    .theme-toggle, .materials-filter:not(.is-active), .console-controls button,
    .slide-arrow, .profile-actions a, .copy-id, .download-link--secondary,
    .credential-link, .edu-credential-toggle:not([aria-expanded="true"]),
    .gpx-button--secondary
  ):not(:hover, :focus-visible),
  :root:is([data-theme="light"], [data-theme="dark"], :not([data-theme])) .gpx-disclosure {
    border-color: var(--control-border);
  }

  :root:is([data-theme="light"], [data-theme="dark"], :not([data-theme])) .materials-filter span {
    opacity: 1;
  }

  :root:is([data-theme="light"], [data-theme="dark"], [data-theme="eva01"], :not([data-theme])) :is(.console-title, .tile-word) {
    line-height: 1.15;
    letter-spacing: -.5px;
  }

  :root:is([data-theme="light"], [data-theme="dark"], [data-theme="eva01"], :not([data-theme])) .home-animations .console-title {
    --home-marker-height: 1lh;
  }

  /* PlayStation's two lines and the profile label share the tile height. */
  :root:is([data-theme="light"], [data-theme="dark"], [data-theme="eva01"], :not([data-theme])) .platform {
    min-height: 164px;
  }

  :root:is([data-theme="light"], [data-theme="dark"], [data-theme="eva01"], :not([data-theme])) .tile-face {
    padding: 12px;
  }
}
