:root {
  color-scheme: light;
  --bg: #f4f1e9;
  --ink: #171717;
  --muted: #62615c;
  --line: #d8d3c7;
  --panel: #ffffff;
  --accent: #8a4b08;
  --accent-ink: #ffffff;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

.scroll-meter {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: 3px;
}

.scroll-meter span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.site-shell {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 7px;
}

.brand-type {
  white-space: nowrap;
}

.nav {
  gap: 20px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-toggle {
  position: relative;
  display: none;
}

main {
  padding: 40px 24px 72px;
}

.blog-hero,
.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
  gap: 40px;
  align-items: center;
  padding: 36px 0 54px;
}

.blog-hero {
  display: block;
  max-width: 780px;
}

.eyebrow,
.story-kicker,
.section-label span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin-top: 10px;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.lede {
  max-width: 760px;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.45;
}

.hero-actions,
.package-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-weight: 750;
  white-space: nowrap;
}

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

.button:hover {
  border-color: var(--ink);
}

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

.button.text {
  border-color: transparent;
}

.article-hero-image img,
.post-card img,
.package-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ece9df;
}

.article-body,
.toolkit-summary,
.pack-install-band,
.package-directory,
.blog-index {
  margin-top: 44px;
}

.article-body {
  max-width: 820px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.article-body p + p {
  margin-top: 18px;
}

.section-label {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.section-label h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.compare-grid,
.package-grid,
.post-list {
  display: grid;
  gap: 18px;
}

.compare-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compare-grid article,
.pack-install-band,
.package-card,
.post-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.compare-grid article,
.pack-install-band,
.package-card-body,
.post-card-copy {
  padding: 22px;
}

.compare-grid h3,
.package-card h3,
.post-card h2 {
  margin-top: 8px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.compare-grid p,
.package-card p:not(.story-kicker),
.post-card p:not(.story-kicker),
.pack-install-band p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.55;
}

.post-card-copy > .button {
  margin-top: 20px;
}

.pack-install-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.package-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.package-actions a {
  color: var(--accent);
  font-weight: 750;
}

.post-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 24px 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-links a {
  font-weight: 650;
}

/* Product landing page */

.landing-page {
  background:
    radial-gradient(circle at 82% 10%, rgb(216 151 70 / 0.16), transparent 24rem),
    var(--bg);
}

.landing-page .masthead {
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.landing-page .nav-download {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
}

.landing-main {
  overflow: hidden;
  padding-top: 76px;
}

.product-hero {
  text-align: center;
}

.hero-copy {
  max-width: 940px;
  margin: 0 auto;
}

.product-hero h1 {
  margin-top: 18px;
  font-size: clamp(4rem, 10.5vw, 8.2rem);
  line-height: 0.82;
  letter-spacing: -0.075em;
}

.product-hero h1 span {
  color: var(--accent);
}

.product-hero .lede {
  max-width: 720px;
  margin: 34px auto 0;
}

.product-hero .hero-actions {
  justify-content: center;
  margin-top: 30px;
}

.install-command {
  display: inline-flex;
  max-width: 100%;
  margin-top: 18px;
  padding: 11px 15px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
}

.install-command code {
  margin-left: 0.6em;
}

.button-large {
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
}

.button-large span {
  margin-left: 7px;
}

.manager-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  margin-top: 44px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.manager-line span {
  position: relative;
}

.manager-line span + span::before {
  content: "·";
  position: absolute;
  left: -15px;
  color: var(--accent);
}

.product-shot {
  margin: 0;
}

.product-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 2980 / 1872;
}

.hero-shot {
  margin-top: 28px;
}

.inventory-intro {
  padding: 132px 0 110px;
}

.inventory-intro > h2,
.story-copy h2,
.final-cta h2 {
  max-width: 940px;
  margin-top: 14px;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.inventory-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 60px;
  border: 1px solid var(--line);
  background: var(--line);
}

.inventory-points article {
  min-height: 280px;
  padding: 30px;
  background: var(--bg);
}

.inventory-points strong {
  display: block;
  color: var(--accent);
  font-size: 4.5rem;
  line-height: 1;
}

.inventory-points h3 {
  margin-top: 42px;
  font-size: 1.25rem;
}

.inventory-points p,
.story-copy > p,
.feature-strip p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.package-story {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: 54px;
  align-items: center;
  padding: 110px 0;
  border-top: 1px solid var(--line);
}

.release-story {
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.72fr);
}

.remote-hosts-card {
  display: grid;
  gap: 14px;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 22px 70px rgb(44 35 24 / 0.1);
}

.remote-hosts-card article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 24px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

.remote-hosts-card strong {
  font-size: 1.05rem;
}

.remote-hosts-card span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.remote-hosts-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.story-copy h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.story-copy > p {
  margin-top: 24px;
  font-size: 1.05rem;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
}

.check-list li {
  display: flex;
  gap: 10px;
}

.check-list li::before {
  content: "↳";
  color: var(--accent);
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding: 105px 0;
  border-top: 1px solid var(--line);
}

.feature-number {
  display: inline-block;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
}

.feature-strip h3 {
  margin-top: 40px;
  font-size: 1.4rem;
}

.final-cta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 72px;
  padding: 64px;
  border-radius: 24px;
  background: var(--ink);
  color: #f7f3e9;
}

.final-cta .eyebrow {
  color: #e9a95d;
}

.final-cta .button.primary {
  flex: 0 0 auto;
  border-color: #e9a95d;
  background: #e9a95d;
  color: #221b13;
}

.final-cta .button.primary:hover {
  border-color: #fff;
  background: #fff;
}

@media (max-width: 820px) {
  .masthead {
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--panel);
  }

  .nav-toggle span,
  .nav-toggle::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 2px;
    background: var(--ink);
  }

  .nav-toggle span:first-child {
    transform: translateY(-4px);
  }

  .nav-toggle span:nth-child(2) {
    transform: translateY(4px);
  }

  .nav {
    display: none;
    position: absolute;
    top: 68px;
    right: 24px;
    left: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    padding: 8px;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0 10px;
  }

  .article-hero,
  .compare-grid,
  .package-grid,
  .post-list {
    grid-template-columns: 1fr;
  }

  .pack-install-band,
  .site-footer,
  .section-label {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-main {
    padding-top: 48px;
  }

  .landing-page .nav-download {
    border: 0;
    border-radius: 0;
    padding: 0 10px;
  }

  .manager-line span + span::before {
    display: none;
  }

  .hero-shot {
    width: calc(100% + 24px);
    margin-left: -12px;
    border-radius: 14px;
  }

  .inventory-intro {
    padding: 92px 0 74px;
  }

  .inventory-points,
  .package-story,
  .feature-strip {
    grid-template-columns: 1fr;
  }

  .inventory-points article {
    min-height: 0;
  }

  .inventory-points h3 {
    margin-top: 24px;
  }

  .package-story {
    gap: 44px;
    padding: 76px 0;
  }

  .feature-strip {
    gap: 54px;
    padding: 76px 0;
  }

  .feature-strip h3 {
    margin-top: 20px;
  }

  .final-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 38px 28px;
  }
}

@media (max-width: 520px) {
  .landing-main {
    padding-inline: 18px;
  }

  .product-hero h1 {
    font-size: clamp(3.5rem, 20vw, 5rem);
  }

  .product-hero .lede {
    margin-top: 26px;
  }

  .product-hero .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .manager-line {
    align-items: center;
    flex-direction: column;
  }

  .final-cta {
    margin-right: -6px;
    margin-left: -6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
