/* Kartov Guides — shared article styles. Mirrors landing.css tokens. */
:root {
  --primary: #30D5C8;
  --primary-dark: #28B5A9;
  --accent: #FF7F50;
  --accent-dark: #E6694A;
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --border: #E5E7EB;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0A0A;
    --surface: #161616;
    --text: #F0F0F0;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    --border: #2A2A2A;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.4);
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100; height: 64px;
  background: rgba(250,250,248,0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
@media (prefers-color-scheme: dark) { .nav { background: rgba(10,10,10,0.85); } }
.nav-inner {
  max-width: 960px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.nav-icon { width: 32px; height: 32px; border-radius: 8px; }
.nav-wordmark { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--border); }

/* Article */
.article { max-width: 720px; margin: 0 auto; padding: 48px 24px 24px; }
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.article-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.article h1 {
  font-size: clamp(28px, 5vw, 40px); font-weight: 800; line-height: 1.15;
  letter-spacing: -0.02em; margin-bottom: 16px;
}
.lede { font-size: 19px; color: var(--text-secondary); margin-bottom: 8px; }
.article h2 {
  font-size: 24px; font-weight: 700; margin: 40px 0 12px; letter-spacing: -0.01em;
}
.article h3 { font-size: 19px; font-weight: 700; margin: 28px 0 8px; }
.article p { margin: 0 0 18px; font-size: 17px; }
.article ul, .article ol { margin: 0 0 18px 22px; }
.article li { margin-bottom: 10px; font-size: 17px; }
.article a { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 2px; }
.article strong { font-weight: 700; }
.article hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* Steps */
.steps { list-style: none; margin: 0 0 18px; counter-reset: step; }
.steps li {
  position: relative; padding-left: 48px; margin-bottom: 18px; counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
}

/* Callout / CTA box */
.callout {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin: 28px 0; box-shadow: var(--shadow);
}
.callout h3 { margin-top: 0; }
.cta-box {
  text-align: center;
  background: linear-gradient(135deg, rgba(48,213,200,0.10), rgba(255,127,80,0.10));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 24px; margin: 40px 0;
}
.cta-box h3 { font-size: 22px; margin-bottom: 8px; }
.cta-box p { color: var(--text-secondary); margin-bottom: 18px; }

/* Inline screenshot */
.shot { margin: 28px 0; text-align: center; }
.shot img {
  max-width: 280px; width: 100%; border-radius: 28px;
  border: 6px solid #1A1A1A; box-shadow: var(--shadow-lg);
  image-orientation: none; /* ignore bogus iCloud EXIF orientation */
}
.shot figcaption { font-size: 13px; color: var(--text-muted); margin-top: 12px; }

/* Related guides */
.related { max-width: 720px; margin: 0 auto; padding: 0 24px 48px; }
.related h2 { font-size: 20px; margin-bottom: 16px; }
.related-grid { display: grid; gap: 12px; }
.related-card {
  display: block; padding: 18px 20px; border: 1px solid var(--border);
  border-radius: var(--radius); text-decoration: none; color: var(--text);
  background: var(--surface); transition: transform .15s, box-shadow .15s;
}
.related-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.related-card strong { display: block; font-size: 16px; margin-bottom: 4px; }
.related-card span { font-size: 14px; color: var(--text-secondary); }

/* Guides hub */
.hub { max-width: 820px; margin: 0 auto; padding: 56px 24px; }
.hub-header { text-align: center; margin-bottom: 40px; }
.hub-header h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.hub-header p { color: var(--text-secondary); font-size: 18px; }
.hub-grid { display: grid; gap: 16px; }
.hub-card {
  display: block; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; color: var(--text); background: var(--surface);
  transition: transform .15s, box-shadow .15s;
}
.hub-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.hub-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.hub-card p { color: var(--text-secondary); font-size: 15px; }

/* Footer */
.footer { border-top: 1px solid var(--border); margin-top: 48px; }
.footer-inner {
  max-width: 960px; margin: 0 auto; padding: 32px 24px;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--primary); }
.footer-copy { font-size: 13px; color: var(--text-muted); }
