:root {
  color-scheme: dark;
  --ink: #edeee9;
  --muted: #a6a9a2;
  --soft: #8a8d86;
  --paper: #16181c;
  --paper-deep: #1e2126;
  --line: rgba(237, 238, 233, 0.1);
  --accent: #c6f24e;
  --accent-dark: #b6df45;
  --charcoal: #24272d;
  --shadow: 0 46px 120px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Instrument Sans", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

img {
  display: block;
}

.page-shell {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(95% 90% at 86% -10%, rgba(198, 242, 78, 0.08), transparent 48%),
    var(--paper);
  box-shadow: none;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 64px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
}

.brand-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
}

.brand-name span {
  color: var(--accent);
}

.brand-stack {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
}

.logo-pair,
.service-lockup,
.footer-lockup {
  display: inline-flex;
  align-items: center;
}

.logo-pair {
  gap: 9px;
}

.service-lockup {
  gap: 6px;
  white-space: nowrap;
}

.logo-mark {
  display: inline-block;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  background: currentColor;
}

.logo-codex {
  -webkit-mask: url("./assets/logo-codex.svg") center / contain no-repeat;
  mask: url("./assets/logo-codex.svg") center / contain no-repeat;
}

.logo-shopify {
  background: #95bf47;
  -webkit-mask: url("./assets/logo-shopify.svg") center / contain no-repeat;
  mask: url("./assets/logo-shopify.svg") center / contain no-repeat;
}

.logo-github {
  -webkit-mask: url("./assets/logo-github.svg") center / contain no-repeat;
  mask: url("./assets/logo-github.svg") center / contain no-repeat;
}

.brand-x {
  color: var(--soft);
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.nav-contribute {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(237, 238, 233, 0.18);
  border-radius: 999px;
  background: rgba(237, 238, 233, 0.04);
  color: var(--ink);
  font-weight: 600;
}

.nav-contribute:hover {
  border-color: rgba(198, 242, 78, 0.5);
  background: var(--paper-deep);
}

.nav-install {
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 680px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 78px 64px 70px;
}

.eyebrow,
.section-heading span,
.gallery-heading p,
.final-cta > p:not(.final-copy),
.command-card span {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  line-height: 1.02;
}

h1 {
  max-width: 15ch;
  margin-top: 28px;
  font-size: clamp(54px, 6vw, 76px);
}

h1 em,
.gallery-feature h3 {
  color: var(--accent);
  font-style: italic;
}

.lede {
  max-width: 44ch;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.inline-logo-word {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}

.inline-logo-word .logo-mark {
  width: 15px;
  height: 15px;
  transform: translateY(2px);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 38px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 54px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--paper);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 16px 34px -14px rgba(198, 242, 78, 0.7);
}

.primary-button:hover {
  background: var(--accent-dark);
}

.install-mobile,
.mobile-codex-note {
  display: none;
}

.is-mobile-codex-target .install-desktop,
.is-mobile-codex-target .command-card,
.is-mobile-codex-target .final-cta code {
  display: none;
}

.is-mobile-codex-target .install-mobile {
  display: inline-flex;
}

.is-mobile-codex-target .mobile-codex-note {
  display: block;
}

.mobile-codex-note {
  max-width: 42ch;
  margin: 14px 0 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.55;
}

.text-link {
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(237, 238, 233, 0.34);
  font-size: 15px;
}

.command-card {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  max-width: 100%;
  margin-top: 34px;
  padding: 13px 18px;
  border: 1px solid rgba(237, 238, 233, 0.1);
  border-radius: 8px;
  background: var(--paper-deep);
}

.proof-note {
  max-width: 47ch;
  margin: 16px 0 0;
  color: var(--soft);
  font-size: 13.5px;
  line-height: 1.55;
}

code {
  color: var(--accent);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.carousel-card {
  position: relative;
  height: 100%;
  min-height: 680px;
  border-left: 1px solid var(--line);
  background: var(--charcoal);
}

.carousel-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 680px;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.carousel-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-height: 680px;
  margin: 0;
}

.carousel-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-pill,
.carousel-counter {
  position: absolute;
  top: 22px;
  z-index: 2;
  padding: 7px 12px;
  border-radius: 999px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.carousel-pill {
  left: 22px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--ink);
}

.carousel-counter {
  right: 22px;
  background: var(--accent);
  color: var(--paper);
}

.carousel-dots {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(237, 238, 233, 0.42);
  cursor: pointer;
}

.carousel-dots button.is-active {
  width: 26px;
  border-radius: 999px;
  background: var(--accent);
}

.proof-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
  padding: 26px 64px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
}

.proof-strip p,
.proof-strip li {
  margin: 0;
  color: var(--accent);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 21px;
  font-style: italic;
}

.proof-strip p {
  white-space: nowrap;
}

.proof-strip ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow,
.gallery {
  padding: 80px 64px 30px;
}

.section-heading,
.gallery-heading {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  margin-bottom: 48px;
  text-align: center;
}

.section-heading h2,
.gallery-heading h2 {
  max-width: 16ch;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(38px, 4vw, 48px);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.workflow-grid li {
  min-height: 236px;
  padding: 34px 26px 40px;
  border-right: 1px solid var(--line);
}

.workflow-grid li:last-child {
  border-right: 0;
}

.workflow-grid span {
  display: block;
  margin-bottom: 20px;
  color: var(--accent);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
}

.workflow-grid h3,
.gallery-feature h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.workflow-grid p,
.gallery-feature p,
.placeholder-frame p,
.final-cta code {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.listing-proof {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 56px;
  padding: 80px 64px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(80% 90% at 50% 0%, rgba(198, 242, 78, 0.1), transparent 54%),
    var(--paper);
}

.listing-prompt {
  width: min(100%, 920px);
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-deep);
  text-align: center;
}

.listing-prompt p {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.listing-prompt h2 {
  max-width: 24ch;
  margin: 0 auto;
  color: var(--ink);
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: 1.08;
}

.listing-prompt h2 .prompt-mention {
  color: var(--accent);
}

.listing-results {
  display: grid;
  gap: 34px;
  width: min(100%, 1120px);
}

.listing-results figure {
  margin: 0;
}

.listing-results figcaption {
  margin-bottom: 14px;
  color: var(--accent);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  font-style: italic;
}

.listing-results img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
}

.gallery {
  padding-top: 70px;
}

.gallery-heading p {
  color: var(--soft);
  text-transform: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 22px;
}

.gallery-feature,
.placeholder-frame {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: var(--charcoal);
}

.gallery-feature {
  aspect-ratio: 16 / 10;
}

.gallery-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-feature div {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 34px 26px 22px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.76), transparent);
}

.gallery-feature h3,
.gallery-feature p {
  color: var(--paper);
}

.placeholder-frame {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border: 1px solid var(--line);
}

.placeholder-frame span {
  margin-bottom: 8px;
  color: var(--accent);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  font-style: italic;
}

.final-cta {
  margin: 60px 0 0;
  padding: 64px 60px 58px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(198, 242, 78, 0.13), transparent 56%),
    var(--paper-deep);
  color: var(--ink);
  text-align: center;
}

.final-cta h2 {
  max-width: 18ch;
  margin: 18px auto 0;
  font-size: clamp(40px, 4.7vw, 56px);
  font-weight: 300;
}

.final-cta .final-copy {
  max-width: 48ch;
  margin: 20px auto 28px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.62;
  text-transform: none;
}

.final-cta > p.mobile-codex-note {
  width: min(100%, 42ch);
  margin: 48px auto 0;
}

.final-cta code {
  display: block;
  margin-top: 24px;
  color: var(--soft);
}

.site-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  background: var(--paper);
  color: var(--soft);
  font-size: 13px;
}

.site-footer .brand-name {
  color: var(--ink);
  font-size: 18px;
}

.footer-lockup {
  gap: 10px;
}

.footer-credit {
  color: var(--soft);
}

.footer-credit a {
  color: var(--ink);
  font-weight: 600;
}

.footer-credit a:hover {
  color: var(--accent);
}

@media (max-width: 980px) {
  .page-shell {
    width: 100%;
    margin: 0;
  }

  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 24px;
  }

  .brand {
    flex: 1 1 320px;
    flex-wrap: wrap;
    min-width: 0;
  }

  .brand-stack {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  nav {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
    gap: 12px;
  }

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

  .hero-copy {
    padding: 56px 28px 42px;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(48px, 12vw, 66px);
  }

  .carousel-card {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .carousel-card,
  .carousel-frame,
  .carousel-slide {
    min-height: 560px;
  }

  .proof-strip,
  .section-heading,
  .gallery-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .proof-strip {
    align-items: center;
    gap: 24px;
    text-align: center;
  }

  .proof-strip ul {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .workflow .section-heading {
    align-items: center;
  }

  .proof-strip,
  .workflow,
  .gallery,
  .site-footer {
    padding-right: 28px;
    padding-left: 28px;
  }

  .workflow-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .listing-prompt h2 {
    max-width: 13ch;
  }

  .workflow-grid li {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .gallery-feature,
  .placeholder-frame {
    min-height: 280px;
  }

  .final-cta {
    padding: 58px 26px;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: 100%;
    margin: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 12px;
    padding: 18px 20px;
  }

  .brand {
    align-items: flex-start;
    flex: none;
    min-width: 0;
  }

  .brand-stack {
    width: 100%;
    padding-left: 0;
    border-left: 0;
  }

  nav {
    display: flex;
    width: auto;
    margin-left: 0;
    justify-self: end;
  }

  .nav-contribute {
    min-height: 40px;
    padding: 0 14px;
  }

  .hero-copy {
    padding: 34px 20px 26px;
  }

  h1 {
    font-size: 42px;
    line-height: 1;
  }

  .lede {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.58;
  }

  .hero-actions {
    margin-top: 18px;
  }

  .hero-actions,
  .command-card {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button {
    width: 100%;
  }

  .text-link {
    align-self: flex-start;
  }

  .command-card {
    width: 100%;
  }

  .carousel-card,
  .carousel-frame,
  .carousel-slide {
    min-height: 420px;
  }

  .proof-strip {
    padding: 22px 20px;
  }

  .listing-proof {
    padding: 58px 20px;
  }

  .listing-prompt {
    padding: 26px;
  }

  .listing-prompt h2 {
    font-size: 34px;
  }

  .workflow,
  .gallery {
    padding: 58px 20px 22px;
  }

  .final-cta {
    margin: 38px 0 0;
  }

  .final-cta > p.mobile-codex-note {
    margin-top: 52px;
  }
}
