/* 4K picture grade — sharper type, photos, and colour. Layout and logo hex stay put. */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-optical-sizing: auto;
  font-synthesis: none;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

h1,
h2,
h3,
h4 {
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
canvas,
svg {
  image-rendering: auto;
  image-rendering: high-quality;
}

img {
  image-orientation: from-image;
}

.brand img,
.opening-logo img,
.brand-logo,
.hero-logo,
.footer-logo,
.locker-front img,
.sports-mark img,
.site-footer img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}

.hero-media img,
.opening-bg,
[data-hero] img,
.film img,
.gal img,
.gallery-slide,
.about-photo img,
.legacy img,
.chairman-photo,
.stadium-photo,
.voice-photo img,
.life-photo img,
.event-card-photo img,
.campus-gallery img {
  filter: contrast(1.07) saturate(1.12) brightness(1.02);
}

.hero-media img,
.opening-bg,
[data-hero] img {
  filter: contrast(1.1) saturate(1.16) brightness(1.03);
}

.hero-media video,
[data-hero] video,
video.opening-bg,
video.hero-photo {
  filter: none !important;
  animation: none !important;
  image-rendering: auto;
}

.paper-grain,
html[data-theme="light"] .paper-grain {
  opacity: 0.045;
}

@media (color-gamut: p3) {
  html[data-theme="light"] {
    --magenta: color(display-p3 0.169 0.623 0.878);
    --yard: color(display-p3 0.486 0.749 0.227);
    --sun: color(display-p3 0.961 0.651 0.137);
    --heading: color(display-p3 0.106 0.176 0.227);
    --ink: color(display-p3 0.082 0.125 0.200);
  }

  html[data-theme="light"] body.school-desk {
    --blue: color(display-p3 0.169 0.623 0.878);
    --magenta: color(display-p3 0.169 0.623 0.878);
    --orange: color(display-p3 0.910 0.467 0.133);
    --navy: color(display-p3 0.118 0.227 0.298);
    --navy-deep: color(display-p3 0.118 0.227 0.298);
  }
}

@media (dynamic-range: high) {
  .hero-media img,
  .opening-bg,
  [data-hero] img {
    filter: contrast(1.12) saturate(1.18) brightness(1.04);
  }
}

@media (min-width: 2560px) {
  html[data-theme="light"] body {
    font-size: 17.5px;
  }
}

@media (min-resolution: 2dppx) {
  body {
    -webkit-font-smoothing: antialiased;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img,
  .hero-media video,
  .opening-bg,
  [data-hero] img,
  [data-hero] video,
  .film img,
  .gal img,
  .gallery-slide,
  .about-photo img,
  .legacy img,
  .chairman-photo,
  .stadium-photo,
  .voice-photo img,
  .life-photo img,
  .event-card-photo img,
  .campus-gallery img {
    filter: contrast(1.04) saturate(1.06);
  }
}
