:root {
  --primary: #7d44a8;
  --primary-dark: #4f2b6a;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg-soft: #f7f4fa;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; }
.logo img { width: 36px; height: 36px; border-radius: 8px; }
.visit { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--primary); }
.visit:hover { opacity: 0.8; }

main { padding: 40px 0 72px; min-height: 60vh; }
.intro { text-align: center; margin: 8px 0 40px; }
.eyebrow { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; margin: 0 0 8px; }
.intro h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.2; margin: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color 0.15s, box-shadow 0.15s; }
.card:hover { border-color: var(--primary); box-shadow: 0 8px 24px rgba(79, 43, 106, 0.1); }
.card-img { aspect-ratio: 16 / 9; background: var(--bg-soft); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 18px 20px 22px; }
.card-body h2 { font-size: 19px; line-height: 1.35; margin: 6px 0 8px; }
.card-body p { margin: 0; color: var(--muted); font-size: 15px; }
.date { color: var(--muted); font-size: 14px; }
.pager { display: flex; justify-content: center; gap: 24px; margin-top: 40px; }
.pager a { color: var(--primary); font-weight: 600; text-decoration: none; }

.back { display: inline-block; color: var(--primary); text-decoration: none; font-weight: 600; margin-bottom: 20px; }
.narrow > h1 { font-size: clamp(28px, 4.2vw, 42px); line-height: 1.2; margin: 0 0 10px; }
.hero { margin: 24px 0 32px; }
.hero img { width: 100%; border-radius: 16px; display: block; }

.prose { font-size: 17px; }
.prose h2 { font-size: 26px; line-height: 1.3; margin: 2em 0 0.6em; }
.prose h3 { font-size: 21px; margin: 1.6em 0 0.5em; }
.prose a { color: var(--primary); }
.prose a:hover { opacity: 0.8; }
.prose img { border-radius: 12px; }
.prose code { background: var(--bg-soft); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.92em; }
.prose pre { background: #1f1630; color: #f3eefa; padding: 16px; border-radius: 12px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); }
.prose blockquote { margin: 1.5em 0; padding: 0.2em 1em; border-left: 4px solid var(--primary); color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 12px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--primary); }
.site-footer p { margin: 0; }
