:root {
  color-scheme: light;
  --charcoal: #252b30;
  --slate: #46525b;
  --steel-blue: #527d9b;
  --sage: #9aab98;
  --amber: #d6a45c;
  --dusty-rose: #bd8580;
  --light-gray: #f0f1ed;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--light-gray);
  background: var(--charcoal);
}

.landing {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgb(82 125 155 / 20%), transparent 48%),
    var(--charcoal);
}

.landing__grain {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .17;
  background-image: radial-gradient(rgb(240 241 237 / 30%) .6px, transparent .6px);
  background-size: 5px 5px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

.landing__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100% - 40px, 560px);
  padding: 64px 0 76px;
  text-align: center;
}

.brand {
  position: relative;
  isolation: isolate;
  margin-bottom: 37px;
}

/* Soft light behind the anvil so its charcoal body separates from the dark page. */
.brand::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 420px;
  height: 320px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(closest-side, rgb(240 241 237 / 26%), rgb(154 171 152 / 12%) 55%, transparent);
}

.brand-mark {
  display: block;
  width: 178px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 10px 24px rgb(0 0 0 / 18%));
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--sage);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.65rem, 7vw, 4.8rem);
  font-weight: 650;
  letter-spacing: -.03em;
  line-height: 1;
}

.slogan {
  margin: 22px 0 34px;
  color: #c6cbd0;
  font-size: clamp(1.05rem, 2.7vw, 1.35rem);
  letter-spacing: -.025em;
}

.slogan span { color: var(--amber); }

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid rgb(240 241 237 / 23%);
  border-radius: 4px;
  color: var(--light-gray);
  font-size: .9rem;
  font-weight: 550;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.github-link__mark { flex: none; color: var(--light-gray); }
.github-link__arrow { flex: none; color: var(--steel-blue); transition: transform 160ms ease; }
.github-link:hover { transform: translateY(-2px); border-color: var(--steel-blue); background: rgb(82 125 155 / 12%); }
.github-link:hover .github-link__arrow { transform: translateX(3px); }
.github-link:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }

.color-line {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  height: 5px;
}
.color-line i { flex: 1; }
.color-line i:nth-child(1) { background: var(--charcoal); }
.color-line i:nth-child(2) { background: var(--slate); }
.color-line i:nth-child(3) { background: var(--steel-blue); }
.color-line i:nth-child(4) { background: var(--sage); }
.color-line i:nth-child(5) { background: var(--amber); }
.color-line i:nth-child(6) { background: var(--dusty-rose); }

@media (max-width: 520px) {
  .landing__content { padding: 48px 0 60px; }
  .brand { margin-bottom: 32px; }
  .brand::before { width: 300px; height: 240px; }
  .brand-mark { width: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
