 :root {
  --bg: #f7f3ec;
  --bg-alt: #f0e7d8;
  --panel: #ffffff;
  --text: #1b1a17;
  --muted: #5b5850;
  --line: #d7cdbd;
  --accent: #2d6a4f;
  --accent-ink: #ffffff;
  --hero-from: #f2dfc2;
  --hero-to: #dbeee6;
  --card: #fffdf8;
  --shadow-sm: 0 1px 3px rgba(27,26,23,0.08);
  --shadow-md: 0 4px 12px rgba(27,26,23,0.10);
  --shadow-lg: 0 8px 30px rgba(27,26,23,0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: 0.25s ease;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  line-height: 1.75;
  background:
    radial-gradient(1100px 700px at 0% -20%, var(--hero-from), transparent 70%),
    radial-gradient(1200px 800px at 100% -10%, var(--hero-to), transparent 65%),
    var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
  position: relative;
  transition: color var(--transition);
}

a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

a:hover {
  text-decoration: none;
}

a:hover::after {
  width: 100%;
}

/* ============ Header ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: linear-gradient(
    120deg,
    color-mix(in srgb, var(--hero-from) 85%, transparent),
    color-mix(in srgb, var(--hero-to) 85%, transparent)
  );
  box-shadow: var(--shadow-sm);
  padding: 0 1.2rem;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}

.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  height: 60px;
}

.brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.03em;
}

.brand::after {
  display: none;
}

.header-genre {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border-radius: 100px;
}

.header-nav {
  display: flex;
  gap: 0.8rem;
}

.header-sub {
  max-width: 1160px;
  margin: 0.4rem auto 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.header-nav .nav-icon,
.footer-nav .nav-icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-right: 0.25em;
}

/* ============ Container ============ */

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.2rem;
}

/* ============ Hero ============ */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--hero-from)));
  color: var(--accent-ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 1.1rem;
  border-radius: 100px;
  margin-bottom: 1.2rem;
}

.hero h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 0.7rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--text) 30%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 auto 1.8rem;
  max-width: 600px;
  line-height: 1.7;
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: inline-flex;
  gap: 2rem;
  padding: 0.8rem 2rem;
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-decoration {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--hero-from);
  filter: blur(100px);
  opacity: 0.35;
  top: -150px;
  right: -100px;
  pointer-events: none;
}

.hero-decoration::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--hero-to);
  filter: blur(80px);
  opacity: 0.6;
  bottom: -120px;
  left: -80px;
}

/* ============ Section Block ============ */

.section-block {
  background: var(--panel);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.8rem 1.5rem;
  margin-bottom: 2rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid color-mix(in srgb, var(--line) 50%, transparent);
}

.section-head h1,
.section-head h2,
.section-head h3 {
  margin: 0;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-head-accent {
  display: inline-block;
  width: 5px;
  height: 1.4em;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 40%, transparent));
  border-radius: 3px;
}

.section-head-count {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  background: var(--card);
  padding: 0.25rem 0.8rem;
  border-radius: 100px;
}

/* ============ Featured Card ============ */

.featured-card {
  margin-bottom: 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition), transform var(--transition);
}

.featured-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.featured-link {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 280px;
}

.featured-link::after {
  display: none;
}

.featured-thumb {
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.featured-card:hover .featured-thumb img {
  transform: scale(1.05);
}

.featured-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, color-mix(in srgb, var(--accent) 20%, transparent));
  pointer-events: none;
}

.featured-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  font-size: 4rem;
  font-weight: 800;
  color: var(--accent);
}

.featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  background: var(--card);
}

.featured-body .badge {
  align-self: flex-start;
  margin-bottom: 0.8rem;
}

.featured-body h3 {
  margin: 0 0 0.6rem;
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--text);
}

.featured-keyword {
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.featured-date {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ============ Badge ============ */

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
  white-space: nowrap;
}

.badge-sm {
  font-size: 0.68rem;
  padding: 0.15rem 0.55rem;
}

/* ============ Card Grid ============ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.article-card {
  background: var(--card);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-thumb {
  overflow: hidden;
  position: relative;
}

.card-thumb img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.article-card:hover .card-thumb img {
  transform: scale(1.06);
}

.card-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  height: 170px;
  color: var(--accent);
  font-size: 2.5rem;
  font-weight: 700;
  user-select: none;
}

.card-body {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body .badge {
  margin-bottom: 0.5rem;
}

.article-card h2,
.article-card h3 {
  margin: 0 0 0.3rem;
  line-height: 1.45;
  font-size: 0.98rem;
}

.meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.keyword {
  margin: 0.3rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.card-date {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ============ Category Section ============ */

.category-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.2rem;
}

.category-card {
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.3rem;
  background: var(--card);
  transition: box-shadow var(--transition);
  border: 1px solid color-mix(in srgb, var(--line) 40%, transparent);
}

.category-card:hover {
  box-shadow: var(--shadow-md);
}

.category-card-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid color-mix(in srgb, var(--accent) 15%, transparent);
}

.category-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--hero-from)));
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
}

.category-card-title {
  flex: 1;
  min-width: 0;
}

.category-card-title h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.4;
}

.category-count {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

.category-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-links li {
  margin: 0;
  padding: 0.45rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 40%, transparent);
}

.category-links li:last-child {
  border-bottom: none;
}

.category-links a {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text);
}

.category-links a::after {
  display: none;
}

.category-links a:hover {
  color: var(--accent);
}

.category-link-arrow {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 0.8rem;
  margin-top: 0.25em;
  transition: transform var(--transition);
}

.category-links a:hover .category-link-arrow {
  transform: translateX(3px);
}

/* ============ Author Box ============ */

.author-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 1.25rem;
}

.author-info h3 {
  margin: 0;
  font-size: 0.95rem;
}

.author-info p {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ============ Article Page ============ */

.article-layout {
  background: var(--panel);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
}

.article-header h1 {
  margin: 0.25rem 0;
  line-height: 1.35;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.breadcrumbs {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.article-body-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.2rem;
  margin-top: 1rem;
}

.toc-box {
  position: sticky;
  top: 5rem;
  align-self: start;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  background: var(--card);
  max-height: calc(100vh - 6rem);
  overflow: auto;
}

.toc-box h2 {
  margin-top: 0;
  font-size: 1rem;
}

.toc-box ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  font-size: 0.9rem;
}

.toc-box a {
  display: block;
  padding: 0.25rem 0 0.25rem 0.7rem;
  border-left: 2px solid var(--line);
  transition: border-color var(--transition), color var(--transition);
}

.toc-box a::after {
  display: none;
}

.toc-box a:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* ============ Prose ============ */

.prose {
  min-width: 0;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text);
}

.prose > *:first-child {
  margin-top: 0;
}

.prose > p:first-of-type::first-letter {
  float: left;
  font-size: 3.4em;
  line-height: 0.8;
  margin-right: 0.08em;
  margin-top: 0.05em;
  font-weight: 700;
  color: var(--accent);
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  line-height: 1.45;
  color: var(--text);
}

.prose h2 {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.1rem;
  margin: 2.2rem 0 1.2rem;
  border-left: 5px solid var(--accent);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.prose h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.prose h3 {
  position: relative;
  margin: 1.8rem 0 0.9rem;
  padding-left: 0.8rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.prose h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.prose h4 {
  margin: 1.5rem 0 0.7rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
}

.prose p {
  margin: 0.9rem 0;
}

.prose strong {
  color: var(--accent);
  font-weight: 700;
  padding: 0.05em 0.2em;
  background: linear-gradient(transparent 55%, color-mix(in srgb, var(--accent) 15%, transparent) 55%);
}

.prose em {
  font-style: normal;
  font-weight: 600;
  color: var(--text);
  border-bottom: 2px dotted var(--accent);
  padding-bottom: 1px;
}

.prose a {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  transition: border-color var(--transition);
}

.prose a:hover {
  border-bottom-color: var(--accent);
}

.prose a::after {
  display: none;
}

.prose ul,
.prose ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.prose ul {
  list-style: none;
  padding-left: 0;
}

.prose ul li {
  position: relative;
  padding-left: 1.4rem;
  margin: 0.45rem 0;
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}

.prose ol {
  counter-reset: prose-ol;
  list-style: none;
  padding-left: 0;
}

.prose ol li {
  position: relative;
  padding-left: 2rem;
  margin: 0.45rem 0;
  counter-increment: prose-ol;
}

.prose ol li::before {
  content: counter(prose-ol);
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.prose blockquote {
  position: relative;
  margin: 1.5rem 0;
  padding: 1rem 1.2rem 1rem 1.5rem;
  background: var(--card);
  border-left: 5px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: var(--shadow-sm);
  color: var(--muted);
  font-style: normal;
}

.prose blockquote p {
  margin: 0.35rem 0;
}

.prose blockquote strong {
  color: var(--text);
}

.prose hr {
  border: none;
  height: 2px;
  margin: 2rem 0;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent),
    var(--line),
    transparent
  );
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  display: block;
  margin: 1.2rem auto;
}

.prose table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.2rem 0;
  font-size: 0.92rem;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
}

.prose th,
.prose td {
  padding: 0.6rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.prose th {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.prose th a {
  color: var(--accent-ink);
}

.prose tr:nth-child(even) td {
  background: color-mix(in srgb, var(--bg) 40%, transparent);
}

.prose tr:last-child td {
  border-bottom: none;
}

.prose tr:hover td {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.prose code {
  background: color-mix(in srgb, var(--line) 50%, transparent);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.88em;
  font-family: "IBM Plex Mono", "Fira Code", ui-monospace, monospace;
}

.prose pre {
  background: #0f1f2f;
  color: #eef4ff;
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  overflow: auto;
  box-shadow: var(--shadow-md);
  margin: 1.2rem 0;
  border: 1px solid #1a3045;
}

.prose pre code {
  background: none;
  padding: 0;
  font-size: 0.9em;
  line-height: 1.7;
}

/* ---- Callout / Admonition Boxes ---- */

.prose .callout {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  border-left: 5px solid;
}

.prose .callout-title {
  margin: 0 0 0.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.prose .callout-body {
  font-size: 0.93rem;
  line-height: 1.75;
}

.prose .callout-body p {
  margin: 0.3rem 0;
}

.prose .callout-body ul,
.prose .callout-body ol {
  margin: 0.4rem 0;
}

.prose .callout-info {
  background: color-mix(in srgb, #e0f0ff 60%, var(--panel));
  border-left-color: #2196f3;
}

.prose .callout-info .callout-title {
  color: #1565c0;
}

.prose .callout-tip {
  background: color-mix(in srgb, #e8f5e9 60%, var(--panel));
  border-left-color: #4caf50;
}

.prose .callout-tip .callout-title {
  color: #2e7d32;
}

.prose .callout-warning {
  background: color-mix(in srgb, #fff8e1 60%, var(--panel));
  border-left-color: #ff9800;
}

.prose .callout-warning .callout-title {
  color: #e65100;
}

.prose .callout-important {
  background: color-mix(in srgb, #fce4ec 60%, var(--panel));
  border-left-color: #e91e63;
}

.prose .callout-important .callout-title {
  color: #c2185b;
}

.prose .callout-note {
  background: color-mix(in srgb, #e8eaf6 60%, var(--panel));
  border-left-color: #5c6bc0;
}

.prose .callout-note .callout-title {
  color: #3949ab;
}

.prose .callout-check {
  background: color-mix(in srgb, #e0f2f1 60%, var(--panel));
  border-left-color: #009688;
}

.prose .callout-check .callout-title {
  color: #00796b;
}

.prose .callout-question {
  background: color-mix(in srgb, #f3e5f5 60%, var(--panel));
  border-left-color: #9c27b0;
}

.prose .callout-question .callout-title {
  color: #7b1fa2;
}

.prose .callout-caution {
  background: color-mix(in srgb, #ffebee 60%, var(--panel));
  border-left-color: #f44336;
}

.prose .callout-caution .callout-title {
  color: #c62828;
}

/* ============ Related ============ */

.related {
  margin-top: 1.2rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.related h2 {
  margin: 0 0 0.8rem;
}

/* ============ Eyecatch ============ */

.eyecatch {
  margin: 1rem 0 0;
  padding: 0;
  text-align: center;
}

.eyecatch img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}

/* ============ Footer ============ */

.site-footer {
  position: relative;
  max-width: 1160px;
  margin: 2.5rem auto 0;
  padding: 2.5rem 1.2rem 1.5rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.footer-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-nav a::after {
  display: none;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-copy {
  margin: 0;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent),
    var(--hero-from),
    transparent
  );
}

/* ============ Responsive ============ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .article-body-grid {
    grid-template-columns: 1fr;
  }

  .toc-box {
    position: static;
    max-height: none;
  }
}

@media (max-width: 768px) {
  .featured-link {
    grid-template-columns: 1fr;
  }

  .featured-thumb {
    min-height: 200px;
  }

  .category-stack {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container,
  .site-header,
  .site-footer {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .hero {
    padding: 2.5rem 1.5rem 2rem;
    border-radius: var(--radius-md);
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero-stats {
    gap: 1.2rem;
    padding: 0.6rem 1.2rem;
  }

  .hero-stat-num {
    font-size: 1.3rem;
  }

  .section-block {
    padding: 1.2rem 1rem 1rem;
    border-radius: var(--radius-md);
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .article-card:hover {
    transform: none;
  }

  .featured-body {
    padding: 1.2rem;
  }

  .featured-body h3 {
    font-size: 1.05rem;
  }
}