/*
Theme Name: Virella Well Notes
Author: Arden Vale Studio
Description: A classic PHP WordPress theme for calm editorial wellness sites, built with flexible WordPress menus, posts, widgets, Customizer text, and mobile-first layouts.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: mpl-theme
*/

:root {
  --mpl-ink: #1b1b1b;
  --mpl-muted: #5f5f5f;
  --mpl-soft: #f8f4f1;
  --mpl-paper: #ffffff;
  --mpl-line: #e8e9ea;
  --mpl-taupe: #7c5f51;
  --mpl-sky: #ddeef8;
  --mpl-blue: #7a9ad2;
  --mpl-peach: #cf8b75;
  --mpl-olive: #858c60;
  --mpl-charcoal: #414141;
  --mpl-shadow: 0 20px 60px rgba(27, 27, 27, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--mpl-ink);
  background: var(--mpl-soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.mpl-no-scroll {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--mpl-taupe);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

.mpl-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;
}

.mpl-screen-reader-text:focus {
  z-index: 100000;
  top: 14px;
  left: 14px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  color: var(--mpl-paper);
  background: var(--mpl-ink);
  border-radius: 8px;
}

.mpl-site {
  min-height: 100vh;
  overflow-x: hidden;
}

.mpl-shell {
  width: min(1160px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

.mpl-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(248, 244, 241, 0.9);
  border-bottom: 1px solid rgba(232, 233, 234, 0.9);
  backdrop-filter: blur(18px);
}

.mpl-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 18px;
}

.mpl-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  font-weight: 700;
}

.mpl-logo,
.mpl-logo-image {
  width: auto;
  max-height: 44px;
}

.mpl-logo-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--mpl-paper);
  background: var(--mpl-ink);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
}

.mpl-site-title {
  overflow: hidden;
  font-size: 1.05rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mpl-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--mpl-ink);
  background: var(--mpl-paper);
  border: 1px solid var(--mpl-line);
  border-radius: 8px;
  cursor: pointer;
}

.mpl-menu-toggle:hover,
.mpl-menu-toggle:focus {
  border-color: var(--mpl-ink);
}

.mpl-menu-icon,
.mpl-menu-icon::before,
.mpl-menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.mpl-menu-icon {
  position: relative;
}

.mpl-menu-icon::before,
.mpl-menu-icon::after {
  position: absolute;
  left: 0;
}

.mpl-menu-icon::before {
  top: -6px;
}

.mpl-menu-icon::after {
  top: 6px;
}

.mpl-menu-toggle[aria-expanded="true"] .mpl-menu-icon {
  background: transparent;
}

.mpl-menu-toggle[aria-expanded="true"] .mpl-menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.mpl-menu-toggle[aria-expanded="true"] .mpl-menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.mpl-nav-wrap {
  position: fixed;
  inset: 74px 0 auto 0;
  display: none;
  padding: 18px 16px 22px;
  background: rgba(248, 244, 241, 0.98);
  border-bottom: 1px solid var(--mpl-line);
  box-shadow: var(--mpl-shadow);
}

.mpl-nav-wrap.mpl-is-open {
  display: block;
}

.mpl-primary-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.mpl-primary-menu li {
  margin: 0;
}

.mpl-primary-menu a,
.mpl-menu-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--mpl-ink);
  border-radius: 8px;
  font-size: 0.96rem;
  font-weight: 650;
}

.mpl-primary-menu a:hover,
.mpl-primary-menu a:focus,
.mpl-menu-link:hover,
.mpl-menu-link:focus {
  color: var(--mpl-ink);
  background: var(--mpl-paper);
}

.mpl-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 11px 18px;
  margin-top: 14px;
  color: var(--mpl-paper);
  background: var(--mpl-ink);
  border-radius: 8px;
  font-weight: 700;
}

.mpl-header-cta:hover,
.mpl-header-cta:focus {
  color: var(--mpl-paper);
  background: var(--mpl-taupe);
}

.mpl-hero {
  padding: 52px 0 44px;
  background: linear-gradient(180deg, var(--mpl-soft) 0%, #ffffff 100%);
}

.mpl-hero-grid {
  display: grid;
  align-items: center;
  gap: 32px;
}

.mpl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 10px;
  color: var(--mpl-taupe);
  background: rgba(124, 95, 81, 0.1);
  border: 1px solid rgba(124, 95, 81, 0.14);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mpl-eyebrow::before {
  width: 8px;
  height: 8px;
  background: var(--mpl-peach);
  border-radius: 50%;
  content: "";
}

.mpl-hero-title {
  max-width: 760px;
  margin: 18px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.65rem;
  line-height: 1.04;
  font-weight: 500;
}

.mpl-hero-text {
  max-width: 620px;
  margin: 0;
  color: var(--mpl-muted);
  font-size: 1.04rem;
}

.mpl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.mpl-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  color: var(--mpl-paper);
  background: var(--mpl-ink);
  border: 1px solid var(--mpl-ink);
  border-radius: 8px;
  font-weight: 750;
}

.mpl-button:hover,
.mpl-button:focus {
  color: var(--mpl-paper);
  background: var(--mpl-taupe);
  border-color: var(--mpl-taupe);
}

.mpl-button-secondary {
  color: var(--mpl-ink);
  background: var(--mpl-paper);
  border-color: var(--mpl-line);
}

.mpl-button-secondary:hover,
.mpl-button-secondary:focus {
  color: var(--mpl-ink);
  background: var(--mpl-sky);
  border-color: var(--mpl-sky);
}

.mpl-hero-media {
  position: relative;
}

.mpl-hero-image {
  width: 100%;
  min-height: 330px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  box-shadow: var(--mpl-shadow);
}

.mpl-stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.mpl-stat {
  min-height: 104px;
  padding: 18px;
  background: var(--mpl-paper);
  border: 1px solid var(--mpl-line);
  border-radius: 8px;
}

.mpl-stat strong {
  display: block;
  color: var(--mpl-ink);
  font-size: 1.65rem;
  line-height: 1;
}

.mpl-stat span {
  display: block;
  margin-top: 8px;
  color: var(--mpl-muted);
  font-size: 0.88rem;
}

.mpl-feature-strip {
  padding: 18px 0 58px;
  background: var(--mpl-paper);
}

.mpl-feature-grid {
  display: grid;
  gap: 16px;
}

.mpl-feature-card {
  min-height: 210px;
  padding: 22px;
  background: var(--mpl-soft);
  border: 1px solid var(--mpl-line);
  border-radius: 8px;
}

.mpl-feature-card:nth-child(2) {
  background: var(--mpl-sky);
}

.mpl-feature-card:nth-child(3) {
  background: #f5e7df;
}

.mpl-feature-kicker {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  color: var(--mpl-paper);
  background: var(--mpl-olive);
  border-radius: 8px;
  font-weight: 800;
}

.mpl-feature-card h2,
.mpl-feature-card h3 {
  margin: 18px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.42rem;
  line-height: 1.2;
  font-weight: 500;
}

.mpl-feature-card p {
  margin: 0;
  color: var(--mpl-muted);
}

.mpl-section {
  padding: 58px 0;
  background: var(--mpl-paper);
}

.mpl-section-soft {
  background: var(--mpl-soft);
}

.mpl-section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}

.mpl-section-title {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
  line-height: 1.12;
  font-weight: 500;
}

.mpl-section-text {
  max-width: 680px;
  margin: 0;
  color: var(--mpl-muted);
}

.mpl-post-grid {
  display: grid;
  gap: 18px;
}

.mpl-post-card {
  overflow: hidden;
  background: var(--mpl-paper);
  border: 1px solid var(--mpl-line);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(27, 27, 27, 0.04);
}

.mpl-post-card:hover {
  transform: translateY(-2px);
  transition: transform 180ms ease;
}

.mpl-post-media {
  display: block;
  overflow: hidden;
  background: var(--mpl-sky);
  aspect-ratio: 16 / 11;
}

.mpl-post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}

.mpl-post-card:hover .mpl-post-media img {
  transform: scale(1.03);
}

.mpl-card-body {
  padding: 20px;
}

.mpl-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  color: var(--mpl-muted);
  font-size: 0.84rem;
}

.mpl-post-meta a {
  color: var(--mpl-muted);
}

.mpl-post-title {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.22;
  font-weight: 500;
}

.mpl-post-title a:hover,
.mpl-post-title a:focus {
  color: var(--mpl-taupe);
}

.mpl-post-excerpt {
  margin: 0;
  color: var(--mpl-muted);
}

.mpl-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--mpl-ink);
  font-weight: 800;
}

.mpl-read-more::after {
  width: 18px;
  height: 18px;
  background: currentColor;
  content: "";
  mask: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.75 3.75L12 9L6.75 14.25' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.mpl-empty {
  padding: 30px;
  color: var(--mpl-muted);
  background: var(--mpl-paper);
  border: 1px dashed var(--mpl-line);
  border-radius: 8px;
}

.mpl-cta {
  display: grid;
  gap: 20px;
  align-items: center;
  padding: 28px;
  color: var(--mpl-paper);
  background: var(--mpl-ink);
  border-radius: 8px;
}

.mpl-cta h2 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.12;
  font-weight: 500;
}

.mpl-cta p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

.mpl-cta .mpl-button {
  color: var(--mpl-ink);
  background: var(--mpl-paper);
  border-color: var(--mpl-paper);
}

.mpl-cta .mpl-button:hover,
.mpl-cta .mpl-button:focus {
  color: var(--mpl-paper);
  background: var(--mpl-taupe);
  border-color: var(--mpl-taupe);
}

.mpl-pagination {
  margin-top: 28px;
}

.mpl-pagination-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mpl-pagination a,
.mpl-pagination span {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  color: var(--mpl-ink);
  background: var(--mpl-paper);
  border: 1px solid var(--mpl-line);
  border-radius: 8px;
  font-weight: 700;
}

.mpl-pagination span {
  color: var(--mpl-paper);
  background: var(--mpl-ink);
  border-color: var(--mpl-ink);
}

.mpl-single {
  padding: 54px 0 70px;
  background: var(--mpl-paper);
}

.mpl-single-wrap {
  width: 80vw;
  margin-right: auto;
  margin-left: auto;
}

.mpl-single-header {
  padding-bottom: 24px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--mpl-line);
}

.mpl-single-title {
  margin: 12px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.45rem;
  line-height: 1.08;
  font-weight: 500;
}

.mpl-entry-content {
  color: var(--mpl-charcoal);
  font-size: 1.05rem;
}

.mpl-entry-content > * {
  margin-top: 0;
  margin-bottom: 1.25em;
}

.mpl-entry-content h1,
.mpl-entry-content h2,
.mpl-entry-content h3,
.mpl-entry-content h4,
.mpl-entry-content h5,
.mpl-entry-content h6 {
  color: var(--mpl-ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.18;
  font-weight: 500;
}

.mpl-entry-content a {
  color: var(--mpl-taupe);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mpl-entry-content blockquote {
  padding: 18px 20px;
  margin-left: 0;
  color: var(--mpl-ink);
  background: var(--mpl-soft);
  border-left: 4px solid var(--mpl-peach);
  border-radius: 8px;
}

.mpl-entry-content img {
  border-radius: 8px;
}

.mpl-entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.mpl-entry-content th,
.mpl-entry-content td {
  padding: 12px;
  border: 1px solid var(--mpl-line);
}

.mpl-entry-footer {
  display: grid;
  gap: 18px;
  padding-top: 28px;
  margin-top: 34px;
  border-top: 1px solid var(--mpl-line);
}

.mpl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mpl-tags a {
  padding: 7px 10px;
  background: var(--mpl-soft);
  border: 1px solid var(--mpl-line);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
}

.mpl-post-nav {
  display: grid;
  gap: 12px;
}

.mpl-post-nav a {
  display: block;
  padding: 16px;
  background: var(--mpl-soft);
  border: 1px solid var(--mpl-line);
  border-radius: 8px;
  font-weight: 700;
}

.mpl-comments {
  margin-top: 38px;
}

.mpl-footer {
  padding: 46px 0 24px;
  color: rgba(255, 255, 255, 0.76);
  background: var(--mpl-ink);
}

.mpl-footer a {
  color: var(--mpl-paper);
}

.mpl-footer-grid {
  display: grid;
  gap: 24px;
}

.mpl-footer-brand {
  max-width: 480px;
}

.mpl-footer-title {
  margin: 0 0 12px;
  color: var(--mpl-paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  line-height: 1.15;
  font-weight: 500;
}

.mpl-footer-text {
  margin: 0;
}

.mpl-footer-contact {
  max-width: 420px;
}

.mpl-footer-contact-title {
  margin: 0 0 14px;
  color: var(--mpl-paper);
  font-size: 1rem;
  line-height: 1.2;
}

.mpl-contact-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.mpl-contact-item {
  display: grid;
  gap: 3px;
}

.mpl-contact-label {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mpl-contact-item a {
  overflow-wrap: anywhere;
}

.mpl-widget-area {
  display: grid;
  gap: 18px;
}

.mpl-widget {
  color: rgba(255, 255, 255, 0.76);
}

.mpl-widget h2,
.mpl-widget h3,
.mpl-widget .widget-title {
  margin: 0 0 12px;
  color: var(--mpl-paper);
  font-size: 1rem;
}

.mpl-widget ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.mpl-widget li + li {
  margin-top: 8px;
}

.mpl-footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 24px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
}

.mpl-footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.mpl-home-widget {
  margin-top: 28px;
}

.mpl-home-widget .mpl-widget {
  padding: 20px;
  color: var(--mpl-charcoal);
  background: var(--mpl-paper);
  border: 1px solid var(--mpl-line);
  border-radius: 8px;
}

@media (min-width: 700px) {
  .mpl-shell {
    width: min(1160px, calc(100% - 56px));
  }

  .mpl-hero {
    padding-top: 72px;
  }

  .mpl-hero-title {
    font-size: 3.8rem;
  }

  .mpl-feature-grid,
  .mpl-post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mpl-section-head {
    grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
    align-items: end;
  }

  .mpl-post-grid {
    gap: 20px;
  }

  .mpl-cta {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 34px;
  }

  .mpl-footer-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.7fr) minmax(220px, 0.75fr);
  }

  .mpl-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 980px) {
  .mpl-menu-toggle {
    display: none;
  }

  .mpl-nav-wrap {
    position: static;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .mpl-primary-menu {
    flex-direction: row;
    align-items: center;
    gap: 4px;
  }

  .mpl-primary-menu a,
  .mpl-menu-link {
    padding: 8px 11px;
    font-size: 0.92rem;
  }

  .mpl-header-cta {
    width: auto;
    margin-top: 0;
    margin-left: 10px;
  }

  .mpl-hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.88fr);
    gap: 42px;
  }

  .mpl-hero-image {
    min-height: 520px;
  }

  .mpl-section {
    padding: 76px 0;
  }

  .mpl-single-title {
    font-size: 3.4rem;
  }

  .mpl-post-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 479px) {
  .mpl-shell {
    width: min(100% - 24px, 1160px);
  }

  .mpl-hero-title {
    font-size: 2.28rem;
  }

  .mpl-section-title {
    font-size: 1.82rem;
  }

  .mpl-actions {
    flex-direction: column;
  }

  .mpl-button {
    width: 100%;
  }

  .mpl-stat-row {
    grid-template-columns: 1fr;
  }

  .mpl-card-body {
    padding: 18px;
  }

  .mpl-single-title {
    font-size: 2rem;
  }
}

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