/* Piqueaboo — shared stylesheet
   Based on Matty's design system */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500&display=swap');

:root {
  --canvas: #F2F2F2;
  --surface: #FAFAFA;
  --ink: #1A1D23;
  --muted: #6B7280;
  --accent: #11CEEE;
  --accent-step: #0A9AB3;
  --positive: #CEEE11;
  --positive-step: #8AAA05;
  --negative: #EE11CE;
  --negative-step: #B8009E;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 400;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 16px 0;
}

p {
  margin: 0 0 16px 0;
}

.muted {
  color: var(--muted);
  font-weight: 300;
}

a {
  color: var(--accent-step);
  text-decoration: none;
}

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

/* ---------- Top nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid #E5E5E5;
}

.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.site-title:hover {
  text-decoration: none;
  color: var(--accent-step);
}

.site-tagline {
  display: block;
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--ink);
  font-weight: 400;
  font-size: 15px;
}

.nav-links a.active {
  color: var(--accent-step);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ---------- Main content ---------- */

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px;
}

/* ---------- Cards (article listing) ---------- */

.card {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 24px 24px 24px 21px;
  margin-bottom: 24px;
}

.card h2 {
  margin-bottom: 8px;
  font-size: 20px;
}

.card h2 a {
  color: var(--ink);
}

.card h2 a:hover {
  color: var(--accent-step);
}

.card .meta {
  font-size: 13px;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 12px;
}

.card p {
  margin-bottom: 0;
  color: var(--ink);
}

/* ---------- Footer ---------- */

.site-footer {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 24px 48px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 300;
}

.site-footer p {
  margin: 0;
}

.footer-logo {
  height: 22px;
  width: auto;
  display: block;
  flex: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .nav-links {
    gap: 24px;
  }
}
