/* Adapted from OpenDesign skills/field-notes-editorial-template at 53231d40b778d88eba23f35547bf99485d3ae9fc. Apache-2.0. */

:root {
  --paper: #f4f0e8;
  --ink: #181715;
  --ink-soft: rgba(24, 23, 21, 0.72);
  --lime: #c9d57a;
  --pink: #e4b8cc;
  --peach: #e9cbaf;
  --line-pink: #e6a2bc;
  --line-yellow: #ddd06a;
  --line-ink: #1d1d1d;
  --radius: 28px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
}
body {
  font-family: "DM Sans", "Segoe UI", "DM Sans", sans-serif;
  background: radial-gradient(circle at 50% 40%, #f8f5ee 0%, var(--paper) 65%);
  color: var(--ink);
}
.deck {
  width: min(1280px, 96vw);
  margin: 22px auto;
  border-radius: 22px;
  padding: 30px 30px 84px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(24, 23, 21, 0.12);
  background: var(--paper);
}
.topline {
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.panel {
  display: none;
  min-height: 560px;
}
.panel.active {
  display: block;
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
  min-height: 520px;
}
.hero,
.card {
  border-radius: var(--radius);
  padding: 28px;
}
.hero {
  grid-row: 1 / -1;
  background: var(--lime);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero em {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  line-height: 1.2;
  font-style: italic;
  max-width: 560px;
}
.hero .pct {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 122px;
  line-height: 0.9;
}
.card {
  background: #fff5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.card.pink {
  background: var(--pink);
}
.card.peach {
  background: var(--peach);
}
.card .label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.8;
}
.card .num {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 78px;
  line-height: 1;
}

.insight-grid {
  min-height: 520px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.insight {
  border-radius: var(--radius);
  padding: 30px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.insight:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(24, 23, 21, 0.1);
}
.insight h3 {
  margin: 10px 0 12px;
  font-size: 28px;
  font-family: Georgia, serif;
}
.insight p {
  margin: 0;
  line-height: 1.6;
  color: var(--ink-soft);
}
.insight:nth-child(1) {
  background: var(--pink);
}
.insight:nth-child(2) {
  background: var(--lime);
}
.insight:nth-child(3) {
  background: var(--peach);
}

.retention {
  min-height: 520px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: center;
}
.retention h2 {
  margin: 0 0 16px;
  font-size: 64px;
  line-height: 1.06;
  font-family: Georgia, serif;
}
.retention p {
  color: var(--ink-soft);
  line-height: 1.7;
}
.legend {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}
.legend .row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.legend i {
  width: 24px;
  height: 4px;
  border-radius: 2px;
  display: inline-block;
}
.chart-wrap {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 14px 44px rgba(24, 23, 21, 0.1);
}
.chart-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}
.axis {
  font-size: 11px;
  fill: var(--ink-soft);
}
.line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.pager {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #111;
  color: #f5f1ea;
  border-radius: 999px;
  padding: 8px 14px;
  border: 0;
  cursor: pointer;
}
.pager:hover {
  background: #222;
}

@media (max-width: 1100px) {
  .metrics-grid,
  .insight-grid,
  .retention {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 300px;
  }
  .hero .pct {
    font-size: 84px;
  }
  .retention h2 {
    font-size: 44px;
  }
}

/* Modified by Skilly, 2026: offline fonts, honest content, fluid grids, keyboard and print support. */
@font-face {
  font-family: DM Sans;
  src: url("fonts/dm-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Instrument Serif;
  src: url("fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
* {
  box-sizing: border-box;
  min-width: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  overflow-wrap: anywhere;
}
h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}
button,
input,
select {
  font: inherit;
}
button,
a,
summary {
  touch-action: manipulation;
}
a {
  color: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #a34c31;
  outline-offset: 4px;
}
img,
svg {
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  padding: 12px;
  background: #fff;
  z-index: 100;
  transform: translateY(-200%);
}
.skip:focus {
  transform: none;
}
.topline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sitefoot {
  padding: 30px max(20px, 4vw);
  font-size: 11px;
  color: #625d53;
  line-height: 1.8;
}
.empty {
  border: 1px dashed #b2ac9f;
  padding: 24px;
  color: #615d54;
}
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}
.controls button,
.controls input,
.controls select {
  border: 1px solid #918b7c;
  background: #fffaf1;
  color: #24251f;
  padding: 10px 16px;
  min-height: 44px;
  border-radius: 5px;
  max-width: 100%;
}
.controls button[aria-pressed="true"],
.controls button[aria-selected="true"] {
  background: #23251f;
  color: #fffaf1;
}
table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
}
th,
td {
  padding: 12px;
  border-bottom: 1px solid #cfc7b7;
  text-align: left;
  overflow-wrap: anywhere;
}
th {
  font-weight: 600;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
dt {
  font-size: 11px;
  text-transform: uppercase;
  color: #605b51;
}
dd {
  margin: 4px 0 20px;
}
details {
  margin: 16px 0;
}
summary {
  cursor: pointer;
  padding: 10px 0;
}
section[id] {
  scroll-margin-top: 20px;
}
@media (max-width: 600px) {
  .topline {
    font-size: 10px;
  }
  th,
  td {
    padding: 8px;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  .controls,
  .skip {
    display: none !important;
  }
  [hidden] {
    display: block !important;
  }
  body {
    background: white !important;
  }
  .sitefoot {
    break-inside: avoid;
  }
  h1,
  h2,
  h3 {
    break-after: avoid;
  }
  article,
  .card,
  .phone,
  .theme {
    break-inside: avoid;
  }
  a {
    text-decoration: none;
  }
  .panel {
    display: block !important;
    break-before: page;
  }
}
:root {
  --paper: #f3eee4;
  --lime: #d5dfaa;
  --pink: #eac7cd;
  --peach: #efd0b3;
}
body {
  background: #e8e4db;
}
.deck {
  width: min(1280px, calc(100% - 40px));
  margin: 28px auto;
  padding: 32px 38px 26px;
  overflow: visible;
  box-shadow: none;
  border: 1px solid #d9d2c4;
  border-radius: 6px;
}
.report-head {
  padding: 36px 0 8px;
  max-width: 890px;
}
.kicker {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.report-head h1 {
  font:
    400 clamp(46px, 6.7vw, 86px)/1.02 "Instrument Serif",
    Georgia,
    serif;
  letter-spacing: -0.025em;
  margin: 16px 0;
}
.report-head > p:last-child {
  max-width: 650px;
  line-height: 1.6;
  font-size: 17px;
}
.controls {
  margin: 26px 0;
}
.panel {
  min-height: 0;
  display: block;
}
.js .panel:not(.active) {
  display: none;
}
.metrics-grid {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  grid-auto-rows: minmax(170px, auto);
  min-height: 410px;
}
.hero {
  grid-row: span 2;
  gap: 35px;
  min-height: 400px;
}
.hero,
.card {
  padding: 28px;
  border-radius: 16px;
}
.hero .pct {
  font:
    400 clamp(64px, 9vw, 120px)/1 "Instrument Serif",
    serif;
  letter-spacing: -0.04em;
}
.card .num {
  font:
    400 64px/1 "Instrument Serif",
    serif;
}
.num small,
.pct small {
  font-size: 0.35em;
  letter-spacing: 0;
  margin-left: 4px;
}
.hero p,
.card p {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}
.label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.source {
  font-size: 12px;
  line-height: 1.7;
  color: #5b564b;
  margin-top: 26px;
}
.insight-grid {
  min-height: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.insight {
  min-height: 330px;
}
.insight:nth-child(3n + 1) {
  background: var(--pink);
}
.insight:nth-child(3n + 2) {
  background: var(--lime);
}
.insight:nth-child(3n) {
  background: var(--peach);
}
.insight strong {
  font-size: 10px;
  letter-spacing: 0.1em;
}
.insight h2 {
  font:
    400 38px/1.06 "Instrument Serif",
    serif;
  margin: 30px 0 20px;
}
.retention {
  min-height: 400px;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}
.retention h2 {
  font:
    400 clamp(38px, 4.5vw, 58px)/1.05 "Instrument Serif",
    serif;
}
.chart-wrap {
  box-shadow: none;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11px;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.legend i {
  width: 18px;
  height: 3px;
  display: inline-block;
}
.chart-wrap caption {
  font-size: 11px;
  text-align: left;
  margin: 10px 0;
}
.chart-wrap svg {
  overflow: visible;
}
.chart-wrap .axis {
  font-size: 10px;
}
@media (max-width: 760px) {
  .deck {
    width: calc(100% - 24px);
    padding: 24px 18px;
    margin: 12px auto;
  }
  .report-head {
    padding-top: 14px;
  }
  .metrics-grid,
  .insight-grid,
  .retention {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero {
    grid-row: auto;
    min-height: 300px;
  }
  .card {
    min-height: 180px;
  }
  .insight {
    min-height: 240px;
  }
  .controls button {
    flex: 1;
    font-size: 11px;
    padding: 10px 8px;
  }
  .chart-wrap {
    padding: 14px;
  }
  .retention {
    gap: 20px;
  }
}
