/* ==========================================================================
   aca.my.id — The Impact of Nutrition on Mental Health
   Static site styles
   ========================================================================== */

:root {
  --ink: #12363b;
  --ink-soft: #2c5054;
  --muted: #647a7d;
  --teal: #0f6b68;
  --teal-dark: #0a4c4c;
  --mint: #e9f6ef;
  --mint-2: #d4eee0;
  --coral: #f2684f;
  --coral-dark: #dc5138;
  --cream: #fff7ee;
  --gold: #f2b45c;
  --line: #e4ece8;
  --white: #ffffff;
  --shadow-sm: 0 3px 14px rgba(12, 61, 62, .06);
  --shadow: 0 14px 40px rgba(12, 61, 62, .10);
  --shadow-lg: 0 24px 60px rgba(12, 61, 62, .16);
  --radius: 20px;
  --radius-lg: 28px;
  --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
h1, h2, h3, h4 { line-height: 1.17; letter-spacing: -.035em; margin: 0 0 .55em; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.25rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 800; }
p { margin: 0 0 1.15em; }
em { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-style: italic; color: var(--coral); letter-spacing: -.02em; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 12px 12px;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }

.kicker, .eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 16px;
}
.eyebrow {
  background: var(--mint); padding: 8px 16px; border-radius: 999px; letter-spacing: .09em;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 999px; padding: 13px 22px;
  font-weight: 800; font-size: .94rem; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 8px 20px rgba(242, 104, 79, .28); }
.btn-primary:hover { background: var(--coral-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(242, 104, 79, .36); }
.btn-ghost { background: transparent; color: var(--teal); border: 2px solid var(--mint-2); }
.btn-ghost:hover { background: var(--mint); }
.btn:focus-visible, a:focus-visible, input:focus-visible, button:focus-visible {
  outline: 3px solid rgba(242, 104, 79, .45); outline-offset: 3px;
}

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--teal); font-weight: 800; border-bottom: 2px solid var(--mint-2); padding-bottom: 3px;
}
.text-link:hover { color: var(--coral); border-color: var(--coral); }

/* ------------------------------ Header ---------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 22px; }

.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { width: 46px; height: 46px; border-radius: 14px; }
.brand-text { font-size: 1.42rem; font-weight: 800; letter-spacing: -.055em; line-height: 1; }
.brand-text strong { color: var(--teal); }
.brand-text span { color: var(--coral); }
.brand-text small { display: block; font-size: .62rem; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-top: 4px; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.main-nav a { font-size: .92rem; font-weight: 700; color: var(--ink-soft); position: relative; padding: 8px 0; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 2px;
  background: var(--coral); border-radius: 2px; transition: right .22s ease;
}
.main-nav a:hover { color: var(--teal); }
.main-nav a:hover::after, .main-nav a.is-active::after { right: 0; }
.main-nav a.is-active { color: var(--teal); }
.header-cta { white-space: nowrap; padding: 11px 20px; }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; cursor: pointer; padding: 11px 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------- Hero ----------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 78% 28%, rgba(242, 180, 92, .20), transparent 34%),
    radial-gradient(circle at 8% 80%, rgba(79, 183, 145, .18), transparent 32%),
    linear-gradient(125deg, #f0f9f4 0%, #fff8ef 100%);
  padding: 76px 0 70px;
}
.hero-inner { display: grid; grid-template-columns: 1.04fr .96fr; gap: 58px; align-items: center; }
.hero-copy h1 { max-width: 12ch; }
.hero-copy > p { font-size: 1.08rem; color: var(--muted); max-width: 54ch; margin-bottom: 28px; }

.hero-search {
  display: flex; align-items: center; gap: 10px; max-width: 580px;
  background: #fff; padding: 8px 8px 8px 20px; border-radius: 999px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.hero-search > svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: .95rem; }
.hero-search input::placeholder { color: #93a6a6; }
.hero-search .btn { flex-shrink: 0; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.chip {
  display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: .82rem; font-weight: 700; color: var(--ink-soft);
  transition: transform .2s ease, border-color .2s ease, color .2s ease;
}
.chip:hover { transform: translateY(-2px); border-color: var(--coral); color: var(--coral); }

.hero-proof { display: flex; align-items: center; gap: 14px; margin-top: 32px; }
.avatars { display: flex; }
.avatars span {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font-size: .7rem; font-weight: 800; color: #fff; border: 3px solid #fff; margin-left: -10px;
  background: var(--teal);
}
.avatars span:first-child { margin-left: 0; }
.avatars span:nth-child(2) { background: var(--coral); }
.avatars span:nth-child(3) { background: var(--gold); }
.hero-proof p { margin: 0; font-size: .88rem; color: var(--muted); }
.hero-proof strong { color: var(--ink); }

.hero-visual { position: relative; }
.hero-visual > img {
  width: 100%; aspect-ratio: 8 / 5; object-fit: cover;
  border-radius: 34px; box-shadow: var(--shadow-lg);
}
.floating-card {
  position: absolute; background: #fff; border-radius: 16px; padding: 13px 18px;
  box-shadow: var(--shadow); font-size: .86rem; font-weight: 700; color: var(--ink-soft);
  border: 1px solid var(--line);
}
.floating-card strong { display: block; color: var(--teal); font-size: 1.16rem; }
.floating-card.one { left: -26px; top: 13%; }
.floating-card.two { right: -18px; bottom: 11%; }

/* ------------------------------- Stats ---------------------------------- */
.stats { background: var(--teal-dark); color: #fff; }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); padding: 30px 0; }
.stat { padding: 6px 26px; border-left: 1px solid rgba(255,255,255,.16); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: block; font-size: 1.85rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.stat span { font-size: .82rem; color: rgba(255,255,255,.74); }

/* ------------------------------ Layout ---------------------------------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 38px; align-items: start; padding-top: 72px; padding-bottom: 84px; }
.main-column { min-width: 0; }
.section { scroll-margin-top: 100px; margin-bottom: 72px; }
.section:last-child { margin-bottom: 0; }
.section-lead { font-size: 1.04rem; color: var(--muted); max-width: 68ch; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 34px; margin-top: 28px; align-items: center; }
.about-copy p { color: var(--ink-soft); }
.about-copy p:last-of-type { margin-bottom: 22px; }
.signature { font-family: "Fraunces", Georgia, serif; font-style: italic; color: var(--teal); font-size: 1.05rem; }
.value-stack { display: grid; gap: 12px; }
.value-item {
  display: flex; gap: 14px; align-items: flex-start; background: var(--mint);
  padding: 16px 18px; border-radius: 16px;
}
.value-item .icon {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center;
  background: #fff; color: var(--teal); font-weight: 800; font-size: .95rem;
}
.value-item strong { display: block; font-size: .92rem; }
.value-item span { font-size: .82rem; color: var(--muted); }

/* Topics */
.topics-wrap { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.topic-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px;
  border-radius: 14px; background: var(--cream); border: 1px solid #f7e5d2;
  font-weight: 700; font-size: .9rem; color: var(--ink-soft); transition: transform .2s ease, background .2s ease;
}
.topic-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.topic-pill:hover { transform: translateY(-3px); background: #fff; }

/* ---------------------------- Article cards ----------------------------- */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.section-head p { color: var(--muted); margin: 0; max-width: 46ch; font-size: .94rem; }
.article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }

.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #cfe3d9; }
.post-card > a.thumb { display: block; overflow: hidden; background: var(--mint); }
.post-card .thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .thumb img { transform: scale(1.045); }
.post-card-body { padding: 20px 21px 22px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; font-size: .74rem; color: var(--muted); font-weight: 600; }
.post-meta .cat { color: var(--teal); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .7rem; }
.post-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: #b9c8c4; }
.post-card h3 { margin: 12px 0 9px; font-size: 1.09rem; line-height: 1.3; }
.post-card h3 a:hover { color: var(--coral); }
.post-card p { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.post-card .read-more { margin-top: auto; font-size: .82rem; font-weight: 800; color: var(--teal); display: inline-flex; gap: 7px; align-items: center; }
.post-card .read-more svg { width: 15px; height: 15px; transition: transform .2s ease; }
.post-card:hover .read-more svg { transform: translateX(3px); }

.post-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 48% 1fr; }
.post-card.featured .thumb img { height: 100%; aspect-ratio: auto; min-height: 100%; }
.post-card.featured .post-card-body { padding: 32px; justify-content: center; }
.post-card.featured h3 { font-size: 1.55rem; }
.post-card.featured p { font-size: .95rem; }

.empty-state { display: none; text-align: center; padding: 46px 20px; background: var(--mint); border-radius: var(--radius); color: var(--ink-soft); }
.empty-state.is-visible { display: block; }

/* ----------------------------- Sidebar ---------------------------------- */
.sidebar { display: grid; gap: 22px; position: sticky; top: 104px; }
.widget {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.widget-title {
  display: flex; align-items: center; gap: 10px; font-size: .95rem; font-weight: 800;
  margin-bottom: 18px; letter-spacing: -.01em;
}
.widget-title::before { content: ""; width: 4px; height: 18px; border-radius: 3px; background: var(--coral); }
.widget-subtitle { font-size: .78rem; color: var(--muted); margin: -10px 0 18px; }

.recent-list { display: grid; gap: 17px; }
.recent-item { display: grid; grid-template-columns: 66px 1fr; gap: 13px; align-items: start; }
.recent-item img { width: 66px; height: 66px; border-radius: 12px; object-fit: cover; }
.recent-item .recent-cat { display: block; font-size: .66rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--coral); margin-bottom: 3px; }
.recent-item strong { display: block; font-size: .84rem; line-height: 1.35; }
.recent-item a:hover strong { color: var(--teal); }
.recent-item span.time { font-size: .72rem; color: var(--muted); }

.partner-list { display: grid; gap: 14px; }
.partner {
  display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start;
  padding: 14px; border-radius: 15px; border: 1px solid var(--line); background: #fbfdfb;
  transition: border-color .2s ease, transform .2s ease;
}
.partner:hover { border-color: var(--mint-2); transform: translateX(3px); }
.partner-logo {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 900; font-size: .82rem; letter-spacing: -.03em; color: #fff;
}
.partner-logo.serpzilla { background: linear-gradient(135deg, #5b46d6, #8b6cf0); }
.partner-logo.magenet { background: linear-gradient(135deg, #ec7a3c, #f5ac5b); }
.partner-logo.seedbacklink { background: linear-gradient(135deg, #1f9d6b, #62c78b); }
.partner h4 { margin: 0 0 3px; font-size: .88rem; }
.partner p { margin: 0 0 6px; font-size: .76rem; color: var(--muted); line-height: 1.5; }
.partner a { font-size: .75rem; font-weight: 800; color: var(--teal); }
.partner a:hover { color: var(--coral); }
.partner-logo {
  width: 56px; height: 56px; border-radius: 14px; object-fit: cover;
  background: transparent; display: block; box-shadow: var(--shadow-sm);
}
.partner .check-state { display: block; font-size: .69rem; font-weight: 800; margin-top: 5px; color: var(--muted); }
.partner .check-state.is-ok { color: #16845c; }
.partner .check-state.is-bad { color: #c8442f; }

.check-button { width: 100%; padding: 10px 16px; font-size: .8rem; background: var(--mint); border-color: var(--mint-2); }
.check-button:hover { background: var(--mint-2); }
.check-list { display: grid; gap: 8px; margin-top: 16px; }
.check-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border-radius: 10px; background: #f8fbf9; font-size: .78rem; color: var(--ink-soft);
}
.check-row strong { font-size: .72rem; font-weight: 800; color: var(--muted); }
.check-row.is-ok strong { color: #16845c; }
.check-row.is-bad strong { color: #c8442f; }

.sidebar-note { font-size: .72rem; color: var(--muted); line-height: 1.55; margin: 14px 0 0; }

/* ---- Plugin sidebar (same pattern as aaz.my.id) ------------------------- */
.sidebar .recent-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 17px; }
.sidebar .recent-item { display: flex; gap: 12px; align-items: flex-start; }
.sidebar .recent-item img { width: 62px; height: 54px; object-fit: cover; border-radius: 10px; flex: none; }
.sidebar .recent-item a { display: block; font-size: .81rem; font-weight: 700; line-height: 1.4; }
.sidebar .recent-item a:hover { color: var(--coral-dark); }
.sidebar .recent-item span { display: block; margin-top: 4px; font-size: .68rem; color: var(--muted); }

.sape-widget { background: linear-gradient(180deg, #fff6f2 0%, #fff 55%); border-color: #f2cabb; }
.sape-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sape-brand { display: flex; align-items: center; gap: 9px; font-size: .94rem; font-weight: 800; color: var(--ink); }
.sape-brand svg { width: 28px; height: 28px; flex: none; }
.status {
  padding: 4px 9px; border-radius: 999px; background: #e4f6f0; color: var(--teal-dark);
  font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
}
.status.is-empty { background: #f0f2f5; color: #7d8999; }
.status.is-live { background: #e4f6f0; color: var(--teal-dark); }
.status.is-offline { background: #fff0e9; color: var(--coral-dark); }
.sape-widget > p, .magenet-widget > p { margin: 0 0 14px; font-size: .75rem; color: var(--muted); }
.sape-live-note { font-size: .7rem !important; color: var(--teal) !important; font-style: italic; }
.shortcode {
  margin: 0 0 14px; padding: 12px 13px; border-radius: 10px;
  background: var(--teal-dark); color: #cfeee8; font-family: Consolas, "Courier New", monospace;
  font-size: .68rem; line-height: 1.6; overflow-x: auto;
}
.sape-links { list-style: none; margin: 0 0 12px; padding: 0; }
.sape-links li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .75rem; }
.sape-links li:last-child { border-bottom: 0; }
.sape-links a { font-weight: 650; color: var(--ink); }
.sape-links a:hover { color: var(--coral-dark); }
.sape-links small { color: var(--muted); font-size: .62rem; flex: none; }
.sape-note { margin: 0 !important; padding: 11px 12px; border-radius: 10px; background: #fff0eb; font-size: .68rem !important; line-height: 1.55 !important; color: #8a4a37 !important; }

.magenet-widget { background: linear-gradient(180deg, #f2fbf9 0%, #fff 55%); border-color: #bfe6dd; }
.magenet-links { display: flex; flex-direction: column; gap: 12px; }
.magenet-ad {
  padding: 10px 12px; border: 1px dashed #cfe4df; border-radius: 10px;
  font-size: .75rem; line-height: 1.5; overflow-wrap: anywhere;
}
.magenet-ad img { max-width: 100%; height: auto; border-radius: 8px; }
.magenet-ad a { color: var(--teal-dark); font-weight: 650; }
.magenet-ad a:hover { color: var(--coral); }

.seedbacklink-widget { text-align: center; }
.seedbacklink-widget img { display: block; width: 100%; height: auto; border-radius: 10px; }

.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topics a { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .68rem; font-weight: 700; color: var(--muted); }
.topics a:hover { border-color: var(--teal); color: var(--teal-dark); }

.newsletter-widget { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.newsletter-widget .widget-title { color: #fff; }
.newsletter-widget > p { color: rgba(255,255,255,.74) !important; }
.newsletter-widget .newsletter-form input { border-color: rgba(255,255,255,.2); min-width: 0; }
.newsletter-widget .btn { padding: 12px 16px; }
.form-msg { flex: 1 1 100%; font-size: .74rem; font-weight: 700; color: #d8f5e6; margin: 10px 0 0; min-height: 1em; }

/* --------------------------- Approach / steps ---------------------------- */
.approach { background: var(--cream); border-radius: var(--radius-lg); padding: 44px; }
.approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 30px; }
.step-num {
  width: 42px; height: 42px; border-radius: 13px; background: var(--teal); color: #fff;
  display: grid; place-items: center; font-weight: 800; margin-bottom: 16px;
}
.step h3 { font-size: 1rem; }
.step p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ------------------------------- Quote ---------------------------------- */
.quote-band {
  border-left: 4px solid var(--coral); background: var(--mint);
  border-radius: 0 18px 18px 0; padding: 24px 28px;
  font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 1.22rem; color: var(--teal-dark);
}

/* ------------------------------ Newsletter ------------------------------ */
.newsletter {
  background: linear-gradient(120deg, var(--teal-dark), #0d6662);
  border-radius: var(--radius-lg); padding: 44px; color: #fff; position: relative; overflow: hidden;
}
.newsletter::after {
  content: ""; position: absolute; right: -60px; top: -90px; width: 300px; height: 300px;
  border: 1px solid rgba(255,255,255,.15); border-radius: 50%; box-shadow: 0 0 0 42px rgba(255,255,255,.04), 0 0 0 84px rgba(255,255,255,.03);
}
.newsletter h2 { color: #fff; max-width: 18ch; }
.newsletter p { color: rgba(255,255,255,.78); max-width: 52ch; }
.newsletter-form { display: flex; gap: 10px; max-width: 520px; position: relative; z-index: 1; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1; min-width: 220px; border: 0; border-radius: 999px; padding: 14px 20px; outline: 0;
}
.form-note { display: none; color: #d8f5e6; font-size: .85rem; margin-top: 12px; font-weight: 700; }
.form-note.is-visible { display: block; }

/* ------------------------------ Page hero ------------------------------- */
.page-hero {
  background: linear-gradient(120deg, #eef8f2, #fff6ec);
  border-bottom: 1px solid var(--line); padding: 54px 0 48px;
}
.page-hero h1 { font-size: clamp(2.2rem, 4vw, 3.3rem); }
.page-hero p { color: var(--muted); max-width: 62ch; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; font-size: .8rem; color: var(--muted); padding: 26px 0 0; }
.breadcrumb a:hover { color: var(--coral); }
.breadcrumb span:not(.sep) { color: var(--ink); font-weight: 700; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 28px; }
.filter-btn {
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  border-radius: 999px; padding: 9px 17px; font-size: .82rem; font-weight: 700; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.filter-btn:hover { border-color: var(--coral); color: var(--coral); }
.filter-btn.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }
.filter-count { margin-left: auto; font-size: .82rem; color: var(--muted); }

/* ----------------------------- Article page ----------------------------- */
.article { background: #fff; }
.article-header { margin-bottom: 28px; }
.article-header h1 { font-size: clamp(2rem, 3.8vw, 3rem); max-width: 20ch; }
.article-header > p:not(.figcaption) { font-size: 1.05rem; color: var(--muted); max-width: 66ch; }
.article-header > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin-top: 26px; }
.figcaption { font-size: .76rem; color: var(--muted); margin-top: 10px; font-style: italic; }

.toc {
  background: var(--mint); border-radius: 16px; padding: 22px 26px; margin-bottom: 34px;
}
.toc strong { display: block; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { font-size: .9rem; margin: 4px 0; }
.toc a:hover { color: var(--coral); }

.article-body { color: var(--ink-soft); font-size: 1rem; }
.article-body section { scroll-margin-top: 100px; margin-bottom: 38px; }
.article-body h2 { font-size: 1.55rem; margin-top: 0; }
.article-body p { max-width: 70ch; }
.article-body ul { padding-left: 22px; max-width: 70ch; }
.article-body li { margin: 8px 0; }
.article-body li::marker { color: var(--coral); }
.article-body blockquote {
  margin: 28px 0; padding: 16px 22px; border-left: 4px solid var(--coral);
  background: var(--cream); border-radius: 0 14px 14px 0;
  font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 1.12rem; color: var(--teal-dark);
}
.article-footnote { border-top: 1px solid var(--line); padding-top: 22px; font-size: .84rem; color: var(--muted); }

.share-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 28px; }
.share-row span { font-size: .82rem; font-weight: 800; color: var(--muted); margin-right: 4px; }
.share-row a {
  padding: 7px 14px; border-radius: 999px; background: var(--mint); font-size: .78rem; font-weight: 800; color: var(--teal);
}
.share-row a:hover { background: var(--coral); color: #fff; }

/* ------------------------------- Footer --------------------------------- */
.site-footer { background: #0a3438; color: rgba(255,255,255,.72); padding: 64px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 42px; padding-bottom: 44px; }
.site-footer .brand-text strong { color: #fff; }
.site-footer .brand-text span { color: #ff9b7f; }
.site-footer .brand-mark { background: #fff; border-radius: 14px; }
.site-footer .about-line { font-size: .88rem; max-width: 34ch; margin-top: 18px; }
.site-footer h4 { color: #fff; font-size: .86rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer li a { font-size: .86rem; }
.site-footer li a:hover { color: #ffb199; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .78rem;
}

/* ---------------------------- Reveal effect ----------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 1060px) {
  .layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
  .main-nav { gap: 16px; }
  .header-cta { display: none; }
  .hero-inner { gap: 34px; }
  .approach { padding: 34px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 12px 20px 20px; margin: 0;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 11px 0; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .hero { padding: 56px 0 54px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: 18ch; }
  .hero-visual { max-width: 620px; }
  .layout { grid-template-columns: 1fr; padding-top: 54px; }
  .sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar > .widget:first-child { grid-column: 1 / -1; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 78px; }
  .container { width: min(100% - 30px, var(--container)); }
  .header-inner { min-height: 70px; }
  .brand-mark { width: 40px; height: 40px; }
  .hero-search { flex-wrap: wrap; border-radius: 20px; padding: 12px; }
  .hero-search > svg { display: none; }
  .hero-search input { width: 100%; flex: 1 1 100%; padding: 6px 8px; }
  .hero-search .btn { width: 100%; }
  .floating-card.one { left: 6px; }
  .floating-card.two { right: 6px; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 18px 0; }
  .stat { padding: 0 14px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .article-grid { grid-template-columns: 1fr; }
  .post-card.featured { grid-template-columns: 1fr; }
  .post-card.featured .post-card-body { padding: 22px; }
  .post-card.featured .thumb img { aspect-ratio: 16 / 10; min-height: 0; }
  .section-head { display: block; }
  .section-head p { margin-top: 8px; }
  .sidebar { grid-template-columns: 1fr; }
  .sidebar > .widget:first-child { grid-column: auto; }
  .approach-grid { grid-template-columns: 1fr; }
  .approach, .newsletter { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .toc { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
