/* Light theme only, in the report's palette. */
:root {
  --accent: #00753A;
  --background: #F5F6F3;
  --text: #15201A;
  --muted: #4F5A53;
  --surface: #FFFFFF;
  --border: #C9CEC9;
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  line-height: 1.5;
}

main,
.credits-inner {
  max-width: 72rem;
  margin: 0 auto;
}

main {
  padding: 2.5rem 1rem 4rem;
}

.hero {
  display: grid;
  gap: 1rem;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 24em;
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
  line-height: 1.15;
  text-wrap: balance;
}

.finding {
  margin: 0;
  max-width: 40em;
  color: var(--muted);
  font-size: 1.125rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-block;
  min-width: 8rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  background: var(--surface);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.button.primary {
  color: var(--surface);
  background: var(--accent);
}

.button:hover {
  filter: brightness(0.92);
}

.page {
  margin: 1rem 0 0;
}

.page img,
.pages img,
.clip video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}

.page img {
  box-shadow: 0 1px 3px color-mix(in srgb, var(--text) 8%, transparent);
}

/* Sections below the hero. */
section {
  margin-top: 4rem;
}

h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem);
  line-height: 1.2;
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  line-height: 1.3;
}

a {
  color: var(--accent);
}

a:focus-visible,
.clip video:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 2px;
}

.lead {
  margin: -0.75rem 0 1.25rem;
  color: var(--muted);
}

/* What it shows: data quality first, Power BI second. */
.groups {
  display: grid;
  gap: 2rem;
}

.points {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.points li {
  max-width: 38em;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
}

.points strong {
  display: block;
}

/* Gallery: each page links to its full-size export. */
.pages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 30rem), 1fr));
  gap: 2rem 1.5rem;
}

.pages figure {
  margin: 0;
}

/* A page with its clips, one under the other. */
.entry {
  display: grid;
  align-content: start;
  gap: 1.5rem;
}

.pages a {
  display: block;
  border-radius: 6px;
  cursor: zoom-in;
}

/* A clip without controls opens full screen on click, like a page. */
.clip video:not([controls]) {
  cursor: zoom-in;
}

.pages a:hover img {
  border-color: var(--accent);
}

.pages figcaption {
  margin-top: 0.75rem;
  max-width: 38em;
  color: var(--muted);
}

.pages figcaption strong {
  display: block;
  color: var(--text);
}

/* How it's built: pipeline, model, report, checks, in that order. */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding-top: 0.75rem;
  border-top: 3px solid var(--accent);
  counter-increment: step;
}

.steps h3::before {
  content: counter(step) ". ";
  color: var(--accent);
}

.steps p {
  margin: 0;
}

/* Footer: the dark band of the report's navigation. */
.credits {
  color: var(--background);
  background: var(--text);
  font-size: 0.9375rem;
}

.credits-inner {
  display: grid;
  gap: 2rem;
  padding: 2.5rem 1rem;
}

.credits h2 {
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}

.credits ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.credits p {
  margin: 0.75rem 0 0;
}

.credits a {
  color: inherit;
  overflow-wrap: anywhere;
}

.credits a:focus-visible {
  outline-color: var(--background);
}

.credits .privacy {
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--muted);
}

@media (min-width: 52rem) {
  .groups {
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
  }

  .credits-inner {
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
  }

  .credits .privacy {
    grid-column: 1 / -1;
  }
}
