/* ═══════════════════════════════════════════════════
   linuxruinedmycomputer.com — A Git-Inspired Blog
   ═══════════════════════════════════════════════════ */

@import url('/fonts/fonts.css');

/* ── Reset & Base ─────────────────────────────────── */

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

:root {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #1c2128;
  --bg-hover: #21262d;
  --bg-code: #1c2333;
  --border-primary: #30363d;
  --border-secondary: #21262d;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-tertiary: #6e7681;
  --text-link: #58a6ff;
  --text-link-hover: #79c0ff;
  --git-green: #3fb950;
  --git-green-bg: rgba(63, 185, 80, 0.15);
  --git-red: #f85149;
  --git-red-bg: rgba(248, 81, 73, 0.15);
  --git-orange: #d29922;
  --git-orange-bg: rgba(210, 153, 34, 0.12);
  --git-purple: #bc8cff;
  --git-blue: #58a6ff;
  --git-blue-bg: rgba(88, 166, 255, 0.1);
  --comment-bg: rgba(210, 153, 34, 0.08);
  --comment-border: rgba(210, 153, 34, 0.3);
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Consolas', 'Liberation Mono', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
  --transition: 200ms ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text-link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--text-link-hover); }
a.anchor { color: var(--git-orange); }
a.anchor:hover { color: var(--text-primary); }

::selection { background: rgba(88, 166, 255, 0.3); color: var(--text-primary); }

/* ── Scrollbar ───────────────────────────────────── */

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }

/* ══════════════════════════════════════════════════
   LAYOUT
   ══════════════════════════════════════════════════ */

/* ── Site Header ─────────────────────────────────── */

.site-header {
  border-bottom: 1px solid var(--border-primary);
  background: var(--bg-secondary);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(22, 27, 34, 0.92);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 20px;
}

.header-inner .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
  white-space: nowrap;
}

.header-inner .logo .git-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--git-orange-bg);
  border: 1px solid rgba(210, 153, 34, 0.2);
  font-size: 1rem;
}

.header-inner .logo .site-name {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.header-inner .logo .site-name .hl { color: var(--git-orange); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.header-nav a {
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  transition: all var(--transition);
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.header-nav .nav-badge {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 10px;
  background: var(--git-green-bg);
  color: var(--git-green);
  margin-left: 4px;
}

/* ── Container ───────────────────────────────────── */

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ══════════════════════════════════════════════════
   INDEX PAGE
   ══════════════════════════════════════════════════ */

.hero {
  margin-bottom: 64px;
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border-primary);
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero h1 .hl { color: var(--git-orange); }
.hero h1 .hl-green { color: var(--git-green); }
.hero h1 .hl-red { color: var(--git-red); }

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero .hero-meta {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.hero .hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Article List ────────────────────────────────── */

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-primary);
}

.article-list { list-style: none; }

.article-item {
  display: flex;
  gap: 16px;
  padding: 20px 16px;
  border-radius: var(--radius-lg);
  transition: background var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  margin-bottom: 4px;
}

.article-item:hover {
  background: var(--bg-secondary);
  border-color: var(--border-primary);
}

.article-item .item-branch {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 24px;
  padding-top: 8px;
}

.article-item .item-branch .branch-node {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--git-orange);
  background: var(--bg-primary);
  position: relative;
}

.article-item .item-branch .branch-node::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 4px;
  width: 2px;
  height: 40px;
  background: var(--border-primary);
}

.article-item:last-child .item-branch .branch-node::after { display: none; }

.article-item .item-content { flex: 1; min-width: 0; overflow-wrap: break-word; word-break: break-word; }

.article-item .item-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-item .item-title .revision-badge {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--git-blue-bg);
  color: var(--git-blue);
  font-weight: 500;
}

.article-item .item-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 10px;
}

.article-item .item-footer {
  display: flex;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.article-item .item-footer .tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-secondary);
}

/* ══════════════════════════════════════════════════
   ARTICLE PAGE
   ══════════════════════════════════════════════════ */

.article-header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-primary);
}

.article-header .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

.article-header .breadcrumb a { color: var(--text-tertiary); }
.article-header .breadcrumb a:hover { color: var(--text-link); }

.article-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 16px;
}

.article-header .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.article-header .article-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Revision Timeline ───────────────────────────── */

.revision-timeline {
  margin-bottom: 48px;
  padding: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  overflow-wrap: break-word;
  word-break: break-word;
}

.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.timeline-header h3 {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline-header .timeline-badge {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--git-blue-bg);
  color: var(--git-blue);
}

.timeline-nodes {
  position: relative;
  padding-left: 36px;
}

.timeline-nodes::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--border-primary);
}

.timeline-node {
  position: relative;
  padding: 12px 16px;
  margin-bottom: 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-secondary);
  background: var(--bg-tertiary);
  transition: all var(--transition);
  cursor: pointer;
}

.timeline-node:last-child { margin-bottom: 0; }

.timeline-node::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--git-orange);
  background: var(--bg-tertiary);
  z-index: 2;
}

.timeline-node.active {
  border-color: var(--git-orange);
  background: var(--git-orange-bg);
}

.timeline-node.active::before {
  background: var(--git-orange);
  box-shadow: 0 0 0 3px rgba(210, 153, 34, 0.2);
}

.timeline-node .node-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.timeline-node .node-hash {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--git-orange);
  background: var(--git-orange-bg);
  padding: 1px 6px;
  border-radius: 3px;
}

.timeline-node .node-message {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.timeline-node .node-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.timeline-node .node-stats {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.timeline-node .node-stats .stat-additions { color: var(--git-green); }
.timeline-node .node-stats .stat-deletions { color: var(--git-red); }

/* ── Tables ──────────────────────────────────────── */

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

.article-content table thead th {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  white-space: nowrap;
}

.article-content table tbody td {
  border: 1px solid var(--border-primary);
  padding: 10px 14px;
  vertical-align: top;
}

.article-content table tbody tr {
  background: var(--bg-secondary);
  transition: background var(--transition);
}

.article-content table tbody tr:hover {
  background: var(--bg-hover);
}

.article-content table tbody tr:nth-child(even) {
  background: var(--bg-tertiary);
}

.article-content table tbody tr:nth-child(even):hover {
  background: var(--bg-hover);
}

@media (max-width: 600px) {
  .article-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    font-size: 0.8rem;
  }

  .article-content table td,
  .article-content table th {
    padding: 8px 10px;
  }
}

/* ── Figures ──────────────────────────────────────── */

.article-figure {
  margin: 32px 0;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-secondary);
}

.article-figure a {
  display: block;
  line-height: 0;
}

.article-figure img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

.article-figure figcaption {
  padding: 12px 16px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  border-top: 1px solid var(--border-primary);
  line-height: 1.5;
}

@media (max-width: 600px) {
  .article-figure {
    margin: 24px -12px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .article-figure figcaption {
    font-size: 0.7rem;
    padding: 10px 12px;
  }
}

/* ── Article Content ─────────────────────────────── */

.article-content {
  margin-bottom: 48px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.revision-header {
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  margin: 32px 0 16px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid var(--border-secondary) !important;
  letter-spacing: -0.01em !important;
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-secondary);
  letter-spacing: -0.01em;
}

.article-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 24px 0 12px;
}

.article-content p {
  margin-bottom: 16px;
  line-height: 1.8;
  font-size: 1rem;
}

.article-content p:last-child { margin-bottom: 0; }

.article-content blockquote {
  border-left: 3px solid var(--git-orange);
  padding: 12px 16px;
  margin: 16px 0;
  background: var(--git-orange-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
  font-style: italic;
}

.article-content pre {
  background: var(--bg-code);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  padding: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  position: relative;
  max-width: 100%;
}

.article-content pre .line-numbers {
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-tertiary);
  font-size: 0.75rem;
  border-right: 1px solid var(--border-primary);
  user-select: none;
}

.article-content code:not(pre code) {
  background: var(--bg-code);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--git-orange);
}

.article-content ul, .article-content ol {
  margin: 12px 0 20px;
  padding-left: 24px;
}

.article-content li { margin-bottom: 6px; line-height: 1.7; }

/* ── Diff Viewer ─────────────────────────────────── */

.diff-viewer {
  margin: 32px 0;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.diff-viewer .diff-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.diff-viewer .diff-header .diff-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.diff-viewer .diff-header .diff-stats {
  display: flex;
  gap: 10px;
  font-size: 0.75rem;
}

.diff-viewer .diff-header .diff-stats .add { color: var(--git-green); }
.diff-viewer .diff-header .diff-stats .del { color: var(--git-red); }

.diff-viewer .diff-files {
  border-bottom: 1px solid var(--border-primary);
  padding: 8px 16px;
  background: var(--bg-tertiary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.diff-viewer .diff-lines { font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.55; }

.diff-viewer .diff-line {
  display: flex;
  padding: 0 16px;
  min-height: 24px;
  align-items: center;
  gap: 12px;
  position: relative;
}

.diff-viewer .diff-line .line-number {
  min-width: 40px;
  text-align: right;
  color: var(--text-tertiary);
  user-select: none;
  font-size: 0.7rem;
}

.diff-viewer .diff-line .line-prefix {
  min-width: 16px;
  text-align: center;
  user-select: none;
  font-weight: 700;
}

.diff-viewer .diff-line.addition {
  background: var(--git-green-bg);
}
.diff-viewer .diff-line.addition .line-prefix { color: var(--git-green); }

.diff-viewer .diff-line.deletion {
  background: var(--git-red-bg);
}
.diff-viewer .diff-line.deletion .line-prefix { color: var(--git-red); }

.diff-viewer .diff-line.context {
  background: transparent;
}

.diff-viewer .diff-line .diff-content { flex: 1; white-space: pre-wrap; }

.diff-viewer .diff-line .add-comment-btn {
  opacity: 0;
  position: absolute;
  right: 8px;
  width: 20px;
  height: 20px;
  background: var(--git-orange);
  border: none;
  border-radius: 3px;
  color: #fff;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition);
}

.diff-viewer .diff-line:hover .add-comment-btn {
  opacity: 1;
}

.diff-viewer .diff-line .add-comment-btn:hover {
  background: var(--text-link);
}

/* ── Inline Comments ─────────────────────────────── */

.inline-comment {
  margin: 0 -16px;
  padding: 12px 16px;
  background: var(--comment-bg);
  border-top: 1px solid var(--comment-border);
  border-bottom: 1px solid var(--comment-border);
  margin-left: 0;
  margin-right: 0;
  padding-left: 72px;
}

.inline-comment .comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.inline-comment .comment-header .comment-author {
  font-weight: 600;
  color: var(--text-primary);
}

.inline-comment .comment-header .comment-time {
  color: var(--text-tertiary);
}

.inline-comment .comment-header .comment-badge {
  font-size: 0.6rem;
  padding: 1px 6px;
  border-radius: 8px;
  background: var(--git-orange-bg);
  color: var(--git-orange);
}

.inline-comment .comment-body {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 600px;
}

/* ── Comment Form ────────────────────────────────── */

.comment-form {
  margin: 16px 0;
  padding: 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  display: none;
}

.comment-form.visible { display: block; }

.comment-form textarea {
  width: 100%;
  min-height: 80px;
  padding: 10px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  resize: vertical;
  outline: none;
  transition: border-color var(--transition);
}

.comment-form textarea:focus {
  border-color: var(--git-orange);
}

.comment-form .form-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.comment-form .form-actions button {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition);
}

.comment-form .form-actions .btn-submit {
  background: var(--git-orange);
  color: #000;
  font-weight: 500;
}

.comment-form .form-actions .btn-submit:hover { background: #e3b341; }

.comment-form .form-actions .btn-cancel {
  background: var(--bg-hover);
  color: var(--text-secondary);
  border: 1px solid var(--border-primary);
}

.comment-form .form-actions .btn-cancel:hover { color: var(--text-primary); }

/* ── Diff Toggle ─────────────────────────────────── */

.diff-toggle-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

.diff-toggle-bar label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.diff-toggle-bar select {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  outline: none;
}

.diff-toggle-bar select:focus { border-color: var(--git-orange); }

/* ── Footer ──────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border-primary);
  padding: 32px 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  background: var(--bg-secondary);
}

.site-footer .footer-inner {
  max-width: 900px;
  margin: 0 auto;
}

.site-footer a { color: var(--text-tertiary); }
.site-footer a:hover { color: var(--text-link); }

.site-footer .footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .header-inner { padding: 0 16px; gap: 12px; }
  .header-inner .logo .site-name { display: none; }
  .container { padding: 24px 16px 48px; }

  .hero h1 { font-size: 1.8rem; }
  .hero .hero-meta { flex-wrap: wrap; gap: 12px; }

  .article-item { padding: 16px 12px; }
  .article-item .item-branch .branch-node::after { height: 70px; }

  .article-header h1 { font-size: 1.6rem; }

  .article-content h2 { font-size: 1.25rem; }
  .article-content h3 { font-size: 1.05rem; }
  .article-content p { font-size: 0.95rem; }

  .timeline-nodes { padding-left: 28px; }
  .timeline-node { padding: 10px 12px; }

  .revision-timeline { padding: 16px; }

  .diff-viewer .diff-line { padding: 0 8px; font-size: 0.75rem; }
  .diff-viewer .diff-line .line-number { min-width: 28px; }
  .inline-comment { padding-left: 48px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .article-header h1 { font-size: 1.35rem; }
  .header-nav a { font-size: 0.75rem; padding: 4px 8px; }
}

/* ── Cookie Banner ────────────────────────────────── */

#cookie-banner .cookie-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

#cookie-banner .cookie-text {
  line-height: 1.5;
}

.cookie-btn {
  flex-shrink: 0;
  padding: 8px 20px;
  border: none;
  border-radius: var(--radius-md, 6px);
  background: var(--git-orange, #d29922);
  color: #000;
  font-family: var(--font-sans, -apple-system, sans-serif);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 200ms ease;
}

.cookie-btn:hover {
  background: #e3b341;
}

@media (max-width: 480px) {
  #cookie-banner .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}