@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Rubik:wght@300;400;500;600;700&display=swap');

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Rubik', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #000;
  background: #fff;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: 'Outfit', 'PingFang SC', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p {
  font-size: 1rem;
  line-height: 1.75;
}

/* ============================================================
   Layout Utilities
   ============================================================ */
.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   Site Header & Navigation
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #000;
  color: #fff;
  border-bottom: 2px solid #fff;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
}

.nav-right {
  justify-content: flex-end;
}

.nav-left p,
.nav-right p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0;
  line-height: 1;
}

.brand-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  text-align: center;
  white-space: nowrap;
}

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  min-height: 40px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
  text-decoration: none;
}

.nav-pill:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  text-decoration: none;
}

.nav-pill[aria-current="page"],
.nav-pill--active {
  background: #fff;
  color: #000;
}

.nav-pill--outline {
  border-color: #fff;
  border-width: 2px;
}

/* Anchor bar */
.nav-anchor-bar {
  background: #111;
  border-top: 1px solid #333;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-anchor-bar::-webkit-scrollbar {
  display: none;
}

.nav-anchor-bar nav p {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0 1.5rem;
  white-space: nowrap;
}

.nav-anchor-bar nav p a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  min-height: 40px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #aaa;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.nav-anchor-bar nav p a:hover,
.nav-anchor-bar nav p a[aria-current="page"] {
  color: #fff;
  border-bottom-color: #fff;
}

/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: #666;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #666;
  text-decoration: underline;
}

.breadcrumb a:hover {
  color: #000;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  min-height: 48px;
  background: #000;
  color: #fff;
  border: 2px solid #000;
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.btn-primary:hover {
  background: #fff;
  color: #000;
  text-decoration: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  min-height: 48px;
  background: transparent;
  color: #000;
  border: 2px solid #000;
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.btn-ghost:hover {
  background: #000;
  color: #fff;
  text-decoration: none;
}

/* ============================================================
   HOME — Hero Section
   ============================================================ */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
  min-height: 70vh;
  padding: 4rem 0 3rem;
  border-bottom: 2px solid #000;
}

.hero-article {
  padding-right: 2rem;
}

.hero-eyebrow {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 2px solid #000;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero-h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-aside {
  border-left: 2px solid #000;
  padding-left: 2rem;
  padding-top: 1rem;
}

.hero-aside .aside-inner {
  position: sticky;
  top: 120px;
}

/* ============================================================
   HOME — Content Section (two-column with aside)
   ============================================================ */
.content-section {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  padding: 3rem 0;
  border-bottom: 2px solid #000;
}

.content-article,
.entry-body-article,
.about-body-article,
.privacy-body-article {
  min-width: 0;
}

.content-aside,
.entry-body-aside,
.about-body-aside,
.privacy-body-aside {
  border-left: 2px solid #000;
  padding-left: 2rem;
}

/* ============================================================
   HOME — Cards Section
   ============================================================ */
.cards-section {
  padding: 3rem 0;
  border-bottom: 2px solid #000;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.cards-section .section-heading,
.cards-section .subtitle {
  grid-column: 1 / -1;
}

.cat-item {
  border: 2px solid #000;
  border-radius: 28px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cat-item:hover {
  transform: translateY(-3px);
  box-shadow: 4px 4px 0 #000;
}

.cat-item a {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  text-decoration: none;
}

.cat-item strong {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.cat-item span {
  font-size: 0.88rem;
  color: #444;
}

/* ============================================================
   HOME — Children Section
   ============================================================ */
.children-section {
  padding: 3rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.children-section .section-heading,
.children-section .subtitle {
  grid-column: 1 / -1;
}

/* ============================================================
   Grid Cards (shared)
   ============================================================ */
.grid-card {
  border: 2px solid #000;
  border-radius: 28px;
  overflow: hidden;
  border-bottom: 4px solid #000;
  transition: transform 0.2s, box-shadow 0.2s;
}

.grid-card:hover {
  transform: translateY(-3px);
  box-shadow: 4px 4px 0 #000;
}

.grid-card .card-link {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  text-decoration: none;
  height: 100%;
}

/* ============================================================
   Entry Cards (category children)
   ============================================================ */
.entry-list-section {
  padding: 3rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.entry-list-section .section-heading,
.entry-list-section .subtitle {
  grid-column: 1 / -1;
}

.entry-card {
  border: 2px solid #000;
  border-radius: 28px;
  overflow: hidden;
  border-bottom: 4px solid #000;
  transition: transform 0.2s, box-shadow 0.2s;
}

.entry-card:hover {
  transform: translateY(-3px);
  box-shadow: 4px 4px 0 #000;
}

.card-img-wrap {
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #f0f0f0;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.card-title a {
  text-decoration: none;
}

.card-title a:hover {
  text-decoration: underline;
}

.card-desc {
  font-size: 0.88rem;
  color: #444;
  line-height: 1.6;
  flex: 1;
}

.card-date {
  font-size: 0.75rem;
  color: #888;
  font-family: 'Outfit', sans-serif;
}

.card-cta {
  font-size: 0.82rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.02em;
  margin-top: 0.5rem;
}

/* ============================================================
   Section Heading
   ============================================================ */
.section-heading {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  border-bottom: 3px solid #000;
  padding-bottom: 0.75rem;
}

/* ============================================================
   Aside Boxes
   ============================================================ */
.aside-box {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #ddd;
}

.aside-box:last-child {
  border-bottom: none;
}

.aside-box h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.aside-box .subtitle {
  font-size: 0.78rem;
  color: #888;
  margin-bottom: 0.75rem;
}

.aside-box nav p {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

.aside-link {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.88rem;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
  text-decoration: none;
  transition: color 0.15s, padding-left 0.15s;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.aside-link:hover {
  color: #000;
  padding-left: 0.5rem;
}

.aside-link--active {
  font-weight: 700;
  color: #000;
}

.sticky-aside {
  position: sticky;
  top: 120px;
}

/* ============================================================
   Tag Cloud
   ============================================================ */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  min-height: 36px;
  border: 2px solid #000;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  color: #000;
  background: transparent;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.tag-pill:hover {
  background: #000;
  color: #fff;
  text-decoration: none;
}

/* ============================================================
   Quick Links (hero aside)
   ============================================================ */
.quick-link {
  display: flex;
  align-items: center;
  padding: 0.6rem 0;
  font-size: 0.88rem;
  font-weight: 500;
  border-bottom: 1px solid #eee;
  color: #222;
  min-height: 40px;
  text-decoration: none;
}

.quick-link:hover {
  color: #000;
  text-decoration: underline;
}

/* ============================================================
   Prose Content
   ============================================================ */
.prose-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #111;
}

.prose-content h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #000;
}

.prose-content h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin: 2rem 0 0.5rem;
}

.prose-content h4 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.4rem;
}

.prose-content p {
  margin-bottom: 1.25rem;
}

.prose-content ul,
.prose-content ol {
  margin: 0 0 1.25rem 1.5rem;
  line-height: 1.8;
}

.prose-content li {
  margin-bottom: 0.35rem;
}

.prose-content a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose-content a:hover {
  text-decoration: none;
}

.prose-content blockquote {
  border-left: 4px solid #000;
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: #f8f8f8;
  font-style: italic;
  font-size: 1.05rem;
}

.prose-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}

.prose-content th,
.prose-content td {
  border: 1px solid #ddd;
  padding: 0.6rem 0.9rem;
  text-align: left;
}

.prose-content th {
  background: #000;
  color: #fff;
  font-family: 'Outfit', sans-serif;
}

.prose-content img {
  border-radius: 8px;
  margin: 1.5rem 0;
}

/* Drop caps for entry pages */
.prose-drop-cap .prose-content > p:first-of-type::first-letter {
  float: left;
  font-size: 4.5rem;
  line-height: 0.85;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  margin: 0.1rem 0.15rem 0 0;
  color: #000;
}

/* ============================================================
   Subtitle
   ============================================================ */
.subtitle {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* ============================================================
   Dates
   ============================================================ */
.entry-date,
.update-time {
  display: inline-block;
  font-size: 0.8rem;
  color: #888;
  font-family: 'Outfit', sans-serif;
  margin-right: 1rem;
}

.entry-dates {
  margin: 0.75rem 0 1.5rem;
}

/* ============================================================
   Category Page
   ============================================================ */
.cat-hero-section {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  padding: 3rem 0;
  border-bottom: 2px solid #000;
}

.cat-hero-article {
  padding-right: 1rem;
}

.cat-h1 {
  margin-bottom: 1rem;
}

.cat-lead {
  font-size: 1.1rem;
}

.cat-aside {
  border-left: 2px solid #000;
  padding-left: 2rem;
}

/* ============================================================
   Entry Page
   ============================================================ */
.entry-hero-section {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  padding: 3rem 0;
  border-bottom: 2px solid #000;
}

.entry-hero-figure {
  margin-top: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
}

.entry-hero-img {
  width: 100%;
}

.entry-body-section {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  padding: 3rem 0;
  border-bottom: 2px solid #000;
}

.entry-aside {
  border-left: 2px solid #000;
  padding-left: 2rem;
  padding-top: 1rem;
}

.entry-h1 {
  margin-bottom: 1rem;
}

.entry-subtitle {
  font-size: 1.1rem;
}

/* Related */
.related-section {
  padding: 3rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.related-section .section-heading,
.related-section .subtitle {
  grid-column: 1 / -1;
}

.related-card {
  border: 2px solid #000;
  border-radius: 28px;
  border-bottom: 4px solid #000;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 4px 4px 0 #000;
}

.related-card a {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
}

.related-card h3 {
  font-size: 1rem;
}

.related-card p {
  font-size: 0.85rem;
  color: #444;
  line-height: 1.5;
}

/* ============================================================
   Tag Page
   ============================================================ */
.tag-hero-section {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  padding: 3rem 0;
  border-bottom: 2px solid #000;
}

.tag-hero-article {
  padding-right: 1rem;
}

.tag-label-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.1em;
  border: 2px solid #000;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.tag-aside {
  border-left: 2px solid #000;
  padding-left: 2rem;
}

.tag-h1 {
  margin-bottom: 1rem;
}

.tag-list-section {
  padding: 3rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.tag-list-section .section-heading,
.tag-list-section .subtitle {
  grid-column: 1 / -1;
}

.tag-card {
  border: 2px solid #000;
  border-radius: 28px;
  border-bottom: 4px solid #000;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tag-card:hover {
  transform: translateY(-3px);
  box-shadow: 4px 4px 0 #000;
}

.tag-card a {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
}

.tag-card h3 {
  font-size: 1rem;
  font-weight: 700;
}

.tag-card p {
  font-size: 0.85rem;
  color: #444;
}

/* ============================================================
   About Page
   ============================================================ */
.about-hero-section {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  padding: 3rem 0;
  border-bottom: 2px solid #000;
}

.about-body-section {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  padding: 3rem 0;
  border-bottom: 2px solid #000;
}

.about-aside,
.privacy-aside {
  border-left: 2px solid #000;
  padding-left: 2rem;
}

.about-h1 { margin-bottom: 1rem; }
.about-lead { font-size: 1.1rem; }

.about-features-section {
  padding: 3rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.about-features-section .section-heading,
.about-features-section .subtitle {
  grid-column: 1 / -1;
}

.feature-item {
  border: 2px solid #000;
  border-radius: 28px;
  border-bottom: 4px solid #000;
  padding: 1.5rem;
  transition: transform 0.2s;
}

.feature-item:hover {
  transform: translateY(-3px);
}

.feature-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-item p {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.feature-item a {
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
}

/* ============================================================
   Privacy Page
   ============================================================ */
.privacy-hero-section {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  padding: 3rem 0;
  border-bottom: 2px solid #000;
}

.privacy-body-section {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  padding: 3rem 0;
}

.privacy-h1 { margin-bottom: 1rem; }
.privacy-lead { font-size: 1.1rem; }

/* ============================================================
   Default Page
   ============================================================ */
.default-section {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  padding: 3rem 0;
}

.default-aside {
  border-left: 2px solid #000;
  padding-left: 2rem;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 3px solid #000;
  margin-top: 4rem;
}

.footer-cta {
  background: #000;
  color: #fff;
  padding: 3rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 100%;
}

.footer-cta-text {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.footer-cta .btn-primary {
  background: #fff;
  color: #000;
  border-color: #fff;
  flex-shrink: 0;
}

.footer-cta .btn-primary:hover {
  background: transparent;
  color: #fff;
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2.5rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
  border-bottom: 1px solid #ddd;
}

.footer-col dt {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #000;
}

.footer-col dd {
  margin: 0;
  padding: 0;
}

.footer-col dd a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.88rem;
  color: #444;
  min-height: 40px;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col dd a:hover {
  color: #000;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.copyright {
  font-size: 0.82rem;
  color: #888;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.82rem;
  color: #888;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer-links a:hover {
  color: #000;
}

/* ============================================================
   Scroll Reveal Animation
   ============================================================ */
.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-section .reveal-item:nth-child(1) { transition-delay: 0.05s; }
.reveal-section .reveal-item:nth-child(2) { transition-delay: 0.12s; }
.reveal-section .reveal-item:nth-child(3) { transition-delay: 0.19s; }
.reveal-section .reveal-item:nth-child(4) { transition-delay: 0.26s; }
.reveal-section .reveal-item:nth-child(5) { transition-delay: 0.33s; }
.reveal-section .reveal-item:nth-child(6) { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   Responsive — Tablet (≤900px)
   ============================================================ */
@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }

  .nav-left { display: none; }

  .brand-center {
    grid-column: 1;
  }

  .nav-right {
    grid-column: 2;
    grid-row: 1;
  }

  .hero-section,
  .cat-hero-section,
  .entry-hero-section,
  .entry-body-section,
  .tag-hero-section,
  .about-hero-section,
  .about-body-section,
  .privacy-hero-section,
  .privacy-body-section,
  .content-section,
  .default-section {
    grid-template-columns: 1fr;
  }

  .hero-aside,
  .cat-aside,
  .entry-aside,
  .tag-aside,
  .about-aside,
  .about-body-aside,
  .privacy-aside,
  .privacy-body-aside,
  .content-aside,
  .entry-body-aside,
  .default-aside {
    border-left: none;
    border-top: 2px solid #000;
    padding-left: 0;
    padding-top: 2rem;
  }

  .sticky-aside {
    position: static;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   Responsive — Mobile (≤600px)
   ============================================================ */
@media (max-width: 600px) {
  .header-inner {
    padding: 0.75rem 1rem;
    grid-template-columns: 1fr auto;
  }

  .nav-pill {
    font-size: 0.72rem;
    padding: 0.4rem 0.7rem;
  }

  .brand-name {
    font-size: 0.88rem;
  }

  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .cards-section,
  .children-section,
  .entry-list-section,
  .related-section,
  .tag-list-section,
  .about-features-section {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .wrap {
    padding: 0 1rem;
  }

  .nav-anchor-bar nav p {
    padding: 0 1rem;
  }
}
