@font-face {
  font-family: Manrope;
  src: url("assets/Manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
.audit-page {
  font-family: "Nunito Sans", sans-serif;
  --accent: #abcde8;
  --line: #abcde8;
  --panel: #f1e1cf;
}
.audit-page :is(h1, h2, h3, nav, .brand, .button, .tag, summary, .status, .scene-label strong) {
  font-family: Manrope, sans-serif;
}
.audit-page :is(h1, h2, .report-preview h3, .example-grid h3) { font-weight: 750; }
.audit-page .primary { background: #276291; color: #fff; border-color: #276291; }
.audit-page .primary:hover { background: #0b667f; border-color: #0b667f; }
.audit-page .status.limited { background: #f1e1cf; color: #231f20; }
.audit-page .fp-section { border-block-start: 1px solid var(--line); }
.audit-page .fp-heading { border: 0; }
.audit-page .fp-heading h2 { max-width: 18ch; }
.audit-page .fp-heading .fp-intro { margin-block-start: .65rem; max-width: 67ch; }
.audit-page .fp-heading .fp-note { margin-block-start: .4rem; font-size: .85rem; color: var(--muted); }

.audit-page {
  --audit-blue: #327db9;
  --audit-deep: #276291;
  --audit-light: #abcde8;
  --audit-turquoise: #65c5dd;
  --audit-coral: #ed896f;
  --audit-sand: #f1e1cf;
}
.audit-page .bar { gap: 1rem 2rem; padding-block: 1.25rem; }
.audit-page .brand::before { content: none; }
.audit-page .brand img { display: block; width: clamp(155px, 17vw, 220px); height: auto; }
.audit-page nav a { text-decoration: none; }
.audit-page nav a:hover,
.audit-page nav a[aria-current="page"] { color: #0b667f; text-decoration: underline; }
.audit-page .hero { column-gap: clamp(2rem, 5vw, 5rem); }
.audit-page .hero h1 { font-size: clamp(2.5rem, 5.2vw, 5rem); text-wrap: balance; }
.audit-page .tag { color: var(--audit-deep); }
.audit-page .button { border-radius: 2rem; font-weight: 750; }
.audit-page .button:not(.primary) { border-color: var(--audit-blue); }
.audit-page .report-preview {
  border: 0;
  border-radius: 1.4rem;
  background: var(--audit-sand);
  box-shadow: .55rem .55rem 0 var(--audit-light);
}
.audit-page .report-top { border-color: var(--audit-blue); }
.audit-page .finding, .audit-page .card, .audit-page details { border-radius: 1rem; }
.audit-page .status.limited { background: var(--audit-coral); }
.audit-page .cards .card:nth-child(3n + 1) { background: var(--audit-light); }
.audit-page .cards .card:nth-child(3n + 2) { background: var(--audit-turquoise); }
.audit-page .cards .card:nth-child(3n) { background: var(--audit-sand); }
.audit-page .cards .card .tag { color: var(--ink); }
.audit-page .fp-section { background: var(--audit-sand); }
.audit-page .fp-photo { background: var(--audit-deep); }
.audit-page .fp-controls { row-gap: .85rem; }
.audit-page .fp-face:not(.fp-back) { border: 1px solid #276291; }
.audit-page .table-scene { border-radius: 1.25rem; background: var(--audit-light); }
.audit-page .shared-table { border-color: var(--audit-deep); }
.audit-page footer { border-color: var(--audit-light); padding-block: 1.45rem; }

@media (max-width: 720px) {
  .audit-page .hero h1 { font-size: clamp(2.4rem, 8vw, 3.6rem); }
  .audit-page .report-preview { box-shadow: .3rem .3rem 0 var(--audit-light); }
}

.audit-page .site-header .brand img { width: 100%; }
.audit-page .site-header nav a:hover { color: #0b667f; }
.audit-page .site-footer {
  padding: 64px var(--space) 26px;
  color: white;
}
.audit-page .site-footer nav a:hover { color: white; }
.audit-page .hero {
  align-items: start;
  padding-block: clamp(3rem, 6vw, 5.5rem);
}
.audit-page .hero h1 { max-width: 17ch; }
.audit-page .example-grid { align-items: center; }
.audit-table-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.25rem;
}
@media (max-width: 760px) {
  .audit-page .site-footer { padding-block: 42px 22px; }
}

.audit-page .hero {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: center;
}
.audit-page .hero h1 { max-width: 19ch; text-wrap: pretty; }
.audit-lantern {
  display: grid;
  justify-items: center;
  justify-self: end;
  gap: .7rem;
  width: min(100%, 15rem);
  margin-inline-end: clamp(0rem, 3vw, 3rem);
}
.lantern-functions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  place-content: center;
  gap: 5%;
  aspect-ratio: 1;
  width: clamp(9rem, 14vw, 12.5rem);
  padding: 17%;
  margin: 0;
  list-style: none;
  border: 1px solid #abcde8;
  border-radius: 50%;
  background: radial-gradient(circle at 43% 35%, #fff 17%, #f1f8fd 65%, #abcde8);
  box-shadow: 0 .5rem 1.6rem #27629116, inset 0 0 0 5px #fff9;
}
.lantern-functions li {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 24%;
  color: #231f20;
  background: #abcde8;
  box-shadow: inset 0 0 .15rem #27629130;
  font: 800 clamp(.67rem, 1.1vw, .88rem)/1 Manrope, sans-serif;
  transition: background-color .5s ease, box-shadow .5s ease;
}
.lantern-functions li.is-lit {
  background: #f5fcff;
  box-shadow: 0 0 .75rem #327db9b0, inset 0 0 .35rem #65c5dd;
}
@media (max-width: 720px) {
  .audit-page .hero { grid-template-columns: minmax(0, 1fr); }
  .audit-lantern { justify-self: center; margin-inline-end: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .lantern-functions li { transition: none; }
}

.audit-page .hero {
  row-gap: clamp(1rem, 2.5vw, 2rem);
}
.audit-page .audit-hero-heading {
  grid-column: 1 / -1;
}
.audit-page .audit-hero-heading h1 {
  max-width: none;
  font-size: clamp(2.4rem, 5.1vw, 4.9rem);
}
.audit-hero-copy .lead { margin-top: 0; }
.audit-lantern { width: min(100%, 16rem); }
.lantern-functions {
  width: clamp(10rem, 16vw, 14rem);
  padding: 13%;
  border: .44rem solid #276291;
  background:
    radial-gradient(ellipse at 38% 30%, #fff 4%, #f5fcff 45%, #d8effa 74%, #abcde8 100%);
  box-shadow:
    0 0 0 .25rem #327db9,
    0 .34rem 0 .25rem #184566,
    0 .8rem 1.8rem #27629132,
    inset 0 0 0 .23rem #fff,
    inset 0 0 1.2rem #65c5dd86;
}
.lantern-functions li {
  background: #d4ebf9;
  box-shadow: inset 0 0 0 1px #327db94d, inset 0 -.16rem .35rem #327db94d;
}
.lantern-functions li.is-lit {
  background: #fff;
  box-shadow: 0 0 .9rem #327db98c, inset 0 0 .5rem #65c5dd;
}
@media (max-width: 720px) {
  .audit-page .audit-hero-heading h1 { font-size: clamp(2.2rem, 8vw, 3.6rem); }
}

.audit-lantern.wide-ring { width: min(100%, 22rem); margin-inline-end: 0; }
/* All three rims share the same outer diameter and centred grid. */
.wide-ring .lantern-functions {
  position: relative;
  --display-size: clamp(12rem, 19vw, 16.5rem);
  width: min(100%, var(--display-size));
  border: 0;
  padding: min(24vw, calc(var(--display-size) * .24));
  grid-template: repeat(3, 1fr) / repeat(3, 1fr);
  gap: 2.8%;
  place-content: normal;
  place-items: stretch;
  grid-auto-flow: row;
  box-sizing: border-box;
  clip-path: circle(51.5%);
  box-shadow: none;
  background: radial-gradient(circle at 38% 30%, #fff 5%, #f5fcff 46%, #d8effa 75%, #abcde8);
}
.wide-ring .lantern-functions::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background: var(--ring-surface);
}
.wide-ring .lantern-functions li {
  position: relative;
  width: auto;
  left: auto;
  top: auto;
  min-width: 0;
  aspect-ratio: 1;
}
.wide-ring .lantern-functions {
  --ring-surface: radial-gradient(circle closest-side, transparent 78%, #327db9 78% 85%, #276291 85% 100%, transparent 100%);
}


/* Give the copy and full-size display their own rows before the columns get tight. */
@media (max-width: 800px) {
  .audit-page .hero { grid-template-columns: minmax(0, 1fr); }
  .audit-lantern.wide-ring { justify-self: center; }
}

.ring-motion { --outer-time: 12s; --inner-time: 9s; }
.ring-motion .lantern-functions::before,
.ring-motion .lantern-functions::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  animation: ring-revolve var(--outer-time) linear infinite;
}
.ring-motion .lantern-functions::before {
  background: conic-gradient(transparent 0%, #abcde899 18%, transparent 38%, transparent 100%), #276291;
  mask: radial-gradient(circle closest-side, transparent 84.8%, #000 85%, #000 99.6%, transparent 100%);
}
.ring-motion .lantern-functions::after {
  background: conic-gradient(from 125deg, transparent 0%, #fff9 18%, transparent 36%, transparent 100%), #327db9;
  mask: radial-gradient(circle closest-side, transparent 77.7%, #000 78%, #000 85%, transparent 85.3%);
  animation-duration: var(--inner-time);
  animation-direction: reverse;
}
@keyframes ring-revolve {
  to { transform: rotate(1turn); }
}
