:root {
  color-scheme: light;
  --canvas: #eef0f3;
  --paper: #fafafa;
  --ink: #121419;
  --ink-soft: #383d47;
  --muted: #606773;
  --faint: #8c929d;
  --rule: #cbd0d7;
  --rule-strong: #9da4af;
  --accent: #4169e1;
  --accent-dark: #2d51bd;
  --accent-pale: #e5eaff;
  --editor: #0d0f12;
  --editor-raised: #15181d;
  --editor-rule: #292d34;
  --editor-text: #e5e7eb;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 38%, transparent);
  outline-offset: 4px;
}
h1, h2, h3, p { text-wrap: pretty; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  padding: 9px 12px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
  transition: transform 160ms var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}
.site-header {
  display: grid;
  min-height: 78px;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  grid-template-columns: 1fr auto;
}
.wordmark {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.wordmark img { border-radius: 6px; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.site-nav a {
  text-decoration: none;
  transition: color 140ms ease;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 7px;
}
.site-nav .nav-action {
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  color: var(--ink);
  transition: background-color 140ms ease, color 140ms ease, transform 120ms var(--ease-out);
}
.site-nav .nav-action:hover {
  background: var(--ink);
  color: white;
}
.site-nav .nav-action:active,
.button:active { transform: scale(0.98); }

.definition,
.eyebrow,
.principle-label,
.availability,
.route-kicker,
.section-label,
.folio,
.fact-label,
.platform-label,
.provider-format,
.step-number {
  margin: 0;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.definition strong {
  color: var(--ink);
  font-family: "Iowan Old Style", Charter, Georgia, serif;
  font-size: 17px;
  font-style: italic;
  letter-spacing: 0;
  text-transform: lowercase;
}
.definition span {
  letter-spacing: 0;
  text-transform: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 610px;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  grid-template-columns: minmax(0, 800px) 1fr;
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 88px 0 94px;
}
.hero h1 {
  max-width: 740px;
  margin: 26px 0 25px;
  font-family: "Iowan Old Style", Charter, Georgia, serif;
  font-size: clamp(58px, 7.2vw, 86px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.94;
}
.hero-lede {
  max-width: 660px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.58;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 120ms var(--ease-out);
}
.button-primary {
  background: var(--accent);
  color: white;
}
.button-primary:hover { background: var(--accent-dark); }
.button-secondary {
  border-color: var(--rule-strong);
  background: transparent;
}
.button-secondary:hover {
  border-color: var(--ink);
  background: var(--paper);
}
.availability {
  margin-top: 17px;
  letter-spacing: 0.03em;
  text-transform: none;
}
.writing-mark {
  position: absolute;
  top: 64px;
  right: 5%;
  width: 110px;
  height: 480px;
  opacity: 0.75;
  transform: rotate(4deg);
}
.writing-mark-line {
  position: absolute;
  top: 0;
  left: 45px;
  width: 2px;
  height: 435px;
  background: var(--accent);
}
.writing-mark-caret {
  position: absolute;
  right: 3px;
  bottom: 4px;
  width: 80px;
  height: 42px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: skew(-22deg) rotate(16deg);
}

.product-window {
  overflow: hidden;
  margin: 72px 0 132px;
  border: 1px solid #252930;
  border-radius: 6px;
  background: var(--editor);
  box-shadow: 0 24px 70px rgba(25, 31, 42, 0.14);
}
.product-window img,
.product-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.window-bar {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border-bottom: 1px solid var(--editor-rule);
  color: #929aa6;
}
.window-bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4a5059;
}
.window-bar p {
  margin: 0 0 0 7px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.principles,
.features,
.privacy { border-top: 1px solid var(--rule); }
.principles { padding: 104px 0 122px; }
.section-heading {
  display: grid;
  grid-template-columns: 190px minmax(0, 760px);
}
.section-heading h2,
.privacy h2,
.closing h2,
.content-heading {
  margin: 0;
  font-family: "Iowan Old Style", Charter, Georgia, serif;
  font-size: clamp(38px, 4.7vw, 61px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.06;
}
.principle-grid {
  display: grid;
  margin-top: 80px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  grid-template-columns: repeat(3, 1fr);
}
.principle-grid article {
  min-height: 250px;
  padding: 30px 30px 36px;
  border-left: 1px solid var(--rule);
}
.principle-grid article:first-child {
  padding-left: 0;
  border-left: 0;
}
.principle-grid h3,
.feature-list h3 {
  margin: 20px 0 12px;
  font-size: 19px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.principle-grid article > p:last-child,
.feature-list p,
.feature-heading > p,
.privacy-detail p {
  margin: 0;
  color: var(--muted);
}
.features {
  display: grid;
  padding: 116px 0;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 88px;
}
.feature-heading { display: block; }
.feature-heading h2 { margin-top: 21px; }
.feature-heading > p {
  max-width: 610px;
  margin-top: 26px;
  font-size: 17px;
}
.feature-list article {
  padding: 22px 0 25px;
  border-bottom: 1px solid var(--rule);
}
.feature-list article:first-child { padding-top: 0; }
.feature-list h3 { margin-top: 0; }
.feature-list h3 a { text-decoration: none; }
.feature-list h3 a::after {
  margin-left: 8px;
  color: var(--accent);
  content: "→";
  font-family: ui-monospace, monospace;
  font-size: 14px;
}
.privacy {
  display: grid;
  padding: 94px 0;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
}
.privacy h2 {
  max-width: 520px;
  margin-top: 21px;
}
.privacy-detail { align-self: end; }
.privacy-detail p {
  max-width: 520px;
  font-size: 17px;
}
.privacy-detail a,
.text-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--accent-dark);
  font-weight: 700;
}
.closing {
  display: grid;
  min-height: 470px;
  align-content: center;
  justify-items: start;
  margin-top: 40px;
  padding: 74px 8%;
  background: var(--editor);
  color: white;
  text-align: left;
}
.closing img {
  margin-bottom: 20px;
  border-radius: 8px;
}
.closing .definition,
.closing .definition strong { color: #aeb5c1; }
.closing h2 {
  max-width: 780px;
  margin-top: 18px;
  font-size: clamp(42px, 5.5vw, 68px);
}
.closing .button-secondary,
.route-cta .button-secondary {
  border-color: #4a515c;
  background: transparent;
  color: white;
}
.closing .button-secondary:hover,
.route-cta .button-secondary:hover {
  border-color: #737c89;
  background: var(--editor-raised);
}

.route-main { display: block; }
.route-hero {
  display: grid;
  min-height: 530px;
  align-items: stretch;
  border-bottom: 1px solid var(--rule);
  grid-template-columns: 190px minmax(0, 760px) 1fr;
}
.route-index {
  display: flex;
  padding: 88px 30px 64px 0;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--rule);
}
.folio {
  color: var(--ink);
  font-size: 12px;
}
.route-index p:last-child {
  margin: 0;
  color: var(--faint);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.55;
}
.route-hero-copy { padding: 86px 58px 82px; }
.route-hero h1 {
  max-width: 720px;
  margin: 23px 0 24px;
  font-family: "Iowan Old Style", Charter, Georgia, serif;
  font-size: clamp(47px, 5.8vw, 68px);
  font-weight: 400;
  letter-spacing: -0.047em;
  line-height: 1;
}
.route-deck {
  max-width: 660px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.62;
}
.route-signal {
  position: relative;
  overflow: hidden;
  border-left: 1px solid var(--rule);
}
.route-signal::before,
.route-signal::after {
  position: absolute;
  background: var(--accent);
  content: "";
}
.route-signal::before {
  top: 88px;
  right: 46%;
  width: 2px;
  height: 310px;
}
.route-signal::after {
  right: calc(46% - 35px);
  bottom: 104px;
  width: 70px;
  height: 2px;
  transform: rotate(-28deg);
  transform-origin: right center;
}
.route-actions { margin-top: 29px; }
.content-section {
  display: grid;
  padding: 92px 0;
  border-bottom: 1px solid var(--rule);
  grid-template-columns: 190px minmax(0, 1fr);
}
.section-label { padding-top: 8px; }
.section-body {
  padding-left: 58px;
  border-left: 1px solid var(--rule);
}
.content-heading {
  max-width: 760px;
}
.section-intro {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
}
.ledger {
  margin-top: 54px;
  border-top: 1px solid var(--rule-strong);
}
.ledger-row {
  display: grid;
  padding: 24px 0 26px;
  border-bottom: 1px solid var(--rule);
  grid-template-columns: minmax(150px, 0.36fr) 1fr;
  gap: 38px;
}
.ledger-row h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.ledger-row p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
}
.fact-grid {
  display: grid;
  margin-top: 50px;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  grid-template-columns: repeat(3, 1fr);
}
.fact {
  min-height: 178px;
  padding: 25px 25px 30px;
  border-left: 1px solid var(--rule);
}
.fact:first-child {
  padding-left: 0;
  border-left: 0;
}
.fact strong {
  display: block;
  margin-top: 20px;
  font-family: "Iowan Old Style", Charter, Georgia, serif;
  font-size: 27px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.14;
}
.fact p:last-child {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.product-frame {
  overflow: hidden;
  margin-top: 54px;
  border: 1px solid var(--editor-rule);
  border-radius: 6px;
  background: var(--editor);
  box-shadow: 0 22px 64px rgba(24, 30, 39, 0.14);
}
.product-caption {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--editor-rule);
  color: #a1a8b4;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
}
.platform-list,
.provider-list {
  margin-top: 52px;
  border-top: 1px solid var(--rule-strong);
}
.platform-row {
  display: grid;
  padding: 26px 0 30px;
  border-bottom: 1px solid var(--rule);
  grid-template-columns: 150px minmax(180px, 0.6fr) 1fr;
  gap: 30px;
}
.platform-row h3,
.provider-row h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.platform-row > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.command {
  overflow-x: auto;
  margin: 0;
  padding: 14px 16px;
  border-left: 2px solid var(--accent);
  background: var(--editor);
  color: #d7dbe2;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre;
}
.command .prompt {
  color: #7392ff;
  user-select: none;
}
.release-note {
  margin-top: 28px;
  padding-left: 18px;
  border-left: 2px solid var(--rule-strong);
  color: var(--muted);
  font-size: 14px;
}
.boundary {
  display: grid;
  margin-top: 52px;
  background: var(--editor);
  color: var(--editor-text);
  grid-template-columns: repeat(2, 1fr);
}
.boundary-column {
  min-height: 310px;
  padding: 36px;
  border-left: 1px solid var(--editor-rule);
}
.boundary-column:first-child { border-left: 0; }
.boundary-column h3 {
  margin: 0 0 24px;
  font-family: "Iowan Old Style", Charter, Georgia, serif;
  font-size: 28px;
  font-weight: 400;
}
.boundary-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.boundary-column li {
  padding: 13px 0;
  border-top: 1px solid var(--editor-rule);
  color: #aeb5bf;
}
.boundary-column li::before {
  margin-right: 9px;
  color: #7291ff;
  content: "—";
}
.markdown-sheet {
  display: grid;
  margin-top: 52px;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.markdown-source,
.markdown-result {
  min-height: 430px;
  padding: 34px;
}
.markdown-source {
  border-right: 1px solid var(--rule);
  background: var(--editor);
  color: #cbd0d8;
}
.markdown-source pre {
  margin: 24px 0 0;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
}
.markdown-result h3 {
  margin: 26px 0 8px;
  font-family: "Iowan Old Style", Charter, Georgia, serif;
  font-size: 30px;
  font-weight: 400;
}
.markdown-result p,
.markdown-result li { color: var(--muted); }
.markdown-result code {
  padding: 1px 4px;
  background: #e6e8ec;
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
}
.provider-row {
  display: grid;
  padding: 27px 0 30px;
  border-bottom: 1px solid var(--rule);
  grid-template-columns: 150px 180px 1fr;
  gap: 28px;
}
.provider-row p {
  margin: 0;
  color: var(--muted);
}
.process {
  display: grid;
  margin-top: 50px;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  grid-template-columns: repeat(3, 1fr);
}
.process-step {
  min-height: 245px;
  padding: 26px 28px 32px;
  border-left: 1px solid var(--rule);
}
.process-step:first-child {
  padding-left: 0;
  border-left: 0;
}
.process-step h3 {
  margin: 44px 0 12px;
  font-size: 18px;
}
.process-step p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.route-cta {
  display: grid;
  min-height: 390px;
  align-content: center;
  margin-top: 82px;
  padding: 64px 8%;
  background: var(--editor);
  color: white;
  grid-template-columns: 1fr auto;
  gap: 48px;
}
.route-cta h2 {
  max-width: 700px;
  margin: 0;
  font-family: "Iowan Old Style", Charter, Georgia, serif;
  font-size: clamp(38px, 4.7vw, 58px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.06;
}
.route-cta p {
  max-width: 620px;
  margin: 20px 0 0;
  color: #aeb5bf;
}
.route-cta .hero-actions {
  align-self: center;
  margin-top: 0;
}

footer {
  display: grid;
  min-height: 172px;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  color: var(--muted);
  font-size: 12px;
}
.footer-wordmark { justify-self: start; }
footer p {
  margin: 0;
  text-align: center;
}
.footer-links {
  display: flex;
  justify-self: end;
  gap: 18px;
}

@media (max-width: 980px) {
  .site-header,
  main,
  footer { width: min(100% - 32px, 760px); }
  .site-nav a:not(.nav-action) { display: none; }
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }
  .hero-copy { padding: 74px 0 80px; }
  .writing-mark {
    right: -12px;
    opacity: 0.3;
  }
  .product-window { margin: 56px 0 98px; }
  .principles,
  .features,
  .privacy { padding: 78px 0; }
  .section-heading,
  .features,
  .privacy {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .principle-grid {
    margin-top: 58px;
    grid-template-columns: 1fr;
  }
  .principle-grid article,
  .principle-grid article:first-child {
    min-height: auto;
    padding: 27px 0 30px;
    border-top: 1px solid var(--rule);
    border-left: 0;
  }
  .principle-grid article:first-child { border-top: 0; }
  .feature-list article:first-child {
    padding-top: 23px;
    border-top: 1px solid var(--rule);
  }
  .closing {
    min-height: 420px;
    padding: 58px 36px;
  }
  .route-hero {
    min-height: auto;
    grid-template-columns: 120px 1fr;
  }
  .route-index { padding: 72px 20px 62px 0; }
  .route-hero-copy { padding: 70px 0 70px 38px; }
  .route-signal { display: none; }
  .content-section { grid-template-columns: 120px 1fr; }
  .section-body { padding-left: 38px; }
  .platform-row,
  .provider-row { grid-template-columns: 130px 1fr; }
  .platform-row .command,
  .provider-row p:last-child { grid-column: 2; }
  .route-cta {
    min-height: 360px;
    grid-template-columns: 1fr;
  }
  .route-cta .hero-actions { align-self: start; }
  footer {
    padding: 44px 0;
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-wordmark,
  .footer-links { justify-self: center; }
}

@media (max-width: 620px) {
  .site-header { min-height: 68px; }
  .wordmark { font-size: 16px; }
  .wordmark img {
    width: 32px;
    height: 32px;
  }
  .site-nav .nav-action {
    padding: 5px 9px;
    font-size: 12px;
  }
  .hero h1 { font-size: clamp(50px, 17vw, 70px); }
  .hero-lede,
  .route-deck { font-size: 17px; }
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .button { width: 100%; }
  .writing-mark { display: none; }
  .window-bar p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .closing {
    min-height: 390px;
    margin-inline: -4px;
    padding: 48px 24px;
  }
  .route-hero {
    display: block;
    padding: 58px 0 62px;
  }
  .route-index {
    display: block;
    padding: 0 0 22px;
    border-right: 0;
  }
  .route-index p:last-child { display: none; }
  .route-hero-copy { padding: 0; }
  .route-hero h1 { font-size: clamp(43px, 14vw, 58px); }
  .content-section {
    display: block;
    padding: 68px 0;
  }
  .section-label { padding: 0 0 24px; }
  .section-body {
    padding: 0;
    border-left: 0;
  }
  .ledger-row,
  .platform-row,
  .provider-row { display: block; }
  .ledger-row h3,
  .platform-row h3,
  .provider-row h3,
  .provider-format { margin-bottom: 12px; }
  .platform-row .command { margin-top: 18px; }
  .fact-grid,
  .process,
  .boundary,
  .markdown-sheet { grid-template-columns: 1fr; }
  .fact,
  .fact:first-child,
  .process-step,
  .process-step:first-child {
    min-height: auto;
    padding: 24px 0 28px;
    border-top: 1px solid var(--rule);
    border-left: 0;
  }
  .fact:first-child,
  .process-step:first-child { border-top: 0; }
  .process-step h3 { margin-top: 22px; }
  .boundary-column {
    min-height: auto;
    padding: 30px 24px;
    border-top: 1px solid var(--editor-rule);
    border-left: 0;
  }
  .boundary-column:first-child { border-top: 0; }
  .markdown-source,
  .markdown-result {
    min-height: auto;
    padding: 28px 24px;
  }
  .markdown-source {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
  .route-cta {
    min-height: 350px;
    margin-inline: -4px;
    padding: 50px 24px;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .site-header .wordmark {
    gap: 0;
    font-size: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button,
  .nav-action,
  .skip-link { transition: none; }
}
