:root {
  color-scheme: light;
  --paper: #fffbf0;
  --ink: #1a1209;
  --copy: #6b5243;
  --muted: #8a7060;
  --terra: #c4633f;
  --terra-soft: #d4784f;
  --olive: #2d4a3e;
  --gold: #e8a644;
  --panel: #fffdf8;
  --line: rgba(61, 46, 30, 0.14);
  --line-strong: rgba(61, 46, 30, 0.2);
  --shadow: rgba(26, 18, 9, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Nunito",
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

.page-shell {
  display: grid;
  min-height: 100svh;
  place-items: start center;
  padding: clamp(108px, 13vh, 132px) 24px 28px;
}

body.is-windows .page-shell {
  padding-top: clamp(36px, 6vh, 72px);
}

.hero {
  display: flex;
  width: min(100%, 1560px);
  min-height: calc(100svh - clamp(64px, 10vh, 100px));
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 clamp(18px, 3vh, 30px);
  color: var(--terra);
  font-family: "Caveat", cursive;
  font-size: clamp(24px, 1.65vw, 31px);
  font-weight: 700;
  line-height: 1;
  transform: rotate(-2deg);
}

.hero-title {
  display: grid;
  gap: clamp(4px, 0.8vw, 12px);
  margin: 0;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.hero-title span,
.hero-title em {
  display: block;
}

.hero-title span {
  color: var(--ink);
  font-family: "Lora", Georgia, serif;
  font-size: clamp(70px, 9.4vw, 166px);
  font-weight: 800;
}

.hero-title em {
  color: var(--terra);
  font-family: "Lora", Georgia, serif;
  font-size: clamp(68px, 9vw, 158px);
  font-style: italic;
  font-weight: 800;
}

.hero-copy {
  max-width: 840px;
  margin: clamp(18px, 2.6vh, 30px) 0 0;
  color: var(--copy);
  font-size: clamp(19px, 1.32vw, 26px);
  font-weight: 600;
  line-height: 1.62;
}

.hero-copy strong {
  color: var(--ink);
  font-weight: 900;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(34px, 4.8vh, 54px);
}

.feature-pill {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.66);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 2px 4px rgba(26, 18, 9, 0.04);
  color: #3d2e1e;
  font-size: clamp(16px, 1vw, 20px);
  font-weight: 800;
  line-height: 1;
  padding: 0 24px;
}

.feature-pill svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.feature-pill:nth-child(1) svg {
  color: var(--olive);
}

.feature-pill:nth-child(2) svg {
  color: var(--gold);
}

.download-button {
  display: inline-flex;
  min-width: 310px;
  min-height: 70px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: clamp(34px, 4.8vh, 52px);
  border: 1px solid rgba(255, 251, 240, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 251, 240, 0.16), transparent 48%),
    radial-gradient(circle at 50% 0%, #44392f, var(--ink) 62%);
  box-shadow:
    inset 0 1px 0 rgba(255, 251, 240, 0.22),
    0 3px 6px rgba(26, 18, 9, 0.26),
    0 18px 46px rgba(26, 18, 9, 0.16);
  color: var(--paper);
  font-size: clamp(18px, 1.1vw, 22px);
  font-weight: 900;
  line-height: 1;
  padding: 0 34px;
}

.download-button svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.alternate-download {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(16px, 0.95vw, 20px);
  font-weight: 700;
  line-height: 1;
}

.alternate-download svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.alternate-download > span:last-child {
  font-size: 26px;
  line-height: 0.7;
}

.mac-install-banner {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 10;
  width: min(calc(100% - 32px), 1120px);
  transform: translateX(-50%);
  color: var(--copy);
}

.mac-install-banner[hidden] {
  display: none;
}

.mac-install-banner__inner {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(196, 99, 63, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(255, 253, 248, 0.78)),
    color-mix(in srgb, var(--terra) 10%, var(--paper));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 12px 32px rgba(26, 18, 9, 0.08);
  backdrop-filter: blur(16px);
}

.mac-install-banner__label {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--terra) 14%, var(--paper));
  color: var(--terra);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1;
  padding: 0 13px;
  text-transform: uppercase;
  white-space: nowrap;
}

.mac-install-banner__copy {
  color: #4a392d;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.command-copy {
  display: flex;
  min-height: 38px;
  max-width: min(100%, 500px);
  align-items: center;
  overflow-x: auto;
  border: 1px solid rgba(61, 46, 30, 0.16);
  border-radius: 999px;
  background: rgba(26, 18, 9, 0.88);
  color: var(--paper);
}

.command-copy code {
  display: block;
  flex: 1 1 auto;
  overflow-x: auto;
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 0 14px 0 15px;
  white-space: nowrap;
}

.command-copy--select code {
  user-select: all;
}

.copy-command-button {
  display: inline-flex;
  min-width: 70px;
  height: 30px;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  transition:
    background-color 160ms ease,
    transform 120ms ease;
}

.copy-command-button:hover {
  background: color-mix(in srgb, var(--paper) 86%, var(--gold));
}

.copy-command-button:active {
  transform: scale(0.96);
}

@media (max-width: 1040px) {
  .page-shell {
    padding-top: 118px;
  }

  .hero {
    min-height: calc(100svh - 64px);
  }

  .hero-title {
    gap: 6px;
    letter-spacing: -0.045em;
  }

  .hero-copy {
    max-width: 620px;
  }

  .mac-install-banner__inner {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    border-radius: 24px;
    padding: 12px;
  }

  .mac-install-banner__copy {
    white-space: normal;
  }

  .command-copy {
    width: 100%;
    border-radius: 16px;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: calc(100svh - 64px);
  }

  .hero-title {
    gap: 6px;
    letter-spacing: -0.045em;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 154px 16px 24px;
  }

  body.is-windows .page-shell {
    padding-top: 40px;
  }

  .eyebrow {
    margin-bottom: 24px;
  }

  .hero-title span,
  .hero-title em {
    font-size: clamp(58px, 19vw, 94px);
  }

  .hero-copy {
    font-size: 18px;
    line-height: 1.55;
  }

  .feature-pills {
    gap: 10px;
    margin-top: 34px;
  }

  .feature-pill {
    min-height: 46px;
    padding: 0 17px;
    font-size: 16px;
  }

  .download-button {
    min-width: min(100%, 280px);
    min-height: 64px;
    margin-top: 34px;
    font-size: 19px;
  }

  .alternate-download {
    flex-wrap: wrap;
    justify-content: center;
    line-height: 1.35;
  }

  .mac-install-banner {
    top: 10px;
    width: min(calc(100% - 20px), 980px);
  }

  .mac-install-banner__label {
    align-self: flex-start;
  }

  .mac-install-banner__copy {
    font-size: 15px;
  }

  .command-copy code {
    font-size: 12px;
  }

  .copy-command-button {
    min-width: 64px;
  }
}
