:root {
  --paper: #fbfaf7;
  --ink: #202124;
  --muted: #67615c;
  --line: #ded7ce;
  --panel: #ffffff;
  --wash: #f2eee7;
  --blue: #295d8f;
  --green: #51735a;
  --red: #a9473f;
  --gold: #9d6b1c;
  --shadow: 0 18px 48px rgba(42, 36, 30, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(32, 33, 36, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(32, 33, 36, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 64px 64px, 64px 64px, auto;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.65;
}

a {
  color: var(--blue);
  text-underline-offset: 0.18em;
}

.site-shell {
  min-height: 100vh;
}

.masthead {
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.94);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
}

.nav-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  display: grid;
  line-height: 1.05;
}

.brand strong {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand span {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.nav-links a {
  border: 1px solid transparent;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 9px;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--line);
  background: var(--panel);
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 24px 70px;
}

.narrow {
  max-width: 880px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 32px;
  align-items: end;
  padding: 34px 0 28px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  color: var(--blue);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 500;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  margin: 0;
  max-width: 860px;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  margin: 46px 0 14px;
}

h3 {
  font-size: 1.18rem;
  margin: 0 0 10px;
}

.lede {
  color: #38342f;
  font-size: 1.18rem;
  max-width: 760px;
}

.dek {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  margin-top: 18px;
}

.report-card,
.note,
.score-card,
.newsletter,
.contact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.report-card {
  padding: 22px;
}

.report-card .label,
.mini-label {
  color: var(--muted);
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.metric {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
}

.metric:first-of-type {
  border-top: 0;
}

.metric b {
  font-size: 1.1rem;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0;
}

.section-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.card p {
  color: var(--muted);
  margin: 0;
}

.card .score {
  color: var(--blue);
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.note {
  margin: 22px 0;
  padding: 20px 22px;
}

.note strong {
  color: var(--blue);
}

.data-flow {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 28px 0;
  padding: 18px;
}

.flow-step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 120px;
  padding: 14px;
}

.flow-step b {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.flow-step span {
  color: var(--muted);
  display: block;
  font-size: 0.95rem;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 22px 0;
  overflow-x: auto;
  background: var(--panel);
}

table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--wash);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  font-size: 0.95rem;
}

tr:last-child td {
  border-bottom: 0;
}

.risk-high {
  color: var(--red);
  font-weight: 700;
}

.risk-mid {
  color: var(--gold);
  font-weight: 700;
}

.risk-low {
  color: var(--green);
  font-weight: 700;
}

.score-card {
  border-left: 6px solid var(--blue);
  margin: 30px 0;
  padding: 22px;
}

.score-card.high {
  border-left-color: var(--red);
}

.score-card.mid {
  border-left-color: var(--gold);
}

.score-card.low {
  border-left-color: var(--green);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.badge {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #3f3a35;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 9px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0;
}

.button,
button {
  appearance: none;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  min-height: 40px;
  padding: 10px 14px;
  text-decoration: none;
  text-transform: uppercase;
}

.button.secondary,
button.secondary {
  background: var(--panel);
  color: var(--ink);
}

.button:hover,
button:hover {
  transform: translateY(-1px);
}

ul,
ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 8px;
}

.newsletter,
.contact-card {
  margin-top: 34px;
  padding: 22px;
}

.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
}

.contact-form .form-grid {
  grid-template-columns: 1fr 1fr;
}

label {
  color: var(--muted);
  display: grid;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 6px;
  text-transform: uppercase;
}

input,
textarea,
select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: 1rem Arial, Helvetica, sans-serif;
  min-height: 42px;
  padding: 10px 12px;
  width: 100%;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.checkbox {
  align-items: start;
  display: flex;
  gap: 10px;
  text-transform: none;
}

.checkbox input {
  min-height: auto;
  width: auto;
  margin-top: 4px;
}

.form-message {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  margin-top: 54px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer a,
.site-footer button {
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.link-button {
  background: transparent;
  border: 0;
  color: var(--blue);
  min-height: auto;
  padding: 0;
  text-decoration: underline;
  text-transform: none;
}

.cookie-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  bottom: 18px;
  box-shadow: var(--shadow);
  display: none;
  left: 18px;
  max-width: 460px;
  padding: 18px;
  position: fixed;
  z-index: 40;
}

.cookie-panel.is-visible {
  display: block;
}

.cookie-panel p {
  color: var(--muted);
  margin: 0 0 14px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.legal-date {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .nav-wrap,
  .hero,
  .site-footer {
    display: block;
  }

  .nav-links {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .section-grid,
  .section-grid.three,
  .section-grid.two,
  .data-flow,
  .form-grid,
  .contact-form .form-grid {
    grid-template-columns: 1fr;
  }

  .page {
    padding: 28px 16px 48px;
  }

  .cookie-panel {
    left: 10px;
    right: 10px;
    max-width: none;
  }
}

@media print {
  .masthead,
  .cookie-panel,
  .newsletter,
  .site-footer {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .page {
    max-width: none;
    padding: 0;
  }
}
