/* =============================================================
   PAWLY — Modern Companion Living Platform
   Design System & Stylesheet
   ============================================================= */

/* === DESIGN TOKENS === */
:root {
  /* Color Palette */
  --bg:           #FAF7F2;
  --surface:      #F0EBE1;
  --surface-2:    #E6DFD4;
  --border:       #DDD5C6;
  --border-light: #EDE7DC;

  --text-primary:   #2A2520;
  --text-secondary: #5C4F44;
  --text-muted:     #9A8A7C;
  --text-inverse:   #FAF7F2;

  --white: #FFFFFF;

  --accent:         #C4845A;
  --accent-light:   #E8C9AE;
  --accent-hover:   #B0724A;

  --sage:           #7A8F7E;
  --sage-light:     #B8CBBB;
  --sage-dark:      #5A6E5E;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', 'Inter', system-ui, -apple-system, sans-serif;

  /* Font sizes */
  --text-xs:   0.6875rem;  /* 11px */
  --text-sm:   0.8125rem;  /* 13px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  1.875rem;   /* 30px */
  --text-4xl:  2.25rem;    /* 36px */
  --text-5xl:  3rem;       /* 48px */
  --text-6xl:  3.75rem;    /* 60px */
  --text-7xl:  4.5rem;     /* 72px */

  /* Spacing */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;
  --sp-32: 128px;

  /* Layout */
  --container:    1200px;
  --container-lg: 1380px;
  --container-sm: 720px;

  /* Radius */
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --t-fast:   150ms ease;
  --t:        280ms ease;
  --t-slow:   500ms cubic-bezier(0.25, 0.1, 0.25, 1);

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(42, 37, 32, 0.07);
  --shadow:    0 4px 20px rgba(42, 37, 32, 0.09);
  --shadow-lg: 0 16px 48px rgba(42, 37, 32, 0.12);

  /* Nav */
  --nav-h: 68px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { background: var(--bg); color: var(--text-primary); font-family: var(--font-body); line-height: 1.65; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { border: none; cursor: pointer; background: none; font-family: inherit; }
ul { list-style: none; }
input, textarea { font-family: inherit; border: none; outline: none; }

/* === TYPOGRAPHY BASE === */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; color: var(--text-primary); text-wrap: balance; }
h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
p  { max-width: 68ch; }

/* === UTILITY === */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-6); }
.container--lg { max-width: var(--container-lg); }
.container--sm { max-width: var(--container-sm); }

/* Label / eyebrow text */
.label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
}
.label--sage   { color: var(--sage); }
.label--muted  { color: var(--text-muted); }
.label--cat    { color: var(--sage-dark); }
.label--dog    { color: #8B6A4F; }
.label--wellness { color: var(--sage); }
.label--nutrition { color: #A06B3C; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  transition: all var(--t);
  white-space: nowrap;
}
.btn--primary {
  background: var(--text-primary);
  color: var(--text-inverse);
}
.btn--primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn--outline {
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
}
.btn--outline:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}
.btn--ghost {
  color: var(--text-secondary);
  padding: 14px 0;
}
.btn--ghost:hover { color: var(--accent); }

/* Read link */
.read-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--t-fast);
  letter-spacing: 0.01em;
}
.read-link span { transition: transform var(--t-fast); }
.read-link:hover { color: var(--accent); }
.read-link:hover span { transform: translateX(4px); }

/* Section headers */
.section-header { margin-bottom: var(--sp-12); }
.section-header--flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
}
.section-header .label { margin-bottom: var(--sp-3); }
.section-title {
  font-size: var(--text-4xl);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
  margin-top: var(--sp-2);
}
.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin-top: var(--sp-3);
  max-width: 55ch;
}
.view-all {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--t-fast);
  letter-spacing: 0.02em;
  padding-bottom: var(--sp-1);
  border-bottom: 1px solid transparent;
}
.view-all:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* =============================================================
   NAVIGATION
   ============================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background var(--t), box-shadow var(--t);
}
.site-header.scrolled {
  background: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border-light);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  flex-shrink: 0;
  transition: color var(--t-fast);
}
.nav__logo:hover { color: var(--accent); }
.nav__logo span { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  flex: 1;
}
.nav__links a {
  font-size: var(--text-sm);
  font-weight: 450;
  color: var(--text-secondary);
  transition: color var(--t-fast);
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t);
}
.nav__links a:hover,
.nav__links a.active { color: var(--text-primary); }
.nav__links a:hover::after,
.nav__links a.active::after { transform: scaleX(1); transform-origin: left; }

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-left: auto;
}
.nav__search {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border-radius: var(--radius);
  transition: all var(--t-fast);
}
.nav__search:hover { color: var(--text-primary); background: var(--surface); }
.nav__subscribe {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  padding: 7px 18px;
  border-radius: var(--radius-full);
  transition: all var(--t-fast);
}
.nav__subscribe:hover {
  background: var(--text-primary);
  color: var(--text-inverse);
  border-color: var(--text-primary);
}

.nav__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.nav__mobile-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  transition: all var(--t);
  transform-origin: center;
}
.nav__mobile-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__mobile-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__mobile-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav overlay */
.nav__mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  padding: calc(var(--nav-h) + var(--sp-8)) var(--sp-6) var(--sp-8);
  flex-direction: column;
  gap: var(--sp-2);
  overflow-y: auto;
}
.nav__mobile-menu.open { display: flex; }
.nav__mobile-menu a {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--text-primary);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border-light);
  transition: color var(--t-fast);
}
.nav__mobile-menu a:hover { color: var(--accent); }

/* =============================================================
   HERO SECTION
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
  filter: saturate(0.92) brightness(1.0);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(250, 247, 242, 1.0) 0%,
    rgba(250, 247, 242, 0.92) 25%,
    rgba(250, 247, 242, 0.5) 48%,
    rgba(250, 247, 242, 0.1) 65%,
    transparent 80%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: var(--nav-h);
  width: 100%;
}

.hero__text {
  max-width: 540px;
  padding: var(--sp-20) 0;
}

.hero__text .label { margin-bottom: var(--sp-5); }

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, var(--text-7xl));
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: var(--sp-6);
}
.hero__headline em {
  font-style: italic;
  color: var(--accent);
}

.hero__subline {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--sp-10);
  max-width: 44ch;
}

.hero__cta-group {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  color: var(--text-muted);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 0.9; transform: scaleY(0.7); }
}

/* =============================================================
   EDITORIAL INTRO
   ============================================================= */
.editorial-intro {
  padding: var(--sp-24) 0;
  background: var(--bg);
}
.editorial-intro__inner {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-16);
}
.editorial-intro__line {
  width: 2px;
  height: 80px;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 8px;
}
.editorial-intro__text {
  font-family: var(--font-display);
  font-size: clamp(var(--text-xl), 2.2vw, var(--text-3xl));
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 62ch;
}

/* =============================================================
   FEATURED STORY
   ============================================================= */
.featured-story {
  padding: 0 0 var(--sp-24);
}
.featured-story__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--sp-12);
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.featured-story__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.featured-story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  transition: transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.featured-story__media:hover img { transform: scale(1.04); }

.featured-story__content {
  padding: var(--sp-12) var(--sp-12) var(--sp-12) 0;
}

.featured-story__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.featured-story__meta-divider {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}
.featured-story__read-time {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.featured-story__badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--sp-5);
}

.featured-story__title {
  font-size: clamp(var(--text-2xl), 2.5vw, var(--text-4xl));
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-5);
}
.featured-story__title a { transition: color var(--t-fast); }
.featured-story__title a:hover { color: var(--accent); }

.featured-story__excerpt {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--sp-8);
  max-width: 42ch;
}

/* =============================================================
   CATEGORIES SECTION
   ============================================================= */
.categories {
  padding: var(--sp-24) 0;
  background: var(--bg);
}

.categories__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: var(--sp-4);
}

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  cursor: pointer;
  display: block;
  transition: transform var(--t);
}
.category-card:hover { transform: translateY(-3px); }
.category-card:hover img { transform: scale(1.05); }
.category-card--large {
  grid-column: span 1;
  grid-row: span 2;
}

.category-card__media {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.category-card--large .category-card__media {
  aspect-ratio: 3/4;
  height: 100%;
}
.category-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88);
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42,37,32,0.62) 0%, transparent 55%);
  pointer-events: none;
}

.category-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-5) var(--sp-5) var(--sp-5);
  color: var(--text-inverse);
}
.category-card__content h3 {
  color: var(--white);
  font-size: var(--text-xl);
  margin-bottom: 2px;
}
.category-card__count {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.05em;
}

/* =============================================================
   ARTICLE CARD
   ============================================================= */
.article-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  transition: transform var(--t);
}
.article-card:hover { transform: translateY(-4px); }
.article-card:hover .article-card__img { transform: scale(1.04); }
.article-card:hover .article-card__title { color: var(--accent); }

.article-card__media {
  aspect-ratio: 3/2;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.article-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.article-card__body {
  padding: var(--sp-5) 0 0;
}
.article-card__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}
.article-card__time {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.article-card__dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--text-muted);
}
.article-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
  transition: color var(--t-fast);
}
.article-card__excerpt {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 42ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =============================================================
   ARTICLE GRID SECTION
   ============================================================= */
.article-grid {
  padding: var(--sp-24) 0;
}
.articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
}

/* =============================================================
   LIVING MOMENT — Atmospheric pause
   ============================================================= */
.living-moment {
  position: relative;
  margin: var(--sp-4) 0;
  overflow: hidden;
}
.living-moment__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  min-height: 520px;
}
.living-moment__media {
  position: relative;
  overflow: hidden;
}
.living-moment__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(1.02);
}

.living-moment__content {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-16) var(--sp-12);
}
.living-moment__content .label {
  margin-bottom: var(--sp-6);
}
.living-moment__quote {
  font-family: var(--font-display);
  font-size: clamp(var(--text-xl), 2vw, var(--text-3xl));
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: var(--sp-6);
}
.living-moment__quote::before { content: '\201C'; color: var(--accent); }
.living-moment__quote::after  { content: '\201D'; color: var(--accent); }
.living-moment__caption {
  font-size: var(--text-sm);
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.living-moment__cta {
  margin-top: var(--sp-10);
}

/* =============================================================
   EDITOR'S ESSENTIALS — Light editorial product section
   ============================================================= */
.essentials {
  padding: var(--sp-24) 0;
  background: var(--bg);
}
.essentials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.essential-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t);
  display: block;
}
.essential-card:hover { transform: translateY(-3px); }
.essential-card:hover .essential-card__img { transform: scale(1.04); }

.essential-card__media {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--surface-2);
}
.essential-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.essential-card__body { padding: var(--sp-5); }
.essential-card__category {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-2);
}
.essential-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
  line-height: 1.3;
}
.essential-card__note {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.55;
}

/* =============================================================
   NEWSLETTER
   ============================================================= */
.newsletter {
  padding: var(--sp-24) 0;
  background: var(--surface);
}
.newsletter__inner {
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
}
.newsletter__inner .label { margin-bottom: var(--sp-4); }
.newsletter__title {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-4);
}
.newsletter__body {
  font-size: var(--text-base);
  color: var(--text-muted);
  margin-bottom: var(--sp-8);
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}
.newsletter__form {
  display: flex;
  gap: var(--sp-2);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 5px 5px 5px 20px;
  max-width: 420px;
  margin: 0 auto;
  transition: border-color var(--t-fast);
}
.newsletter__form:focus-within { border-color: var(--accent); }
.newsletter__input {
  flex: 1;
  font-size: var(--text-sm);
  background: transparent;
  color: var(--text-primary);
}
.newsletter__input::placeholder { color: var(--text-muted); }
.newsletter__note {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--sp-4);
  letter-spacing: 0.02em;
}

/* =============================================================
   FOOTER
   ============================================================= */
.footer {
  background: var(--text-primary);
  color: var(--text-inverse);
  padding: var(--sp-16) 0 var(--sp-8);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--sp-12);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: var(--sp-8);
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-inverse);
  margin-bottom: var(--sp-4);
}
.footer__brand-name span { color: var(--accent); }
.footer__tagline {
  font-size: var(--text-sm);
  color: rgba(250,247,242,0.55);
  line-height: 1.65;
  max-width: 28ch;
  margin-bottom: var(--sp-6);
}
.footer__social {
  display: flex;
  gap: var(--sp-3);
}
.footer__social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(250,247,242,0.6);
  font-size: var(--text-sm);
  transition: all var(--t-fast);
}
.footer__social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.footer__col-title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250,247,242,0.5);
  margin-bottom: var(--sp-5);
}
.footer__col-links { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer__col-links a {
  font-size: var(--text-sm);
  color: rgba(250,247,242,0.7);
  transition: color var(--t-fast);
}
.footer__col-links a:hover { color: var(--text-inverse); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.footer__copyright {
  font-size: var(--text-xs);
  color: rgba(250,247,242,0.4);
  letter-spacing: 0.03em;
}
.footer__bottom-links {
  display: flex;
  gap: var(--sp-6);
}
.footer__bottom-links a {
  font-size: var(--text-xs);
  color: rgba(250,247,242,0.4);
  transition: color var(--t-fast);
}
.footer__bottom-links a:hover { color: rgba(250,247,242,0.8); }

/* =============================================================
   ARTICLE PAGE
   ============================================================= */
.article-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  height: 2px;
  background: var(--accent);
  width: 0%;
  transition: width 0.1s linear;
}

.article-hero {
  padding-top: var(--nav-h);
  background: var(--bg);
}
.article-hero__inner {
  max-width: 780px;
  margin: 0 auto;
  padding: var(--sp-16) var(--sp-6) 0;
  text-align: center;
}
.article-hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}
.article-hero__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}
.article-hero__date,
.article-hero__time {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.article-hero__title {
  font-size: clamp(var(--text-3xl), 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-6);
}
.article-hero__subtitle {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 50ch;
  margin: 0 auto var(--sp-8);
}
.article-hero__author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--border-light);
}
.article-hero__author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  overflow: hidden;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 600;
}
.article-hero__author-name {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
}

.article-cover {
  margin: var(--sp-8) 0;
}
.article-cover__img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  filter: saturate(0.9);
}
.article-cover__caption {
  text-align: center;
  margin-top: var(--sp-3);
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.article-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 var(--sp-6) var(--sp-24);
}
.article-body p {
  font-size: var(--text-lg);
  line-height: 1.78;
  color: var(--text-secondary);
  margin-bottom: var(--sp-6);
  max-width: 65ch;
}
.article-body h2 {
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: var(--sp-12) 0 var(--sp-5);
  color: var(--text-primary);
}
.article-body h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin: var(--sp-8) 0 var(--sp-4);
  color: var(--text-primary);
}
.article-body ul, .article-body ol {
  list-style: none;
  margin-bottom: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.article-body li {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.65;
  padding-left: var(--sp-6);
  position: relative;
}
.article-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.article-body blockquote {
  margin: var(--sp-10) 0;
  padding: var(--sp-8) var(--sp-8);
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-body blockquote p {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-style: italic;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0;
}
.article-body .article-intro {
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.7;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: var(--sp-8);
  margin-bottom: var(--sp-8);
}

/* Article tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: var(--sp-12) 0 var(--sp-8);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--border-light);
}
.article-tag {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  transition: all var(--t-fast);
}
.article-tag:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* Related articles */
.related-articles {
  padding: var(--sp-24) 0;
  background: var(--surface);
}
.related-articles .articles { grid-template-columns: repeat(3, 1fr); }

/* =============================================================
   DISCOVER PAGE
   ============================================================= */
.discover-hero {
  padding-top: calc(var(--nav-h) + var(--sp-16));
  padding-bottom: var(--sp-16);
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
}
.discover-hero__title {
  font-size: clamp(var(--text-4xl), 5vw, var(--text-7xl));
  margin-bottom: var(--sp-4);
}
.discover-hero__sub {
  font-size: var(--text-lg);
  color: var(--text-muted);
}

.category-filter {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  padding: var(--sp-6) 0;
}
.filter-btn {
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--t-fast);
  cursor: pointer;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--text-primary);
  color: var(--text-inverse);
  border-color: var(--text-primary);
}

.discover-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
  padding: var(--sp-12) 0 var(--sp-24);
}
.discover-grid .article-card--featured {
  grid-column: span 2;
}
.discover-grid .article-card--featured .article-card__media {
  aspect-ratio: 16/9;
}
.discover-grid .article-card--featured .article-card__title {
  font-size: var(--text-2xl);
}

/* =============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Hero text reveal */
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__text .label { animation: heroFadeIn 0.7s ease 0.2s both; }
.hero__headline     { animation: heroFadeIn 0.8s ease 0.4s both; }
.hero__subline      { animation: heroFadeIn 0.7s ease 0.6s both; }
.hero__cta-group    { animation: heroFadeIn 0.7s ease 0.75s both; }

/* =============================================================
   RESPONSIVE — Tablet (768px)
   ============================================================= */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__subscribe { display: none; }
  .nav__mobile-toggle { display: flex; }

  .featured-story__inner {
    grid-template-columns: 1fr;
  }
  .featured-story__media {
    aspect-ratio: 16/9;
  }
  .featured-story__content {
    padding: var(--sp-8);
  }

  .categories__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-card--large {
    grid-column: span 2;
    grid-row: span 1;
  }
  .category-card--large .category-card__media {
    aspect-ratio: 16/9;
    height: auto;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }

  .related-articles .articles,
  .discover-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =============================================================
   RESPONSIVE — Mobile (640px)
   ============================================================= */
@media (max-width: 640px) {
  :root { --nav-h: 60px; }

  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }

  .section-title { font-size: var(--text-2xl); }
  .section-header--flex { flex-direction: column; align-items: flex-start; gap: var(--sp-2); }

  .hero__text { padding: var(--sp-12) 0 var(--sp-8); }
  .hero__headline { font-size: clamp(2.5rem, 9vw, var(--text-5xl)); }
  .hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(250,247,242,0.85) 0%,
      rgba(250,247,242,0.75) 60%,
      rgba(250,247,242,0.4) 100%
    );
  }
  .hero__media img { object-position: 70% center; }
  .hero__scroll { display: none; }

  .editorial-intro { padding: var(--sp-16) 0; }
  .editorial-intro__inner { gap: var(--sp-6); }
  .editorial-intro__line { height: 40px; }
  .editorial-intro__text { font-size: var(--text-lg); }

  .featured-story { padding-bottom: var(--sp-16); }

  .categories__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-card--large {
    grid-column: span 2;
    grid-row: span 1;
  }
  .category-card--large .category-card__media {
    aspect-ratio: 3/2;
    height: auto;
  }

  .articles { grid-template-columns: 1fr; }
  .essentials__grid { grid-template-columns: 1fr; }
  .related-articles .articles { grid-template-columns: 1fr; }

  .living-moment__inner { grid-template-columns: 1fr; }
  .living-moment__media { aspect-ratio: 4/3; min-height: 240px; }
  .living-moment__content { padding: var(--sp-8) var(--sp-6); }

  .newsletter__form { flex-direction: column; padding: var(--sp-4); border-radius: var(--radius-xl); }
  .newsletter__input { padding: var(--sp-2) 0; }

  .footer__inner { grid-template-columns: 1fr; }

  .article-hero__title { font-size: var(--text-3xl); }
  .article-body p { font-size: var(--text-base); }
  .article-body h2 { font-size: var(--text-2xl); }

  .discover-grid { grid-template-columns: 1fr; }
  .discover-grid .article-card--featured { grid-column: span 1; }
}
