:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #65736d;
  --line: #d8dfdc;
  --paper: #f7f4ee;
  --surface: #ffffff;
  --accent: #236b5a;
  --accent-dark: #104438;
  --amber: #c9822d;
  --brick: #a8493e;
  --blue: #426f9f;
  --shadow: 0 20px 55px rgba(22, 32, 29, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(247, 244, 238, 0.92);
  border-bottom: 1px solid rgba(216, 223, 220, 0.85);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  aspect-ratio: 1;
  background: var(--accent-dark);
  color: #fff;
  border-radius: 8px;
  font-size: 0.82rem;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 34px);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 72px));
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(13, 25, 21, 0.84) 0%, rgba(13, 25, 21, 0.67) 37%, rgba(13, 25, 21, 0.14) 78%),
    linear-gradient(0deg, rgba(13, 25, 21, 0.5), transparent 36%);
}

.hero-content {
  position: relative;
  width: min(680px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  padding: 82px 0 120px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero .eyebrow {
  color: #f2b565;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 7vw, 6.9rem);
  line-height: 0.93;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.hero-copy {
  max-width: 56ch;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.02rem, 2vw, 1.24rem);
  line-height: 1.55;
}

.hero-actions,
.form-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

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

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.46);
  color: #fff;
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.mission,
.accountability,
.review-tool,
.standards,
.submit-section {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 4vw, 56px);
}

.mission {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 560px);
  gap: clamp(34px, 6vw, 90px);
  align-items: end;
  background: #fff;
}

.mission p {
  max-width: 70ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.source-note {
  grid-column: 1 / -1;
  width: min(560px, 100%);
  margin: -54px 0 0 auto;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.source-note a {
  color: var(--accent-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.accountability {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 80px);
  background: #17201d;
  color: #fff;
}

.accountability h2 {
  max-width: 12ch;
}

.accountability-copy {
  display: grid;
  gap: 18px;
  align-content: start;
  padding-top: 6px;
}

.accountability-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.72;
}

.ad-slot {
  display: grid;
  place-items: center;
  min-height: 96px;
  margin: 0;
  padding: 18px;
  border-block: 1px solid var(--line);
  background: #eef3f1;
  text-align: center;
}

.ad-slot span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ad-slot p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.metrics div {
  min-height: 148px;
  padding: 24px;
  background: #f9fbfa;
}

.metrics dt {
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1;
  font-weight: 900;
}

.metrics dd {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.index-score {
  display: grid;
  min-width: 168px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.index-score span {
  font-size: 3rem;
  line-height: 1;
  font-weight: 900;
}

.index-score small {
  color: var(--muted);
  font-weight: 800;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) minmax(150px, 200px);
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

label,
.ratings legend {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

label span,
.ratings legend {
  font-size: 0.86rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd4d0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(35, 107, 90, 0.22);
  border-color: var(--accent);
}

textarea {
  resize: vertical;
  line-height: 1.5;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.review-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(23, 32, 29, 0.06);
}

.review-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.review-head p,
.review-card blockquote,
.review-meta,
.standard-list p,
.submit-copy p,
.site-footer {
  color: var(--muted);
}

.review-head p,
.review-meta {
  margin: 4px 0 0;
  font-size: 0.92rem;
}

.score {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 64px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #e5f0eb;
  color: var(--accent-dark);
  font-size: 1.55rem;
  font-weight: 900;
}

.score.low {
  background: #f7e6e3;
  color: var(--brick);
}

.score.mid {
  background: #faeedf;
  color: #8b551d;
}

.review-card blockquote {
  margin: 0;
  line-height: 1.58;
}

.rating-bars {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: 112px 1fr 26px;
  gap: 10px;
  align-items: center;
  font-size: 0.83rem;
  font-weight: 800;
}

.bar-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1ef;
}

.bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.review-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.standards {
  background: #fff;
}

.standard-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.standard-list article {
  min-height: 236px;
  padding: 22px;
  background: #f9fbfa;
}

.standard-list span {
  display: block;
  margin-bottom: 42px;
  color: var(--amber);
  font-weight: 900;
}

.submit-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.submit-copy {
  position: sticky;
  top: 104px;
}

.submit-copy p {
  max-width: 54ch;
  line-height: 1.65;
}

.review-form {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ratings {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ratings label {
  grid-template-columns: 132px 1fr 28px;
  align-items: center;
}

.ratings input {
  min-height: auto;
  accent-color: var(--accent);
}

.ratings output {
  font-weight: 900;
}

.form-footer {
  justify-content: space-between;
  min-height: 48px;
}

#form-status {
  margin: 0;
  color: var(--accent-dark);
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: #fff;
  font-size: 0.93rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--accent-dark);
  font-weight: 900;
}

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

.legal-page {
  max-width: 840px;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 86px) clamp(18px, 4vw, 56px);
}

.legal-page h1 {
  max-width: none;
  color: var(--ink);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1;
}

.legal-page h2 {
  margin-top: 34px;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 1120px) {
  .review-grid,
  .standard-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mission,
  .accountability,
  .submit-section {
    grid-template-columns: 1fr;
  }

  .submit-copy {
    position: static;
  }

  .source-note {
    width: 100%;
    margin: -14px 0 0;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 660px;
  }

  .hero-content {
    margin: 0;
    padding: 64px 18px 96px;
    width: 100%;
  }

  .hero-scrim {
    background: linear-gradient(90deg, rgba(13, 25, 21, 0.88), rgba(13, 25, 21, 0.5));
  }

  h1 {
    font-size: 3.25rem;
  }

  .section-heading,
  .review-head,
  .form-footer,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar,
  .review-grid,
  .standard-list,
  .form-row,
  .metrics {
    grid-template-columns: 1fr;
  }

  .review-card {
    min-height: auto;
  }

  .ratings label {
    grid-template-columns: 1fr 42px;
  }

  .ratings label span {
    grid-column: 1 / -1;
  }
}
