/* Shared styles for the TranscribeKit blog.
   Same tokens and typography as index.html, kept in one file so the article
   pages cannot drift apart from each other. */

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

:root {
  --bg:       #fafaf8;
  --bg2:      #f2f1ec;
  --bg3:      #e9e8e2;
  --border:   #dddbd3;
  --amber:    #c97d08;
  --amber-lt: #fdf0d5;
  --amber-md: #f5c96a;
  --text:     #18180f;
  --muted:    #6b6958;
  --mono:     'DM Mono', monospace;
  --sans:     'Syne', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 52px;
  height: 62px;
  border-bottom: 1px solid var(--border);
  background: rgba(250,250,248,0.9);
  backdrop-filter: blur(14px);
}

.nav-logo {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img { height: 28px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s;
}
.nav-links a:hover { color: var(--text); }

.btn-nav {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 22px;
  background: var(--amber);
  color: #fff;
  text-decoration: none;
  transition: background 0.18s, transform 0.15s;
}
.btn-nav:hover { background: #a86406; transform: translateY(-1px); }

/* ── SHARED BITS ── */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

.wrap { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* ── BLOG INDEX ── */
.blog-hero {
  padding: 140px 24px 56px;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.blog-hero .wrap { padding: 0 24px; }
.blog-hero h1 {
  font-size: clamp(34px, 6vw, 54px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 14px 0 16px;
}
.blog-hero p { color: var(--muted); font-size: 17px; max-width: 620px; }

.post-list { padding: 56px 24px 90px; }
.post-list .wrap { padding: 0 24px; }

.post-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  background: #fff;
  padding: 26px 28px;
  margin-bottom: 18px;
  transition: border-color 0.18s, transform 0.15s;
}
.post-card:hover { border-color: var(--amber-md); transform: translateY(-2px); }

.post-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.post-card h2 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 8px;
}
.post-card p { color: var(--muted); font-size: 15px; }

/* ── ARTICLE ── */
.article-head {
  padding: 130px 24px 44px;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.article-head h1 {
  font-size: clamp(29px, 4.6vw, 43px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.14;
  margin: 14px 0 16px;
}
.article-head .standfirst {
  color: var(--muted);
  font-size: 17px;
  max-width: 660px;
}
.article-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 18px;
}

article { padding: 46px 24px 90px; }

article h2 {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 44px 0 14px;
}
article h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 30px 0 10px;
}
article p { margin-bottom: 17px; font-size: 16.5px; }
article ul, article ol { margin: 0 0 18px 22px; }
article li { margin-bottom: 8px; font-size: 16.5px; }
article strong { font-weight: 600; }

article a { color: var(--amber); text-decoration: underline; text-underline-offset: 2px; }
article a:hover { color: #a86406; }

article figure { margin: 30px 0; }
article figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  background: var(--bg3);
}
article figcaption {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 9px;
  line-height: 1.5;
}

.callout {
  border-left: 3px solid var(--amber-md);
  background: var(--amber-lt);
  padding: 16px 20px;
  margin: 26px 0;
}
.callout p { margin: 0; font-size: 15.5px; }

.steps { counter-reset: step; list-style: none; margin-left: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 42px;
  margin-bottom: 16px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 1px;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: var(--amber);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  border-radius: 50%;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}
th, td {
  border: 1px solid var(--border);
  padding: 10px 13px;
  text-align: left;
  vertical-align: top;
}
th { background: var(--bg2); font-weight: 600; }

.article-cta {
  margin-top: 52px;
  padding: 30px;
  border: 1px solid var(--border);
  background: #fff;
  text-align: center;
}
.article-cta h3 { margin: 0 0 8px; font-size: 20px; }
.article-cta p { color: var(--muted); margin-bottom: 18px; font-size: 15px; }

.more-posts {
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.more-posts .eyebrow { display: block; margin-bottom: 14px; }
.more-posts a {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.more-posts a:last-child { border-bottom: none; }
.more-posts a:hover { color: var(--amber); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 30px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.footer-links { display: flex; gap: 26px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--amber); }

@media (max-width: 760px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  footer { padding: 26px 20px; }
  article h2 { font-size: 22px; }
}
