/* ============================================================
   Stoked Global — shared stylesheet for the /writing/ section.
   Design tokens and shared components are copied verbatim from
   index.html's inline <style> so the blog matches the homepage.
   (index.html still carries its own inline copy — see README note;
   consolidating the two is a safe follow-up.)
   ============================================================ */
:root {
  --bg:           #15171A;
  --surface:      #1D2025;
  --text:         #ECEDEF;
  --text-dim:     #989DA4;
  --text-faint:   rgba(236, 237, 239, 0.38);
  --rule:         rgba(236, 237, 239, 0.13);
  --hair:         rgba(236, 237, 239, 0.20);
  --grid:         rgba(236, 237, 239, 0.05);
  --chip:         rgba(236, 237, 239, 0.05);

  --or:           #F2A93B;
  --or-ink:       #0e1016;
  --or-lift:      #DA9835;

  --font:         "Geist", "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:         "Geist Mono", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --container:    1280px;
  --gutter:       40px;
  --section-pad:  104px;

  /* reading measure for long-form articles.
     ~82ch keeps lines comfortably readable while filling a wide screen;
     turn this one number down if you ever want a tighter column. */
  --measure:      102ch;
}

/* ---------- reset + base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a  { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 640; line-height: 1.05; letter-spacing: -0.03em; }
p  { line-height: 1.62; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; border-radius: 2px; }

/* ---------- shared layout ---------- */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-pad) var(--gutter);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--or);
  flex: none;
}
.section__title {
  font-size: clamp(32px, 4.4vw, 52px);
  letter-spacing: -0.035em;
  max-width: 18ch;
  text-wrap: balance;
  margin-bottom: 18px;
}
.section__lead {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 58ch;
  margin-bottom: 64px;
}

/* ---------- buttons + mark ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 570;
  padding: 12px 18px;
  border-radius: 5px;
  transition: background .15s, border-color .15s, color .15s;
}
.btn--orange { background: var(--or); color: var(--or-ink); }
.btn--orange:hover { background: var(--or-lift); }
.btn--ghost  { color: var(--text); border: 1px solid var(--hair); }
.btn--ghost:hover { border-color: var(--text-dim); }

.mark {
  width: 23px; height: 23px;
  background: var(--or);
  color: var(--or-ink);
  border-radius: 5px;
  display: inline-grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  flex: none;
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 640;
  letter-spacing: -0.015em;
  color: var(--text);
}
.brand-lockup .slash { color: var(--or); }

/* ---------- header / footer ---------- */
.site-header {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid var(--rule);
}
.site-header__nav { display: flex; gap: 26px; font-size: 13.5px; }
.site-header__nav a       { color: var(--text-dim); transition: color .15s; }
.site-header__nav a:hover { color: var(--text); }
.site-header__nav a[aria-current="page"] { color: var(--text); }
.site-header__cta { margin-left: auto; }

.site-footer {
  max-width: var(--container);
  margin: 0 auto;
  padding: 30px var(--gutter);
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 12.5px;
  color: var(--text-dim);
}
.site-footer p { margin-left: auto; }

/* ============================================================
   WRITING — index listing
   ============================================================ */
.writing-list { display: grid; gap: 0; max-width: 1040px; }
.post-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 32px;
  padding: 34px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
  transition: opacity .15s;
}
.post-card:last-child { border-bottom: 1px solid var(--rule); }
.post-card:hover { opacity: .92; }
.post-card__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-top: 6px;
  line-height: 1.7;
}
.post-card__meta .tag { color: var(--or); display: block; }
.post-card h2 {
  font-size: clamp(21px, 2.4vw, 27px);
  letter-spacing: -0.025em;
  margin-bottom: 10px;
  text-wrap: balance;
}
.post-card p { color: var(--text-dim); font-size: 15px; max-width: 74ch; }
.post-card__more {
  display: inline-block;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 570;
  color: var(--or);
}

/* ============================================================
   ARTICLE
   ============================================================ */
.article { max-width: var(--container); margin: 0 auto; padding: 72px var(--gutter) 40px; }
.article__head { max-width: var(--measure); margin-bottom: 44px; }
.article__head h1 {
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.035em;
  text-wrap: balance;
  margin-bottom: 20px;
}
.article__standfirst { color: var(--text-dim); font-size: 18.5px; line-height: 1.55; max-width: 72ch; }
.article__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.prose { max-width: var(--measure); font-size: 17px; }
.prose > * + * { margin-top: 24px; }
.prose h2 {
  font-size: clamp(23px, 3vw, 30px);
  letter-spacing: -0.03em;
  margin-top: 52px;
  text-wrap: balance;
}
.prose h3 { font-size: 19.5px; letter-spacing: -0.02em; margin-top: 38px; }
.prose p { color: #D6D9DD; }
.prose strong { color: var(--text); font-weight: 620; }
.prose em { color: var(--text); font-style: italic; }
.prose a { color: var(--or); border-bottom: 1px solid rgba(242, 169, 59, 0.35); }
.prose a:hover { border-bottom-color: var(--or); }
.prose ul, .prose ol { padding-left: 0; }
.prose ul li, .prose ol li {
  color: #D6D9DD;
  position: relative;
  padding-left: 26px;
  margin-top: 12px;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: 11px;
  width: 7px; height: 1px;
  background: var(--or);
}
.prose ol { counter-reset: n; }
.prose ol li { counter-increment: n; }
.prose ol li::before {
  content: counter(n);
  position: absolute;
  left: 0; top: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--or);
}
.prose blockquote {
  border-left: 2px solid var(--or);
  padding: 4px 0 4px 22px;
  color: var(--text);
  font-size: 19px;
  line-height: 1.5;
}
.prose code {
  font-family: var(--mono);
  font-size: 14px;
  background: var(--chip);
  padding: 2px 6px;
  border-radius: 4px;
}
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 44px 0; }

/* screenshots / figures */
.figure { margin: 40px 0; max-width: var(--measure); }
.figure img {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--surface);
}
.figure figcaption {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-faint);
}
/* for wide UI screenshots that deserve to break the reading measure */
.figure--wide { max-width: min(1100px, 100%); }

/* key-takeaway / callout panel */
.callout {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 24px 26px;
  max-width: var(--measure);
}
.callout h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 14px;
  font-weight: 600;
}
.callout ul li { margin-top: 10px; }

/* end-of-article product CTA */
.post-cta {
  max-width: var(--measure);
  margin: 64px auto 0;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 34px;
}
.post-cta__kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 12px;
}
.post-cta h2 { font-size: 26px; letter-spacing: -0.03em; margin-bottom: 12px; }
.post-cta p { color: var(--text-dim); font-size: 15.5px; margin-bottom: 22px; max-width: 52ch; }

.article__back {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 40px var(--gutter) 0;
  font-size: 13.5px;
  color: var(--text-dim);
}
.article__back a:hover { color: var(--text); }

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  :root { --section-pad: 60px; --gutter: 20px; }
  .site-header { padding: 16px var(--gutter); }
  .site-header__nav { display: none; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 14px; }
  .site-footer p { margin-left: 0; }

  .article { padding: 44px var(--gutter) 30px; }
  .post-card { grid-template-columns: 1fr; gap: 12px; padding: 26px 0; }
  .post-card__meta { padding-top: 0; }
  .post-card__meta .tag { display: inline; }
  .prose { font-size: 16.5px; }
  .post-cta { padding: 26px; }
}
