:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #f4eee8;
  background: #171412;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 82% 8%, rgb(201 92 51 / 18%), transparent 30rem),
    radial-gradient(circle at 10% 55%, rgb(85 124 113 / 12%), transparent 32rem),
    #171412;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgb(255 255 255 / 2%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 2%) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(180px, 300px) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 88px);
  align-items: center;
  padding: clamp(48px, 7vw, 72px) 0 clamp(40px, 6vw, 56px);
}

.mascot {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 40px rgb(0 0 0 / 32%));
}

.eyebrow,
.crate-name {
  margin: 0 0 12px;
  color: #e89a72;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 6.25rem);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 0.93;
}

.intro {
  max-width: 650px;
  margin-bottom: 32px;
  color: #cfc4bb;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.6;
}

nav,
.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #4d443e;
  border-radius: 8px;
  color: #f4eee8;
  background: #211d1a;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.button.primary {
  border-color: #d46f44;
  color: #1a110d;
  background: #e98b60;
}

.button:hover {
  border-color: #e89a72;
  background: #2c2521;
  transform: translateY(-1px);
}

.button.primary:hover {
  background: #f4a079;
}

.button:focus-visible,
.text-link:focus-visible,
footer a:focus-visible {
  outline: 3px solid #92c7b8;
  outline-offset: 3px;
}

.docs {
  padding: clamp(40px, 5vw, 56px) 0 80px;
  border-top: 1px solid #3b332e;
}

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

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.04em;
}

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

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 410px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid #413832;
  border-radius: 14px;
  background: linear-gradient(145deg, rgb(43 37 33 / 94%), rgb(29 25 23 / 94%));
  box-shadow: 0 18px 50px rgb(0 0 0 / 18%);
}

.card h3 {
  margin-bottom: 16px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.card p:not(.crate-name),
.card li {
  color: #c9beb5;
  line-height: 1.6;
}

.card ul {
  display: grid;
  gap: 8px;
  margin: 24px 0 30px;
  padding-left: 20px;
}

code {
  color: #f3b08d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.text-link,
footer a {
  color: #a9d3c7;
  font-weight: 650;
  text-underline-offset: 4px;
}

.text-link {
  padding: 10px 6px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  padding: 28px 0 40px;
  border-top: 1px solid #3b332e;
  color: #93877e;
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  main {
    width: min(100% - 28px, 620px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 0 40px;
  }

  .mascot {
    width: min(190px, 58vw);
  }

  .docs {
    padding-top: 36px;
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4.4rem);
  }

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

  .card {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}
