/*
Theme Name: Esenza
Theme URI: https://esenza.com
Author: Esenza
Author URI: https://esenza.com
Description: Custom dark-luxury editorial theme for Esenza — Beauty & Health. Converted from the original static design.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: esenza
*/

/* ============================================================
   ESENZA — Beauty & Health | styles.css | v20260613
   Archetype: Dark Luxury Editorial
   Palette: Deep Navy Charcoal + Champagne Gold (logo match)
   ============================================================ */
/* ---- RESET & BASE ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #0D0D1A;                    /* base dark navy        */
  --bg-2:       #131320;                    /* slightly elevated     */
  --bg-3:       #1A1A2E;                    /* card / section bg     */
  --bg-4:       #252540;                    /* hover / elevated card */
  --bg-5:       #2D2D50;                    /* active states         */
  --ink:        #F5F0E8;                    /* primary text – cream  */
  --ink-soft:   #DDD5C8;                    /* body text             */
  --ink-mute:   #9A9080;                    /* muted / meta          */
  --ink-dim:    #605850;                    /* very muted            */
  --accent:     #C9A96E;                    /* gold – matches logo   */
  --accent-lt:  #E0C88A;                    /* light gold            */
  --accent-dk:  #A88550;                    /* dark gold             */
  --blush:      #E8B4A0;                    /* rose from logo leaf   */
  --line:       rgba(201,169,110,0.15);     /* gold-tinted borders   */
  --line-soft:  rgba(245,240,232,0.06);     /* very subtle borders   */
  --logo-bg:    #FCF3E6;                    /* logo's own cream bg   */
  --nav-h:      116px;
  --radius:     12px;
  --radius-sm:  8px;
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io:    cubic-bezier(0.76, 0, 0.24, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }

/* ---- TYPOGRAPHY ------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

.font-display { font-family: "Cormorant Garamond", Georgia, serif; }

h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.15;
  font-weight: 600;
  color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

p { margin-bottom: 1.2rem; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

em { font-style: italic; color: var(--accent); }

/* ---- LAYOUT UTILS ----------------------------------------- */
.container        { width: 90%; max-width: 1200px; margin-inline: auto; }
.container--narrow{ width: 90%; max-width: 800px;  margin-inline: auto; }
.section   { padding-block: 5rem; }
.section--sm{ padding-block: 3rem; }

/* ---- BUTTONS ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.3s var(--ease-out);
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,169,110,0.35);
}
.btn-ghost {
  border: 1.5px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ---- NAV -------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease-out), box-shadow 0.4s;
}
.nav.is-solid {
  background: rgba(13,13,26,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner {
  width: 90%;
  max-width: 1200px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo image in nav */
.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav__logo-img {
  height: 84px;
  width: auto;
  max-width: 50vw;
  background: var(--logo-bg);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.nav__logo:hover .nav__logo-img {
  box-shadow: 0 4px 20px rgba(201,169,110,0.4);
  transform: translateY(-1px);
}

/* Fallback text logo (kept for pages still using it) */
.nav__logo-text {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.nav__logo-text span { color: var(--accent); }

.nav__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-mute);
  position: relative;
  transition: color 0.2s;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}
.nav__links a:hover { color: var(--accent); }
.nav__links a:hover::after { width: 100%; }
.nav__hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav__hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  transition: all 0.3s;
  border-radius: 2px;
}

/* ---- HERO ------------------------------------------------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}
.hero.is-loaded .hero__bg img { transform: scale(1); }
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,13,26,0.93) 0%,
    rgba(13,13,26,0.78) 45%,
    rgba(13,13,26,0.45) 100%
  );
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1200px;
  margin-inline: auto;
  padding-top: var(--nav-h);
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-lt);
  margin-bottom: 1.75rem;
  padding: 0.55rem 1.2rem 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(201,169,110,0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero__eyebrow-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(201,169,110,0.16);
  animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(201,169,110,0.16); }
  50%       { box-shadow: 0 0 0 7px rgba(201,169,110,0.08); }
}
.hero__title {
  max-width: 14ch;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.hero__title em {
  display: block;
  font-size: 1.1em;
  font-style: italic;
  background: linear-gradient(115deg, var(--accent-lt) 10%, var(--accent) 50%, var(--blush) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero__sub {
  max-width: 42ch;
  font-size: 1.1rem;
  color: var(--ink-mute);
  margin-bottom: 2.5rem;
  line-height: 1.75;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero stats row */
.hero__stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 3.5rem;
  flex-wrap: wrap;
}
.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.hero__stat-num {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}
.hero__stat-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hero__stat-divider {
  width: 1px;
  height: 34px;
  background: var(--line);
}

/* Decorative glow orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
}
.hero__orb--1 {
  width: 30vw; height: 30vw;
  max-width: 480px; max-height: 480px;
  top: 6%; left: 8%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  animation: orbFloat1 24s ease-in-out infinite;
}
.hero__orb--2 {
  width: 24vw; height: 24vw;
  max-width: 380px; max-height: 380px;
  bottom: 8%; left: 28%;
  background: radial-gradient(circle, var(--blush) 0%, transparent 70%);
  animation: orbFloat2 28s ease-in-out infinite;
}
@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(4%, 6%) scale(1.12); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-5%, -4%) scale(1.15); }
}
.hero__scroll-hint {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  animation: bounce 2.4s ease-in-out infinite;
}
.hero__scroll-hint::after {
  content: '';
  display: block;
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ---- MARQUEE ---------------------------------------------- */
.marquee {
  overflow: hidden;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 1rem;
}
.marquee__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marqueeRoll 28s linear infinite;
}
.marquee__item {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ink-mute);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.marquee__item::after {
  content: '◇';
  font-style: normal;
  color: var(--accent);
  font-size: 0.7rem;
}
@keyframes marqueeRoll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- SECTION HEADER --------------------------------------- */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.section-header__label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.section-header__title { margin-bottom: 0; }
.section-header__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  transition: gap 0.25s;
}
.section-header__link:hover { gap: 0.8rem; }

/* ---- CATEGORY GRID ---------------------------------------- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  transition: transform 0.4s var(--ease-out);
  border: 1px solid var(--line);
}
.cat-card:hover { transform: translateY(-6px); }
.cat-card:hover .cat-card__img { transform: scale(1.08); }
.cat-card__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.cat-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,26,0.92) 0%, rgba(13,13,26,0.3) 60%, transparent 100%);
}
.cat-card__body {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  width: 100%;
}
.cat-card__count {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(201,169,110,0.6);
  margin-bottom: 0.3rem;
}
.cat-card__name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

/* ---- ARTICLE CARD ----------------------------------------- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.articles-grid--featured { grid-template-columns: repeat(3, 1fr); }

.article-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
}
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  border-color: rgba(201,169,110,0.35);
}
.article-card:hover .article-card__img { transform: scale(1.06); }
.article-card__thumb {
  overflow: hidden;
  aspect-ratio: 16/9;
  flex-shrink: 0;
}
.article-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.article-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.article-card__cat {
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.article-card__title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 0.75rem;
  flex: 1;
}
.article-card__excerpt {
  font-size: 0.875rem;
  color: var(--ink-mute);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--ink-mute);
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
  margin-top: auto;
}
.article-card__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }

/* ---- ARTICLE PAGE ----------------------------------------- */
.article-hero {
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 3rem;
  background: var(--bg);
}
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--ink-mute);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.article-breadcrumb a { color: var(--accent); transition: opacity 0.2s; }
.article-breadcrumb a:hover { opacity: 0.7; }
.article-breadcrumb__sep { color: var(--ink-dim); }

.article-cat-tag {
  display: inline-block;
  background: rgba(201,169,110,0.12);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(201,169,110,0.25);
}
.article-title { margin-bottom: 1.2rem; text-wrap: balance; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--ink-mute);
  margin-bottom: 2.5rem;
}
.article-meta__sep { color: var(--ink-dim); }
.article-featured-img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  background: var(--bg-3);
  border-radius: var(--radius);
  margin-bottom: 3.5rem;
  border: 1px solid var(--line);
}

/* ---- ARTICLE BODY ----------------------------------------- */
.article-body { max-width: 740px; margin-inline: auto; }
.article-body h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.article-body h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
  color: var(--accent-lt);
}
.article-body p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}
.article-body ul { list-style: none; margin-bottom: 1.4rem; }
.article-body ul li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.65rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.75;
}
.article-body ul li::before {
  content: '◇';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.58rem;
  top: 0.48em;
}
.article-body ol { counter-reset: ol-counter; margin-bottom: 1.4rem; }
.article-body ol li {
  counter-increment: ol-counter;
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.65rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.75;
}
.article-body ol li::before {
  content: counter(ol-counter) '.';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
}
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body .article-img {
  width: 100%;
  height: auto;
  max-height: 60vh;
  border-radius: var(--radius);
  margin-block: 2rem;
  object-fit: contain;
  background: var(--bg-3);
  border: 1px solid var(--line);
}
.article-body blockquote {
  margin-block: 2rem;
  padding: 1.5rem 2rem;
  border-left: 3px solid var(--accent);
  background: rgba(201,169,110,0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.65;
}
.article-body .conclusion-box {
  margin-top: 2.5rem;
  padding: 2rem 2.2rem;
  background: var(--bg-3);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
}
.article-body .conclusion-box h2 {
  border-bottom: none;
  margin-top: 0;
  color: var(--accent);
}

/* ---- CATEGORY PAGE HERO ----------------------------------- */
.cat-hero {
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 3rem;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.cat-hero::after {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cat-hero__label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.cat-hero__title { margin-bottom: 1rem; }
.cat-hero__desc { max-width: 52ch; font-size: 1.05rem; color: var(--ink-mute); line-height: 1.75; }
.articles-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* ---- REVEAL ANIMATIONS ------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split]  { opacity: 1; transform: none; }

/* ---- READING PROGRESS ------------------------------------ */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent), var(--accent-lt));
  z-index: 200;
  width: 0%;
  transition: width 0.1s linear;
}

/* ---- FOOTER ----------------------------------------------- */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  color: var(--ink-mute);
  padding-block: 4rem 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer__logo-img {
  height: 130px;
  width: auto;
  max-width: 100%;
  background: var(--logo-bg);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  display: block;
  margin-bottom: 1rem;
}
.footer__tagline { font-size: 0.875rem; line-height: 1.75; }
.footer__col-title {
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(201,169,110,0.5);
  margin-bottom: 1.2rem;
}
.footer__links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__links a {
  font-size: 0.875rem;
  color: var(--ink-mute);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--accent); }
.footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--ink-dim);
}
.footer__bottom a { color: var(--ink-dim); transition: color 0.2s; }
.footer__bottom a:hover { color: var(--accent); }

/* ---- LEGAL PAGES ----------------------------------------- */
.legal-hero {
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 2rem;
  background: var(--bg);
}
.legal-hero__label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.legal-hero__title { margin-bottom: 0.75rem; }
.legal-hero__date  { font-size: 0.8rem; color: var(--ink-mute); }
.legal-body {
  max-width: 800px;
  margin-inline: auto;
  padding-block: 3rem 5rem;
}
.legal-body h2 {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.legal-body h3 {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  margin-top: 1.6rem;
  margin-bottom: 0.6rem;
  color: var(--accent-lt);
}
.legal-body p {
  font-size: 0.985rem;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}
.legal-body ul { margin-bottom: 1.2rem; }
.legal-body ul li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.5rem;
  font-size: 0.985rem;
  color: var(--ink-soft);
  line-height: 1.75;
}
.legal-body ul li::before {
  content: '◇';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.58rem;
  top: 0.46em;
}
.legal-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-body a:hover { color: var(--accent-lt); }

/* About page */
.about-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.team-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.team-card__avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 2px solid var(--accent);
}
.team-card__name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.team-card__role { font-size: 0.8rem; color: var(--accent); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.value-item {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.value-item__icon { font-size: 1.8rem; margin-bottom: 0.75rem; }
.value-item__title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.value-item__text { font-size: 0.875rem; color: var(--ink-mute); line-height: 1.65; }

/* ---- PAGINATION ------------------------------------------- */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 3rem; }
.page-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.875rem;
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
  transition: all 0.2s;
}
.page-btn:hover, .page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* ---- RELATED ARTICLES ------------------------------------- */
.related {
  padding-block: 4rem;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.related__title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: 2rem;
  text-align: center;
}

/* ---- MOBILE MENU ------------------------------------------ */
.nav__mobile {
  position: fixed;
  top: 0; right: -100%;
  width: min(360px, 100vw);
  height: 100dvh;
  background: var(--bg-3);
  z-index: 150;
  padding: calc(var(--nav-h) + 2rem) 2rem 2rem;
  transition: right 0.4s var(--ease-out);
  box-shadow: -8px 0 48px rgba(0,0,0,0.6);
  overflow-y: auto;
}
.nav__mobile.is-open { right: 0; }
.nav__mobile-links { display: flex; flex-direction: column; gap: 1.5rem; }
.nav__mobile-links a {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
  transition: color 0.2s;
}
.nav__mobile-links a:hover { color: var(--accent); }
.nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 140;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.nav__overlay.is-open { opacity: 1; pointer-events: all; }
.nav__close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: var(--ink-mute);
  transition: color 0.2s;
}
.nav__close:hover { color: var(--accent); }

/* ---- RESPONSIVE ------------------------------------------- */
@media (max-width: 1024px) {
  .articles-grid--featured { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --nav-h: 92px; }
  .nav__logo-img { height: 64px; padding: 6px 12px; }
  .footer__logo-img { height: 110px; }
  .nav__links   { display: none; }
  .nav__hamburger { display: flex; }
  .articles-grid--featured { grid-template-columns: 1fr; }
  .categories-grid  { grid-template-columns: repeat(2, 1fr); }
  .hero__bg img     { object-position: 90% center; }
  .hero__actions    { flex-direction: column; align-items: flex-start; }
  .hero__stats      { gap: 1.25rem; margin-top: 2.5rem; }
  .hero__stat-num   { font-size: 1.4rem; }
  .hero__orb--1, .hero__orb--2 { opacity: 0.25; }
  .section-header   { flex-direction: column; align-items: flex-start; }
  .footer__grid     { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .categories-grid  { grid-template-columns: 1fr; }
  .footer__grid     { grid-template-columns: 1fr; }
  .footer__bottom   { flex-direction: column; text-align: center; }
  .nav__logo-img    { height: 56px; padding: 5px 10px; }
}

/* ---- REDUCED MOTION (only intrusive) ---------------------- */
@media (prefers-reduced-motion: reduce) {
  .marquee__track     { animation-duration: 60s; }
  .hero__scroll-hint  { animation: none; }
}