/* ============================================
   wag.dk — Clean Minimal Style
   ============================================ */

:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-hover: #f5f5f4;
  --text: #1c1917;
  --text-muted: #78716c;
  --text-faint: #a8a29e;
  --border: #e7e5e4;
  --border-light: #f5f5f4;

  --accent-tech: #0369a1;
  --accent-tech-bg: #f0f9ff;
  --accent-geek: #7c3aed;
  --accent-geek-bg: #faf5ff;
  --accent-food: #92400e;
  --accent-food-bg: #fffbeb;
  --accent-apps: #15803d;
  --accent-apps-bg: #f0fdf4;

  --font-main: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', ui-monospace, SFMono-Regular, 'Cascadia Code', 'Fira Code', Menlo, Monaco, Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  background: rgba(250, 250, 249, 0.92);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  z-index: 100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.2s;
}

.logo:hover { opacity: 0.7; }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 450;
  transition: color 0.2s;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--text);
  transition: width 0.25s ease;
}

.nav-links a:hover::after { width: 100%; }

/* ============================================
   HERO
   ============================================ */

.hero {
  padding: 5rem 0 3.5rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 300;
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 400;
}

.category-nav {
  display: flex;
  gap: 0.6rem;
  margin-top: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.category-pill {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
}

.category-pill:hover {
  border-color: var(--text-faint);
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

/* ============================================
   SECTIONS
   ============================================ */

.section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-faint);
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-align: center;
}

.section-title-left {
  text-align: left;
}

/* ============================================
   POST GRID
   ============================================ */

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow);
}

.post-card:hover {
  border-color: var(--text-faint);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Featured card spans full width */
.post-card.featured {
  grid-column: 1 / -1;
  flex-direction: row;
  gap: 2.5rem;
  align-items: center;
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.post-card.featured .post-content { flex: 1; }

.post-card.featured .post-visual {
  width: 260px;
  height: 170px;
  background: linear-gradient(135deg, #d6d3d1 0%, #a8a29e 100%);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--surface);
}

.post-meta {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-faint);
  flex-wrap: wrap;
}

.post-category {
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-category.tech { background: var(--accent-tech-bg); color: var(--accent-tech); }
.post-category.geek { background: var(--accent-geek-bg); color: var(--accent-geek); }
.post-category.food { background: var(--accent-food-bg); color: var(--accent-food); }
.post-category.apps { background: var(--accent-apps-bg); color: var(--accent-apps); }

.post-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.35;
  color: var(--text);
}

.post-excerpt {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  flex-grow: 1;
}

.post-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: 1.1rem;
  display: block;
}

/* ============================================
   POST PAGE
   ============================================ */

.post-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
  text-align: center;
}

.post-header .post-meta {
  justify-content: center;
  margin-bottom: 1rem;
}

.post-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.post-header .post-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.post-tags {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.post-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  background: var(--border-light);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}

.post-body {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  padding-bottom: 4rem;
}

.post-body h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.post-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

.post-body p {
  margin-bottom: 1.4rem;
  color: var(--text-muted);
}

.post-body p strong {
  color: var(--text);
  font-weight: 600;
}

.post-body ul, .post-body ol {
  margin-bottom: 1.4rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.post-body li {
  margin-bottom: 0.5rem;
}

.post-body code {
  background: var(--border-light);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--accent-tech);
}

.post-body pre {
  background: #292524;
  color: #e7e5e4;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 1.5rem 0;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.6;
}

.post-body pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.post-body blockquote {
  border-left: 3px solid var(--border);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.post-body a {
  color: var(--accent-tech);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.post-body a:hover {
  border-bottom-color: var(--accent-tech);
}

/* ============================================
   CATEGORY PAGE
   ============================================ */

.category-header {
  padding: 3rem 0 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.category-header h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.category-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.subcategory-list {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 2rem;
  color: var(--text-faint);
  font-size: 0.85rem;
  text-align: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .post-card.featured { flex-direction: column; }
  .post-card.featured .post-visual { width: 100%; height: 160px; }
  .post-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .post-body { font-size: 1rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.9rem; }
  .post-header h1 { font-size: 1.6rem; }
}
