/*
Theme Name: MVXGRP Portico
Theme URI: https://mvxgrp.com/
Author: MVXGRP
Description: An editorial, image-led theme for the MVXGRP health journal.
Version: 1.0.5
Text Domain: mvx-portico
*/

:root {
  --copper: #b07845;
  --copper-dark: #8f5e30;
  --ink: #18130f;
  --ink-soft: #2a2118;
  --paper: #f8f6f3;
  --paper-deep: #f0ece6;
  --white: #fff;
  --muted: rgba(24, 19, 15, .58);
  --line: rgba(24, 19, 15, .12);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --wrap: min(1296px, calc(100vw - 48px));
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .25s ease, background .25s ease, border-color .25s ease; }
p { margin: 0 0 1.4em; }
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .45em;
  font-family: var(--serif);
  font-weight: 500;
  line-height: .98;
}
.site-wrap { width: var(--wrap); margin-inline: auto; }
.screen-reader-text { 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:focus { clip: auto; width: auto; height: auto; top: 8px; left: 8px; z-index: 9999; padding: 10px 16px; background: var(--white); }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 50;
  height: 96px;
  color: var(--white);
  transition: height .3s ease, background .3s ease, color .3s ease, box-shadow .3s ease;
}
.site-header:not(.is-overlay), .site-header.is-scrolled {
  position: sticky;
  background: rgba(248, 246, 243, .96);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(16px);
}
.site-header.is-overlay.is-scrolled { position: fixed; }
.site-header.is-scrolled { height: 76px; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { position: relative; width: 22px; height: 24px; border: 1.5px solid var(--copper); border-top: 0; border-radius: 0 0 12px 12px; }
.brand-mark::before { content: ""; position: absolute; left: 4px; right: 4px; top: -9px; height: 18px; border: 1.5px solid var(--copper); border-bottom: 0; border-radius: 10px 10px 0 0; }
.brand-name { font-family: var(--serif); font-size: 25px; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.brand-name i { color: var(--copper); font-style: normal; }
.brand-tagline { display: block; margin-top: 2px; font-size: 8px; font-weight: 500; letter-spacing: .16em; line-height: 1; text-transform: uppercase; opacity: .66; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 38px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { position: relative; padding: 10px 0; font-size: 14px; font-weight: 400; }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 1px; background: var(--copper); transition: right .25s ease; }
.primary-nav a:hover::after, .primary-nav .current-menu-item > a::after { right: 0; }
.header-button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid var(--copper);
  background: var(--copper);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
}
a.header-button { color: var(--white) !important; }
.header-button::after, .button-arrow::after { content: "\2192"; margin-left: 14px; font-size: 18px; line-height: 1; }
.header-button:hover, .button:hover { background: var(--copper-dark); border-color: var(--copper-dark); color: var(--white); }
.button-ghost { background: transparent; border-color: rgba(255,255,255,.32); }
.button-ghost:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.button-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.button-outline:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.menu-toggle { position: relative; z-index: 1; display: none; flex: 0 0 44px; width: 44px; height: 44px; padding: 11px; border: 0; background: transparent; color: currentColor; }
.menu-toggle span { display: block; height: 1px; margin: 6px 0; background: currentColor; }
.mobile-nav { display: none; }

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100vh;
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--hero-image) center 42% / cover no-repeat; transform: scale(1.015); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13,10,8,.8) 0%, rgba(13,10,8,.52) 46%, rgba(13,10,8,.18) 78%), linear-gradient(0deg, rgba(13,10,8,.55), transparent 42%); }
.hero-content { padding-top: 120px; padding-bottom: 80px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 30px; font-size: 11px; font-weight: 400; letter-spacing: .15em; line-height: 1.4; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 20px; height: 1px; background: currentColor; opacity: .85; }
.eyebrow.copper { color: var(--copper); }
.hero h1 { max-width: 900px; margin-bottom: 30px; color: var(--white); font-size: clamp(68px, 8vw, 124px); font-weight: 400; letter-spacing: -.045em; }
.hero h1 em { display: block; color: rgba(255,255,255,.76); font-weight: 400; }
.hero-description { max-width: 620px; margin-bottom: 36px; color: rgba(255,255,255,.67); font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-bottom { position: absolute; left: 0; right: 0; bottom: 44px; }
.hero-bottom-inner { display: flex; align-items: flex-end; justify-content: space-between; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.18); }
.scroll-cue { display: flex; align-items: center; gap: 12px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; opacity: .62; }
.scroll-cue::before { content: ""; width: 30px; height: 1px; background: currentColor; }
.hero-stats { display: flex; gap: clamp(35px, 6vw, 76px); }
.hero-stat { text-align: right; }
.hero-stat strong { display: block; font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1; }
.hero-stat span { display: block; margin-top: 5px; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; opacity: .62; }

.marquee { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--white); white-space: nowrap; }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { display: inline-flex; align-items: center; padding: 22px 32px; font-family: var(--serif); font-size: 21px; }
.marquee span::after { content: "\2022"; margin-left: 64px; color: var(--copper); }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { padding: 120px 0; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 64px; }
.section-header h2 { max-width: 720px; font-size: clamp(54px, 6.2vw, 88px); letter-spacing: -.035em; }
.section-header h2 em { color: var(--copper); font-weight: 400; }
.mission-grid { display: grid; grid-template-columns: 1.08fr .92fr; min-height: 680px; }
.mission-image { position: relative; overflow: hidden; background: var(--paper-deep); }
.mission-image img { width: 100%; height: 100%; object-fit: cover; }
.mission-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(60px, 8vw, 120px); background: var(--ink); color: var(--white); }
.mission-copy h2 { font-size: clamp(52px, 5vw, 78px); color: var(--white); }
.mission-copy h2 em { color: var(--copper); }
.mission-copy p { max-width: 540px; color: rgba(255,255,255,.62); font-size: 18px; }

.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.focus-card { position: relative; min-height: 400px; padding: 44px 38px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .35s ease, color .35s ease; }
.focus-card::before { content: attr(data-index); display: block; margin-bottom: 92px; color: var(--copper); font-size: 11px; letter-spacing: .14em; }
.focus-card h3 { font-size: 40px; }
.focus-card p { color: var(--muted); line-height: 1.75; }
.focus-card:hover { background: var(--ink); color: var(--white); }
.focus-card:hover p { color: rgba(255,255,255,.62); }

.journal-section { background: var(--paper-deep); }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { min-width: 0; }
.post-card-image { display: block; aspect-ratio: 4 / 3; margin-bottom: 26px; overflow: hidden; background: #ded8cf; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-card-image img { transform: scale(1.045); }
.post-meta { display: flex; gap: 14px; margin-bottom: 12px; color: var(--copper); font-size: 10px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; }
.post-card h3 { font-size: 34px; line-height: 1.05; }
.post-card h3 a:hover { color: var(--copper); }
.post-card p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.text-link { display: inline-flex; align-items: center; padding-bottom: 3px; border-bottom: 1px solid var(--ink); font-size: 12px; font-weight: 500; letter-spacing: .04em; }
.text-link::after { content: "\2197"; margin-left: 10px; color: var(--copper); }

.start-panel { display: grid; grid-template-columns: 1fr 1fr; background: var(--copper); color: var(--white); }
.start-panel-title { padding: clamp(56px, 7vw, 100px); border-right: 1px solid rgba(255,255,255,.22); }
.start-panel-title h2 { max-width: 520px; color: var(--white); font-size: clamp(58px, 6vw, 88px); }
.start-panel-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(56px, 7vw, 100px); }
.start-panel-copy p { max-width: 580px; font-size: 18px; }
.start-panel-copy a:not(.button) { border-bottom: 1px solid currentColor; }

.page-hero { padding: 120px 0 88px; background: var(--ink); color: var(--white); }
.page-hero .eyebrow { color: var(--copper); }
.page-hero h1 { max-width: 1000px; color: var(--white); font-size: clamp(62px, 8vw, 112px); letter-spacing: -.04em; }
.page-hero p { max-width: 680px; color: rgba(255,255,255,.62); font-size: 18px; }
.archive-main { padding: 100px 0 120px; }
.archive-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 70px 34px; }
.archive-grid .post-card h2 { font-size: 42px; line-height: 1.05; }
.archive-grid > .mvx-breadcrumbs { grid-column: 1 / -1; margin: 0 !important; color: var(--muted) !important; }
.archive-grid > .mvx-breadcrumbs + section {
  grid-column: 1 / -1;
  margin: -40px 0 0 !important;
  padding: 30px !important;
  border: 1px solid var(--line) !important;
  border-radius: 0 !important;
  background: var(--white) !important;
}
.archive-grid > .mvx-breadcrumbs + section h2 { margin: 0 0 18px !important; color: var(--ink) !important; font-family: var(--serif) !important; font-size: 28px !important; font-weight: 500 !important; }
.archive-grid > .mvx-breadcrumbs + section form { gap: 14px !important; }
.archive-grid > .mvx-breadcrumbs + section label span { color: var(--muted) !important; font-size: 10px !important; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.archive-grid > .mvx-breadcrumbs + section input,
.archive-grid > .mvx-breadcrumbs + section select {
  min-height: 44px;
  padding: 8px 12px !important;
  border: 1px solid var(--line) !important;
  border-radius: 0 !important;
  background: var(--paper) !important;
  color: var(--ink);
  font-family: var(--sans);
}
.archive-grid > .mvx-breadcrumbs + section button,
.archive-grid > .mvx-breadcrumbs + section form div a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px !important;
  border-radius: 0 !important;
  font-family: var(--sans);
  font-size: 12px;
}
.archive-grid > .mvx-breadcrumbs + section button { background: var(--copper) !important; }
.archive-grid > .mvx-breadcrumbs + section form div a { border-color: var(--line) !important; background: transparent !important; color: var(--ink) !important; }
.pagination { margin-top: 80px; padding-top: 30px; border-top: 1px solid var(--line); }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--line); font-size: 13px; }
.page-numbers.current, .page-numbers:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

.article-hero { padding: 92px 0 64px; }
.article-hero-inner { max-width: 1050px; }
.article-hero h1 { font-size: clamp(58px, 7vw, 96px); line-height: .98; letter-spacing: -.04em; }
.article-intro { max-width: 760px; color: var(--muted); font-size: 19px; }
.article-featured { width: var(--wrap); max-height: 760px; margin: 0 auto; overflow: hidden; }
.article-featured img { width: 100%; height: min(62vw, 760px); object-fit: cover; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 260px; justify-content: center; gap: 100px; padding: 90px 0 120px; }
.entry-content { min-width: 0; color: #3a322c; font-size: 18px; line-height: 1.85; }
.entry-content > * { max-width: 100%; }
.entry-content h2 { margin: 2em 0 .6em; color: var(--ink); font-size: 46px; line-height: 1.05; }
.entry-content h3 { margin: 1.7em 0 .6em; color: var(--ink); font-size: 34px; line-height: 1.1; }
.entry-content a { color: var(--copper-dark); border-bottom: 1px solid rgba(143,94,48,.35); }
.entry-content img { margin: 2.2em auto; }
.entry-content blockquote { margin: 2.2em 0; padding: 10px 0 10px 30px; border-left: 2px solid var(--copper); color: var(--ink); font-family: var(--serif); font-size: 30px; line-height: 1.25; }
.entry-content li { margin-bottom: .65em; }
.article-side { font-size: 12px; }
.article-side-inner { position: sticky; top: 110px; }
.side-label { display: block; margin-bottom: 12px; color: var(--copper); font-size: 9px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.side-group { padding: 24px 0; border-top: 1px solid var(--line); }
.side-group p { margin: 0; }
.side-group a:hover { color: var(--copper); }
.post-navigation { width: var(--wrap); margin: 0 auto 120px; padding-top: 34px; border-top: 1px solid var(--line); }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.post-navigation a { display: block; }
.post-navigation .nav-subtitle { display: block; margin-bottom: 6px; color: var(--copper); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.post-navigation .nav-title { font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.post-navigation .nav-next { text-align: right; }

.standard-page { padding: 100px 0 130px; }
.standard-page-grid { display: grid; grid-template-columns: 280px minmax(0, 760px); justify-content: center; gap: 90px; }
.page-index { color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.page-index::before { content: ""; display: block; width: 28px; height: 1px; margin-bottom: 18px; background: var(--copper); }
.not-found { padding: 140px 0; text-align: center; }
.not-found h1 { font-size: clamp(90px, 14vw, 190px); color: var(--copper); }

.site-footer { padding-top: 90px; background: var(--ink); color: rgba(255,255,255,.62); }
.footer-top { display: grid; grid-template-columns: 1.35fr .65fr .65fr; gap: 80px; padding-bottom: 76px; }
.footer-brand .brand { color: var(--white); }
.footer-brand p { max-width: 470px; margin-top: 26px; font-size: 14px; }
.footer-title { margin-bottom: 22px; color: var(--white); font-family: var(--sans); font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--copper); }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding: 28px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1024px) {
  .primary-nav, .header-button { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .mobile-nav { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; padding: 32px 24px; background: var(--paper); color: var(--ink); transform: translateX(100%); transition: transform .45s var(--ease); }
  .nav-open .mobile-nav { transform: none; }
  .mobile-nav-head { display: flex; align-items: center; justify-content: space-between; }
  .mobile-nav ul { margin: 70px 0 0; padding: 0; list-style: none; }
  .mobile-nav li { border-bottom: 1px solid var(--line); }
  .mobile-nav li a { display: block; padding: 17px 0; font-family: var(--serif); font-size: 34px; line-height: 1; }
  .mobile-nav-close { border: 0; background: transparent; color: var(--ink); font-size: 36px; font-weight: 200; }
  .mission-grid { grid-template-columns: 1fr; }
  .mission-image { min-height: 580px; }
  .focus-card { padding: 34px 26px; }
  .focus-card::before { margin-bottom: 65px; }
  .article-layout { grid-template-columns: minmax(0, 760px); padding-inline: 24px; }
  .article-side { display: none; }
}

@media (max-width: 760px) {
  :root { --wrap: min(calc(100% - 32px), 1296px); }
  .site-header { height: 76px; }
  .brand-tagline { display: none; }
  .hero { min-height: 860px; }
  .hero-content { align-self: center; padding: 100px 0 220px; }
  .hero h1 { max-width: 100%; font-size: 51px; overflow-wrap: anywhere; }
  .hero-description { max-width: 100%; font-size: 16px; }
  .hero-bottom { bottom: 30px; }
  .hero-bottom-inner { align-items: flex-start; }
  .scroll-cue { display: none; }
  .hero-stats { width: 100%; justify-content: space-between; gap: 16px; }
  .hero-stat { text-align: left; }
  .hero-stat strong { font-size: 22px; }
  .section { padding: 82px 0; }
  .section-header { align-items: flex-start; flex-direction: column; margin-bottom: 42px; }
  .section-header h2 { font-size: 52px; }
  .mission-image { min-height: 430px; }
  .mission-copy { padding: 66px 24px; }
  .mission-copy h2 { font-size: 52px; }
  .focus-grid, .posts-grid, .archive-grid, .start-panel, .footer-top, .standard-page-grid { grid-template-columns: 1fr; }
  .focus-card { min-height: 310px; }
  .focus-card::before { margin-bottom: 44px; }
  .posts-grid { gap: 52px; }
  .start-panel-title { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.22); }
  .page-hero { padding: 90px 0 65px; }
  .page-hero h1 { font-size: 56px; }
  .archive-main { padding: 72px 0 90px; }
  .archive-grid > .mvx-breadcrumbs + section { margin-top: -42px !important; padding: 22px !important; }
  .article-hero { padding: 70px 0 46px; }
  .article-hero h1 { font-size: 51px; }
  .article-featured { width: 100%; }
  .article-featured img { height: 70vw; }
  .article-layout { padding: 65px 20px 90px; }
  .entry-content { font-size: 16px; }
  .entry-content h2 { font-size: 38px; }
  .standard-page { padding: 72px 0 90px; }
  .footer-top { gap: 42px; }
  .footer-bottom { flex-direction: column; }
}

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