/* SwipeWise Guides — shared article styles. Reuses the dark landing design tokens
   so the blog reads as one brand. Diagrams keep a light card (.figure svg) because
   their inline colors are tuned for a light canvas. */
:root {
  --brand: #0FCF95; --brand-hi: #34e6b0; --brand-2: #34e6b0; --brand-deep: #04140e; --brand-ink: #04140e;
  --bg: #070f0c; --bg-2: #0a140f; --panel: #0e1a15; --panel-2: #12211a;
  --ink: #eaf3ee; --muted: #8ba79a; --faint: #7a938a;
  --line: #1f2e28; --line-2: #2b3d35; --pos: #2fe0a0; --neg: #ff8062; --warn: #e6b455;
  --r: 20px; --pill: 999px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--brand-2); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
.num { font-variant-numeric: tabular-nums; }
/* line-icon system — thin stroke, currentColor, scales with font-size */
svg.ic { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 1.85;
  stroke-linecap: round; stroke-linejoin: round; vertical-align: -.16em; flex: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
img { max-width: 100%; height: auto; }

/* ambient emerald bloom + faint grid, same as the landing */
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(58% 40% at 50% -6%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 66%); }
body::after { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .45;
  background-image:
    linear-gradient(color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(90% 50% at 50% 0%, #000 6%, transparent 58%);
  mask-image: radial-gradient(90% 50% at 50% 0%, #000 6%, transparent 58%); }

/* skip link for a11y */
.skip { position: absolute; left: -9999px; top: 0; background: var(--brand); color: var(--brand-ink);
  padding: 10px 16px; border-radius: 0 0 10px 0; font-weight: 700; z-index: 10; text-decoration: none; }
.skip:focus { left: 0; }

/* nav (matches landing) — scoped to the top-level header nav so the .crumbs
   breadcrumb (also a <nav>) keeps its own layout, not header padding/space-between */
.wrap > nav { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em;
  text-decoration: none; color: var(--ink); }
.brand .mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: var(--brand); color: var(--brand-ink); font-weight: 900;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 40%, transparent), 0 6px 18px rgba(15,207,149,.28); }
.btn { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; font-size: 15px; padding: 11px 20px;
  border-radius: var(--pill); text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease, border-color .15s ease; }
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--panel-2); color: var(--ink); border-color: var(--line-2); }
.btn--solid:hover { border-color: var(--brand); color: var(--ink); background: color-mix(in srgb, var(--brand) 10%, transparent); }
.btn--brand { background: var(--brand); color: var(--brand-ink); font-weight: 700; box-shadow: 0 8px 26px rgba(15,207,149,.24); }
.btn--brand:hover { background: var(--brand-hi); color: var(--brand-ink); }
.btn--ghost { border-color: var(--line-2); background: color-mix(in srgb, var(--ink) 3%, transparent); color: var(--ink); }
.btn--ghost:hover { border-color: var(--brand); color: var(--ink); background: color-mix(in srgb, var(--brand) 10%, transparent); }

/* article shell */
main { display: block; }
.article { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line);
  border-radius: var(--r); padding: 40px clamp(20px, 5vw, 60px); margin: 8px 0 40px; max-width: 760px; }
@media (min-width: 1080px) { .wrap--article { max-width: 820px; } }

.crumbs { font-size: 13px; color: var(--faint); margin: 0 0 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand-2); }
.crumbs span[aria-current] { color: var(--ink); }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700;
  color: var(--brand-hi); background: color-mix(in srgb, var(--brand) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 24%, transparent);
  padding: 6px 13px 6px 11px; border-radius: var(--pill); letter-spacing: .04em; text-transform: uppercase; }
.article h1 { font-size: clamp(28px, 4.4vw, 40px); line-height: 1.12; letter-spacing: -.028em;
  margin: 16px 0 14px; font-weight: 800; color: var(--ink); }
.byline { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: var(--muted);
  font-size: 14px; margin: 0 0 8px; }
.byline .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); opacity: .6; }

/* prose */
.prose { margin-top: 26px; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: clamp(21px, 3vw, 27px); letter-spacing: -.02em; font-weight: 800; line-height: 1.2;
  margin-top: 1.9em; padding-top: .3em; color: var(--ink); }
.prose h3 { font-size: 19px; font-weight: 750; letter-spacing: -.012em; margin-top: 1.5em; color: var(--ink); }
.prose p, .prose li { color: #c6d6ce; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--faint); }
.lead { font-size: 19.5px; line-height: 1.6; color: #d3e2da; }

/* tables */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15.5px; min-width: 420px; }
.prose th, .prose td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--ink); }
.prose thead th { background: color-mix(in srgb, var(--brand) 12%, var(--panel)); border-top: 0;
  font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-hi); }
.prose tbody tr:first-child td { border-top: 0; }
.prose tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--ink) 2.5%, transparent); }

/* callouts */
.callout { border: 1px solid var(--line); border-left-width: 4px; border-radius: 12px;
  padding: 16px 18px; font-size: 15.5px; background: var(--panel-2); color: #c6d6ce; }
.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }
.callout strong { color: var(--ink); }
.callout .lbl { font-weight: 800; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em;
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.callout--warn { border-left-color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, var(--panel-2)); }
.callout--warn .lbl { color: var(--warn); }
.callout--tip { border-left-color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, var(--panel-2)); }
.callout--tip .lbl { color: var(--brand-hi); }
.callout--key { border-left-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--panel-2)); }
.callout--key .lbl { color: var(--brand-hi); }

/* figure / SVG diagrams — kept on a light card; their inline colors are tuned for light */
figure { margin: 1.6em 0; }
figure svg { display: block; width: 100%; height: auto; border: 1px solid #cfe0d8;
  border-radius: 14px; background: #f5f8f6; }
figcaption { font-size: 13px; color: var(--faint); margin-top: 8px; text-align: center; }

/* disclaimer */
.disclaimer { margin-top: 2em; padding-top: 1.3em; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--faint); font-style: italic; }

/* related + CTA */
.related { max-width: 760px; margin: 0 0 20px; }
.related h2 { font-size: 20px; letter-spacing: -.015em; margin: 0 0 14px; color: var(--ink); }
.rel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 640px) { .rel-grid { grid-template-columns: 1fr; } }
.rel-card { display: block; background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px; text-decoration: none; color: var(--ink); transition: border-color .18s ease, transform .18s ease; }
.rel-card:hover { border-color: var(--line-2); color: var(--ink); transform: translateY(-2px); }
.rel-card .k { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-hi); }
.rel-card h3 { font-size: 16px; margin: 6px 0 0; letter-spacing: -.01em; line-height: 1.3; color: var(--ink); }

.band { margin: 8px 0 56px; border-radius: 26px; padding: 40px clamp(22px, 5vw, 44px); text-align: center; max-width: 760px;
  position: relative; overflow: hidden; background: linear-gradient(180deg, var(--panel-2), var(--bg-2)); border: 1px solid var(--line-2); }
.band::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 90% at 50% -20%, color-mix(in srgb, var(--brand) 20%, transparent), transparent 60%); }
.band > * { position: relative; }
.band h2 { color: var(--ink); font-size: clamp(22px, 3.2vw, 28px); letter-spacing: -.022em; margin: 0 0 10px; }
.band p { color: var(--muted); margin: 0 auto 22px; max-width: 34em; }

footer { border-top: 1px solid var(--line); padding: 28px 0 48px; color: var(--muted); font-size: 14px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { text-decoration: none; color: var(--muted); }
footer a:hover { color: var(--ink); }

/* blog index */
.hub-head { max-width: 640px; margin: 12px 0 30px; }
.hub-head h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -.03em; margin: 0 0 12px; font-weight: 800; color: var(--ink); }
.hub-head p { color: var(--muted); font-size: 18px; margin: 0; }
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 48px; }
@media (max-width: 720px) { .post-grid { grid-template-columns: 1fr; } }
.post { display: flex; flex-direction: column; background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line);
  border-radius: var(--r); padding: 24px; text-decoration: none; color: var(--ink); transition: border-color .18s ease, transform .18s ease; }
.post:hover { border-color: var(--line-2); color: var(--ink); transform: translateY(-2px); }
.post .k { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-hi); }
.post h2 { font-size: 20px; letter-spacing: -.018em; margin: 8px 0 8px; line-height: 1.25; color: var(--ink); }
.post p { color: var(--muted); font-size: 14.5px; margin: 0 0 14px; }
.post .read { margin-top: auto; font-size: 13px; color: var(--faint); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .rel-card:hover, .post:hover { transform: none; } }
