:root {
  color-scheme: light;
  --paper: #f4f2ec;
  --ink: #1a1916;
  --body: #44423c;
  --secondary: #6b685f;
  --muted: #8a867b;
  --quiet: #b9b4a6;
  --rule: #d9d5cb;
  --accent: #2f4bd6;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration-color: var(--quiet); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { color: var(--paper); background: var(--accent); }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 40px; }
.mono, code, pre { font-family: var(--mono); }
.cap { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--secondary); }
.muted { color: var(--muted); }
p, h1, h2, figure, dl, dd, pre { margin: 0; }
h1, h2 { font-weight: 500; }
h1 { max-width: 16ch; font-size: 60px; line-height: 1.06; letter-spacing: -.025em; }
h2 { font-size: 36px; line-height: 1.15; letter-spacing: -.02em; }
table { border-collapse: collapse; }
th { font-weight: 500; text-align: left; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 12px 20px; color: var(--paper); background: var(--ink); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--ink); border-radius: 2px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 500; letter-spacing: .02em; text-decoration: none; transition: background-color .15s, color .15s; }
.button:hover { background: var(--body); border-color: var(--body); }
.button-secondary { background: transparent; color: var(--ink); }
.button-secondary:hover { background: var(--rule); border-color: var(--ink); }

.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; min-height: 68px; padding-block: 14px; border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; align-items: baseline; gap: 9px; font-family: var(--mono); font-size: 16px; font-weight: 500; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; }
.brand a { text-decoration: none; }
.brand a:hover { text-decoration: underline; }
.brand-parent { color: var(--secondary); font-size: 14px; font-weight: 600; letter-spacing: .2em; margin-right: -.1em; }
.brand-slash { color: var(--quiet); font-weight: 400; }
.brand-product span { color: var(--secondary); }
.primary-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; }
.primary-nav > a:not(.button) { color: var(--ink); text-decoration: none; }
.primary-nav > a:not(.button):hover, .footer-nav a:hover { text-decoration: underline; }
.primary-nav .button { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; }

.hero-intro { display: flex; flex-direction: column; gap: 36px; padding-block: 96px 56px; }
.hero-bottom { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-end; justify-content: space-between; }
.hero-description { max-width: 54ch; font-size: 19px; line-height: 1.5; color: var(--body); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ledger-scroll { overflow-x: auto; border-block: 1px solid var(--ink); }
.ledger-table { width: 100%; min-width: 880px; font-size: 13px; line-height: 1.4; }
.ledger-table thead th { padding-block: 12px 10px; font-weight: 500; }
.ledger-table thead th:nth-child(1) { width: 30%; }
.ledger-table thead th:nth-child(2), .ledger-table thead th:nth-child(5) { width: 8%; }
.ledger-table thead th:nth-child(3), .ledger-table thead th:nth-child(4) { width: 22%; }
.ledger-table thead th:nth-child(6) { width: 10%; }
.ledger-table tbody tr { border-top: 1px solid var(--rule); }
.ledger-table tbody th, .ledger-table td { padding: 13px 16px 13px 0; font-weight: 400; }
.ledger-table th:last-child, .ledger-table td:last-child { padding-right: 0; text-align: right; white-space: nowrap; color: var(--secondary); }
.ledger-table .tier-hot { color: var(--accent); }
.ledger-table .tier-cold { color: var(--secondary); }
.ledger figcaption { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--secondary); }

.ruled-section { border-top: 1px solid var(--rule); }
.section-layout { display: flex; flex-wrap: wrap; gap: 24px 48px; padding-block: 96px; }
.stores .section-layout { padding-top: 112px; }
.section-label { flex: 0 0 180px; padding-top: 6px; }
.section-body { flex: 1 1 560px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 40px; }
.stores h2 { max-width: 24ch; }
.store-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; font-size: 16px; line-height: 1.5; }
.store-grid > div { border-top: 1px solid var(--rule); padding-top: 14px; }
.store-grid dt { font-weight: 600; margin-bottom: 6px; }
.store-grid dd { color: var(--body); }

.writes-layout { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.writes-copy { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.writes-copy h2, .durability-copy h2 { max-width: 20ch; }
.write-steps { display: flex; flex-direction: column; gap: 22px; list-style: none; margin: 0; padding: 0; font-size: 16px; line-height: 1.55; color: var(--body); }
.write-steps li { display: flex; gap: 16px; }
.step-number { flex: 0 0 24px; color: var(--muted); }
.write-steps strong { color: var(--ink); font-weight: 600; }
.write-steps code { font-size: 14px; }
.code-example { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--ink); background: #fbfaf6; }
.code-example figcaption { display: flex; justify-content: space-between; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--ink); color: var(--ink); }
.code-example figcaption > :last-child { color: var(--secondary); }
.code-scroll { display: flex; overflow-x: auto; flex: 1; }
.code-scroll pre { font-size: 13px; line-height: 1.7; white-space: pre; }
.line-numbers { padding: 18px 0 18px 16px; color: var(--quiet); text-align: right; user-select: none; }
.source-code { padding: 18px 16px 18px 20px; }
.code-keyword { color: var(--secondary); }
.code-comment { color: var(--muted); }

#pricing { scroll-margin-top: 24px; }
#pricing h2 { max-width: 22ch; }
.pricing-tables { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.spec-table { flex: 1 1 360px; min-width: 0; font-size: 15px; }
.spec-table tr { border-top: 1px solid var(--rule); }
.spec-table tr:first-child { border-top-color: var(--ink); }
.spec-table tr:last-child { border-bottom: 1px solid var(--rule); }
.spec-table th { padding: 12px 16px 12px 0; color: var(--body); font-weight: 400; }
.spec-table td { padding-block: 12px; text-align: right; font-family: var(--mono); font-size: 14px; white-space: nowrap; }
.section-note { max-width: 70ch; font-size: 14px; line-height: 1.5; color: var(--secondary); }
.durability-layout { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.durability-copy { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.durability-copy p { max-width: 50ch; font-size: 16px; line-height: 1.55; color: var(--body); }
.durability-list { flex: 1 1 320px; min-width: 0; font-size: 15px; }
.durability-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding-block: 12px; border-top: 1px solid var(--rule); }
.durability-list > div:first-child { border-color: var(--ink); }
.durability-list > div:last-child { border-bottom: 1px solid var(--rule); }
.durability-list dt { color: var(--body); }
.durability-list dd { font-size: 14px; white-space: nowrap; }

.start-section { border-top: 1px solid var(--ink); background: var(--ink); color: var(--paper); }
.start-inner { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: center; justify-content: space-between; padding-block: 80px; }
.start-copy { max-width: 560px; display: flex; flex-direction: column; gap: 16px; }
.start-copy p { max-width: 48ch; font-size: 16px; line-height: 1.55; color: var(--quiet); }
.start-actions { min-width: 0; max-width: 100%; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.start-actions pre { max-width: 100%; overflow-x: auto; font-size: 13px; line-height: 1.8; }
.start-actions .button { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.start-actions .button:hover { background: var(--quiet); border-color: var(--quiet); }
.site-footer { background: var(--ink); color: var(--quiet); border-top: 1px solid #3a3833; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px 40px; padding-block: 28px 36px; font-size: 13px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--quiet); }
.footer-nav a { text-decoration: none; }
.copyright { font-size: 12px; color: var(--muted); }
.not-found { min-height: 65vh; padding-block: 96px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }

@media (max-width: 800px) {
  .wrap { padding-inline: 24px; }
  .header-inner { gap: 20px; padding-block: 20px; }
  .primary-nav { gap: 8px 24px; }
  .hero-intro { padding-top: 64px; gap: 28px; }
  h1 { font-size: 52px; }
  .section-layout, .stores .section-layout { padding-block: 64px; }
  .section-label { flex-basis: 100%; }
  .start-inner { padding-block: 64px; }
}

@media (max-width: 540px) {
  .wrap { padding-inline: 20px; }
  .header-inner { gap: 16px; }
  .primary-nav { width: 100%; justify-content: space-between; gap: 8px 12px; font-size: 11px; }
  .primary-nav > a:not(.button) { display: inline-flex; min-height: 44px; align-items: center; }
  .primary-nav .button { padding-inline: 12px; font-size: 11px; letter-spacing: .07em; }
  .hero-intro { padding-block: 48px 40px; }
  h1 { font-size: clamp(38px, 10vw, 48px); }
  h2 { font-size: 30px; }
  .hero-description { font-size: 17px; }
  .hero-actions { gap: 10px; }
  .hero-actions .button { padding-inline: 16px; }
  .ledger figcaption { font-size: 12px; }
  .section-layout, .stores .section-layout { padding-block: 56px; }
  .store-grid { grid-template-columns: 1fr; gap: 24px; }
  .stack { gap: 32px; }
  .writes-layout { gap: 32px; }
  .spec-table { font-size: 14px; }
  .spec-table td { font-size: 12px; }
  .durability-list dd { font-size: 12px; }
  .start-inner { padding-block: 56px; }
  .start-actions pre { font-size: 12px; }
  .footer-nav { gap: 8px 20px; }
  .footer-nav a { display: inline-flex; align-items: center; min-height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
