:root {
  --bg:       #f0f4f8;
  --surface:  #ffffff;
  --border:   #e2e8f0;
  --text:     #1a202c;
  --muted:    #718096;
  --accent:   #2b7fc1;
  --accent-h: #1d5f96;
  --shadow:   0 2px 8px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --radius:   10px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── HEADER ── */
.site-header {
  background: linear-gradient(155deg, #3a8fd4 0%, #60aee0 35%, #90caea 65%, #c2e2f5 100%);
  padding: 40px 24px 44px;
  text-align: center;
}

.site-title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: #ffffff;
  text-decoration: none;
  display: inline-block;
  text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.site-title:hover { opacity: 0.9; }

/* ── CARD GRID ── */
.card-grid {
  max-width: 1100px;
  margin: 36px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  flex: 1;
}

/* ── CARD ── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1), 0 2px 6px rgba(0,0,0,0.06);
}

/* ── CARD IMAGE ── */
.card-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e8edf2;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.card:hover .card-img { transform: scale(1.03); }

/* ── CARD BODY ── */
.card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-headline {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.3px;
}

.card-tagline {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

/* ── SHOP BUTTON ── */
.shop-btn {
  display: block;
  margin-top: 12px;
  padding: 10px 16px;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  text-align: center;
  letter-spacing: 0.1px;
  transition: background 0.15s;
}

.shop-btn:hover { background: var(--accent-h); }

/* ── PAGINATION ── */
.pagination {
  max-width: 1100px;
  margin: 32px auto 48px;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
}

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

.pagination a:hover { text-decoration: underline; }

/* ── FOOTER ── */
.site-footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-tagline {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.footer-meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.footer-meta a { color: var(--muted); }
.footer-meta a:hover { color: var(--text); }

.footer-disclosure {
  display: block;
  margin-top: 2px;
  font-size: 11px;
}

/* ── KOENIG EDITOR ── */
.kg-width-wide { width: 85vw; }
.kg-width-full { width: 100vw; margin-left: calc(50% - 50vw); }

.kg-gallery-container { display: flex; flex-direction: column; }
.kg-gallery-row { display: flex; flex-direction: row; justify-content: center; gap: 4px; margin-bottom: 4px; }
.kg-gallery-image { flex: 1; }
.kg-gallery-image img { display: block; width: 100%; height: 100%; object-fit: cover; }

.kg-bookmark-card { width: 100%; }
.kg-bookmark-container { display: flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; text-decoration: none; color: inherit; }
.kg-bookmark-content { flex: 1; padding: 16px; }
.kg-bookmark-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.kg-bookmark-description { font-size: 13px; color: var(--muted); }
.kg-bookmark-metadata { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.kg-bookmark-icon { width: 16px; height: 16px; }
.kg-bookmark-author { font-weight: 500; }
.kg-bookmark-publisher {}
.kg-bookmark-thumbnail { width: 140px; flex-shrink: 0; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .site-title { font-size: 32px; }
  .site-header { padding: 28px 20px 32px; }
  .card-grid { grid-template-columns: 1fr; gap: 16px; padding: 0 14px; }
  .card-headline { font-size: 16px; }
}
