/* ============================================================
   CHILL CHILL SOFA — Global Styles
   Target: 25–40 yr Taiwanese professionals
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&family=Noto+Sans+TC:wght@300;400;500;700&display=swap');

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* --- Design Tokens --- */
:root {
  --bg: #F8F5F0;
  --surface: #FFFFFF;
  --primary: #3A6B4A;
  --primary-dark: #2D5016;
  --primary-light: #5A8B6A;
  --accent: #C8956C;
  --accent-light: #E8B898;
  --dark: #1A2A1A;
  --text: #333333;
  --text-muted: #6B6B6B;
  --text-light: #9B9B9B;
  --border: #E2DDD6;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 2px 16px rgba(30,42,30,0.08);
  --shadow-md: 0 4px 24px rgba(30,42,30,0.12);
  --shadow-lg: 0 8px 40px rgba(30,42,30,0.16);
  --transition: 0.25s ease;
  --max-w: 1200px;
  --max-w-text: 760px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Noto Sans TC', serif;
  line-height: 1.3;
  color: var(--dark);
}
h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
h4 { font-size: 1.125rem; }
p { margin-bottom: 1rem; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.5rem; }

/* --- Layout --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: var(--max-w-text); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section--alt { background-color: var(--surface); }
.section-label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 0.75rem;
}
.section-title { margin-bottom: 1rem; }
.section-subtitle { font-size: 1.125rem; color: var(--text-muted); margin-bottom: 3rem; max-width: 600px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 2rem; border-radius: 50px; font-weight: 600;
  font-size: 0.9375rem; cursor: pointer; transition: all var(--transition);
  border: 2px solid transparent; text-decoration: none;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: #A87452; color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--white { background: white; color: var(--primary); }
.btn--white:hover { background: var(--bg); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* --- Navigation --- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(248,245,240,0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.navbar.scrolled { background: rgba(248,245,240,0.98); box-shadow: var(--shadow); }
.navbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; padding: 0 1.5rem; max-width: var(--max-w); margin: 0 auto;
}
.navbar__logo {
  font-family: 'Playfair Display', serif; font-size: 1.375rem; font-weight: 700;
  color: var(--dark); text-decoration: none; display: flex; align-items: center; gap: 0.5rem;
}
.navbar__logo-icon {
  width: 36px; height: 36px; background: var(--primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: white; font-size: 1rem;
}
.navbar__nav {
  display: flex; align-items: center; gap: 2rem; list-style: none; padding: 0; margin: 0;
}
.navbar__nav a {
  font-size: 0.9375rem; font-weight: 500; color: var(--text);
  transition: color var(--transition); position: relative;
}
.navbar__nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--primary); transition: width var(--transition);
}
.navbar__nav a:hover, .navbar__nav a.active { color: var(--primary); }
.navbar__nav a:hover::after, .navbar__nav a.active::after { width: 100%; }
.navbar__cta { display: flex; align-items: center; gap: 1rem; }
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 5px; background: none; border: none;
}
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--dark);
  border-radius: 2px; transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .navbar__nav, .navbar__cta { display: none; }
  .navbar.mobile-open .navbar__nav {
    display: flex; flex-direction: column; position: fixed; top: 70px;
    left: 0; right: 0; background: var(--bg); padding: 2rem 1.5rem;
    gap: 1.5rem; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
  }
  .navbar.mobile-open .navbar__cta {
    display: flex; position: fixed; top: 370px; left: 0; right: 0;
    background: var(--bg); padding: 1rem 1.5rem 2rem; justify-content: center;
  }
}

/* --- Hero --- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 100px 0 80px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -20%; right: -10%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(58,107,74,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
  max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 1rem; background: rgba(58,107,74,0.1); color: var(--primary);
  border-radius: 50px; font-size: 0.875rem; font-weight: 600; margin-bottom: 1.5rem;
}
.hero__title { font-size: clamp(2.25rem,4.5vw,3.75rem); line-height: 1.2; margin-bottom: 1.5rem; }
.hero__title em { font-style: normal; color: var(--primary); }
.hero__desc { font-size: 1.125rem; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 500px; line-height: 1.8; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 2rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.hero__stat strong { display: block; font-size: 1.75rem; font-weight: 700; color: var(--primary); }
.hero__stat span { font-size: 0.875rem; color: var(--text-muted); }
.hero__image-wrap {
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  position: relative;
}
.hero__image-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 8rem; background: linear-gradient(135deg, #3A6B4A 0%, #5A8B6A 60%, #C8956C 100%);
}
.hero__float-card {
  position: absolute; background: white; border-radius: var(--radius); padding: 1.25rem;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 0.75rem;
}
.hero__float-card--1 { bottom: 2rem; left: -2rem; max-width: 200px; }
.hero__float-card--2 { top: 2rem; right: -2rem; max-width: 180px; }
.hero__float-card .icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0;
}
.hero__float-card .text { font-size: 0.8125rem; font-weight: 600; color: var(--dark); line-height: 1.3; }
.hero__float-card .sub { font-size: 0.75rem; color: var(--text-muted); }
@media (max-width: 768px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .hero__image-wrap { max-width: 320px; margin: 0 auto; }
  .hero__float-card { display: none; }
  .hero__stats { gap: 1.5rem; }
}

/* --- Cards --- */
.card {
  background: var(--surface); border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow); transition: all var(--transition); border: 1px solid var(--border);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 56px; height: 56px; background: rgba(58,107,74,0.1); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.25rem;
}
.card__title { font-size: 1.1875rem; margin-bottom: 0.75rem; color: var(--dark); }
.card__text { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.7; }

/* --- Blog Cards --- */
.blog-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all var(--transition); border: 1px solid var(--border);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card__thumb {
  aspect-ratio: 16/9; display: flex; align-items: center;
  justify-content: center; font-size: 3rem; position: relative;
}
.blog-card__body { padding: 1.5rem; }
.blog-card__tag {
  display: inline-block; padding: 0.25rem 0.75rem; background: rgba(58,107,74,0.1);
  color: var(--primary); border-radius: 50px; font-size: 0.75rem; font-weight: 600;
  margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.blog-card__title { font-size: 1.125rem; margin-bottom: 0.75rem; line-height: 1.4; color: var(--dark); }
.blog-card__title a { color: inherit; }
.blog-card__title a:hover { color: var(--primary); }
.blog-card__excerpt { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1.25rem; }
.blog-card__meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.8125rem; color: var(--text-light); }
.blog-card__read { font-weight: 600; color: var(--primary); }

/* --- About Page --- */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 5rem; align-items: start; }
.about-image { position: sticky; top: 100px; }
.about-image__wrap {
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); position: relative;
}
.about-image__wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-image__placeholder {
  width: 100%; height: 100%; min-height: 300px; display: flex; align-items: center;
  justify-content: center; font-size: 6rem; background: linear-gradient(135deg, #3A6B4A, #5A8B6A);
}
.about-image__badge {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  background: white; border-radius: var(--radius); padding: 1rem 1.5rem;
  box-shadow: var(--shadow-md); text-align: center; white-space: nowrap;
}
.about-image__badge strong { display: block; font-size: 1.25rem; color: var(--primary); }
.about-image__badge span { font-size: 0.8125rem; color: var(--text-muted); }
.about-content__intro { font-size: 1.1875rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 2.5rem; }
.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 2.5rem 0; }
.about-value {
  text-align: center; padding: 1.5rem 1rem; background: var(--bg);
  border-radius: var(--radius); border: 1px solid var(--border);
}
.about-value__icon { font-size: 2rem; margin-bottom: 0.75rem; }
.about-value__title { font-size: 0.9375rem; font-weight: 600; color: var(--dark); margin-bottom: 0.5rem; }
.about-value__text { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.6; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-image { position: static; }
  .about-values { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) { .about-values { grid-template-columns: 1fr; } }

/* --- Services Page --- */
.service-item {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
  padding: 4rem 0; border-bottom: 1px solid var(--border);
}
.service-item:last-child { border-bottom: none; }
.service-item:nth-child(even) .service-item__content { order: 2; }
.service-item:nth-child(even) .service-item__visual { order: 1; }
.service-item__number { font-size: 4rem; font-weight: 700; color: var(--border); line-height: 1; margin-bottom: 1rem; font-family: 'Playfair Display', serif; }
.service-item__tag {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.375rem 1rem;
  background: rgba(58,107,74,0.1); color: var(--primary); border-radius: 50px;
  font-size: 0.8125rem; font-weight: 600; margin-bottom: 1rem;
}
.service-item__title { margin-bottom: 1rem; }
.service-item__desc { color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.8; }
.service-item__features { list-style: none; padding: 0; margin-bottom: 2rem; }
.service-item__features li {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0;
  color: var(--text-muted); font-size: 0.9375rem; border-bottom: 1px solid var(--border);
}
.service-item__features li::before {
  content: '✓'; width: 20px; height: 20px; background: var(--primary); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.6875rem; flex-shrink: 0;
}
.service-item__visual {
  border-radius: var(--radius-lg); aspect-ratio: 1; display: flex;
  align-items: center; justify-content: center; font-size: 6rem;
  background: linear-gradient(135deg, rgba(58,107,74,0.08) 0%, rgba(200,149,108,0.12) 100%);
  border: 1px solid var(--border);
}
@media (max-width: 768px) {
  .service-item { grid-template-columns: 1fr; gap: 2rem; }
  .service-item:nth-child(even) .service-item__content { order: 1; }
  .service-item:nth-child(even) .service-item__visual { order: 2; }
}

/* --- Testimonials --- */
.testimonial {
  background: var(--surface); border-radius: var(--radius); padding: 2rem;
  border: 1px solid var(--border); position: relative;
}
.testimonial::before {
  content: '"'; position: absolute; top: 1rem; right: 1.5rem; font-size: 4rem;
  color: var(--primary); opacity: 0.15; font-family: 'Playfair Display', serif; line-height: 1;
}
.testimonial__text { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 1.5rem; font-style: italic; }
.testimonial__author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center; color: white;
  font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.testimonial__name { font-weight: 600; font-size: 0.9375rem; color: var(--dark); }
.testimonial__role { font-size: 0.8125rem; color: var(--text-muted); }

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 6rem 0; text-align: center; position: relative; overflow: hidden;
}
.cta-section::before, .cta-section::after {
  content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,0.04);
}
.cta-section::before { top: -50%; left: -20%; width: 500px; height: 500px; }
.cta-section::after { bottom: -30%; right: -10%; width: 400px; height: 400px; }
.cta-section .section-label { color: rgba(255,255,255,0.7); }
.cta-section h2 { color: white; margin-bottom: 1rem; }
.cta-section > .container > p {
  color: rgba(255,255,255,0.8); font-size: 1.125rem; margin-bottom: 2.5rem;
  max-width: 500px; margin-left: auto; margin-right: auto;
}

/* --- Newsletter --- */
.newsletter {
  background: var(--surface); border-radius: var(--radius-lg); padding: 3rem;
  border: 1px solid var(--border); text-align: center;
}
.newsletter h3 { margin-bottom: 0.75rem; }
.newsletter p { color: var(--text-muted); margin-bottom: 1.5rem; }
.newsletter__form { display: flex; gap: 0.75rem; max-width: 480px; margin: 0 auto; }
.newsletter__input {
  flex: 1; padding: 0.875rem 1.25rem; border: 1.5px solid var(--border);
  border-radius: 50px; font-size: 0.9375rem; background: var(--bg);
  color: var(--text); outline: none; transition: border-color var(--transition);
}
.newsletter__input:focus { border-color: var(--primary); }
@media (max-width: 500px) {
  .newsletter__form { flex-direction: column; }
  .newsletter__input, .newsletter__form .btn { width: 100%; justify-content: center; }
}

/* --- Article --- */
.article-hero { padding: 120px 0 60px; background: var(--surface); border-bottom: 1px solid var(--border); }
.article-hero__tag {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.375rem 1rem;
  background: rgba(58,107,74,0.1); color: var(--primary); border-radius: 50px;
  font-size: 0.8125rem; font-weight: 600; margin-bottom: 1.25rem;
}
.article-hero__title { font-size: clamp(1.75rem, 3.5vw, 3rem); margin-bottom: 1.25rem; max-width: 800px; }
.article-hero__meta { display: flex; align-items: center; gap: 1.5rem; color: var(--text-muted); font-size: 0.875rem; flex-wrap: wrap; }
.article-hero__author { display: flex; align-items: center; gap: 0.75rem; }
.article-hero__avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 0.875rem;
}
.article-body { padding: 4rem 0; }
.article-body h2 { margin: 2.5rem 0 1rem; font-size: 1.5rem; }
.article-body h3 { margin: 2rem 0 0.75rem; font-size: 1.25rem; }
.article-body p { margin-bottom: 1.5rem; color: var(--text); line-height: 1.9; }
.article-body ul, .article-body ol { margin-bottom: 1.5rem; color: var(--text); }
.article-body li { margin-bottom: 0.75rem; line-height: 1.8; }
.article-body blockquote {
  border-left: 4px solid var(--primary); padding: 1.25rem 1.5rem;
  background: rgba(58,107,74,0.06); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 2rem 0; font-style: italic; color: var(--text);
  font-size: 1.0625rem; line-height: 1.8;
}
.article-body .highlight-box {
  background: linear-gradient(135deg, rgba(58,107,74,0.08), rgba(200,149,108,0.08));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; margin: 2.5rem 0;
}
.article-body .highlight-box h4 { margin-bottom: 1rem; color: var(--primary); }
.article-body .highlight-box ul { margin-bottom: 0; }
.article-nav {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 2rem 0; border-top: 1px solid var(--border); margin-top: 2rem;
}
.article-nav a { font-size: 0.9375rem; font-weight: 500; }

/* --- Page Header --- */
.page-header { padding: 120px 0 60px; background: var(--surface); border-bottom: 1px solid var(--border); }
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text-light); }

/* --- Blog Filter Tags --- */
.filter-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.filter-tag {
  padding: 0.375rem 1rem; background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 50px; font-size: 0.875rem; font-weight: 500; color: var(--text-muted);
  cursor: pointer; transition: all var(--transition);
}
.filter-tag:hover, .filter-tag.active {
  background: var(--primary); border-color: var(--primary); color: white;
}

/* --- Footer --- */
.footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 5rem 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }
.footer__brand { max-width: 300px; }
.footer__logo {
  font-family: 'Playfair Display', serif; font-size: 1.375rem; font-weight: 700;
  color: white; text-decoration: none; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem;
}
.footer__logo-icon {
  width: 32px; height: 32px; background: var(--primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 0.875rem;
}
.footer__desc { font-size: 0.9375rem; line-height: 1.7; margin-bottom: 1.5rem; }
.footer__socials { display: flex; gap: 0.75rem; }
.footer__social {
  width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7);
  text-decoration: none; font-size: 0.75rem; font-weight: 600; transition: all var(--transition);
}
.footer__social:hover { background: var(--primary); color: white; }
.footer__heading { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.4); margin-bottom: 1.25rem; }
.footer__links { list-style: none; padding: 0; }
.footer__links li { margin-bottom: 0.625rem; }
.footer__links a { color: rgba(255,255,255,0.6); font-size: 0.9375rem; text-decoration: none; transition: color var(--transition); }
.footer__links a:hover { color: white; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; display: flex; align-items: center; justify-content: space-between; font-size: 0.875rem; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; max-width: none; } }
@media (max-width: 600px) { .footer__grid { grid-template-columns: 1fr; } .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; } }

/* --- Animations --- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeInUp 0.6s ease forwards; }
.animate-in--delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-in--delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-in--delay-3 { animation-delay: 0.3s; opacity: 0; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- Misc --- */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--primary); z-index: 9999; transition: width 0.1s linear; width: 0; }
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; width: 44px; height: 44px;
  background: var(--primary); color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transform: translateY(10px);
  transition: all var(--transition); border: none; font-size: 1.125rem;
  text-decoration: none; z-index: 100;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); color: white; }
.tag { padding: 0.25rem 0.75rem; background: var(--bg); border: 1px solid var(--border); border-radius: 50px; font-size: 0.8125rem; color: var(--text-muted); }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
