:root {
  color-scheme: light;
  --bg: #f7f8f5;
  --surface: #ffffff;
  --surface-muted: #eef2ed;
  --ink: #19211d;
  --ink-soft: #4d5b53;
  --ink-muted: #718078;
  --line: #d9e1dc;
  --line-strong: #bdcac2;
  --accent: #0f766e;
  --accent-strong: #0b5f59;
  --accent-soft: #d9f1ed;
  --warm: #b45309;
  --warm-soft: #fff2dd;
  --code-bg: #17201d;
  --code-text: #eef7f2;
  --shadow: 0 18px 48px rgba(25, 33, 29, 0.1);
  --radius: 8px;
  --shell: min(1120px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 118, 110, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 48%);
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--warm);
}

code {
  overflow-wrap: anywhere;
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, ui-monospace, monospace;
  font-size: 0.92em;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(217, 225, 220, 0.85);
  background: rgba(247, 248, 245, 0.92);
  backdrop-filter: blur(16px);
}

.header-shell {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--accent-strong);
  font-weight: 820;
  line-height: 1;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  font-size: 0.92rem;
}

.top-nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--accent-strong);
}

.hero-section {
  padding: 82px 0 64px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: 46px;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: 5.4rem;
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 16px;
  font-size: 3rem;
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.lede {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 1.15rem;
}

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

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-weight: 720;
  text-decoration: none;
}

.button.primary {
  border-color: var(--accent-strong);
  background: var(--accent);
  color: #fff;
}

.button.secondary {
  background: var(--surface);
  color: var(--ink);
}

.deck-visual {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
}

.file-stack {
  display: grid;
  gap: 8px;
}

.file-pill {
  display: block;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-soft);
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, ui-monospace, monospace;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.file-pill.accent {
  border-color: rgba(15, 118, 110, 0.28);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.deck-window {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.deck-toolbar {
  display: flex;
  gap: 6px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
}

.deck-toolbar span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--line-strong);
}

.deck-slide {
  min-height: 250px;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), transparent 48%),
    linear-gradient(160deg, transparent, rgba(180, 83, 9, 0.14));
}

.slide-kicker {
  display: block;
  margin-bottom: 58px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 780;
  text-transform: uppercase;
}

.deck-slide strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1.1;
}

.deck-slide p {
  max-width: 28ch;
  margin: 10px 0 0;
  color: var(--ink-soft);
}

.docs-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding: 58px 0 76px;
}

.toc {
  position: sticky;
  top: 92px;
}

.toc nav {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
}

.toc a {
  padding: 7px 9px;
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  text-decoration: none;
}

.toc a:hover {
  background: var(--surface-muted);
  color: var(--accent-strong);
}

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

.doc-section {
  padding: 4px 0 64px;
  scroll-margin-top: 96px;
}

.doc-section:not(:last-child) {
  border-bottom: 1px solid var(--line);
  margin-bottom: 56px;
}

.doc-section > p {
  max-width: 78ch;
  color: var(--ink-soft);
}

.feature-grid,
.note-grid,
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

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

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

.feature-card,
.note-card,
.steps article,
.callout {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature-card,
.note-card,
.steps article {
  padding: 18px;
}

.feature-card p,
.note-card p,
.steps p,
.callout p {
  margin: 0;
  color: var(--ink-soft);
}

.code-block {
  margin: 24px 0 0;
  padding: 18px;
  overflow-x: auto;
  border-radius: var(--radius);
  background: var(--code-bg);
  color: var(--code-text);
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.code-block code {
  font-size: 0.9rem;
}

.steps article {
  position: relative;
  padding-top: 48px;
}

.step-number {
  position: absolute;
  top: 16px;
  left: 18px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--warm-soft);
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 820;
}

.structure-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
}

.structure-list div {
  display: grid;
  grid-template-columns: minmax(160px, 0.28fr) minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

dt {
  color: var(--ink);
  font-weight: 760;
}

dd {
  margin: 0;
  color: var(--ink-soft);
}

.workflow-list {
  display: grid;
  gap: 10px;
  max-width: 78ch;
  margin: 22px 0 0;
  padding-left: 22px;
  color: var(--ink-soft);
}

.workflow-list li::marker {
  color: var(--accent-strong);
  font-weight: 800;
}

.callout {
  margin-top: 24px;
  padding: 18px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
}

.command-table-wrap {
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.command-table {
  width: 100%;
  border-collapse: collapse;
}

.command-table th,
.command-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.command-table th {
  background: var(--surface-muted);
  color: var(--ink);
  font-size: 0.84rem;
  text-transform: uppercase;
}

.command-table tr:last-child td {
  border-bottom: 0;
}

.command-table td:first-child {
  width: 48%;
}

.command-table td {
  color: var(--ink-soft);
}

.command-table code {
  color: var(--ink);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  background: var(--surface);
  color: var(--ink-muted);
}

.footer-shell {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
}

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

@media (max-width: 900px) {
  :root {
    --shell: min(100vw - 28px, 720px);
  }

  .header-shell {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .top-nav {
    justify-content: flex-start;
  }

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .hero-section {
    padding: 54px 0 44px;
  }

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

  .deck-visual {
    max-width: 560px;
  }

  .toc {
    position: static;
  }

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

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

  .docs-layout {
    gap: 30px;
    padding-top: 38px;
  }
}

@media (max-width: 560px) {
  :root {
    --shell: min(100vw - 24px, 520px);
  }

  h1 {
    font-size: 2.65rem;
  }

  h2 {
    font-size: 1.95rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .toc nav,
  .structure-list div {
    grid-template-columns: 1fr;
  }

  .structure-list div {
    gap: 4px;
  }

  .deck-visual {
    padding: 14px;
  }

  .deck-slide {
    min-height: 220px;
    padding: 20px;
  }

  .doc-section {
    padding-bottom: 46px;
  }
}
