/* VXMZ Kit: the shared product-site layout (template: carry-si.vercel.app). Light only.
   Every product site loads this first, then its own style.css with only its tokens, logo mark and extras:
     <link rel="stylesheet" href="https://thevxmzstudio.vercel.app/kit/site.css?v=1">
     <link rel="stylesheet" href="/style.css?v=N">
   Product tokens to set in :root: --accent, --accent-ink (accent dark enough for text on paper), --deep and
   --deep-2 (dark panels tinted toward the accent), --display (the product's accent font). Optional: --em-font
   (accent words in headings) and --brand-font (the name next to the logo).
   Change shared layout, buttons and hovers here only; every site picks it up on its next load. */
:root {
  --ink: #11120f;
  --bg: #fbfaf7;
  --soft: #f1efe8;
  --soft-2: #e8e5dc;
  --deep: #1c1a17;
  --deep-2: #262320;
  --accent: #d7f23a;
  --accent-ink: #5f6b12;
  --muted: #60635b;
  --line: rgba(17, 18, 15, .11);

  --display: 'Boska', Georgia, serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.19, 1, .22, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--accent); color: #fff; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
img, svg { display: block; }
code, pre, kbd { font-family: var(--mono); }
:not(pre) > code { font-size: .86em; background: var(--soft); padding: 2px 6px; border-radius: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hide { display: none !important; }

/* ---------- shell: sidebar + column ---------- */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); max-width: 1160px; margin: 0 auto; }
.side { position: sticky; top: 0; height: 100vh; padding: 40px 28px 28px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
/* .brand .mark: each product styles and animates its own logo mark in its style.css */
.brand b { font: var(--brand-font, 600 24px/1 var(--display)); letter-spacing: -.02em; }
.side nav { display: grid; gap: 2px; margin-top: 40px; flex-shrink: 0; }
.side nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; padding: 5px 0 5px 14px; position: relative; }
.side nav a:hover, .side nav a[aria-current="page"] { color: var(--ink); }
.side nav a[aria-current="page"]::before { content: ''; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--accent); }
.side nav .ext::after { content: ' ↗'; font-size: 12px; }
/* brand + nav stay put; only "on this page" scrolls when it is too long */
.toc { flex: 0 1 auto; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); min-height: 0; display: flex; flex-direction: column; }
.toc-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.toc:empty { display: none; }
.toc .label { margin-bottom: 10px; flex-shrink: 0; }
.toc a { display: flex; align-items: center; gap: 10px; color: var(--muted); text-decoration: none; font-size: 13.5px; padding: 4px 0; }
.toc a::before { content: ''; width: 12px; height: 1px; background: var(--line); transition: width .25s var(--ease), background .25s; }
.toc a.on { color: var(--ink); }
.toc a.on::before { width: 20px; background: var(--accent); }
.toc a.sub { padding-left: 14px; font-size: 13px; }
.menu-btn { display: none; }

.page { padding: 40px 56px 0; min-width: 0; }
.col { max-width: 680px; }

/* ---------- type ---------- */
.label { font: 500 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
h1 { font: 400 clamp(32px, 4.4vw, 42px)/1.14 var(--body); letter-spacing: -.035em; margin: 0 0 18px; }
h1 em, h2 em { font: var(--em-font, italic 500 1.06em/1 var(--display)); color: var(--accent-ink); letter-spacing: -.01em; }
h2 { font: 400 clamp(24px, 3vw, 30px)/1.2 var(--body); letter-spacing: -.025em; margin: 0 0 14px; }
h3 { font: 600 16px/1.35 var(--body); letter-spacing: -.01em; margin: 0 0 6px; }
.lede { font-size: 17.5px; color: var(--muted); margin: 0 0 28px; max-width: 54ch; }
.muted, .note { color: var(--muted); }
.note { font-size: 14px; margin: 12px 0 0; }
p { margin: 0 0 14px; }

/* ---------- announcement pill ---------- */
.pill { display: inline-flex; align-items: stretch; border: 1px solid var(--line); font: 500 12px/1 var(--mono); margin-bottom: 28px; background: #fff; }
.pill span { display: flex; align-items: center; gap: 8px; padding: 8px 12px; color: var(--muted); }
.pill span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.pill a { display: flex; align-items: center; white-space: nowrap; padding: 8px 12px; border-left: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.pill a:hover { background: var(--soft); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 40px; padding: 0 16px;
  font: 500 12px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: 2px; transition: background .2s, border-color .2s, transform .15s; color: var(--ink); background: var(--soft); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fffaf5; }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn-secondary:hover { background: var(--soft-2); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 11px; }
.cta { display: flex; flex-wrap: wrap; gap: 8px; }


/* ---------- figure (each product styles its own .stage contents) ---------- */
figure { margin: 48px 0 0; }
figcaption { font-size: 13px; color: var(--muted); margin-top: 14px; }
figcaption b { color: var(--ink); font-weight: 600; }
.stage { background: var(--soft); border: 1px solid var(--line); }

/* ---------- sections ---------- */
section { padding: 72px 0 0; }
section > .label { margin-bottom: 14px; display: block; }
.items { display: grid; gap: 0; margin-top: 28px; border-top: 1px solid var(--line); }
.items > div { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.items > div > .label { padding-top: 3px; color: var(--accent-ink); }
.items p { margin: 0; color: var(--muted); font-size: 15px; }

/* numbered writing list */
.writing { margin-top: 20px; border-top: 1px solid var(--line); }
.writing a { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.writing a:hover .t { color: var(--accent-ink); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tags i { font: 500 12px/1 var(--body); font-style: normal; color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 10%, transparent); padding: 5px 9px; border-radius: 999px; }
.blog-tools { display: grid; gap: 12px; margin-top: 8px; }
.blog-search { max-width: 360px; }
.tag-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-filter button { font: 500 13px/1 var(--body); color: var(--muted); background: none; border: 1px solid var(--line); padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.tag-filter button.on, .tag-filter button:hover { color: var(--ink); border-color: var(--ink); }
.posts .none { padding: 16px 0; margin: 0; }
.writing .d { font-size: 13px; line-height: 1.8; color: var(--muted); white-space: nowrap; }
.more-link { display: inline-block; margin-top: 18px; font: 500 12px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.more-link:hover { color: var(--accent-ink); }

/* faq */
.faq { margin-top: 20px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 500; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent-ink); font: 400 20px/1 var(--body); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }

/* feedback */
form { display: grid; gap: 14px; margin-top: 20px; }
label { font: 500 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
select, input, textarea { width: 100%; font: 400 15px/1.5 var(--body); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 2px; padding: 10px 12px; }
textarea { min-height: 120px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row > div, form > div { display: grid; gap: 6px; }
form .btn { justify-self: start; }

/* ---------- docs ---------- */
.doc h2 { margin-top: 64px; padding-top: 4px; }
.doc h3 { margin-top: 32px; }
.doc p, .doc li { color: #3b3d37; }
.doc ul, .doc ol { padding-left: 20px; margin: 0 0 14px; }
.doc li { margin-bottom: 6px; }
.tabs { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); margin: 6px 8px 12px 0; background: #fff; }
.tab { border: 0; background: none; color: var(--muted); font: 500 11.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 10px 14px; cursor: pointer; }
.tab + .tab { border-left: 1px solid var(--line); }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.codebox { position: relative; margin: 10px 0 16px; }
.code { background: var(--deep); color: #f2e6de; border-radius: 4px; padding: 16px 18px; font: 400 13px/1.75 var(--mono); overflow-x: auto; white-space: pre; }
.code .p { color: #cf7a5e; user-select: none; }
.code .c { color: #a3887c; }
.copy { position: absolute; top: 10px; right: 10px; z-index: 1; font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  background: rgba(241, 239, 232, .1); color: #f2e6de; border: 1px solid rgba(241, 239, 232, .18); padding: 7px 9px; border-radius: 2px; cursor: pointer; }
table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0 20px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
th { font: 500 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
td code { overflow-wrap: anywhere; } /* long commands wrap inside the column instead of widening the table */
td:first-child { width: 55%; }
@media (max-width: 640px) { /* phones: command on its own line, description under it */
  tr:first-child { display: none; }
  td { display: block; width: auto !important; border: 0; padding: 0 0 4px; }
  tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
}
.table-wrap { overflow-x: auto; }
.callout { border-left: 2px solid var(--accent); background: var(--soft); padding: 14px 16px; margin: 16px 0; font-size: 15px; }
.callout p:last-child { margin: 0; }

/* blog + legal articles */
.post-meta { font: 400 12px/1.6 var(--mono); color: var(--muted); margin-bottom: 28px; }
.prose p, .prose li { color: #3b3d37; font-size: 16.5px; }
.prose h2 { margin-top: 44px; }
.prose ul { padding-left: 20px; }
.legal h1 { margin-bottom: 8px; }
.legal h2 { font-size: 20px; margin-top: 36px; }
.legal p, .legal li { color: #3b3d37; }

/* ---------- footer ---------- */
footer { margin-top: 96px; padding: 40px 0 36px; border-top: 1px solid var(--line); }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot-cols div { display: grid; gap: 8px; align-content: start; }
.foot-cols .label { margin-bottom: 4px; font: 600 13px/1.3 var(--body); letter-spacing: 0; text-transform: none; color: var(--ink); }
.foot-cols a { color: var(--muted); text-decoration: none; font-size: 14px; }
.foot-cols a:hover { color: var(--ink); }

/* ---------- small screens: sidebar becomes a top bar ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; z-index: 50; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between;
    padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); background: rgba(251, 250, 247, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); overflow: visible; }
  .side nav, .toc { display: none; }
  .menu-btn { display: block; background: none; border: 0; padding: 6px; color: var(--ink); cursor: pointer; }
  .side.open nav { display: grid; width: 100%; margin-top: 12px; padding-bottom: 4px; }
  .page { padding: 28px 16px 0; }
  .row, .foot-cols { grid-template-columns: 1fr 1fr; }
  .items > div { grid-template-columns: 1fr; gap: 6px; }
  .code { padding-top: 46px; }
}
@media (max-width: 480px) { .row { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
