:root {
  --paper: #fbfcf7;
  --paper-strong: #f2f6ec;
  --ink: #151814;
  --muted: #536055;
  --line: #cbd8cb;
  --coral: #e84d2a;
  --teal: #087c70;
  --blue: #2f5fb8;
  --gold: #c99216;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(251, 252, 247, 0.98), rgba(251, 252, 247, 0.82) 52%, rgba(251, 252, 247, 0.66)),
    linear-gradient(180deg, rgba(251, 252, 247, 0.52), rgba(242, 246, 236, 0.9));
}

a {
  color: inherit;
  text-decoration-color: rgba(232, 77, 42, 0.45);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

a:hover {
  text-decoration-color: var(--coral);
}

#protocol-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 2;
}

.site-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(203, 216, 203, 0.78);
  background: rgba(251, 252, 247, 0.82);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border: 3px solid var(--ink);
  border-right-color: var(--coral);
  border-bottom-color: var(--teal);
  transform: rotate(45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--muted);
}

.site-nav a {
  text-decoration: none;
}

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

.hero {
  display: flex;
  align-items: center;
  min-height: 84svh;
  padding: 112px 28px 58px;
}

.hero-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.kicker,
.section-label {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 800;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 4.6rem;
  line-height: 0.96;
}

.lede {
  max-width: 820px;
  margin-bottom: 34px;
  color: #253027;
  font-size: 1.32rem;
}

.challenge-copy {
  max-width: 850px;
  padding-left: 26px;
  border-left: 5px solid var(--coral);
  color: #202820;
  font-size: 1.06rem;
}

.challenge-copy p {
  margin-bottom: 16px;
}

.challenge-copy p:last-child {
  margin-bottom: 0;
  font-weight: 800;
}

.constraint-band {
  border-top: 1px solid rgba(203, 216, 203, 0.85);
  border-bottom: 1px solid rgba(203, 216, 203, 0.85);
  background: rgba(255, 255, 255, 0.72);
}

.band-inner {
  width: min(1120px, calc(100% - 56px));
  margin: 0 auto;
}

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

.constraints article {
  min-height: 210px;
  padding: 32px 30px 30px 0;
  border-right: 1px solid rgba(203, 216, 203, 0.85);
}

.constraints article + article {
  padding-left: 30px;
}

.constraints article:last-child {
  border-right: 0;
}

.constraints span {
  display: block;
  margin-bottom: 32px;
  color: var(--gold);
  font-weight: 900;
}

.constraints h2 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

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

.content-section {
  padding: 94px 28px 104px;
  background: rgba(242, 246, 236, 0.9);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1fr);
  gap: 72px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section-grid h2 {
  max-width: 460px;
  margin-bottom: 0;
  font-size: 2.35rem;
  line-height: 1.05;
}

.copy-stack {
  color: #28342b;
  font-size: 1.08rem;
}

.copy-stack p {
  margin-bottom: 22px;
}

.copy-stack p:last-child {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  border-top: 1px solid rgba(203, 216, 203, 0.85);
  color: var(--muted);
  background: rgba(251, 252, 247, 0.92);
  font-size: 0.95rem;
  font-weight: 700;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 16px 20px;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero {
    min-height: auto;
    padding: 86px 20px 48px;
  }

  h1 {
    font-size: 3.1rem;
  }

  .lede {
    font-size: 1.12rem;
  }

  .challenge-copy {
    padding-left: 18px;
    font-size: 1rem;
  }

  .band-inner {
    width: calc(100% - 40px);
  }

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

  .constraints article,
  .constraints article + article {
    min-height: 0;
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(203, 216, 203, 0.85);
  }

  .constraints article:last-child {
    border-bottom: 0;
  }

  .constraints span {
    margin-bottom: 16px;
  }

  .content-section {
    padding: 64px 20px 72px;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .section-grid h2 {
    font-size: 2rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 20px;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 2.45rem;
  }

  .site-nav {
    font-size: 0.88rem;
  }
}
