@font-face {
  font-family: "Paper Mono";
  src: url("./PaperMono.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("./InstrumentSerif-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("./InstrumentSerif-Italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #edf5ff;
  --paper-deep: #dceafb;
  --ink: #080a0d;
  --rule: #9eb4ce;
  --rule-soft: rgb(57 88 124 / 20%);
  color: var(--ink);
  background: var(--paper);
  font-family: "Paper Mono", Consolas, Monaco, monospace;
  font-synthesis: none;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

body { overflow-x: hidden; }

p,
h1,
dl,
dd,
figure { margin: 0; }

img { display: block; }

.report {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 21px 22px 36px;
}

.eyebrow,
.section-label,
.mini-title,
figcaption {
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 12px;
  letter-spacing: .21em;
}

.eyebrow::after {
  width: 28px;
  height: 2px;
  background: var(--ink);
  content: "";
}

h1 {
  max-width: 720px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(46px, 12.2vw, 92px);
  font-weight: 400;
  line-height: .88;
  letter-spacing: -.052em;
}

.status-line {
  display: grid;
  gap: 12px;
  margin-top: 17px;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.status {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 11px;
  padding: 7px 12px 6px;
  background: var(--paper-deep);
  letter-spacing: .19em;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
}

.status-note { display: none; }

.overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 102px;
  gap: 16px;
  margin-top: 18px;
}

.metrics > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 43px;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 13px;
}

.metrics dt {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.metrics img,
.confidence-icon {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  padding: 4px;
  background: var(--paper-deep);
}

.metrics img { opacity: .88; }

.confidence-icon {
  display: grid;
  place-items: center;
  font-size: 7px;
  letter-spacing: 0;
}

.metrics dd {
  padding-left: 8px;
  font-size: 13px;
  text-align: right;
  white-space: nowrap;
}

.completion {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 11px 0 0 15px;
  border-left: 1px solid var(--rule);
}

.completion p {
  font-size: 9px;
  line-height: 1.35;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.completion strong {
  margin: 14px 0 8px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 42px;
  font-weight: 400;
  line-height: .8;
  letter-spacing: -.05em;
}

.completion canvas {
  width: 69px;
  height: 69px;
}

.section-rule {
  position: relative;
  margin-top: 25px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.section-rule::before {
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--ink);
  content: "";
}

.section-label {
  position: relative;
  margin-bottom: 11px;
}

.section-label::after {
  display: block;
  width: 18px;
  height: 2px;
  margin-top: 8px;
  background: #8daee1;
  content: "";
}

.serif-copy {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 22px;
  line-height: 1.02;
  letter-spacing: -.015em;
}

.current-finding {
  margin-top: 21px;
  padding: 15px 17px 17px;
  border: 1px solid var(--rule);
  background: rgb(220 234 251 / 35%);
}

.current-finding .serif-copy { font-size: 20px; }

.progress-section { display: grid; gap: 26px; }

.completion-number {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  margin-top: 12px;
  padding-bottom: 15px;
  border-bottom: 1px dashed var(--rule);
}

.completion-number > span {
  grid-column: 1 / -1;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 17px;
  font-style: italic;
}

.completion-number strong {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 62px;
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.05em;
}

.completion-number p {
  max-width: 118px;
  padding-bottom: 4px;
  font-size: 11px;
  line-height: 1.3;
}

.breakdown { margin-top: 16px; }

.mini-title {
  margin-bottom: 5px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 17px;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
}

.progress-row + .progress-row { margin-top: 11px; }

.progress-row p {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 15px;
  line-height: 1.1;
}

progress {
  display: block;
  width: 100%;
  height: 10px;
  appearance: none;
  border: 0;
  border-radius: 0;
  background: var(--rule-soft);
}

progress::-webkit-progress-bar { background: var(--rule-soft); }
progress::-webkit-progress-value { background: var(--ink); }
progress::-moz-progress-bar { background: var(--ink); }

.history-chart { min-width: 0; }

.history-chart figcaption { margin-bottom: 10px; }

.history-chart canvas {
  display: block;
  width: 100%;
  height: 210px;
}

.evidence-section { display: grid; gap: 26px; }

.muted {
  margin-top: -10px;
  font-size: 10px;
  color: rgb(8 10 13 / 72%);
}

.evidence-bars { margin-top: 16px; }

.evidence-bars .progress-row p {
  font-family: "Paper Mono", monospace;
  font-size: 11px;
}

.validation table {
  width: 100%;
  margin-top: 14px;
  border-collapse: collapse;
  font-size: 10px;
  line-height: 1.25;
}

.validation th,
.validation td {
  padding: 6px 8px;
  border: 1px solid var(--rule);
}

.validation th {
  font-weight: 400;
  text-align: left;
}

.validation td {
  width: 75px;
  font-weight: 700;
  text-align: right;
  text-transform: uppercase;
}

.notes {
  margin-top: 25px;
  padding: 18px 19px;
  border: 1px solid var(--rule);
  background: rgb(220 234 251 / 45%);
}

.notes .section-label { margin-bottom: 11px; }
.notes .section-label::after { display: none; }

.notes > p:last-child {
  font-size: 11px;
  line-height: 1.4;
}

footer {
  display: grid;
  gap: 5px;
  margin-top: 21px;
  padding-top: 17px;
  border-top: 1px solid var(--ink);
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: .06em;
  text-transform: uppercase;
}

@media (min-width: 720px) {
  .report { padding: 48px 36px 54px; }

  .title-row {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(250px, .72fr);
    gap: 35px;
    align-items: start;
  }

  .status-line { display: none; }

  .status-note {
    display: grid;
    gap: 7px;
    padding: 15px 19px 16px;
    border: 1px solid var(--ink);
    font-size: 12px;
    line-height: 1.2;
  }

  .status-note strong {
    margin: -15px -19px 4px;
    padding: 10px 19px 9px;
    border-bottom: 1px solid var(--ink);
    font-weight: 400;
    letter-spacing: .15em;
    text-transform: uppercase;
  }

  .overview {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 28px;
  }

  .metrics { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .metrics > div:last-child { grid-column: 1 / 2; }
  .completion { align-items: center; padding-left: 28px; }
  .completion canvas { width: 104px; height: 104px; }

  .serif-copy { font-size: 34px; }
  .current-finding .serif-copy { font-size: 31px; }

  .progress-section {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 34px;
  }

  .history-chart {
    padding-left: 30px;
    border-left: 1px solid var(--rule);
  }

  .history-chart canvas { height: 360px; }

  .evidence-section {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }

  .validation {
    padding-left: 30px;
    border-left: 1px solid var(--rule);
  }

  footer { grid-template-columns: 1fr 1fr 1fr; }
  footer span:nth-child(2) { text-align: center; }
  footer span:last-child { text-align: right; }
}

@media (max-width: 360px) {
  .report { padding-right: 16px; padding-left: 16px; }
  h1 { font-size: 50px; }
  .overview { grid-template-columns: minmax(0, 1fr) 92px; }
  .metrics > div,
  .metrics dd { font-size: 11px; }
}
