/* The main site's sheet, at the size a blog needs. Variables, header, nav,
   footer and switcher are the same values as meetmap.io/style.css so the two
   read as one site; the rest is prose. Nothing here is a framework. */
:root {
  color-scheme: light dark;
  --ink: #1c1c1e; --muted: #6b6b70; --faint: #8e8e93;
  --canvas: #ffffff; --surface: #f5f5f7; --hairline: #e1e1e6;
  --ember: #c24e05; --ember-fill: #c24e05;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #f2f3f5; --muted: #a8adb8; --faint: #767e8c; --canvas: #1f232b; --surface: #262b34; --hairline: #38404d; --ember: #ff6b18 }
}
* { box-sizing: border-box }
body {
  margin: 0; padding: 0 24px 96px; background: var(--canvas); color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 640px; margin: 0 auto }
.wrap.wide { max-width: 1080px }
a { color: var(--ember); text-underline-offset: 3px }

header { padding: 40px 0 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none }
.mark { width: 26px; height: 20px; flex: none }
.name { font-size: 20px; font-weight: 700; letter-spacing: -0.01em }
.top-cta { font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--ink) }
.top-cta:hover { background: var(--ink); color: var(--canvas) }

.site-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 2px 0 0; font-size: 14px }
.site-nav a { color: var(--muted); text-decoration: none }
.site-nav a:hover { color: var(--ember) }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600 }

.crumbs { font-size: 13px; color: var(--faint); margin-top: 30px }
.crumbs a { color: var(--faint); text-decoration: none }
.crumbs a:hover { color: var(--ember) }
.crumbs span { margin: 0 6px }

.page { max-width: 640px }
.page h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; margin: 28px 0 8px }
.page .lede { font-size: 19px; line-height: 1.55; color: var(--muted); margin: 0 0 8px }
.meta { font-size: 14px; color: var(--faint); margin: 0 0 28px }

/* Prose: what markdown turns into. */
.prose h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin: 36px 0 8px }
.prose h3 { font-size: 17px; font-weight: 700; margin: 28px 0 6px }
.prose p, .prose li { color: var(--muted) }
.prose p { margin: 0 0 14px }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 14px }
.prose li { margin: 4px 0 }
.prose strong { color: var(--ink); font-weight: 650 }
.prose blockquote { margin: 18px 0; padding: 2px 0 2px 18px; border-left: 3px solid var(--hairline); color: var(--muted) }
.prose code { font-size: 15px; background: var(--surface); padding: 1px 6px; border-radius: 6px }
.prose pre { background: var(--surface); padding: 14px 16px; border-radius: 12px; overflow-x: auto }
.prose pre code { background: none; padding: 0 }
.prose img { max-width: 100%; height: auto; border-radius: 16px }
.prose hr { border: 0; border-top: 1px solid var(--hairline); margin: 32px 0 }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--hairline); color: var(--muted) }
.prose th { color: var(--ink) }

/* The index: one line per post, the most recently updated first. */
.posts { list-style: none; padding: 0; margin: 28px 0 0 }
.posts li { border-top: 1px solid var(--hairline) }
.posts li:last-child { border-bottom: 1px solid var(--hairline) }
.posts a { display: grid; gap: 4px; padding: 18px 0; text-decoration: none; color: var(--ink) }
.posts a:hover .post-title { color: var(--ember) }
.post-title { font-size: 19px; font-weight: 650; letter-spacing: -0.01em }
.post-desc { color: var(--muted); font-size: 15px }
.posts time { color: var(--faint); font-size: 13px }

.cta-row { margin: 36px 0 10px }
.badge img { display: block; width: 180px; height: 60px }

.site-footer { display: flex; flex-wrap: wrap; gap: 28px 56px; margin-top: 84px; padding-top: 28px; border-top: 1px solid var(--hairline) }
.site-footer nav { display: flex; flex-direction: column; gap: 7px }
.site-footer h2 { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 0 0 4px }
.site-footer a { color: var(--muted); font-size: 14px; text-decoration: none }
.site-footer a:hover { color: var(--ember) }
.made { color: var(--muted); font-size: 14px }

.langs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 26px; font-size: 13px; color: var(--faint) }
.langs .globe { width: 16px; height: 16px; fill: none; stroke: var(--faint); stroke-width: 1.6; flex: none }
.langs a { color: var(--muted); text-decoration: none }
.langs a:hover { color: var(--ember) }
.langs b { color: var(--ink); font-weight: 600 }

html[lang|="zh"] .page h1, html[lang="ja"] .page h1, html[lang="ko"] .page h1 { letter-spacing: 0; line-height: 1.2 }
html[lang|="zh"] .prose h2, html[lang="ja"] .prose h2, html[lang="ko"] .prose h2 { letter-spacing: 0 }
