/* ============= Tokens ============= */
:root {
  --bg: #FBFAF6;
  --bg-card: #FFFFFF;
  --bg-soft: #F4F1E8;
  --bg-elev: #FFFFFF;
  --text: #0A0A0A;
  --text-2: #525252;
  --text-3: #8A8A82;
  --border: #E8E5DE;
  --border-2: #D4D0C5;
  --accent: #5B47FB;
  --accent-2: #FF6B35;
  --accent-3: #10B981;
  --accent-bg: rgba(91, 71, 251, 0.08);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 24px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.10), 0 8px 16px rgba(15, 23, 42, 0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --serif: "Charter", "Iowan Old Style", "Source Serif Pro", "Noto Serif SC", "Songti SC", "Georgia", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "SF Mono", "Monaco", "Consolas", "JetBrains Mono", "Roboto Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0A0A;
    --bg-card: #141414;
    --bg-soft: #1A1A1A;
    --bg-elev: #1A1A1A;
    --text: #F5F5F0;
    --text-2: #A0A09A;
    --text-3: #6B6B66;
    --border: #262626;
    --border-2: #3A3A3A;
    --accent: #8B7CFF;
    --accent-2: #FF8559;
    --accent-3: #34D399;
    --accent-bg: rgba(139, 124, 255, 0.12);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 6px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 24px 60px rgba(0,0,0,0.5);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.015) 1px, transparent 0);
  background-size: 32px 32px;
}
@media (prefers-color-scheme: dark) {
  body { background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.02) 1px, transparent 0); }
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #fff; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .container { padding: 0 20px; } }

/* ============= Nav ============= */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 250, 246, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
@media (prefers-color-scheme: dark) { .nav { background: rgba(10,10,10,0.78); } }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; flex-shrink: 0; }
.brand-mark {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 16px; font-family: var(--serif);
  box-shadow: var(--shadow-sm);
}
.nav-links { display: flex; gap: 22px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-2); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-search { display: flex; align-items: center; gap: 0; border: 1px solid var(--border); border-radius: 100px; background: var(--bg-card); padding: 0 4px 0 14px; flex-shrink: 0; }
.nav-search input { border: 0; outline: 0; background: transparent; padding: 8px 0; font-size: 13px; width: 200px; color: var(--text); }
.nav-search input::placeholder { color: var(--text-3); }
.nav-search button { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: transparent; color: var(--text-2); }
.nav-search button:hover { background: var(--bg-soft); color: var(--text); }
@media (max-width: 880px) { .nav-links { display: none; } .nav-search input { width: 140px; } }

/* ============= Masthead ============= */
.masthead { padding: 96px 0 64px; text-align: center; }
.masthead-date {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px;
  color: var(--text-3); letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 32px; padding: 6px 14px;
  border: 1px solid var(--border); border-radius: 100px; background: var(--bg-card);
}
.masthead-date .live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 4px rgba(16,185,129,0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{box-shadow:0 0 0 4px rgba(16,185,129,0.18);} 50%{box-shadow:0 0 0 8px rgba(16,185,129,0.05);} }
.masthead-title {
  font-family: var(--serif);
  font-size: clamp(48px, 7.5vw, 96px);
  font-weight: 700; letter-spacing: -0.04em; line-height: 0.95;
  margin-bottom: 28px;
}
.masthead-title .grad {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic;
}
.masthead-sub { font-size: 19px; color: var(--text-2); max-width: 600px; margin: 0 auto 40px; line-height: 1.55; }
.masthead-stats {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 0;
  padding: 6px; border: 1px solid var(--border); border-radius: 100px;
  background: var(--bg-card); font-size: 13px; box-shadow: var(--shadow-sm);
}
.masthead-stats span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; color: var(--text-2); }
.masthead-stats span + span { border-left: 1px solid var(--border); }
.masthead-stats b { color: var(--text); font-weight: 600; }

/* ============= Section eyebrow ============= */
.section-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 11px;
  color: var(--text-3); letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 36px; font-weight: 500;
}
.section-eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.section-eyebrow b { color: var(--text); font-weight: 600; }

/* ============= Layout ============= */
.main-wrap { padding: 0 0 80px; }
.layout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
@media (max-width: 960px) { .layout-grid { grid-template-columns: 1fr; gap: 0; } .sidebar-col { margin-top: 48px; } }

/* ============= Featured ============= */
.featured { padding: 24px 0 64px; }
.featured-card {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: box-shadow 0.3s, transform 0.2s;
}
.featured-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
@media (max-width: 760px) { .featured-card { grid-template-columns: 1fr; } }
.featured-visual {
  aspect-ratio: 5 / 4;
  background-color: var(--bg-soft);
  background-size: cover; background-position: center;
  position: relative;
}
.featured-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.08) 100%);
  pointer-events: none;
}
.featured-content { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 760px) { .featured-content { padding: 28px 24px 32px; } }
.featured-content .tag {
  display: inline-block; align-self: flex-start;
  padding: 4px 10px;
  background: var(--accent-bg);
  color: var(--accent);
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  border-radius: 4px; margin-bottom: 20px; letter-spacing: 0.04em;
}
.featured-content h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.15;
  margin-bottom: 16px;
}
.featured-content h2:hover { color: var(--accent); }
.featured-content .excerpt { font-size: 16px; color: var(--text-2); line-height: 1.65; margin-bottom: 24px; }
.byline { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--text-3); flex-wrap: wrap; }
.byline-author { display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; font-family: var(--serif);
}
.byline-divider { color: var(--border-2); }

/* ============= Articles grid ============= */
.articles { padding: 24px 0 64px; }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .articles-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 600px) { .articles-grid { grid-template-columns: 1fr; } }
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all 0.2s;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-2); }
.article-thumb {
  aspect-ratio: 16 / 9;
  background-color: var(--bg-soft);
  background-size: cover; background-position: center;
  position: relative;
}
.article-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(0,0,0,0.06) 100%);
}
.article-body { padding: 22px 22px 18px; display: flex; flex-direction: column; flex: 1; }
.article-tag {
  display: inline-block; align-self: flex-start;
  padding: 3px 8px;
  background: var(--bg-soft);
  color: var(--text-2);
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  border-radius: 3px; margin-bottom: 12px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.article-card h3 {
  font-family: var(--serif);
  font-size: 20px; font-weight: 700; letter-spacing: -0.018em; line-height: 1.3;
  margin-bottom: 8px;
}
.article-card h3 a:hover { color: var(--accent); }
.article-card .excerpt {
  font-size: 14px; color: var(--text-2); line-height: 1.55;
  margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-meta {
  font-size: 12px; color: var(--text-3);
  margin-top: auto; padding-top: 12px;
  display: flex; gap: 8px; align-items: center;
}
.article-meta .dot-sep { color: var(--border-2); }
.empty { color: var(--text-2); padding: 40px 0; font-size: 15px; }
.empty code { font-family: var(--mono); font-size: 13px; background: var(--bg-soft); padding: 2px 6px; border-radius: 3px; }

/* ============= Topics (home page) ============= */
.topics { padding: 24px 0 64px; }
.topics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .topics-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .topics-grid { grid-template-columns: 1fr; } }
.topic-card {
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.2s;
}
.topic-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-2); }
.topic-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-family: var(--serif);
  margin-bottom: 20px;
}
.topic-card h3 { font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: -0.018em; margin-bottom: 8px; }
.topic-card p { font-size: 14px; color: var(--text-2); line-height: 1.55; margin-bottom: 12px; }
.topic-meta { font-family: var(--mono); font-size: 11px; color: var(--text-3); letter-spacing: 0.04em; }

/* ============= Product block (home page) ============= */
.product { padding: 24px 0 64px; }
.product-card {
  display: grid; grid-template-columns: 0.6fr 1.5fr; gap: 48px; align-items: center;
  padding: 48px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.product-card::before {
  content: ""; position: absolute; top: 0; right: 0; width: 50%; height: 100%;
  background: radial-gradient(circle at 100% 50%, rgba(91,71,251,0.04), transparent 60%);
  pointer-events: none;
}
@media (max-width: 760px) { .product-card { grid-template-columns: 1fr; padding: 32px; gap: 24px; } }
.product-visual {
  aspect-ratio: 1; max-width: 180px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #FF6B35 0%, #FFB59A 50%, #AF52DE 100%);
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(255,255,255,0.1);
}
.product-visual::after {
  content: "L"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 96px; color: #fff; font-weight: 700;
  text-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
.product-content .eyebrow {
  font-family: var(--mono); font-size: 11px; color: var(--accent-2);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.product-content .eyebrow::before { content: ""; width: 16px; height: 1px; background: var(--accent-2); }
.product-content h2 { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 16px; }
.product-content h2 .accent { color: var(--accent-2); font-style: italic; }
.product-content p { font-size: 15.5px; color: var(--text-2); line-height: 1.65; margin-bottom: 22px; max-width: 540px; }
.product-features { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.product-features span { font-size: 12.5px; padding: 5px 12px; border: 1px solid var(--border); border-radius: 100px; color: var(--text-2); background: var(--bg); }
.btn-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; background: var(--text); color: var(--bg);
  border-radius: 8px; font-size: 14.5px; font-weight: 600;
  transition: all 0.15s;
}
.btn-cta:hover { background: var(--accent-2); color: #fff; transform: translateY(-1px); }
.btn-cta .arrow { transition: transform 0.2s; }
.btn-cta:hover .arrow { transform: translateX(3px); }

/* ============= Sidebar ============= */
.sidebar-col { position: sticky; top: 88px; }
@media (max-width: 960px) { .sidebar-col { position: static; } }
.sidebar-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}
.sidebar-block h4 {
  font-family: var(--mono);
  font-size: 11px; color: var(--text-3);
  letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 600; margin-bottom: 14px;
}
.sidebar-list { list-style: none; }
.sidebar-list li { margin-bottom: 4px; }
.sidebar-list a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 6px;
  font-size: 14px; color: var(--text-2);
  transition: all 0.15s;
}
.sidebar-list a:hover { background: var(--bg-soft); color: var(--text); }
.sidebar-list a.active { background: var(--accent-bg); color: var(--accent); font-weight: 600; }
.cat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent)); flex-shrink: 0; }
.cat-count { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.popular-list { list-style: none; counter-reset: pop; }
.popular-list li { counter-increment: pop; margin-bottom: 14px; padding-left: 32px; position: relative; }
.popular-list li::before {
  content: counter(pop);
  position: absolute; left: 0; top: 0;
  font-family: var(--serif); font-size: 22px; font-weight: 700;
  color: var(--accent); opacity: 0.5;
}
.popular-list a { font-family: var(--serif); font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.popular-list a:hover { color: var(--accent); }
.popular-meta { font-size: 11px; color: var(--text-3); font-family: var(--mono); margin-top: 4px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pill {
  display: inline-block;
  padding: 4px 10px; border-radius: 100px;
  background: var(--bg-soft); color: var(--text-2);
  font-family: var(--mono);
  transition: all 0.15s;
}
.tag-pill:hover { background: var(--accent); color: #fff; }
.sidebar-cta p { font-size: 13px; color: var(--text-2); margin-bottom: 10px; }
.sidebar-form { display: flex; gap: 6px; }
.sidebar-form input {
  flex: 1; padding: 8px 10px; border: 1px solid var(--border);
  border-radius: 6px; font-size: 13px; background: var(--bg);
  min-width: 0;
}
.sidebar-form input:focus { outline: 0; border-color: var(--accent); }
.sidebar-form button {
  padding: 8px 12px; background: var(--accent); color: #fff;
  border-radius: 6px; font-size: 13px; font-weight: 600;
}

/* ============= Listing (category/tag) ============= */
.listing-head { padding: 60px 0 40px; border-bottom: 1px solid var(--border); margin-bottom: 40px; --accent: #5B47FB; }
.listing-title { font-family: var(--serif); font-size: clamp(36px, 5vw, 56px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 8px; }
.listing-sub { color: var(--text-2); font-size: 16px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 48px 0; }
.page-link { padding: 8px 16px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; transition: all 0.15s; }
.page-link:hover { background: var(--bg-card); border-color: var(--accent); color: var(--accent); }
.page-info { font-family: var(--mono); font-size: 13px; color: var(--text-3); }

/* ============= Article (detail) ============= */
.article { padding: 48px 0 32px; }
.crumbs { font-family: var(--mono); font-size: 12px; color: var(--text-3); margin-bottom: 24px; display: flex; gap: 8px; align-items: center; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { color: var(--border-2); }
.article-head { margin-bottom: 32px; }
.article-cat {
  display: inline-block;
  padding: 4px 10px; background: var(--accent-bg);
  color: var(--accent);
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  border-radius: 4px; margin-bottom: 16px; letter-spacing: 0.04em;
}
.article-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.1;
  margin-bottom: 16px;
}
.article-lede { font-size: 19px; color: var(--text-2); line-height: 1.6; margin-bottom: 24px; max-width: 720px; }
.article-byline { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-3); flex-wrap: wrap; }
.article-cover {
  aspect-ratio: 16 / 9;
  background-color: var(--bg-soft);
  background-size: cover; background-position: center;
  border-radius: var(--radius-md);
  margin-bottom: 40px;
  border: 1px solid var(--border);
}
.article-body { font-size: 17px; line-height: 1.8; }
.md-content { max-width: 740px; }
.md-content > * + * { margin-top: 1.2em; }
.md-content h2 { font-family: var(--serif); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; margin-top: 2em; }
.md-content h3 { font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: -0.018em; line-height: 1.3; margin-top: 1.8em; }
.md-content p { color: var(--text); }
.md-content a { color: var(--accent); border-bottom: 1px solid var(--accent-bg); }
.md-content a:hover { border-bottom-color: var(--accent); }
.md-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 20px;
  margin: 1.5em 0;
  font-style: italic;
  color: var(--text-2);
}
.md-content ul, .md-content ol { padding-left: 1.4em; }
.md-content li { margin-bottom: 0.4em; }
.md-content img {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin: 1.6em auto;
}
.md-content code:not(pre code) {
  font-family: var(--mono); font-size: 0.88em;
  padding: 2px 6px; border-radius: 4px;
  background: var(--bg-soft); color: var(--accent-2);
}
.md-content pre {
  background: #1a1a1a; color: #e0e0e0;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-size: 14px; line-height: 1.6;
  border: 1px solid #2a2a2a;
}
.md-content pre code { background: transparent; padding: 0; color: inherit; }
.md-content table { width: 100%; border-collapse: collapse; font-size: 14px; }
.md-content th, .md-content td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.md-content th { background: var(--bg-soft); font-weight: 600; }
.md-content hr { border: 0; border-top: 1px solid var(--border); margin: 2.5em 0; }

.article-tags { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tags-label { font-family: var(--mono); font-size: 11px; color: var(--text-3); letter-spacing: 0.1em; text-transform: uppercase; }
.article-source { margin-top: 20px; padding: 14px 18px; background: var(--bg-soft); border-radius: 8px; font-size: 13px; color: var(--text-2); word-break: break-all; }
.article-source a { color: var(--accent); }
.article-source a:hover { text-decoration: underline; }
.related { padding: 32px 0 64px; }

/* ============= Search ============= */
.search-hero { display: flex; gap: 8px; max-width: 600px; margin: 40px auto; }
.search-hero input { flex: 1; padding: 14px 18px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; background: var(--bg-card); }
.search-hero input:focus { outline: 0; border-color: var(--accent); }
.search-hero button { padding: 14px 24px; background: var(--accent); color: #fff; border-radius: 8px; font-weight: 600; }

/* ============= 404 / Error ============= */
.error-page { text-align: center; padding: 120px 0; }
.error-code { font-family: var(--serif); font-size: 96px; font-weight: 800; color: var(--accent); opacity: 0.4; line-height: 1; }
.error-page h1 { font-family: var(--serif); font-size: 32px; margin: 16px 0 12px; }
.error-page p { color: var(--text-2); margin-bottom: 20px; }

/* ============= Footer ============= */
footer { padding: 56px 0 36px; border-top: 1px solid var(--border); margin-top: 80px; }
.foot-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 760px) { .foot-inner { grid-template-columns: 1fr 1fr; gap: 32px; } }
.foot-col h4 { font-family: var(--mono); font-size: 11px; color: var(--text-3); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; margin-bottom: 14px; }
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 8px; }
.foot-col a { font-size: 13.5px; color: var(--text-2); }
.foot-col a:hover { color: var(--text); }
.foot-col .count { font-family: var(--mono); font-size: 11px; color: var(--text-3); margin-left: 4px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; margin-bottom: 12px; }
.foot-brand .brand-mark { width: 26px; height: 26px; font-size: 14px; }
.foot-tag { font-size: 13px; color: var(--text-2); line-height: 1.6; max-width: 280px; }
.foot-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: var(--text-3);
}
.foot-bottom .icp a { color: var(--text-3); }
.foot-bottom .icp a:hover { color: var(--text-2); }
