/* Standalone styles for statically-generated /blog and /work pages.
   Mirrors the design tokens in src/index.css so prerendered pages match the
   React app without coupling to Vite's hashed asset filenames. */
:root {
  --text: #e2e0e7;
  --text-muted: #9b98a8;
  --text-h: #f5f4f8;
  --bg: #0c0b0f;
  --bg-elevated: #14131a;
  --border: rgba(255, 255, 255, 0.06);
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --accent: #7c5cff;
  --accent-soft: rgba(124, 92, 255, 0.2);
  --cyan: #22d3ee;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", "SF Mono", Consolas, "Liberation Mono", ui-monospace, monospace;
  --radius: 14px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.hub-wrap { max-width: 1000px; }

@media (max-width: 768px) {
  .wrap { padding: 0 16px; }
}

/* Header / nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(12, 11, 15, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-nav .nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--accent); }
.site-nav .brand { font-weight: 700; color: var(--text-h); }
.site-nav .nav-right a { margin-left: 22px; color: var(--text-muted); }

h1, h2, h3 { font-family: var(--sans); font-weight: 600; color: var(--text-h); line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.02em; margin: 0 0 12px; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -0.01em; margin: 2.2em 0 0.6em; }
h3 { font-size: 1.2rem; margin: 1.8em 0 0.5em; }

p { margin: 0 0 1.2em; color: var(--text); }
article p { color: var(--text); }

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--cyan); }
article a { text-decoration: underline; text-underline-offset: 3px; }

ul, ol { color: var(--text); padding-left: 1.3em; }
li { margin: 0.4em 0; }

blockquote {
  margin: 1.5em 0;
  padding: 4px 20px;
  border-left: 3px solid var(--accent);
  color: var(--text-muted);
  background: var(--glass);
  border-radius: 0 var(--radius) var(--radius) 0;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.07);
  padding: 2px 6px;
  border-radius: 6px;
}
pre {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  overflow-x: auto;
  margin: 1.5em 0;
}
pre code { background: none; padding: 0; font-size: 0.85em; line-height: 1.6; }

hr { border: none; border-top: 1px solid var(--border); margin: 2.5em 0; }

/* Article meta */
.post-meta { color: var(--text-muted); font-size: 0.9rem; font-family: var(--mono); margin-bottom: 1.5em; }
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin: 28px 0 18px; font-family: var(--mono); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.5em 0; }
.tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  border: 1px solid var(--border);
}

article { padding: 8px 0 40px; }
.lede { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2em; }

/* Footer / CTA */
.post-cta {
  margin: 40px 0;
  padding: 28px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}
.post-cta h3 { margin-top: 0; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-h);
  background: var(--accent-soft);
  border: 1px solid rgba(124, 92, 255, 0.4);
  border-radius: var(--radius);
  transition: background var(--transition), transform 0.2s;
}
.btn:hover { background: rgba(124, 92, 255, 0.3); transform: translateY(-1px); color: var(--text-h); }

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 32px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Blog hub cards */
.hub-head { padding: 48px 0 8px; }
.post-grid { display: grid; gap: 20px; padding: 24px 0 40px; }
.post-card {
  display: block;
  padding: 24px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform 0.2s;
}
.post-card:hover { border-color: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }
.post-card h2 { margin: 0 0 8px; font-size: 1.3rem; }
.post-card p { margin: 0 0 12px; color: var(--text-muted); }
/* Store item header (app icon + title) */
.store-head { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.app-icon { border-radius: 20px; flex-shrink: 0; border: 1px solid var(--border); background: var(--bg-elevated); }
.store-head .post-meta { margin: 0 0 4px; }
.store-head h1 { margin: 0; }
.store-card { display: flex; align-items: center; gap: 16px; }
.store-card .app-icon { border-radius: 14px; }
.store-card h2 { margin: 0 0 4px; }

.related { margin: 40px 0; }
.related h3 { margin-bottom: 12px; }
.related ul { list-style: none; padding: 0; }
