/* Notion Design System - slow-travel blog */
:root {
  --blog-font: 'Inter', 'Noto Sans JP', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --blog-bg: #f7f7f5;
  --blog-surface: #ffffff;
  --blog-surface-soft: #fbfbfa;
  --blog-text: #1f2328;
  --blog-muted: #6b7280;
  --blog-border: rgba(31, 35, 40, 0.10);
  --blog-accent: var(--primary-color, #667eea);
  --blog-accent-soft: rgba(102, 126, 234, 0.10);
  --blog-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.08);
}

body {
  font-family: var(--blog-font);
  background: var(--blog-bg);
  color: var(--blog-text);
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--blog-text);
  color: #fff;
  transition: top 0.2s ease;
}

.skip-link:focus { top: 16px; }

.blog-main {
  padding: 0 0 64px;
  background:
    radial-gradient(circle at top left, rgba(102, 126, 234, 0.12), transparent 34rem),
    var(--blog-bg);
}

.blog-hero {
  padding: 64px 0 40px;
}

.blog-hero .container {
  max-width: 1120px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 6px 10px;
  border: 1px solid var(--blog-border);
  border-radius: 9999px;
  background: var(--blog-surface);
  color: var(--blog-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-hero h1 {
  margin: 0 0 14px;
  color: var(--blog-text);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.blog-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--blog-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
  max-width: 1120px;
}

.blog-content-area,
.blog-article {
  min-width: 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.blog-card,
.notion-card,
.sidebar-card {
  border: 1px solid var(--blog-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.blog-card {
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(102, 126, 234, 0.26);
  box-shadow: var(--blog-shadow);
}

.card-image-link {
  display: block;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--blog-accent-soft), rgba(118, 75, 162, 0.12));
  overflow: hidden;
}

.blog-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.24s ease;
}

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

.card-body {
  padding: 18px;
}

.card-body time,
.post-meta {
  color: var(--blog-muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.card-body h2 {
  margin: 8px 0 10px;
  font-size: 1.05rem;
  line-height: 1.45;
}

.card-body h2 a,
.read-more,
.sidebar-list a {
  color: var(--blog-text);
  text-decoration: none;
}

.card-body h2 a:hover,
.sidebar-list a:hover { color: var(--blog-accent); }

.card-body p {
  margin: 0 0 14px;
  color: var(--blog-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blog-accent);
  font-weight: 700;
  font-size: 0.9rem;
}

.read-more::after { content: '→'; }

.blog-sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 88px;
}

.sidebar-card {
  padding: 18px;
}

.sidebar-card h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.sidebar-card p {
  margin: 0;
  color: var(--blog-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.ad-card {
  background: linear-gradient(135deg, #ffffff, var(--blog-accent-soft));
}

.ad-label {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 9999px;
  background: var(--blog-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-list li + li {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--blog-border);
}

.blog-article {
  padding: clamp(24px, 4vw, 44px);
}

.article-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--blog-border);
}

.article-header h1,
.article-title {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.blog-hero-image {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--blog-border);
  margin: 0 0 28px;
}

.article-content {
  color: var(--blog-text);
  font-size: 1.02rem;
  line-height: 1.9;
}

.article-content p { margin: 0 0 1.25em; }

.article-content h2 {
  margin: 2em 0 0.7em;
  padding-top: 0.5em;
  font-size: 1.45rem;
  line-height: 1.35;
}

.article-content h3 {
  margin: 1.6em 0 0.6em;
  font-size: 1.18rem;
}

.article-content a {
  color: var(--blog-accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.share-buttons {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--blog-border);
}

.share-button {
  display: inline-flex;
  margin: 8px 8px 0 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--blog-accent);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
}

.empty-state {
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
  .blog-hero {
    padding: 40px 0 28px;
  }

  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }
}
