@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

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

:root {
  --blue:    #0078d7;
  --green:   #00b050;
  --orange:  #e05c00;
  --purple:  #6b0ac9;
  --teal:    #008b8b;
  --red:     #c0392b;
  --white:   #ffffff;
  --offwhite:#f0f4f8;
  --dark:    #1a1a2e;
  --text:    #1c1c2e;
  --muted:   #5a6070;
}

html {
  background: var(--offwhite);
}

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: var(--offwhite);
  color: var(--text);
  min-height: 100vh;
}

/* ── Header / Hero ── */
.site-header {
  background: var(--blue);
  color: var(--white);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: rgba(255,255,255,0.07);
  border-radius: 0;
  transform: rotate(15deg);
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: 100px;
  width: 160px;
  height: 160px;
  background: rgba(255,255,255,0.05);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
  position: relative;
  z-index: 1;
}

.site-header h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.site-header p.tagline {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

/* ── Nav ── */
nav.site-nav {
  display: flex;
  gap: 0;
}

nav.site-nav a {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  margin-right: 2px;
  transition: background 0.15s;
}

nav.site-nav a:hover {
  background: rgba(255,255,255,0.3);
}

/* ── Accent strip ── */
.accent-strip {
  display: flex;
  height: 6px;
}
.accent-strip span {
  flex: 1;
}
.accent-strip span:nth-child(1) { background: var(--green); }
.accent-strip span:nth-child(2) { background: var(--orange); }
.accent-strip span:nth-child(3) { background: var(--purple); }
.accent-strip span:nth-child(4) { background: var(--teal); }
.accent-strip span:nth-child(5) { background: var(--red); }

/* ── Main layout ── */
.site-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--blue);
  opacity: 0.2;
}

/* ── Post grid ── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  list-style: none;
}

.post-grid li:first-child {
  grid-column: 1 / -1;
}

.post-card {
  background: var(--white);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.post-card::before {
  content: '';
  display: block;
  height: 5px;
  width: 100%;
}

.post-grid li:nth-child(1) .post-card::before { background: var(--blue); }
.post-grid li:nth-child(2) .post-card::before { background: var(--green); }
.post-grid li:nth-child(3) .post-card::before { background: var(--orange); }
.post-grid li:nth-child(4) .post-card::before { background: var(--purple); }
.post-grid li:nth-child(5) .post-card::before { background: var(--teal); }

.card-body {
  padding: 1.25rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card .post-meta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.post-card .badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  color: var(--white);
  margin-right: 0.4rem;
}

.post-grid li:nth-child(1) .badge { background: var(--blue); }
.post-grid li:nth-child(2) .badge { background: var(--green); }
.post-grid li:nth-child(3) .badge { background: var(--orange); }
.post-grid li:nth-child(4) .badge { background: var(--purple); }
.post-grid li:nth-child(5) .badge { background: var(--teal); }

.post-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.65rem;
  letter-spacing: -0.3px;
}

.post-grid li:first-child .post-card h2 {
  font-size: 1.8rem;
}

.post-card h2 a {
  text-decoration: none;
  color: var(--text);
}
.post-card h2 a:hover {
  color: var(--blue);
}

.post-card .post-excerpt {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
  flex: 1;
  margin-bottom: 1.1rem;
}

.post-grid li:first-child .post-excerpt {
  font-size: 1rem;
}

.read-more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  padding: 0.45rem 1rem;
  transition: opacity 0.15s;
}

.read-more:hover { opacity: 0.85; }

.post-grid li:nth-child(1) .read-more { background: var(--blue); }
.post-grid li:nth-child(2) .read-more { background: var(--green); }
.post-grid li:nth-child(3) .read-more { background: var(--orange); }
.post-grid li:nth-child(4) .read-more { background: var(--purple); }
.post-grid li:nth-child(5) .read-more { background: var(--teal); }

/* ── Footer ── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.5);
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 1.5rem 1rem;
}
.site-footer a {
  color: rgba(255,255,255,0.75);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .site-header h1 { font-size: 2rem; }
  .post-grid li:first-child { grid-column: auto; }
  .post-grid li:first-child .post-card h2 { font-size: 1.25rem; }
}