/* The blog's only stylesheet (pages are built by scripts/build_blog.mjs).
   Plain CSS, not Tailwind: the pages are static HTML outside the React bundle.
   Colours and fonts follow the landing page (orange-600 #ea580c, slate,
   Inter body, Lora headings), all self-hosted from /fonts/. */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/fonts/inter-latin-ext-v20.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/fonts/inter-latin-v20.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/fonts/lora-latin-ext-v37.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/fonts/lora-latin-v37.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --orange: #ea580c;
  --orange-dark: #c2410c;
  --orange-soft: #fff7ed;
  --orange-line: #fed7aa;
  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --panel: #f8fafc;
  --night: #020617;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--body);
  font: 400 17px/1.7 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-dark); }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 740px; }

/* ── Header ── */
header.site { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; font-size: 22px; color: var(--orange); letter-spacing: -.01em; margin: 0; }
header nav { display: flex; align-items: center; gap: 20px; font-size: 15px; font-weight: 600; }
header nav a { color: var(--body); }
header nav a:hover { color: var(--orange); }
header nav .lang { font-size: 13px; border: 1px solid var(--line); border-radius: 8px; padding: 4px 9px; }
.btn { display: inline-block; background: var(--orange); color: #fff !important; font-weight: 600; font-size: 15px; padding: 9px 18px; border-radius: 10px; transition: background .15s; }
.btn:hover { background: var(--orange-dark); }
.btn.ghost { background: #fff; color: var(--ink) !important; border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--orange); color: var(--orange) !important; }

/* ── Index ── */
.intro { background: linear-gradient(180deg, var(--orange-soft), #fff); padding: 64px 0 24px; }
.intro h1 { font: 700 clamp(36px, 6vw, 54px)/1.1 Lora, Georgia, serif; color: var(--ink); margin: 0 0 14px; letter-spacing: -.01em; }
.lead { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0; }
.list { padding: 32px 0 80px; }

.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card:hover { box-shadow: 0 12px 32px -12px rgba(15,23,42,.18); transform: translateY(-2px); border-color: var(--orange-line); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.card-link:hover { color: inherit; }
/* Thumbnails are the post's screenshot, cropped: dashboard cards from the top
   (their title), phone screenshots around the conversation. */
.thumb { aspect-ratio: 16 / 9; background: var(--panel); border-bottom: 1px solid var(--line); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: transform .3s; }
.thumb.tall img { object-position: 50% 42%; }
.thumb.wide { display: flex; align-items: center; padding: 0 14px; background: linear-gradient(135deg, var(--orange-soft), var(--panel)); }
.thumb.wide img { height: auto; object-fit: contain; }
.card:hover .thumb img { transform: scale(1.03); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card h2, .card h3 { font: 700 21px/1.3 Lora, Georgia, serif; color: var(--ink); margin: 6px 0 8px; }
.card p { font-size: 15px; line-height: 1.6; margin: 0 0 14px; color: var(--muted); }
.card .meta { font-size: 13px; margin: 0; }
.more { margin-top: auto; font-weight: 600; font-size: 15px; color: var(--orange); }

/* ── Post ── */
.post { padding: 40px 0 24px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--orange); }
.post h1 { font: 700 clamp(32px, 5.4vw, 46px)/1.15 Lora, Georgia, serif; color: var(--ink); margin: 0 0 14px; letter-spacing: -.01em; }
.meta { font-size: 14px; color: var(--muted); }
.post > .wrap > .meta { margin: 0 0 32px; }

.prose h2 { font: 700 26px/1.3 Lora, Georgia, serif; color: var(--ink); margin: 48px 0 12px; scroll-margin-top: 80px; }
.prose h3 { font-size: 17px; color: var(--ink); margin: 0 0 4px; }
.prose p { margin: 0 0 18px; }
.prose strong { color: var(--ink); }
.prose a { text-decoration: underline; text-decoration-color: var(--orange-line); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--orange); }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 20px; }
.prose li { margin-bottom: 8px; padding-left: 4px; }
.prose li::marker { color: var(--orange); font-weight: 700; }

.answer { background: var(--orange-soft); border: 1px solid var(--orange-line); border-left: 4px solid var(--orange); border-radius: 14px; padding: 20px 24px; margin: 0 0 32px; }
.answer p { margin: 0; color: var(--ink); }
.answer .answer-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--orange); margin-bottom: 6px; }

figure { margin: 32px 0; }
.shot { background: linear-gradient(135deg, var(--orange-soft), var(--panel)); border: 1px solid var(--line); border-radius: 18px; padding: clamp(16px, 4vw, 36px); display: flex; justify-content: center; }
.shot img { border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(15,23,42,.35), 0 0 0 1px rgba(15,23,42,.06); max-height: 560px; width: auto; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; text-align: center; }

.table { overflow-x: auto; margin: 0 0 24px; border: 1px solid var(--line); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; }
th, td { text-align: left; padding: 12px 16px; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--panel); color: var(--ink); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

.faq { border-top: 1px solid var(--line); padding: 18px 0 2px; }
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq p { margin-bottom: 14px; }

.cta { margin: 56px 0 24px; background: var(--night); color: #cbd5e1; border-radius: 22px; padding: clamp(28px, 5vw, 44px); }
.cta h2 { font: 700 26px/1.3 Lora, Georgia, serif; color: #fff; margin: 0 0 8px; }
.cta p { margin: 0 0 22px; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn.ghost { background: transparent; color: #fff !important; border-color: #334155; }
.cta .btn.ghost:hover { border-color: var(--orange); }

.related { background: var(--panel); border-top: 1px solid var(--line); padding: 56px 0 64px; }
.related h2 { font: 700 26px/1.3 Lora, Georgia, serif; color: var(--ink); margin: 0 0 24px; }
.back { margin: 32px 0 0; font-weight: 600; }

/* ── Footer (mirrors the landing page footer) ── */
footer.site { background: var(--night); color: #94a3b8; padding: 56px 0 32px; font-size: 14px; }
footer .cols { display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); padding-bottom: 28px; }
footer .logo { font-size: 20px; margin-bottom: 6px; }
footer .muted { color: #64748b; margin: 0; line-height: 1.6; }
footer .links { display: flex; flex-direction: column; gap: 8px; align-items: center; }
footer a { color: #94a3b8; }
footer a:hover { color: #fff; }
footer .right { text-align: right; }
footer .legal { border-top: 1px solid #1e293b; padding-top: 22px; display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: #475569; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  header nav { gap: 12px; }
  /* Only the language switch and the button fit next to the logo; Blog and
     About us stay reachable from the footer. */
  header nav > a:not(.lang):not(.btn) { display: none; }
  .btn { font-size: 14px; padding: 8px 14px; }
  .intro { padding-top: 40px; }
  .post { padding-top: 28px; }
  .prose h2 { font-size: 23px; margin-top: 40px; }
  .answer { padding: 16px 18px; }
  /* Tables become one card per row: three columns do not fit a phone. */
  .table { border: 0; overflow: visible; }
  .table thead { display: none; }
  .table tr { display: block; border: 1px solid var(--line); border-radius: 14px; padding: 6px 16px; margin-bottom: 12px; }
  .table td { display: block; border: 0; padding: 8px 0; }
  .table td + td { border-top: 1px solid var(--line); }
  .table td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
  .table td:first-child { font-weight: 600; color: var(--ink); }
  .table td:first-child::before { display: none; }
  footer .cols { grid-template-columns: 1fr; }
  footer .links { align-items: flex-start; }
  footer .right { text-align: left; }
  footer .legal { flex-direction: column; }
}
