/* ViVi docs site. Pure static HTML+CSS, no build step.
   Read register of the tranquil system: clear hierarchy, narrow measure,
   calm tables and checklists, generous spacing, green for wayfinding. */

:root {
  --ivory: #faf6ef;
  --ink: #1e2b26;
  --green: #245c46;
  --green-dark: #1b4736;
  --green-tint: #e7f0e9;
  --muted: #5c6f66;
  --line: #e5ddcd;
  --amber-bg: #f6efdc;
  --amber-ink: #7a5c1e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--green); color: var(--ivory); }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
.wrap-narrow { max-width: 680px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 246, 239, 0.96);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding-top: 0.8rem; padding-bottom: 0.8rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 28px; height: 28px; }
.brand-name { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; }

.docs-nav { display: flex; gap: 0.25rem 1.15rem; flex-wrap: wrap; }
.docs-nav a {
  color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  padding: 0.3rem 0; border-bottom: 2px solid transparent;
}
.docs-nav a:hover { color: var(--ink); }
.docs-nav a[aria-current="page"] { color: var(--green); font-weight: 600; border-bottom-color: var(--green); }

/* Article */
.article { padding: 3.5rem 0 4.5rem; }
.article h1 {
  font-family: "Fraunces", Georgia, serif; font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.18; letter-spacing: -0.015em;
  margin-bottom: 0.8rem; text-wrap: balance;
}
.article .standfirst { font-size: 1.12rem; color: var(--muted); margin-bottom: 2.5rem; text-wrap: balance; max-width: 58ch; }
.article h2 {
  font-family: "Fraunces", Georgia, serif; font-size: 1.35rem; font-weight: 600;
  letter-spacing: -0.01em; margin: 2.75rem 0 0.8rem; text-wrap: balance;
}
.article h3 { font-size: 1.05rem; font-weight: 600; margin: 1.75rem 0 0.5rem; }
.article p, .article li { color: var(--muted); margin-bottom: 0.8rem; }
.article p strong, .article li strong { color: var(--ink); }
.article ul, .article ol { padding-left: 1.25rem; }
.article a { color: var(--green); text-underline-offset: 2px; }
.article a:hover { color: var(--green-dark); }

/* Wayfinding: six honest entries, hairline separated */
.wayfinding { list-style: none; padding-left: 0; margin: 0 0 1rem; }
.wayfinding li { border-top: 1px solid var(--line); }
.wayfinding li:last-child { border-bottom: 1px solid var(--line); }
.wayfinding a {
  display: block; padding: 1.25rem 0; text-decoration: none;
}
.wayfinding a:hover .way-title { text-decoration: underline; text-underline-offset: 3px; }
.way-title {
  display: block;
  font-family: "Fraunces", Georgia, serif; font-size: 1.25rem; font-weight: 600;
  color: var(--ink); margin-bottom: 0.2rem;
}
.way-line { display: block; color: var(--muted); font-size: 0.98rem; }

/* Callout: plain box, no side stripe */
.callout {
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  padding: 1.25rem 1.4rem; margin: 1.75rem 0;
}
.callout p { margin-bottom: 0.4rem; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--ink); }
.callout .callout-label {
  display: block; font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--green);
  margin-bottom: 0.5rem;
}

/* Status list: what is ready, what is pending */
.status { list-style: none; padding-left: 0; display: grid; gap: 0.9rem; margin: 1.25rem 0; }
.status li { padding-left: 1.75rem; position: relative; color: var(--muted); }
.status li strong { color: var(--ink); }
.status li.ready::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.status li.pending::before { content: "○"; position: absolute; left: 0; color: var(--amber-ink); font-weight: 700; }

/* Calm spec table */
.spec { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.98rem; }
.spec caption { text-align: left; font-weight: 600; color: var(--ink); padding-bottom: 0.6rem; }
.spec th, .spec td {
  text-align: left; vertical-align: top;
  padding: 0.75rem 0.9rem 0.75rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 1px solid var(--line); }
.spec th { color: var(--ink); font-weight: 600; white-space: nowrap; padding-right: 1.5rem; font-variant-numeric: tabular-nums; }

/* Steps / checklist */
.steps { list-style: none; padding-left: 0; display: grid; gap: 1.1rem; counter-reset: step; margin: 1.25rem 0; }
.steps li { padding-left: 2.9rem; position: relative; color: var(--muted); }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0.1rem;
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--green); color: #fff;
  font-weight: 600; font-size: 0.9rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.steps strong { color: var(--ink); }

.checklist { list-style: none; padding-left: 0; display: grid; gap: 0.8rem; margin: 1.25rem 0; }
.checklist li { padding-left: 1.75rem; position: relative; color: var(--muted); }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.checklist strong { color: var(--ink); }

/* Chat template */
.template {
  background: var(--green-tint); border-radius: 12px; padding: 1.25rem 1.4rem;
  margin: 1.5rem 0; font-size: 0.98rem; color: var(--ink);
  border: 1px solid #d3e2d6;
}
.template p { color: var(--ink); margin-bottom: 0.6rem; }
.template p:last-child { margin-bottom: 0; }
.template .template-label {
  display: block; font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--green);
  margin-bottom: 0.6rem;
}

/* FAQ */
.faq-item { border-top: 1px solid var(--line); padding: 1.6rem 0; }
.faq-item:last-of-type { border-bottom: 1px solid var(--line); }
.faq-item h2 { font-size: 1.22rem; margin: 0 0 0.6rem; }

/* Pager: previous / next page */
.pager {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.pager a { text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.pager a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pager .pager-label { display: block; font-size: 0.78rem; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.15rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.2rem 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-note { font-size: 0.92rem; color: var(--muted); }
.footer-note strong { font-family: "Fraunces", Georgia, serif; color: var(--ink); }
.footer-small { font-size: 0.85rem; color: var(--muted); }

@media (max-width: 640px) {
  .article { padding: 2.5rem 0 3.5rem; }
  .spec th { white-space: normal; }
}

/* Console screenshots: the same calm browser frames as the landing,
   a touch flatter here to respect the reading measure. */
.shot { margin: 1.75rem auto 2.5rem; max-width: 100%; perspective: 1600px; }
.shot-frame {
  background: #fff;
  border: 1px solid rgba(36, 92, 70, 0.14);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 32px 56px -36px rgba(31, 59, 44, 0.28),
    0 12px 24px -12px rgba(31, 59, 44, 0.12);
  transform: rotateX(2deg);
  transform-origin: 50% 0;
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 15px;
  background: #f4f0e6;
  border-bottom: 1px solid rgba(36, 92, 70, 0.10);
}
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d9d2bf; }
.shot-bar span { margin-left: 8px; font-size: 0.78rem; color: #8a8471; letter-spacing: 0.02em; }
.shot-frame img { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: 0.9rem; text-align: center; font-size: 0.85rem; color: var(--muted); }
