:root {
  --ink: #171717;
  --muted: #626b64;
  --paper: #f7f8f2;
  --surface: #ffffff;
  --line: #d8ded6;
  --hero: #101615;
  --accent: #c83f31;
  --accent-soft: #ffe1db;
  --teal: #16776f;
  --gold: #c28a26;
  --shadow: 0 24px 70px rgba(20, 31, 28, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 10px 12px;
  background: var(--surface);
}

.skip-link:focus {
  top: 16px;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 88vh;
  color: #f7fbf4;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 88% 18%, rgba(200, 63, 49, 0.28), transparent 22%),
    var(--hero);
  background-size: 44px 44px, 44px 44px, auto, auto;
}

.nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
}

.brand {
  font-weight: 850;
  font-size: 1.05rem;
  text-decoration: none;
}

.nav div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  color: rgba(247, 251, 244, 0.78);
  font-size: 0.95rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding: clamp(48px, 8vw, 92px) 0 72px;
}

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

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

h1 {
  max-width: 880px;
  margin-bottom: 22px;
  font-size: clamp(2.55rem, 6vw, 6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.lead {
  max-width: 690px;
  color: rgba(247, 251, 244, 0.78);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 6px;
  padding: 11px 16px;
  font-weight: 800;
  text-decoration: none;
}

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

.button.secondary {
  color: #f7fbf4;
}

.signal-panel {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  padding: 18px;
}

.panel-top span,
.signal-panel dt {
  color: rgba(247, 251, 244, 0.62);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.signal-lines {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  align-items: end;
  height: 170px;
  padding: 18px;
}

.signal-lines i {
  display: block;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--gold), var(--teal));
}

.signal-lines i:nth-child(1) { height: 36%; }
.signal-lines i:nth-child(2) { height: 62%; }
.signal-lines i:nth-child(3) { height: 48%; }
.signal-lines i:nth-child(4) { height: 76%; }
.signal-lines i:nth-child(5) { height: 55%; }

.signal-panel dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.signal-panel div {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 16px 18px;
}

.signal-panel dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2,
.records-layout h2,
.cta-strip h2 {
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: 0;
}

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

.standards-grid article,
.empty-index,
.cta-strip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.standards-grid article {
  padding: 22px;
}

.standards-grid span {
  color: var(--accent);
  font-weight: 850;
}

.standards-grid h3 {
  margin: 18px 0 8px;
}

.standards-grid p,
.records-layout p,
.cta-strip p,
.footer p {
  color: var(--muted);
}

.records-band {
  padding: clamp(56px, 8vw, 92px) 0;
  background:
    linear-gradient(90deg, rgba(22, 119, 111, 0.09) 1px, transparent 1px),
    #eef3ed;
  background-size: 36px 36px;
}

.records-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 28px;
  align-items: center;
}

code {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.7);
  padding: 2px 5px;
  font-size: 0.95em;
}

.empty-index {
  padding: 24px;
}

.empty-index span {
  display: inline-block;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.cta-strip {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: clamp(22px, 5vw, 38px);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  background: #fff;
}

.footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer p {
  max-width: 720px;
  margin-bottom: 0;
}

.footer div div {
  display: flex;
  gap: 14px;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .hero {
    min-height: auto;
  }

  .nav,
  .hero-grid,
  .records-layout,
  .cta-strip,
  .footer .wrap {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-grid {
    display: grid;
  }

  .standards-grid {
    grid-template-columns: 1fr;
  }

  .nav div,
  .footer div div {
    justify-content: flex-start;
  }
}
