:root {
  --ink: #151713;
  --muted: #5c6256;
  --paper: #f7f2e6;
  --field: #e1e9cf;
  --leaf: #184f35;
  --sun: #e6b642;
  --brick: #b74f35;
  --water: #76aec1;
  --line: rgba(21, 23, 19, 0.16);
  --shadow: 0 22px 60px rgba(34, 43, 29, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--paper);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  line-height: 1.45;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 10%, rgba(230, 182, 66, 0.35), transparent 26rem),
    radial-gradient(circle at 92% 8%, rgba(118, 174, 193, 0.25), transparent 28rem),
    repeating-linear-gradient(90deg, rgba(24, 79, 53, 0.05) 0 1px, transparent 1px 88px),
    var(--paper);
}

a {
  color: inherit;
}

.hero,
main,
footer {
  width: min(1560px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 78vh;
  display: grid;
  align-content: space-between;
  padding: 28px 0 48px;
  border-bottom: 1px solid var(--line);
}

.nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.brand {
  text-decoration: none;
  color: var(--leaf);
}

.nav-logos,
.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.nav-logos {
  gap: 16px;
  opacity: 0.86;
}

.nav-logos img,
.footer-logos img {
  display: block;
  height: auto;
  object-fit: contain;
}

.nav-logos img:first-child {
  width: clamp(78px, 9vw, 116px);
}

.nav-logos img:last-child {
  width: clamp(118px, 14vw, 184px);
}

.repo-link {
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.32);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(270px, 0.52fr);
  gap: 44px;
  align-items: end;
  padding-top: 74px;
}

.kicker,
.eyebrow {
  margin: 0 0 14px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brick);
  font-weight: 900;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.9;
  font-weight: 950;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
}

.lead {
  max-width: 700px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.34rem);
}

.panel {
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

dl {
  margin: 0;
  display: grid;
  gap: 14px;
}

dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 900;
}

dd {
  margin: 0;
  font-weight: 800;
}

main {
  padding: 50px 0 70px;
}

.section-head,
.method {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
  align-items: end;
}

.section-head > p,
.method > p {
  margin: 0;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 48px;
}

.card {
  min-height: 248px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(24, 79, 53, 0.035) 1px, transparent 1px) 0 0 / 54px 100%,
    rgba(255, 255, 255, 0.34);
  box-shadow: 0 18px 42px rgba(34, 43, 29, 0.08);
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.card[href]:hover {
  transform: translateY(-4px);
  background:
    linear-gradient(90deg, rgba(24, 79, 53, 0.05) 1px, transparent 1px) 0 0 / 54px 100%,
    rgba(255, 255, 255, 0.62);
  box-shadow: 0 24px 52px rgba(34, 43, 29, 0.14);
}

.tag {
  width: fit-content;
  max-width: 100%;
  padding: 7px 10px;
  border: 2px solid currentColor;
  border-radius: 999px;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.66rem;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 950;
}

.card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.22rem, 1.45vw, 1.68rem);
  line-height: 1;
  font-weight: 950;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.88rem;
  line-height: 1.34;
}

.arrow {
  justify-self: end;
  align-self: end;
  color: var(--leaf);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.65rem;
  font-weight: 950;
  line-height: 1;
}

.method {
  margin-top: 20px;
  padding: 30px;
  background: var(--field);
  border: 1px solid rgba(24, 79, 53, 0.18);
}

footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-logos {
  gap: 12px;
  opacity: 0.72;
}

.footer-logos img:first-child {
  width: 72px;
}

.footer-logos img:last-child {
  width: 118px;
}

@media (max-width: 1280px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

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

  .nav-logos {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 12px;
    order: 3;
  }

  .nav-logos img:first-child {
    width: 82px;
  }

  .nav-logos img:last-child {
    width: 138px;
  }

  .hero-grid,
  .section-head,
  .method {
    grid-template-columns: 1fr;
  }

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

  .card {
    min-height: 230px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: clamp(2.55rem, 12vw, 3rem);
    line-height: 0.94;
  }

  .nav-logos img:first-child {
    width: 76px;
  }

  .nav-logos img:last-child {
    width: 124px;
  }

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