:root {
  color-scheme: light;
  --ink: #201913;
  --muted: #685c51;
  --paper: #fbfaf5;
  --board: #d9a75f;
  --line: #382819;
  --stone: #10100f;
  --shell: #f1e6d0;
  --blue: #245f73;
  --red: #9c382b;
  --panel: #fffdfa;
  --rule: rgba(56, 40, 25, 0.18);
  --shadow: 0 22px 60px rgba(32, 25, 19, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(56, 40, 25, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(56, 40, 25, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 64px);
  background: rgba(251, 250, 245, 0.88);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.hero-actions,
.site-footer {
  display: flex;
  align-items: center;
}

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

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--shell);
  background: var(--stone);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.nav {
  gap: clamp(12px, 3vw, 28px);
  font-size: 14px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(360px, 1.25fr);
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100vh - 68px);
  align-items: center;
  padding: clamp(42px, 7vw, 96px) clamp(20px, 5vw, 64px) 40px;
}

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

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(28px, 5vw, 52px);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 4.2vw, 56px);
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.hero-text,
.intro > p,
.download p {
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.75;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-actions .button {
  min-width: 210px;
}

.hero-note {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: #fffdfa;
  background: var(--ink);
  box-shadow: 5px 5px 0 var(--board);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 253, 250, 0.72);
}

.text-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--ink);
}

.button:focus-visible,
.feature:focus-within {
  outline: 3px solid rgba(36, 95, 115, 0.35);
  outline-offset: 3px;
}

.product-shot {
  position: relative;
  margin: 0;
  padding: clamp(12px, 1.6vw, 20px);
  background:
    linear-gradient(90deg, rgba(56, 40, 25, 0.42) 1px, transparent 1px),
    linear-gradient(rgba(56, 40, 25, 0.42) 1px, transparent 1px),
    var(--board);
  background-size: 26px 26px;
  border: 2px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-shot::before {
  position: absolute;
  top: 18%;
  left: -22px;
  width: 44px;
  height: 44px;
  content: "";
  background: var(--stone);
  border-radius: 50%;
  box-shadow:
    0 118px 0 #fffdfa,
    0 118px 0 1px var(--line);
}

.product-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(32, 25, 19, 0.28);
  border-radius: 5px;
}

.product-shot figcaption {
  margin-top: 12px;
  color: rgba(32, 25, 19, 0.78);
  font-size: 13px;
  font-weight: 700;
}

.section {
  padding: clamp(54px, 8vw, 110px) clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--rule);
}

.intro,
.download {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(280px, 1fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: start;
}

.section-heading {
  grid-column: 1 / -1;
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 52px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
}

.feature-grid .section-heading,
.feature {
  background: var(--paper);
}

.feature {
  min-height: 280px;
  padding: clamp(22px, 3vw, 34px);
}

.feature-symbol {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 34px;
  color: var(--shell);
  background: var(--blue);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 800;
}

.feature:nth-of-type(2) .feature-symbol,
.feature:nth-of-type(5) .feature-symbol {
  color: var(--ink);
  background: #fffdfa;
  border: 1px solid var(--line);
}

.feature p,
.steps p,
.download-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.workflow {
  background: var(--panel);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps li {
  padding: 24px 0 0;
  border-top: 4px solid var(--line);
}

.steps span {
  display: block;
  margin-bottom: 14px;
  font-size: 24px;
  font-weight: 900;
}

.download {
  align-items: center;
}

.download-panel {
  justify-self: end;
  width: min(100%, 520px);
  padding: 30px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 8px;
  box-shadow: 12px 12px 0 rgba(217, 167, 95, 0.55);
}

.download-option {
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}

.download-option:first-child {
  padding-top: 0;
  border-top: 0;
}

.download-option.primary-option {
  position: relative;
}

.platform {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.download-option p {
  margin-bottom: 0;
}

.download-option p + p {
  margin-top: 12px;
}

code {
  display: inline-block;
  padding: 2px 7px;
  color: var(--ink);
  background: rgba(217, 167, 95, 0.24);
  border: 1px solid rgba(56, 40, 25, 0.16);
  border-radius: 5px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.download-option .button {
  width: 100%;
  margin-top: 18px;
}

.download-panel p {
  margin: 0;
  font-size: 15px;
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 5vw, 64px);
  color: var(--muted);
  border-top: 1px solid var(--rule);
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 900;
}

.doc-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 920px);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding: clamp(34px, 6vw, 74px) clamp(20px, 5vw, 64px);
}

.doc-toc {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 8px;
}

.doc-toc-title {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 900;
  color: var(--red);
}

.doc-toc a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
}

.doc-toc a:hover,
.doc-toc a:focus-visible {
  color: var(--ink);
}

.doc-content {
  min-width: 0;
}

.doc-hero {
  padding-bottom: clamp(34px, 5vw, 56px);
  border-bottom: 1px solid var(--rule);
}

.doc-hero h1 {
  max-width: 900px;
  font-size: clamp(26px, 4vw, 44px);
}

.doc-hero p,
.doc-section > p,
.doc-card p,
.doc-section li,
.action-list dd {
  color: var(--muted);
  line-height: 1.75;
}

.doc-section {
  padding: clamp(34px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--rule);
}

.doc-section h2 {
  margin-bottom: 24px;
  font-size: clamp(22px, 3vw, 32px);
}

.doc-card {
  padding: 24px;
  margin-top: 18px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 8px;
}

.doc-card:first-of-type {
  margin-top: 0;
}

.doc-card h3 {
  margin-bottom: 14px;
}

.doc-section ol,
.doc-section ul {
  padding-left: 22px;
}

.doc-section li + li {
  margin-top: 8px;
}

pre {
  overflow-x: auto;
  padding: 16px;
  color: var(--shell);
  background: var(--ink);
  border-radius: 8px;
}

pre code {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
}

.action-list {
  display: grid;
  gap: 1px;
  margin: 0;
  background: var(--rule);
}

.action-list div {
  display: grid;
  grid-template-columns: minmax(120px, 0.32fr) 1fr;
  gap: 18px;
  padding: 16px;
  background: var(--panel);
}

.action-list dt {
  font-weight: 900;
}

.action-list dd {
  margin: 0;
}

.doc-note {
  margin-top: 18px;
}

.download-redirect {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(24px, 5vw, 64px);
}

.download-redirect .download-panel {
  justify-self: auto;
}

.download-redirect h1 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 56px);
}

@media (max-width: 980px) {
  .hero,
  .intro,
  .download,
  .doc-shell {
    grid-template-columns: 1fr;
  }

  .doc-toc {
    position: static;
  }

  .hero {
    min-height: auto;
  }

  .product-shot::before {
    display: none;
  }

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

  .download-panel {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding-top: 34px;
  }

  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .feature {
    min-height: auto;
  }

  .action-list div {
    grid-template-columns: 1fr;
  }

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

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