:root {
  --ml-bg: #f5efe4;
  --ml-surface: #fffdf9;
  --ml-card: #ffffff;
  --ml-text: #1a1f1c;
  --ml-text-soft: #58615d;
  --ml-accent: #d4572a;
  --ml-accent-alt: #2a9d8f;
  --ml-border: #e8dcc8;
  --ml-shadow: 0 20px 45px rgba(30, 36, 35, 0.08);
  --ml-radius-lg: 24px;
  --ml-radius-md: 16px;
  --ml-radius-sm: 10px;
  --ml-max: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--ml-text);
  background:
    radial-gradient(circle at 0% 0%, rgba(212, 87, 42, 0.16), transparent 40%),
    radial-gradient(circle at 100% 20%, rgba(42, 157, 143, 0.15), transparent 36%),
    var(--ml-bg);
  line-height: 1.6;
}

.ml-site-shell {
  position: relative;
  overflow: hidden;
}

.ml-orb {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(46px);
  opacity: 0.36;
  z-index: -1;
}

.ml-orb--one {
  top: -120px;
  left: -180px;
  background: rgba(212, 87, 42, 0.45);
}

.ml-orb--two {
  right: -160px;
  top: 40%;
  background: rgba(42, 157, 143, 0.34);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

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

a:hover,
a:focus {
  color: var(--ml-accent);
}

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

.ml-container {
  width: min(var(--ml-max), calc(100% - 2.4rem));
  margin-inline: auto;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  clip: auto !important;
  clip-path: none;
  height: auto;
  width: auto;
  background: #fff;
  color: #000;
  left: 5px;
  top: 5px;
  padding: 14px;
  z-index: 100000;
}

.ml-site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(245, 239, 228, 0.82);
  border-bottom: 1px solid rgba(232, 220, 200, 0.8);
}

.ml-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}

.ml-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.custom-logo {
  max-width: 190px;
  width: 100%;
  height: auto;
}

.ml-site-title {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  margin: 0;
  line-height: 1.1;
}

.ml-site-title a {
  color: var(--ml-text);
}

.ml-site-description {
  margin: 0.2rem 0 0;
  color: var(--ml-text-soft);
  font-size: 0.9rem;
}

.ml-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--ml-border);
  padding: 0.75rem 0;
}

.ml-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ml-menu > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: var(--ml-text-soft);
  font-size: 0.95rem;
  font-weight: 600;
  transition: 200ms ease;
}

.ml-menu > li.current-menu-item > a,
.ml-menu > li > a:hover,
.ml-menu > li > a:focus {
  color: var(--ml-text);
  background: #fff;
  box-shadow: 0 10px 24px rgba(26, 31, 28, 0.08);
}

.ml-nav-search {
  min-width: 230px;
}

.ml-menu-toggle {
  display: none;
  border: 0;
  background: var(--ml-card);
  width: 46px;
  height: 46px;
  border-radius: 12px;
  box-shadow: var(--ml-shadow);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.ml-menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--ml-text);
  transition: 180ms ease;
}

.ml-header-ad-wrap,
.ml-footer-ad-wrap {
  padding-bottom: 1rem;
}

.ml-site-main {
  padding-top: 1.6rem;
  padding-bottom: 4rem;
}

.ml-hero {
  background: linear-gradient(148deg, #fff8ef 0%, #f3fff9 80%);
  border: 1px solid var(--ml-border);
  border-radius: var(--ml-radius-lg);
  box-shadow: var(--ml-shadow);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.2rem;
  padding: clamp(1.2rem, 2.8vw, 2.2rem);
  margin-bottom: 1.6rem;
  position: relative;
  overflow: hidden;
}

.ml-hero::after {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 220px;
  aspect-ratio: 1;
  background: radial-gradient(circle at center, rgba(212, 87, 42, 0.24), transparent 70%);
}

.ml-hero--compact {
  grid-template-columns: 1fr;
}

.ml-kicker {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ml-accent);
  font-size: 0.73rem;
  margin: 0 0 1rem;
  font-weight: 700;
}

.ml-hero-copy h1 {
  font-size: clamp(2rem, 4.3vw, 3.7rem);
  margin-bottom: 0.55rem;
}

.ml-hero-copy p {
  color: var(--ml-text-soft);
  max-width: 58ch;
  margin-top: 0;
}

.ml-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.3rem;
}

.ml-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: 190ms ease;
}

.ml-btn--solid {
  background: var(--ml-text);
  color: #fff;
}

.ml-btn--solid:hover,
.ml-btn--solid:focus {
  color: #fff;
  transform: translateY(-1px);
}

.ml-btn--outline {
  border-color: var(--ml-border);
  background: #fff;
  color: var(--ml-text);
}

.ml-btn--outline:hover,
.ml-btn--outline:focus {
  border-color: var(--ml-accent);
}

.ml-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.95fr);
  gap: clamp(1rem, 2vw, 1.8rem);
}

.ml-section {
  margin-top: 1.2rem;
}

.ml-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.ml-section-heading a {
  font-weight: 700;
  color: var(--ml-accent);
}

.ml-section-title {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  margin: 0;
}

.ml-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

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

.ml-card {
  background: var(--ml-card);
  border: 1px solid var(--ml-border);
  border-radius: var(--ml-radius-md);
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(26, 31, 28, 0.06);
  transition: transform 230ms ease, box-shadow 230ms ease;
  display: flex;
  flex-direction: column;
}

.ml-card:hover,
.ml-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 24px 42px rgba(26, 31, 28, 0.12);
}

.ml-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eadfcc;
}

.ml-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.ml-card:hover .ml-card-media img {
  transform: scale(1.04);
}

.ml-card-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(212, 87, 42, 0.16), rgba(42, 157, 143, 0.22));
}

.ml-card-body {
  padding: 1rem;
}

.ml-card-taxonomy {
  margin-bottom: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ml-card-taxonomy a,
.ml-category-list a {
  background: rgba(42, 157, 143, 0.1);
  color: #20675f;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.76rem;
  font-weight: 700;
}

.ml-card-title {
  margin: 0;
  font-size: 1.25rem;
}

.ml-card-meta,
.ml-single-meta {
  color: var(--ml-text-soft);
  font-size: 0.86rem;
  margin: 0.35rem 0 0.8rem;
}

.ml-read-more {
  display: inline-flex;
  margin-top: 0.35rem;
  font-weight: 700;
  color: var(--ml-accent);
}

.ml-sidebar {
  position: sticky;
  top: 110px;
  align-self: start;
  display: grid;
  gap: 1rem;
}

.ml-widget {
  background: var(--ml-surface);
  border: 1px solid var(--ml-border);
  border-radius: var(--ml-radius-md);
  padding: 1rem;
  box-shadow: 0 14px 28px rgba(26, 31, 28, 0.05);
}

.ml-widget-title {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.ml-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.ml-search-form {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.ml-search-form label {
  flex: 1;
}

.ml-search-field,
.ml-search-submit,
textarea,
select,
input[type='email'],
input[type='text'],
input[type='url'] {
  font: inherit;
}

.ml-search-field {
  width: 100%;
  min-height: 2.75rem;
  border-radius: 12px;
  border: 1px solid var(--ml-border);
  padding: 0 0.85rem;
  background: #fff;
}

.ml-search-submit {
  border: 0;
  border-radius: 12px;
  min-height: 2.75rem;
  padding: 0 0.85rem;
  background: var(--ml-accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.ml-single-post,
.ml-comments-area,
.ml-empty-state {
  background: var(--ml-surface);
  border: 1px solid var(--ml-border);
  border-radius: var(--ml-radius-lg);
  box-shadow: var(--ml-shadow);
  padding: clamp(1rem, 2vw, 1.8rem);
}

.ml-single-post {
  margin-bottom: 1.1rem;
}

.ml-single-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.ml-single-cover {
  border-radius: var(--ml-radius-md);
  overflow: hidden;
  margin-top: 1.1rem;
}

.ml-entry-content {
  font-size: 1.06rem;
}

.ml-entry-content > * {
  margin-top: 1.15rem;
}

.ml-entry-content p,
.ml-card-body p {
  color: var(--ml-text-soft);
}

.ml-entry-content a {
  color: var(--ml-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.wp-block-image,
figure {
  margin-left: 0;
  margin-right: 0;
}

.wp-block-image img,
figure img {
  border-radius: 14px;
}

blockquote {
  border-left: 4px solid var(--ml-accent);
  margin-left: 0;
  padding: 0.2rem 0 0.2rem 1rem;
  color: var(--ml-text-soft);
}

.ml-related-posts,
.post-navigation {
  margin-top: 1rem;
}

.post-navigation .nav-links {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-navigation a {
  background: var(--ml-surface);
  border: 1px solid var(--ml-border);
  border-radius: 14px;
  padding: 0.8rem;
  display: block;
}

.post-navigation a span {
  font-size: 0.8rem;
  display: block;
  color: var(--ml-text-soft);
}

.comment-list {
  padding-left: 1.1rem;
}

.ml-ad-unit {
  border: 1px dashed #d5cab5;
  background: linear-gradient(135deg, rgba(212, 87, 42, 0.06), rgba(42, 157, 143, 0.08));
  border-radius: 14px;
  overflow: hidden;
  padding: 0.4rem;
}

.ml-ad-unit--inside-post,
.ml-ad-unit--content {
  margin: 1rem 0 1.3rem;
}

.ml-ad-unit--placeholder {
  min-height: 90px;
  display: grid;
  place-content: center;
  color: var(--ml-text-soft);
  font-size: 0.84rem;
  text-align: center;
}

.ml-archive-header,
.ml-empty-state {
  margin-bottom: 1rem;
}

.ml-empty-state h2,
.ml-empty-state h1 {
  margin-bottom: 0.5rem;
}

.ml-tax-description {
  color: var(--ml-text-soft);
  max-width: 75ch;
}

.ml-pagination-wrap {
  margin-top: 1.1rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.nav-links .page-numbers {
  min-width: 2.3rem;
  min-height: 2.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ml-border);
  background: #fff;
  border-radius: 10px;
  font-weight: 700;
}

.nav-links .page-numbers.current {
  background: var(--ml-text);
  color: #fff;
  border-color: var(--ml-text);
}

.ml-site-footer {
  background: #181f1d;
  color: #e8ece8;
  padding: 2.3rem 0 1.6rem;
}

.ml-footer-widgets {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ml-footer-column .ml-widget {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.ml-footer-column a {
  color: #fff;
}

.ml-footer-menu,
.ml-footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.ml-site-info {
  margin-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  font-size: 0.92rem;
  color: rgba(232, 236, 232, 0.82);
}

.ml-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: 450ms ease;
}

.ml-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .ml-layout {
    grid-template-columns: 1fr;
  }

  .ml-sidebar {
    position: static;
  }

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

@media (max-width: 860px) {
  .ml-menu-toggle {
    display: inline-flex;
  }

  .ml-nav {
    display: none;
    border-top: 0;
    padding-top: 0;
    flex-direction: column;
    align-items: stretch;
  }

  .ml-nav.is-open {
    display: flex;
    border-top: 1px solid var(--ml-border);
    margin-top: 0.25rem;
    padding-top: 0.8rem;
  }

  .ml-menu {
    flex-direction: column;
    align-items: stretch;
  }

  .ml-menu > li > a {
    width: 100%;
  }

  .ml-nav-search {
    min-width: 100%;
  }

  .ml-hero {
    grid-template-columns: 1fr;
  }

  .ml-footer-widgets {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ml-container {
    width: min(var(--ml-max), calc(100% - 1.3rem));
  }

  .ml-post-grid,
  .ml-post-grid--small,
  .post-navigation .nav-links {
    grid-template-columns: 1fr;
  }

  .ml-hero-copy h1 {
    font-size: clamp(1.75rem, 7.4vw, 2.6rem);
  }

  .ml-search-form {
    flex-direction: column;
  }
}
