@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&display=swap');

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

:root {
  --black:  #000000;
  --blue:   #0FE7FF;
  --white:  #FFFFFF;
  --teal:   #05253b;
  --gray:   #111111;
  --muted:  #555555;
  --border: #1a1a1a;
  --font:   'IBM Plex Sans', system-ui, sans-serif;
}

html { font-family: var(--font); background: var(--black); color: var(--white); scroll-behavior: smooth; }

body { min-height: 100vh; display: flex; flex-direction: column; }

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

img { max-width: 100%; display: block; }

/* ── Layout ── */
.container { max-width: 760px; margin: 0 auto; padding: 0 1.25rem; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* ── Header ── */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  position: sticky; top: 0;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(8px);
  z-index: 100;
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
}
.site-logo {
  display: flex; align-items: center; gap: .75rem;
  font-weight: 700; font-size: .9rem; letter-spacing: .04em;
  color: var(--white); text-decoration: none;
}
.site-logo span { color: var(--blue); }
.site-nav { display: flex; gap: 1.5rem; }
.site-nav a { font-size: .85rem; color: #888; font-weight: 400; }
.site-nav a:hover { color: var(--white); text-decoration: none; }

/* ── Hero ── */
.hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}
.hero-label {
  font-size: .72rem; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 1rem; display: block;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700; line-height: 1.1;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.1rem; color: #999; line-height: 1.6;
  max-width: 540px; font-weight: 300;
}

/* ── Post grid ── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 3rem 0;
}
.post-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  background: var(--gray);
  transition: border-color .15s, transform .15s;
  display: flex; flex-direction: column;
}
.post-card:hover { border-color: var(--blue); transform: translateY(-2px); text-decoration: none; }
.post-card-pillar {
  font-size: .68rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue); margin-bottom: .6rem;
}
.post-card h2 { font-size: 1.05rem; font-weight: 600; line-height: 1.3; margin-bottom: .5rem; color: var(--white); }
.post-card p { font-size: .85rem; color: #888; line-height: 1.5; font-weight: 300; flex: 1; }
.post-card-meta { margin-top: 1rem; font-size: .75rem; color: var(--muted); }

/* ── Article ── */
.article-header { padding: 4rem 0 2.5rem; border-bottom: 1px solid var(--border); }
.article-header .pillar {
  font-size: .72rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue); margin-bottom: .75rem; display: block;
}
.article-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700; line-height: 1.15; margin-bottom: 1rem;
}
.article-header .meta { font-size: .8rem; color: var(--muted); }
.article-description {
  font-size: 1.1rem; color: #bbb; line-height: 1.6;
  font-weight: 300; margin-top: 1rem;
}

.article-body {
  padding: 2.5rem 0 4rem;
  font-size: 1rem; line-height: 1.8; color: #ddd; font-weight: 300;
}
.article-body h2 {
  font-size: 1.4rem; font-weight: 600; color: var(--white);
  margin: 2.5rem 0 .75rem; line-height: 1.2;
}
.article-body h3 {
  font-size: 1.1rem; font-weight: 600; color: var(--white);
  margin: 2rem 0 .5rem;
}
.article-body p { margin-bottom: 1.25rem; }
.article-body ul, .article-body ol {
  padding-left: 1.5rem; margin-bottom: 1.25rem;
}
.article-body li { margin-bottom: .4rem; }
.article-body a { color: var(--blue); }
.article-body strong { color: var(--white); font-weight: 600; }
.article-body blockquote {
  border-left: 3px solid var(--blue);
  padding: .5rem 0 .5rem 1.25rem;
  margin: 1.5rem 0;
  color: #bbb; font-style: italic;
}

/* ── CTA bar ── */
.cta-bar {
  background: var(--teal);
  border: 1px solid #0a3a5a;
  border-radius: 10px;
  padding: 2rem 2.5rem;
  margin: 2rem 0 3rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.cta-bar p { font-size: 1rem; font-weight: 600; color: var(--white); }
.cta-bar a {
  background: var(--blue); color: var(--black);
  font-weight: 700; font-size: .85rem; letter-spacing: .04em;
  padding: .6rem 1.25rem; border-radius: 6px;
  white-space: nowrap; text-decoration: none;
}
.cta-bar a:hover { opacity: .85; }

/* ── Footer ── */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  font-size: .8rem; color: var(--muted);
  text-align: center;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--white); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .cta-bar { flex-direction: column; text-align: center; }
}

/* ── Hero image ── */
.hero-image {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── Inline blog images ── */
.article-body img {
  width: 100%;
  border-radius: 8px;
  margin: 2rem 0;
  display: block;
  border: 1px solid var(--border);
}
.article-body img + em,
.article-body img + p > em:only-child {
  display: block;
  text-align: center;
  font-size: .78rem;
  color: var(--muted);
  margin-top: -.75rem;
  margin-bottom: 1.5rem;
}
