@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("/fonts/jetbrains-mono-500.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 600; font-display: swap; src: url("/fonts/jetbrains-mono-600.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-display: swap; src: url("/fonts/jetbrains-mono-700.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url("/fonts/manrope-400.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url("/fonts/manrope-500.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("/fonts/manrope-600.woff2") format("woff2"); }

:root {
  --bg-000: #000000;
  --bg-100: #141419;
  --bg-200: #1e1e26;
  --line-100: #2a2a33;
  --text-100: #f4f4f6;
  --text-200: #cfd0d8;
  --text-300: #9a9aa8;
  --life: #4dc1de;
  --life-hover: #8fdcec;
  --magenta: #e31979;
  --blue: #007eb7;
  --footer-text: #5c5c6a;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sans: Manrope, "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(20px, 5.5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-000);
  color: var(--text-100);
  font-family: var(--sans);
}

main { flex: 1; }

a { color: var(--life); }
a:hover { color: var(--life-hover); }
a:focus-visible { outline: 2px solid var(--life); outline-offset: 3px; }

h1, h2, h3, p, figure { margin: 0; }

.wrap {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  color: var(--text-300);
}

/* Header */
.site-header { border-bottom: 1px solid var(--line-100); }

.site-header__inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}
.brand:hover { color: inherit; }

.brand__name {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.site-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-200);
  text-decoration: none;
}
.site-nav a:hover { color: var(--life-hover); }

/* Hero */
.hero {
  padding-block: clamp(48px, 7vw, 96px) 80px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: center;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

h1 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(30px, 3.7vw, 56px);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.hero__lead {
  max-width: 560px;
  font-size: 19px;
  line-height: 30px;
  color: var(--text-200);
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 12px;
  background: var(--life);
  color: var(--bg-000);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.button:hover { background: var(--life-hover); color: var(--bg-000); }

.cta__note {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-300);
}

.hero__dish {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.hero__dish svg {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
}

.strain {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.strain__name {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
}

.chip {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-200);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-200);
}
.chip--life { color: var(--life); }

/* Steps */
.steps {
  padding-block: 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.steps__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

h2 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

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

.card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border-radius: 20px;
  background: var(--bg-100);
}

.card h3 {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.card p {
  font-size: 15px;
  line-height: 23px;
  color: var(--text-200);
}

.card__demo {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--bg-000);
}

.demo-breed { gap: 14px; }

.demo-breed__times {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--text-300);
}

.alleles {
  display: flex;
  gap: 4px;
}

.allele {
  width: 28px;
  height: 32px;
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--bg-200);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
}
.allele--blue { box-shadow: inset 0 3px 0 var(--blue); }
.allele--magenta { box-shadow: inset 0 3px 0 var(--magenta); }
.allele--life { background: rgba(77, 193, 222, 0.22); color: var(--life); }

.demo-map {
  width: 220px;
  max-width: 100%;
  height: 100px;
}

.demo-bars {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 22px 24px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-300);
}

.bar {
  display: grid;
  grid-template-columns: 80px 1fr 64px;
  gap: 10px;
  align-items: center;
}

.bar__track {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-200);
}

.bar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 3px;
  background: var(--life);
}
.bar__fill--magenta { background: var(--magenta); }

.bar__value {
  text-align: right;
  color: var(--text-100);
}

/* Fairness */
.fair {
  margin-bottom: 80px;
  padding-block: 40px;
  border-block: 1px solid var(--line-100);
  display: grid;
  grid-template-columns: 320px repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

.fair h2 {
  font-weight: 600;
  font-size: 28px;
  line-height: 32px;
  letter-spacing: -0.02em;
}

.fair__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fair__item h3 {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--life);
}

.fair__item p {
  font-size: 14px;
  line-height: 21px;
  color: var(--text-200);
}

/* Footer */
.site-footer {
  background: var(--text-100);
  color: #101014;
}

.site-footer__inner {
  min-height: 112px;
  padding-block: 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.site-footer__credit {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--footer-text);
}

.site-footer__credit a { display: block; line-height: 0; }
.site-footer__credit img { display: block; height: 22px; width: auto; }

.site-footer__hash {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--footer-text);
}

.site-footer__links {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  text-decoration: none;
}
.site-footer__links a:hover { color: #005f8b; }
.site-footer__links a:focus-visible { outline-color: var(--blue); }

/* The allele row in the Breed card needs about 275px, so the three-column grid goes first. */
@media (max-width: 1180px) {
  .steps__grid { grid-template-columns: minmax(0, 1fr); }
  .fair { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fair h2 { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-bottom: 56px; }
  .hero__dish svg { max-width: 420px; }
  h1 { font-size: clamp(24px, 7.6vw, 64px); }
}

@media (max-width: 760px) {
  .fair { grid-template-columns: minmax(0, 1fr); }
  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }
  .site-footer__links { justify-content: center; }
}

@media (max-width: 480px) {
  .site-header__inner { min-height: 72px; }
  .brand { gap: 10px; }
  .brand svg { width: 32px; height: 32px; }
  .brand__name { font-size: 22px; }
  .site-nav a { font-size: 14px; }
  .hero__lead { font-size: 17px; line-height: 26px; }
  .card { padding: 20px; }
  .demo-breed { gap: 8px; }
  .alleles { gap: 3px; }
  .allele { width: 24px; height: 28px; font-size: 13px; }
  .demo-bars { padding: 16px; }
  .bar { grid-template-columns: 62px 1fr 60px; gap: 8px; }
}
