:root {
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --link: #0b5fff;
  --max: 760px;
}

* { box-sizing: border-box; }
html, body { padding: 0; margin: 0; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.nav { border-bottom: 1px solid var(--border); background: #fff; }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-weight: 700; color: var(--text); }
.nav-links { display: flex; gap: 14px; }
.nav-links a { color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* Miguel-style cover header */
.site-header-container {
  /* full-bleed: break out of the centered .container */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 0;
  margin-bottom: 18px;

  border-bottom: 1px solid var(--border);
  background-color: #0b1220;
  background-size: cover;
  background-position: center;
  border-radius: 0;
  overflow: hidden;
}
.scrim {
  /* Tall hero: use min-height (better true centering than huge padding) */
  min-height: 520px;
  padding: 0 18px;
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0.40),
    rgba(2, 6, 23, 0.70)
  );
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-header {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}
.site-header .title {
  margin: 0;
  color: #fff;
  /* Big H1-style hero, responsive */
  font-size: clamp(2.6rem, 3.6vw, 4.6rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  white-space: nowrap;
}
.site-header .subtitle {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  font-size: clamp(1.2rem, 1.6vw, 1.9rem);
}

.section { padding: 18px 0 52px; }
.section-title { margin: 0 0 14px; font-size: 1.1rem; }

.post-list { display: flex; flex-direction: column; gap: 18px; }
.post-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.post-item-title { margin: 0; font-size: 1.15rem; line-height: 1.35; }
.post-item-title a { color: var(--text); }
.post-item-meta { margin-top: 6px; font-size: 0.9rem; color: var(--muted); }
.post-item-excerpt { margin: 10px 0 0; color: var(--muted); }

.more { margin-top: 18px; }

.page-header { padding: 34px 0 12px; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.page-title { margin: 0; font-size: 1.75rem; letter-spacing: -0.02em; }

.post-header { padding: 34px 0 12px; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.post-title { margin: 0; font-size: 2rem; letter-spacing: -0.02em; line-height: 1.2; }
.post-meta { margin: 10px 0 0; color: var(--muted); font-size: 0.95rem; }
.sep { margin: 0 6px; }
.tag { display: inline-block; padding: 2px 8px; border: 1px solid var(--border); border-radius: 999px; font-size: 0.85rem; color: var(--muted); }

.prose p { margin: 14px 0; }
.prose img { max-width: 100%; height: auto; }
.prose pre { overflow: auto; border: 1px solid var(--border); padding: 12px; border-radius: 10px; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

.footer { border-top: 1px solid var(--border); padding: 18px 0; color: var(--muted); font-size: 0.95rem; }
.footer-inner { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }
.footer a { color: var(--muted); }

@media (max-width: 560px) {
  .nav-inner { flex-direction: column; align-items: flex-start; }
  /* Keep it tall but not overwhelming on mobile */
  .scrim { min-height: 360px; padding: 0 16px; }
  .site-header .title { font-size: 2.4rem; white-space: normal; }
  .site-header .subtitle { font-size: 1.2rem; }
}


