:root {
  color-scheme: dark;
  --bg: #11110f;
  --panel: #191916;
  --fg: #f1eee6;
  --muted: #aaa49a;
  --line: #34322d;
  --accent: #d8ef8e;
  --accent-ink: #14150f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

main {
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(360px, 1fr);
  align-items: center;
  gap: 52px;
  overflow: hidden;
  padding: 48px clamp(20px, 5vw, 72px) clamp(190px, 24vw, 290px);
  border-bottom: 1px solid var(--line);
}

.heroCopy {
  position: relative;
  z-index: 3;
  max-width: 620px;
}

.heroMedia {
  position: relative;
  z-index: 1;
  width: 100%;
}

.preview {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0e0e0c;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

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

h1 {
  max-width: 10ch;
  margin-bottom: 22px;
  font-size: clamp(56px, 8vw, 118px);
  line-height: 0.9;
  font-weight: 680;
}

.lede {
  max-width: 54ch;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  appearance: none;
  display: inline-flex;
  min-height: 58px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 3px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--fg);
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  text-align: left;
  font-size: 16px;
  font-weight: 650;
}

.buttonLabel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.15;
  white-space: nowrap;
}

.appleLogo {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1;
}

.buttonMeta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.button.primary .buttonMeta {
  color: rgba(20, 21, 15, 0.68);
}

.copyButton {
  min-width: 230px;
}

.button.heroDownloadButton {
  min-width: 230px;
  min-height: 58px;
  flex-direction: row;
  align-items: center;
  padding: 14px 22px;
}

.button.heroDownloadButton .buttonLabel {
  font-size: 17px;
}

.button.compactCopy {
  min-width: 0;
  min-height: 44px;
  flex-direction: row;
  align-items: center;
  padding: 10px 14px;
}

.button.compactCopy .buttonLabel {
  gap: 7px;
  font-size: 15px;
  text-transform: lowercase;
}

.button.githubButton {
  min-height: 58px;
  flex-direction: row;
  align-items: center;
}

.button.githubButton .buttonLabel {
  gap: 7px;
  text-transform: lowercase;
}

.copyIcon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.githubIcon {
  width: 17px;
  height: 17px;
  color: inherit;
  fill: currentColor;
}

.heroMountainRange {
  position: absolute;
  right: -5vw;
  bottom: -2px;
  left: -5vw;
  z-index: 2;
  --mountain-range-width: clamp(900px, 116vw, 1600px);
  height: clamp(230px, 30vw, 340px);
  contain: layout;
  overflow: visible;
  pointer-events: none;
}

.heroMountainRange::before {
  content: "";
  position: absolute;
  bottom: -11px;
  left: 50%;
  z-index: 1;
  width: var(--mountain-range-width);
  aspect-ratio: 1983 / 443;
  background: url("./assets/hero-mountain-range.webp") center bottom / contain no-repeat;
  filter:
    blur(18px)
    brightness(1.28)
    saturate(1.16);
  opacity: 0.17;
  mix-blend-mode: screen;
  transform: translateX(-50%) scale(1.018);
}

.mountainSmoke {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: calc(100% + 12px);
  mix-blend-mode: screen;
  opacity: 0.43;
  filter: blur(0.3px) saturate(1);
  pointer-events: none;
}

.mountainRangeImage {
  display: block;
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: var(--mountain-range-width);
  max-width: none;
  height: auto;
  opacity: 0.96;
  z-index: 2;
  filter:
    drop-shadow(0 -8px 18px rgba(126, 78, 255, 0.07))
    drop-shadow(0 0 0.65px rgba(17, 17, 15, 0.58));
  transform: translateX(-50%);
  user-select: none;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 54%,
    rgba(0, 0, 0, 0.68) 74%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 54%,
    rgba(0, 0, 0, 0.68) 74%,
    transparent 100%
  );
}

.steps,
.install {
  padding: 46px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.steps h2,
.install h2 {
  margin-bottom: 22px;
  font-size: 24px;
}

.install p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.55;
}

.installHeader {
  display: flex;
  max-width: 980px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
}

.installHeader h2 {
  margin-bottom: 10px;
}

.installHeader p {
  margin-bottom: 0;
}

pre {
  max-width: 980px;
  overflow-x: auto;
  margin: 18px 0 34px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0e0e0c;
  color: var(--fg);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre;
}

ol,
ul {
  max-width: 880px;
  margin: 0;
  padding-left: 22px;
}

li {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.55;
}

li strong {
  color: var(--fg);
}

.siteFooter {
  padding: 24px clamp(20px, 5vw, 72px) 30px;
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  text-align: center;
}

.siteFooter p {
  margin: 0;
}

.siteFooter a {
  text-underline-offset: 4px;
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 34px;
    padding-bottom: 112px;
  }

  .heroMountainRange {
    --mountain-range-width: 600px;
    height: 134px;
  }

  h1 {
    max-width: 9ch;
    font-size: 58px;
  }

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