:root {
  --blue:       #0076BF;
  --blue-mid:   #0094D2;
  --blue-dark:  #1766AA;
  --green:      #76BC17;
  --cream:      #FFFBFA;
  --white:      #FFFFFF;
  --grey-text:  #6B7A8D;
  --grey-light: #D6D6D8;
  --font-display: 'League Spartan', Arial, sans-serif;
  --font-body:    'DM Sans', Arial, sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: #222;
  line-height: 1.7;
}

/* ── NAV ── */
nav {
  background: var(--white);
  border-bottom: 3px solid var(--green);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-logo .gribbe { color: var(--blue-dark); }
.nav-logo .stad   { color: var(--green); }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-text);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--blue); }

/* ── HERO ── */
.hero {
  background: var(--blue-dark);
  color: var(--white);
  padding: 80px 40px 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -140px; right: -80px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; right: 60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(118,188,23,0.07);
  pointer-events: none;
}
.hero.green-accent {
  background: var(--green);
}
.hero.green-accent::after {
  background: rgba(23,102,170,0.07);
}
.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero.green-accent .eyebrow {
  color: rgba(255,255,255,0.7);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero h1 em {
  color: var(--green);
  font-style: normal;
}
.hero.green-accent h1 em {
  color: var(--white);
}
.hero-lead {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.82);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 32px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 11px 24px;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.85; }
.btn-primary { background: var(--green); color: var(--white); }
.btn-blue    { background: var(--blue); color: var(--white); }
.btn-outline { border: 2px solid rgba(255,255,255,0.35); color: var(--white); }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--blue);
  padding: 20px 40px;
}
.stats-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.stats-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
}
.stats-row-label {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  min-width: 60px;
}
.stats-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin: 0;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}
.stat-value span { color: var(--green); }
.stat-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* ── SECTION ── */
.section {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 40px;
}
.section-label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-text);
  margin-bottom: 8px;
}
.section h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--grey-light);
}
.section h2.green { color: var(--green); }
.section-intro {
  font-size: 1rem;
  color: var(--grey-text);
  margin-bottom: 32px;
  max-width: 560px;
}

/* ── CATEGORY CARDS ── */
.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 0;
}
@media (max-width: 580px) { .category-grid { grid-template-columns: 1fr; } }
.cat-card {
  background: var(--white);
  border-radius: 14px;
  padding: 28px 24px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(0,0,0,0.05);
}
.cat-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.cat-icon.blue  { background: #e8f4fb; }
.cat-icon.green { background: #edf7e0; }
.cat-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.cat-card.blue h3  { color: var(--blue); }
.cat-card.green h3 { color: var(--green); }
.cat-card p {
  font-size: 0.9rem;
  color: var(--grey-text);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}
.cat-link {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cat-link.blue  { color: var(--blue); }
.cat-link.green { color: var(--green); }
.cat-link::after { content: '→'; }

/* ── DIVIDER ── */
hr.section-divider {
  border: none;
  border-top: 1px solid var(--grey-light);
  margin: 0 40px;
}

/* ── POST LIST ── */
.post-list { display: flex; flex-direction: column; gap: 0; }
.post-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--grey-light);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.post-item:last-child { border-bottom: none; }
.post-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 2px;
}
.post-tag.tech    { background: #e8f4fb; color: var(--blue); }
.post-tag.running { background: #edf7e0; color: var(--green); }
.post-item h4 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: #111;
  margin: 0;
}
.post-item p {
  font-size: 0.88rem;
  color: var(--grey-text);
  margin: 0;
  line-height: 1.55;
}
.post-meta {
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--grey-light);
  letter-spacing: 0.05em;
}
.read-more {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.read-more:hover { text-decoration: underline; }
.read-more.green { color: var(--green); }

/* ── PB CARD ── */
.pb-strip {
  background: var(--white);
  border-radius: 14px;
  padding: 24px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.pb-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-text);
  margin-bottom: 4px;
}
.pb-time {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.03em;
  line-height: 1;
}
.pb-date {
  font-size: 0.8rem;
  color: var(--grey-text);
  margin-top: 4px;
}
.pb-divider {
  width: 1px;
  height: 48px;
  background: var(--grey-light);
  flex-shrink: 0;
}
.pb-races { flex: 1; min-width: 200px; }
.pb-races-title {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-text);
  margin-bottom: 8px;
}
.race-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--grey-light);
  font-size: 0.85rem;
}
.race-row:last-child { border-bottom: none; }
.race-name  { color: #222; font-weight: 500; }
.race-time  { font-family: var(--font-display); font-weight: 700; color: var(--grey-text); font-size: 0.82rem; }
.race-badge {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  background: var(--grey-light);
  color: #555;
  border-radius: 10px;
  padding: 2px 7px;
  margin-left: 6px;
}

/* ── ARTICLE CARDS ── */
.article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 580px) { .article-grid { grid-template-columns: 1fr; } }

.article-card {
  background: var(--white);
  border-radius: 14px;
  padding: 24px 24px 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
  border-top: 4px solid var(--blue);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.article-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.article-card-tag {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  background: #e8f4fb;
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  align-self: flex-start;
}
.article-card h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  color: #111;
  line-height: 1.3;
  margin: 0;
}
.article-card p {
  font-size: 0.88rem;
  color: var(--grey-text);
  line-height: 1.6;
  flex: 1;
  margin: 0;
}
.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.article-card-date {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--grey-light);
}
.article-card-arrow {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue);
}

/* ── ARTICLE / PROSE ── */
.article-header {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 40px 32px;
}
.article-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 40px 64px;
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--blue);
  margin: 36px 0 12px;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #111;
  margin: 28px 0 8px;
}
.article-body p { margin-bottom: 18px; font-size: 0.97rem; line-height: 1.78; }
.article-body ul, .article-body ol {
  margin: 0 0 18px 24px;
  font-size: 0.97rem;
  line-height: 1.78;
}
.article-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  color: var(--white);
}
.article-meta {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-top: 12px;
}

/* ── SERVICES ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}
.service-card {
  background: var(--white);
  border-radius: 10px;
  border-top: 4px solid var(--blue);
  padding: 18px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.service-card:nth-child(2) { border-top-color: var(--blue-mid); }
.service-card:nth-child(3) { border-top-color: var(--green); }
.service-card:nth-child(4) { border-top-color: var(--blue); }
.service-icon { font-size: 1.4rem; margin-bottom: 10px; }
.service-card h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}
.service-card:nth-child(3) h4 { color: var(--green); }
.service-card p { font-size: 0.82rem; color: var(--grey-text); line-height: 1.55; }

/* ── CALLOUT ── */
.callout {
  border-left: 4px solid var(--green);
  background: var(--white);
  padding: 18px 22px;
  border-radius: 0 8px 8px 0;
  margin: 28px 0;
  font-style: italic;
  color: #333;
  font-size: 0.97rem;
  line-height: 1.65;
}
.callout strong { font-style: normal; color: var(--blue); font-weight: 700; }
.callout.blue-accent { border-left-color: var(--blue); }
.callout.blue-accent strong { color: var(--green); }

/* ── FOOTER ── */
footer {
  background: var(--blue-dark);
  color: var(--white);
  padding: 40px 40px 32px;
  text-align: center;
}
.footer-bar {
  height: 4px;
  background: var(--green);
  width: 56px;
  margin: 0 auto 24px;
  border-radius: 2px;
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.footer-logo .gribbe { color: var(--white); }
.footer-logo .stad   { color: var(--green); }
.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
}
.footer-links a:hover { color: var(--white); }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hero { padding: 52px 20px 48px; }
  .stats-bar { padding: 14px 20px; }
  .stats-inner { gap: 24px; }
  .section { padding: 48px 20px; }
  hr.section-divider { margin: 0 20px; }
  .pb-strip { flex-direction: column; align-items: flex-start; }
  .pb-divider { width: 100%; height: 1px; }
  footer { padding: 32px 20px; }
  .article-header { padding: 32px 20px 20px; }
  .article-body { padding: 0 20px 48px; }
}
