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

:root {
  --ash-100: oklch(8.5% 0.002 260);
  --ash-200: oklch(12.5% 0.003 260);
  --ash-300: oklch(16.5% 0.004 260);
  --ash-400: oklch(20.5% 0.004 260);
  --border-subtle: oklch(100% 0 0 / 7%);
  --border-strong: oklch(100% 0 0 / 12%);
  --text: oklch(97% 0.001 260);
  --text-2: oklch(82% 0.002 260);
  --text-3: oklch(58% 0.003 260);
  --text-4: oklch(46% 0.002 260);
  --steel: oklch(68% 0.15 260);
  --steel-glow: oklch(68% 0.15 260 / 0.13);
  --amber: oklch(74% 0.13 85);
  --green: oklch(68% 0.13 160);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
}

html { scroll-behavior: smooth; }

body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, oklch(100% 0 0 / 2.5%) 0.5px, transparent 0.5px);
  background-size: 20px 20px;
}
body { position: relative; z-index: 1;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--ash-100);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Typography ---- */
h1 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.15; }
h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }

/* ---- Layout ---- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }

/* ---- Nav ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: oklch(8.5% 0.002 260 / 0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 1.5rem; max-width: 1160px; margin: 0 auto; }
.nav-logo { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 0.38rem; min-width: 0; }
.brand-mark { height: 34px; width: auto; display: block; flex: 0 0 auto; }
.brand-wordmark { font-weight: 700; font-size: 1.18rem; letter-spacing: -0.025em; color: var(--text); line-height: 1; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; border-radius: 4px; }
.nav-active { color: var(--steel) !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.75rem; border-radius: var(--radius-md);
  font-size: 0.9rem; font-weight: 600; font-family: inherit;
  text-decoration: none; cursor: pointer; position: relative;
  transition: background 0.18s var(--ease-out), transform 0.12s var(--ease-out), border-color 0.18s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.btn:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; }
.btn-primary { background: var(--steel); color: var(--text); border: none; }
.btn-primary:hover { background: oklch(73% 0.15 260); transform: translateY(-2px); box-shadow: 0 6px 20px oklch(68% 0.15 260 / 0.28); }
.btn-primary:active { transform: scale(0.97); transition-duration: 0.06s; }
.btn-sm { padding: 0.45rem 1.1rem; font-size: 0.8rem; }

/* ---- Blog Content ---- */
.blog-container { max-width: 760px; margin: 0 auto; padding: 7rem 1.5rem 4rem; position: relative; z-index: 1; }

.blog-header { text-align: center; margin-bottom: 3.5rem; }
.blog-header h1 { margin-bottom: 0.75rem; }
.blog-header p { color: var(--text-3); font-size: 1rem; max-width: 500px; margin: 0 auto; }

.blog-list { display: flex; flex-direction: column; gap: 1.5rem; }

.blog-card {
  background: var(--ash-200);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  transition: border-color 0.2s, background 0.2s;
}
.blog-card:hover { border-color: var(--border-strong); background: var(--ash-300); }
.blog-card-title { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.4rem; line-height: 1.35; }
.blog-card-title a { color: var(--text); text-decoration: none; transition: color 0.2s; }
.blog-card-title a:hover { color: var(--steel); }
.blog-card-date { font-size: 0.8rem; color: var(--text-4); margin-bottom: 0.6rem; }
.blog-card-excerpt { font-size: 0.9rem; color: var(--text-3); line-height: 1.55; }

/* ---- Blog Post Detail ---- */
.blog-back {
  display: inline-block; color: var(--steel); text-decoration: none;
  font-size: 0.85rem; font-weight: 500; margin-bottom: 1.5rem; transition: opacity 0.2s;
}
.blog-back:hover { opacity: 0.75; }

.blog-post h2 { margin-top: 2rem; margin-bottom: 0.6rem; }
.blog-post h3 { font-size: 1.1rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.blog-post p { font-size: 0.95rem; color: var(--text-2); line-height: 1.7; margin-bottom: 1rem; }
.blog-post ul, .blog-post ol { margin: 0.75rem 0 1rem 1.5rem; color: var(--text-2); }
.blog-post li { margin-bottom: 0.4rem; line-height: 1.55; }
.blog-post strong { color: var(--text); font-weight: 600; }
.blog-post-date { font-size: 0.85rem; color: var(--text-4); margin-bottom: 1.5rem; }

/* ---- Empty State ---- */
.blog-empty { text-align: center; padding: 4rem 0; }
.blog-empty-icon { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.4; }
.blog-empty h3 { font-size: 1.15rem; color: var(--text-3); font-weight: 500; }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--border-subtle); padding: 3.5rem 0 2.5rem; position: relative; z-index: 1; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3rem; }
.footer-brand { display: flex; align-items: center; gap: 0.35rem; margin-bottom: 0.6rem; }
.footer-brand .brand-mark { height: 26px; opacity: 0.7; }
.footer-brand .brand-wordmark { font-size: 1rem; opacity: 0.7; }
.footer p { font-size: 0.85rem; color: var(--text-3); line-height: 1.5; }
.footer-col { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); font-weight: 600; margin-bottom: 0.45rem; }
.footer-col a { color: var(--text-2); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--border-subtle); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; font-size: 0.78rem; color: var(--text-4); }

/* ---- Mobile ---- */
@media (max-width: 768px) {
  .nav-inner { display: grid; grid-template-columns: 1fr; padding: 0.62rem 1rem; gap: 0.55rem; }
  .nav-links { width: 100%; gap: 0.75rem; flex: 0 1 auto; overflow-x: auto; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { flex: 0 0 auto; }
  .nav-links .btn-sm { min-height: 40px; font-size: 0.82rem; padding: 0.5rem 0.95rem; white-space: nowrap; }
  .blog-container { padding: 5.5rem 1rem 3rem; }
  .blog-card { padding: 1.25rem 1.25rem; }
  .footer-grid { flex-direction: column; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.35rem; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
