:root {
  --page: #f6f7f2;
  --ink: #182027;
  --soft-ink: #53606a;
  --panel: #ffffff;
  --wash: #e9f0ea;
  --line: #cbd4ca;
  --deep: #102a3a;
  --deep-2: #163e56;
  --moss: #526b45;
  --copper: #b86136;
  --copper-soft: #f7e4d8;
  --ice: #dcebf0;
  --focus: #1b6f9b;
  --shadow: 0 20px 50px rgba(16, 42, 58, 0.1);
  --radius: 6px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(16, 42, 58, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, #eef4f1 0, var(--page) 34rem);
  background-size: 34px 34px, auto;
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: var(--deep-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover,
a:focus {
  color: var(--copper);
}

a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 3px solid rgba(27, 111, 155, 0.35);
  outline-offset: 3px;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}

li + li {
  margin-top: 0.35rem;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 50;
  background: var(--deep);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
}

.skip-link:focus {
  top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 247, 242, 0.96);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(var(--max), calc(100% - 1.5rem));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: grid;
  gap: 0.05rem;
  color: var(--ink);
  text-decoration: none;
  min-width: 12rem;
}

.brand-mark {
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
}

.brand-sub {
  color: var(--soft-ink);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.menu-button {
  min-width: 4.75rem;
  min-height: 2.5rem;
  border: 1px solid var(--deep);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--deep);
  font-weight: 900;
  cursor: pointer;
}

.primary-nav {
  position: fixed;
  top: 74px;
  left: 0;
  right: 0;
  display: none;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.primary-nav.is-open {
  display: block;
}

.primary-nav ul {
  width: min(var(--max), calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 0.8rem 0 1rem;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.primary-nav a {
  display: block;
  padding: 0.74rem 0.8rem;
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a:focus {
  background: var(--wash);
}

.primary-nav a[aria-current="page"] {
  color: #fff;
  background: var(--deep);
  border-left-color: var(--copper);
}

main {
  display: block;
}

.shell {
  width: min(var(--max), calc(100% - 1.5rem));
  margin: 0 auto;
}

.hero {
  padding: 4rem 0 2.8rem;
}

.hero-layout {
  display: grid;
  gap: 1.3rem;
}

.hero-copy {
  max-width: 860px;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 0.85rem;
  padding: 0.24rem 0.62rem;
  border: 1px solid rgba(184, 97, 54, 0.45);
  border-radius: var(--radius);
  background: var(--copper-soft);
  color: #884322;
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  line-height: 1.12;
}

h1 {
  max-width: 980px;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(2.4rem, 8vw, 5.6rem);
  font-weight: 700;
}

h2 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(1.75rem, 4vw, 3.05rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.18rem, 3vw, 1.55rem);
}

h4 {
  font-size: 1rem;
}

.lead {
  max-width: 850px;
  margin-top: 1.05rem;
  color: #33404a;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.56;
}

.hero-note {
  border: 1px solid rgba(16, 42, 58, 0.22);
  border-radius: var(--radius);
  background: var(--deep);
  color: #eef7f7;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.hero-note h2,
.hero-note h3 {
  margin-bottom: 0.55rem;
  color: #fff;
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  font-size: 0.98rem;
  text-transform: uppercase;
}

.hero-note p {
  color: #e1ecec;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.35rem;
}

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.68rem 1rem;
  border: 1px solid var(--deep);
  border-radius: var(--radius);
  background: var(--deep);
  color: #fff;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
}

.action-link.alt {
  background: transparent;
  color: var(--deep);
}

.action-link:hover,
.action-link:focus {
  border-color: var(--copper);
  background: var(--copper);
  color: #fff;
}

.section {
  padding: 3.15rem 0;
}

.section.compact {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.section-head {
  max-width: 860px;
  margin-bottom: 1.4rem;
}

.section-head p:not(.eyebrow) {
  margin-top: 0.8rem;
  color: var(--soft-ink);
}

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

.grid.two,
.grid.three,
.grid.four {
  grid-template-columns: 1fr;
}

.panel,
.review-card,
.notice,
.matrix,
.legal-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.panel,
.legal-block {
  padding: 1.15rem;
}

.panel h3,
.panel h4,
.legal-block h2,
.legal-block h3 {
  margin-bottom: 0.62rem;
}

.panel p:last-child,
.legal-block p:last-child,
.notice p:last-child {
  margin-bottom: 0;
}

.small-title {
  color: var(--moss);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.notice {
  padding: 1.05rem;
  background: #fff9ef;
  border-color: rgba(184, 97, 54, 0.36);
}

.notice.alert {
  background: #fdf0ec;
  border-color: rgba(184, 97, 54, 0.55);
}

.notice h2,
.notice h3 {
  margin-bottom: 0.6rem;
}

.matrix {
  overflow: hidden;
}

.matrix-row {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border-top: 1px solid var(--line);
}

.matrix-row:first-child {
  border-top: 0;
}

.matrix-row strong {
  color: var(--deep);
}

.jump-list {
  margin-top: 1.55rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.jump-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.jump-list a {
  display: inline-flex;
  padding: 0.4rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.review-card {
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(16, 42, 58, 0.07);
}

.review-top {
  display: grid;
  gap: 0.8rem;
  padding: 1.15rem;
  background:
    linear-gradient(135deg, rgba(220, 235, 240, 0.8), rgba(233, 240, 234, 0.9)),
    var(--wash);
  border-bottom: 1px solid var(--line);
}

.review-name {
  display: grid;
  gap: 0.32rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: 0.6rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.24rem 0.52rem;
  border: 1px solid rgba(16, 42, 58, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  color: var(--deep);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.2;
}

.score {
  align-self: start;
  justify-self: start;
  min-width: 8rem;
  border: 1px solid rgba(82, 107, 69, 0.28);
  border-radius: var(--radius);
  background: #fff;
  color: var(--deep);
  padding: 0.68rem;
  font-weight: 900;
}

.score span {
  display: block;
  color: var(--soft-ink);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.review-content {
  display: grid;
  gap: 1rem;
  padding: 1.15rem;
}

.review-part {
  border-top: 1px solid var(--line);
  padding-top: 0.95rem;
}

.review-part:first-child {
  border-top: 0;
  padding-top: 0;
}

.review-part h4 {
  margin-bottom: 0.38rem;
  color: var(--deep);
  font-size: 0.92rem;
  text-transform: uppercase;
}

.dual-list {
  display: grid;
  gap: 1rem;
}

.dual-list > div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbf7;
  padding: 0.95rem;
}

.dual-list h4 {
  margin-bottom: 0.45rem;
}

.form-card {
  max-width: 760px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1.15rem;
  box-shadow: var(--shadow);
}

.field-grid {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.34rem;
}

label {
  color: var(--deep);
  font-weight: 900;
  font-size: 0.9rem;
}

input,
textarea {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid #aeb9b1;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 0.68rem 0.75rem;
  font: inherit;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

.submit-button,
.cookie-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border: 1px solid var(--deep);
  border-radius: var(--radius);
  background: var(--deep);
  color: #fff;
  padding: 0.68rem 1rem;
  font-weight: 900;
  cursor: pointer;
}

.submit-button:hover,
.submit-button:focus,
.cookie-button:hover,
.cookie-button:focus {
  border-color: var(--copper);
  background: var(--copper);
}

.form-status {
  margin-top: 1rem;
  border: 1px solid rgba(82, 107, 69, 0.3);
  border-radius: var(--radius);
  background: rgba(82, 107, 69, 0.1);
  color: #2d3f28;
  padding: 0.85rem;
}

.form-status[hidden] {
  display: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #121b22;
  color: #f1f5f2;
}

.footer-grid {
  width: min(var(--max), calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 2.2rem 0;
  display: grid;
  gap: 1.4rem;
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
}

.site-footer p,
.site-footer li {
  color: #d9e0dd;
}

.footer-links {
  display: grid;
  gap: 0.38rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer a {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.95rem 0;
  color: #d5ddd8;
  font-size: 0.84rem;
}

.footer-bottom .shell {
  display: grid;
  gap: 0.35rem;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 60;
  width: min(720px, calc(100% - 1.5rem));
  transform: translateX(-50%);
  display: none;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.cookie-banner.is-visible {
  display: grid;
}

.cookie-banner p {
  margin: 0;
}

.cookie-banner a {
  font-weight: 900;
}

@media (min-width: 640px) {
  .grid.two,
  .dual-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .matrix-row {
    grid-template-columns: 0.75fr 1.25fr;
  }

  .review-top {
    grid-template-columns: 1fr auto;
  }

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

  .cookie-banner.is-visible {
    display: flex;
  }
}

@media (min-width: 930px) {
  .menu-button {
    display: none;
  }

  .primary-nav {
    position: static;
    display: block;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .primary-nav ul {
    width: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.12rem;
    padding: 0;
  }

  .primary-nav a {
    padding: 0.54rem 0.55rem;
    font-size: 0.8rem;
    border-left: 0;
    border-bottom: 3px solid transparent;
  }

  .primary-nav a[aria-current="page"] {
    border-bottom-color: var(--copper);
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr) 350px;
    align-items: end;
  }

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

  .grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .review-part.wide {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: 1.15fr 0.8fr 1fr;
  }

  .footer-bottom .shell {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 1120px) {
  .primary-nav a {
    padding-left: 0.68rem;
    padding-right: 0.68rem;
    font-size: 0.84rem;
  }
}
