@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Merriweather:ital,wght@0,300;0,400;0,700;1,300&family=JetBrains+Mono:wght@400;500&display=swap');


/* ============================================
   Pigeon.log — Design System
   Clean, minimal, content-first
   ============================================ */
:root {
  /* Colors */
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --text-primary: #1A1A1A;
  --text-secondary: #555555;
  --text-muted: #999999;
  --accent: #ada5a5;
  --accent-hover: #E64400;
  --border: #EAEAEA;
  --border-light: #F3F3F3;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Merriweather', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.12);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.8, 0.25, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
}
/* ---- Reset ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
/* ---- Layout ---- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
}
/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}
.header-blur {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 140px;
  z-index: 99;
  pointer-events: none;
}
.header-blur-layer {
  position: absolute;
  inset: 0;
}
.header-blur-layer:nth-child(1) {
  -webkit-backdrop-filter: blur(0.5px);
  backdrop-filter: blur(0.5px);
  -webkit-mask: linear-gradient(to bottom, black 0%, black 100%, transparent 100%);
  mask: linear-gradient(to bottom, black 0%, black 100%, transparent 100%);
}
.header-blur-layer:nth-child(2) {
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  -webkit-mask: linear-gradient(to bottom, black 0%, black 75%, transparent 90%);
  mask: linear-gradient(to bottom, black 0%, black 75%, transparent 90%);
}
.header-blur-layer:nth-child(3) {
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  -webkit-mask: linear-gradient(to bottom, black 0%, black 60%, transparent 75%);
  mask: linear-gradient(to bottom, black 0%, black 60%, transparent 75%);
}
.header-blur-layer:nth-child(4) {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  -webkit-mask: linear-gradient(to bottom, black 0%, black 45%, transparent 60%);
  mask: linear-gradient(to bottom, black 0%, black 45%, transparent 60%);
}
.header-blur-layer:nth-child(5) {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  -webkit-mask: linear-gradient(to bottom, black 0%, black 30%, transparent 45%);
  mask: linear-gradient(to bottom, black 0%, black 30%, transparent 45%);
}
.header-blur-layer:nth-child(6) {
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  -webkit-mask: linear-gradient(to bottom, black 0%, black 15%, transparent 30%);
  mask: linear-gradient(to bottom, black 0%, black 15%, transparent 30%);
}
.header-blur-layer:nth-child(7) {
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  -webkit-mask: linear-gradient(to bottom, black 0%, black 5%, transparent 15%);
  mask: linear-gradient(to bottom, black 0%, black 5%, transparent 15%);
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: var(--space-md) clamp(24px, 5vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 101;
}
.header-logo {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  user-select: none;
}
.header-logo-name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.header-logo-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.header-menu-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: var(--text-secondary);
  font-size: 18px;
}
.header-menu-btn:hover {
  background: var(--text-primary);
  color: white;
  border-color: var(--text-primary);
}
/* ---- Hero ---- */
.hero {
  padding: 140px 0 var(--space-3xl);
  text-align: center;
}
.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}
.hero-title-accent {
  color: var(--accent);
}
.hero-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}
.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}
.hero-stat {
  display: flex;
  flex-direction: column;
}
.hero-stat-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.hero-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
/* ---- Post Grid ---- */
.post-grid-section {
  padding-bottom: var(--space-4xl);
}
.post-grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
}
.post-grid-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.post-grid-tags {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.tag-btn {
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.2s ease;
}
.tag-btn:hover,
.tag-btn.active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(255, 77, 0, 0.04);
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}
/* ---- Post Card ---- */
.post-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.post-card:active {
  transform: scale(0.985);
}
.post-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--border-light);
}
.post-card-image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--border-light), var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 32px;
}
.post-card-body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-card-tags {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}
.post-card-tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.post-card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-md);
}
.post-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}
.post-card-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.post-card-read {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s, transform 0.2s;
}
.post-card:hover .post-card-read {
  color: var(--accent);
  transform: translateX(2px);
}
/* ---- Article Viewer (Sheet Modal) ---- */
.article-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(4px);
}
.article-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.article-panel {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(105%);
  width: 100%;
  max-width: 680px;
  height: 92vh;
  background: var(--surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  z-index: 210;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: transform 0.5s var(--ease-spring);
}
.article-panel.open {
  transform: translateX(-50%) translateY(0);
}
.article-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}
.article-header-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.article-header-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.article-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 16px;
  transition: all 0.2s ease;
}
.article-close-btn:hover {
  background: var(--text-primary);
  color: white;
}
.article-handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
}
.article-scroll {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-xl) var(--space-xl);
  overscroll-behavior: contain;
}
.article-progress {
  height: 2px;
  background: var(--border-light);
  flex-shrink: 0;
}
.article-progress-bar {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.1s ease-out;
}
/* ---- Article Content ---- */
.article-meta {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-light);
}
.article-meta-tags {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}
.article-meta-tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(255, 77, 0, 0.06);
  padding: 3px 8px;
  border-radius: 4px;
}
.article-meta-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}
.article-meta-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
/* Prose Styles (Markdown rendered content) */
.prose h2 {
  font-size: 1.35em;
  font-weight: 700;
  margin: 1.8em 0 0.6em;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.prose h3 {
  font-size: 1.15em;
  font-weight: 600;
  margin: 1.5em 0 0.5em;
  color: var(--text-primary);
}
.prose p {
  margin-bottom: 1.2em;
  line-height: 1.8;
  color: var(--text-secondary);
  font-size: 15px;
}
.prose pre {
  background: var(--text-primary);
  color: #F5F5F7;
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  overflow-x: auto;
  margin: 1.5em 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--accent);
  background: rgba(255, 77, 0, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
}
.prose pre code {
  color: inherit;
  background: none;
  padding: 0;
}
.prose img {
  border-radius: var(--radius-md);
  margin: 1.5em 0;
  width: 100%;
}
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding-left: var(--space-lg);
  color: var(--text-secondary);
  font-style: italic;
  margin: 1.5em 0;
}
.prose ul, .prose ol {
  margin: 1em 0;
  padding-left: 1.5em;
  color: var(--text-secondary);
}
.prose li {
  margin-bottom: 0.4em;
  line-height: 1.7;
  font-size: 15px;
}
.article-images {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}
.article-images img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}
.article-end {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px dashed var(--border);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--border);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
/* ---- Video Player ---- */
.video-container {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin: var(--space-lg) 0;
  cursor: pointer;
}
.video-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  opacity: 1;
  pointer-events: auto;
}
.video-container.playing .video-play-btn {
  opacity: 0;
  pointer-events: none;
}
.video-play-btn svg {
  width: 22px;
  height: 22px;
  fill: white;
  margin-left: 2px;
}
/* ---- Sidebar ---- */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.sidebar {
  position: fixed;
  top: 8px;
  right: 8px;
  bottom: 8px;
  width: 280px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  z-index: 310;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xl);
  transform: translateX(120%);
  transition: transform 0.4s var(--ease-spring);
}
.sidebar.open {
  transform: translateX(0);
}
.sidebar-header {
  padding: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
}
.sidebar-header h2 {
  font-size: 16px;
  font-weight: 700;
}
.sidebar-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}
.sidebar-close-btn:hover {
  background: var(--text-primary);
  color: white;
}
.sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg);
}
.sidebar-nav {
  list-style: none;
  margin-bottom: var(--space-xl);
}
.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}
.sidebar-nav li a:hover,
.sidebar-nav li a.active {
  background: var(--bg);
  color: var(--text-primary);
}
.sidebar-tags-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}
.sidebar-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.sidebar-tag {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg);
  border-radius: 100px;
  transition: all 0.15s ease;
}
.sidebar-tag:hover {
  color: var(--accent);
  background: rgba(255, 77, 0, 0.06);
}
/* ---- Footer ---- */
.footer {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: var(--space-md);
}
.footer-link {
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.footer-link:hover {
  color: var(--accent);
}
/* ---- Animations ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in-up {
  animation: fadeInUp 0.5s var(--ease-out) both;
}
/* Staggered delays for post cards */
.post-card:nth-child(1) { animation-delay: 0.05s; }
.post-card:nth-child(2) { animation-delay: 0.1s; }
.post-card:nth-child(3) { animation-delay: 0.15s; }
.post-card:nth-child(4) { animation-delay: 0.2s; }
.post-card:nth-child(5) { animation-delay: 0.25s; }
.post-card:nth-child(6) { animation-delay: 0.3s; }
.post-card:nth-child(7) { animation-delay: 0.35s; }
.post-card:nth-child(8) { animation-delay: 0.4s; }
.post-card:nth-child(9) { animation-delay: 0.45s; }
.post-card:nth-child(10) { animation-delay: 0.5s; }
.post-card:nth-child(11) { animation-delay: 0.55s; }
/* ---- Responsive ---- */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .hero {
    padding: 110px 0 var(--space-2xl);
  }

  .post-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .post-grid-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .hero-meta {
    flex-wrap: wrap;
  }

  .article-scroll {
    padding: var(--space-lg);
  }

  .article-panel {
    max-width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .sidebar {
    width: calc(100% - 16px);
    max-width: 320px;
  }

  .footer-inner {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}
@media (min-width: 1024px) {
  .post-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
