/* Vision Search — blog. Shares the landing page's "timecode" design system. Light only. */
@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500;700&display=swap");

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

:root {
  --paper:  #FBFAF8;
  --ink:    #14171C;
  --slate:  #5B6472;
  --rule:   #E3E1DC;
  --signal: #FF3B1F;
  --panel:  #FFFFFF;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gut: clamp(20px, 5vw, 64px);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }

.eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--slate);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--signal); flex: none; }

/* ── Nav ─────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 80;
  background: rgba(251,250,248,.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-in {
  max-width: 1180px; margin: 0 auto; padding: 13px var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: -0.02em; text-decoration: none; }
.brand img { width: 26px; height: 26px; border-radius: 6px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; color: var(--slate); }
.nav-links a { text-decoration: none; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-get {
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--paper) !important; background: var(--ink);
  padding: 9px 16px; transition: background .18s;
}
.nav-get:hover { background: var(--signal); }

/* ── Article head ────────────────────────────────────── */
.article-head {
  max-width: calc(720px + var(--gut) * 2); margin: 0 auto;
  padding: clamp(44px, 6vw, 80px) var(--gut) clamp(30px, 4vw, 44px);
}
.article-head::after {
  content: ""; display: block; height: 1px; background: var(--ink);
  margin-top: clamp(26px, 3.5vw, 40px);
}
.article-head h1 {
  font-size: clamp(2rem, 4.4vw, 3.3rem); max-width: 20ch; margin: 16px 0 18px;
}
.article-head .standfirst { font-size: 1.1rem; color: var(--slate); max-width: 58ch; }
.article-meta {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--slate); margin-top: 24px;
}

/* ── Article body ────────────────────────────────────── */
article {
  max-width: calc(720px + var(--gut) * 2); margin: 0 auto;
  padding: clamp(30px, 3.5vw, 40px) var(--gut) clamp(56px, 7vw, 88px);
}
article h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.05rem); margin: 52px 0 16px;
}
article h3 { font-size: 1.2rem; margin: 34px 0 10px; letter-spacing: -0.01em; }
article p { margin-bottom: 20px; }
article ul, article ol { margin: 0 0 22px 20px; }
article li { margin-bottom: 10px; }
article strong { font-weight: 600; }
article hr { border: none; border-top: 1px solid var(--rule); margin: 50px 0; }
article a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--signal); }
article a:hover { color: var(--signal); }

code {
  font-family: var(--mono); font-size: .87em;
  background: #F1EFEA; padding: 2px 6px; color: var(--ink);
}

/* Figures — screenshots hold their native 16:9 ratio */
figure { margin: 34px 0; }
figure img {
  width: 100%; height: auto; aspect-ratio: 1366 / 768; object-fit: contain;
  background: var(--panel); border: 1px solid var(--rule); display: block;
}
figcaption {
  font-family: var(--mono); font-size: 11.5px; color: var(--slate);
  letter-spacing: .04em; line-height: 1.6; margin-top: 11px;
  padding-left: 13px; border-left: 2px solid var(--signal);
}

/* Callouts — a slate/note, not a rounded tinted box */
.callout {
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule);
  padding: 20px 0 22px; margin: 32px 0;
}
.callout .callout-title {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--signal);
  display: block; margin-bottom: 10px;
}
.callout p:last-child { margin-bottom: 0; }
.callout.warn { border-top-color: var(--signal); }
.callout.good .callout-title { color: var(--ink); }

/* Steps — real sequences only */
.steps { counter-reset: step; list-style: none; margin-left: 0; }
.steps > li { counter-increment: step; position: relative; padding-left: 52px; margin-bottom: 26px; }
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 2px;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  color: var(--signal); letter-spacing: .08em;
  border-bottom: 2px solid var(--ink); padding-bottom: 3px;
}
.steps > li strong { display: block; margin-bottom: 4px; font-weight: 700; font-family: var(--display); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 30px 0; }
table { border-collapse: collapse; width: 100%; font-size: .94rem; min-width: 460px; }
th, td { border-bottom: 1px solid var(--rule); padding: 12px 14px 12px 0; text-align: left; vertical-align: top; }
th {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--slate); font-weight: 500;
  border-bottom: 1px solid var(--ink);
}

/* FAQ */
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; padding: 19px 40px 19px 0; position: relative;
  font-family: var(--display); font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); color: var(--signal); font-size: 1.2rem;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--slate); font-size: .96rem; }

/* CTA */
.cta { border-top: 1px solid var(--ink); padding-top: 30px; margin-top: 52px; }
.cta h2 { margin-top: 0; font-size: 1.6rem; }
.btn-store {
  display: inline-block; background: var(--signal); color: #fff !important;
  font-family: var(--mono); font-size: 12.5px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  padding: 15px 26px; text-decoration: none !important; border: none !important;
  transition: background .18s;
}
.btn-store:hover { background: var(--ink); color: #fff !important; }

/* Related */
.related { max-width: calc(720px + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut) clamp(56px, 7vw, 88px); }
.related h2 { font-size: 1.15rem; margin-bottom: 18px; }
.related ul { list-style: none; margin: 0; }
.related li { border-bottom: 1px solid var(--rule); }
.related a { display: block; padding: 14px 0; text-decoration: none; font-size: .97rem; transition: color .18s; }
.related a:hover { color: var(--signal); }

/* ── Blog index ──────────────────────────────────────── */
.blog-hero {
  max-width: 1180px; margin: 0 auto;
  padding: clamp(48px, 7vw, 90px) var(--gut) clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--ink);
}
.blog-hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); margin: 16px 0 16px; max-width: 16ch; }
.blog-hero p { font-size: 1.08rem; color: var(--slate); max-width: 56ch; }

.post-list { max-width: 1180px; margin: 0 auto; padding: 0 var(--gut) clamp(60px, 8vw, 96px); }
.post-card {
  display: grid; grid-template-columns: 108px 1fr; gap: clamp(16px, 3vw, 40px);
  padding: 30px 0; border-bottom: 1px solid var(--rule);
  text-decoration: none; transition: background .18s;
}
.post-card:hover { background: var(--panel); }
.post-card .tag {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--signal); padding-top: 5px;
}
.post-card h2 { font-size: clamp(1.15rem, 2.2vw, 1.5rem); margin-bottom: 10px; max-width: 30ch; }
.post-card p { color: var(--slate); font-size: .97rem; max-width: 62ch; margin-bottom: 12px; }
.post-card .date {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--slate);
}
.post-card:hover h2 { color: var(--signal); }

/* ── Footer ──────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--rule); margin-top: 0;
  padding: 30px var(--gut);
}
.foot-in {
  max-width: 1180px; margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--slate);
}
.foot-in a { text-decoration: none; }
.foot-in a:hover { color: var(--signal); }

a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--signal); outline-offset: 3px;
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav-links a:not(.nav-get) { display: none; }
  .post-card { grid-template-columns: 1fr; gap: 10px; }
  .post-card .tag { padding-top: 0; }
  .foot-in { flex-direction: column; }
}
