/*
Theme Name: Muted and Modern Original
Theme URI: https://mutedandmodern.de/
Author: Muted and Modern
Author URI: https://mutedandmodern.de/
Description: An original, image-led WordPress theme for Muted and Modern. Light, calm layout with a full-width hero, featured pins, category boards and a centred single-post column. Built from scratch for this site; it does not copy another site's code, images or text.
Version: 1.0.15
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: muted-modern-original
Tags: blog, custom-logo, featured-images, threaded-comments, translation-ready
*/

:root {
  --mm-cream: #f7f5f0;
  --mm-pale: #e8ecec;
  --mm-white: #ffffff;
  --mm-ink: #2f3a33;
  --mm-muted: #5d6b60;
  --mm-sage: #7d8c6f;
  --mm-dark-green: #2e4a3a;
  --mm-accent: #b06a4f;
  --mm-border: #dde3e0;
  --mm-radius: 16px;
  --mm-width: 1180px;
  --mm-narrow: 760px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--mm-cream);
  color: var(--mm-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}
a { color: var(--mm-dark-green); }
a:hover { color: var(--mm-accent); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.25; color: var(--mm-dark-green); }
h1 { font-size: 2.6rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.35rem; }

.mm-wrap { max-width: var(--mm-width); margin: 0 auto; padding: 0 20px; }
.mm-narrow { max-width: var(--mm-narrow); margin: 0 auto; padding: 0 20px; }

/* Header */
.mm-header { background: var(--mm-white); border-bottom: 1px solid var(--mm-border); }
.mm-header-inner { max-width: var(--mm-width); margin: 0 auto; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.mm-logo a { text-decoration: none; color: var(--mm-dark-green); font-family: Georgia, serif; font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.mm-logo img { max-height: 56px; width: auto; }
.mm-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; }
.mm-menu a { text-decoration: none; color: var(--mm-ink); font-weight: 600; }
.mm-menu a:hover { color: var(--mm-accent); }

/* Hero */
.mm-hero { text-align: center; padding: 56px 20px 36px; }
.mm-eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; color: var(--mm-sage); font-weight: 700; }
.mm-hero h1 { margin: 12px 0; }
.mm-hero p { max-width: 680px; margin: 0 auto 22px; color: var(--mm-muted); }
.mm-btn { display: inline-block; background: var(--mm-dark-green); color: #fff !important; text-decoration: none; padding: 12px 22px; border-radius: 999px; font-weight: 700; }
.mm-btn:hover { background: var(--mm-accent); color: #fff !important; }
.mm-btn-outline { background: transparent; color: var(--mm-dark-green) !important; border: 2px solid var(--mm-dark-green); }
.mm-btn-outline:hover { background: var(--mm-dark-green); color: #fff !important; }

/* Sections and cards */
.mm-section { padding: 28px 0; }
.mm-section-title { text-align: center; margin-bottom: 22px; }
.mm-section-title-left { text-align: left; border-bottom: 3px solid var(--mm-sage); padding-bottom: 10px; display: inline-block; }
.mm-board { background: var(--mm-white); border-radius: var(--mm-radius); padding: 28px; box-shadow: 0 6px 24px rgba(47, 58, 51, 0.07); margin-bottom: 32px; }
.mm-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 22px; }
.mm-pill { border: 1px solid var(--mm-border); border-radius: 999px; padding: 7px 14px; text-decoration: none; color: var(--mm-ink); background: var(--mm-cream); font-weight: 600; font-size: 0.95rem; }
.mm-pill:hover { border-color: var(--mm-sage); color: var(--mm-dark-green); }

.mm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mm-grid-4 { grid-template-columns: repeat(4, 1fr); }
.mm-card { background: var(--mm-white); border-radius: var(--mm-radius); overflow: hidden; box-shadow: 0 4px 18px rgba(47, 58, 51, 0.06); }
.mm-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.mm-card-body { padding: 18px; }
.mm-card-body h3 { margin: 0 0 8px; font-size: 1.2rem; }
.mm-card-body h3 a { text-decoration: none; color: var(--mm-dark-green); }
.mm-card-meta { color: var(--mm-muted); font-size: 0.9rem; margin: 0 0 8px; }
.mm-card p { margin: 0; color: var(--mm-muted); }

.mm-featured { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: center; max-width: 880px; margin-left: auto; margin-right: auto; }
.mm-featured img { aspect-ratio: 16 / 10; max-height: 280px; object-fit: cover; }
.mm-featured .mm-card-body { padding: 22px 24px; }
.mm-featured .mm-card-body h3 { font-size: 1.35rem; }
.mm-center { text-align: center; margin-top: 24px; }

/* Single post and pages */
.mm-post-hero img { width: 100%; border-radius: var(--mm-radius); }
.mm-post-meta { color: var(--mm-muted); text-align: center; }
.mm-content h2 { margin-top: 36px; }
.mm-content img { border-radius: 12px; margin: 18px 0; }
.mm-author-box { background: var(--mm-white); border: 1px solid var(--mm-border); border-radius: var(--mm-radius); padding: 22px; margin: 36px 0; display: flex; gap: 20px; align-items: flex-start; }
.mm-about { display: flex; gap: 24px; align-items: center; }
.mm-about-img { width: 160px; height: 160px; object-fit: cover; border-radius: 50%; flex-shrink: 0; border: 3px solid var(--mm-pale); }
.mm-author-img { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; flex-shrink: 0; border: 3px solid var(--mm-pale); }
.mm-author-box h3 { margin-top: 0; }

/* Hero slider - recent posts, split-hero style:
   deep burgundy panel, text on the left, tilted framed image on the right,
   beige button with a hard offset shadow. Text and images come from the
   site's own recent posts; nothing is copied from the reference image. */
.mm-slider { position: relative; margin: 0 auto; padding: 0; }
.mm-slider-viewport { overflow: hidden; }
.mm-slider-track { display: flex; transition: transform 0.6s ease; }
.mm-slide { min-width: 100%; background: #7a2e3a; color: #fff; overflow: hidden; }
.mm-slide-inner { max-width: var(--mm-width); margin: 0 auto; padding: 64px 20px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.mm-slide-content a { color: #fdeecb; }
.mm-slide-content .mm-eyebrow a { color: #fdeecb; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.mm-board-card img { aspect-ratio: 16 / 9; }
.mm-slide-content h2 { color: #fff; margin: 12px 0 16px; font-size: 2.4rem; }
.mm-slide-content h2 a { color: #fff; text-decoration: none; }
.mm-slide-content p { margin: 0 0 16px; color: #f7ecec; }
.mm-slide-content .mm-btn { background: #d9c5a0; color: #7a2e3a !important; border-radius: 0; padding: 14px 26px; box-shadow: 4px 4px 0 #000; }
.mm-slide-content .mm-btn:hover { background: #e8d9b8; color: #7a2e3a !important; }
.mm-slide-media { transform: rotate(2deg); }
.mm-slide-media a { display: block; border: 3px solid #111; box-shadow: 12px 12px 0 #d9c5a0; background: var(--mm-pale); }
.mm-slide-img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.mm-slide-noimg { width: 100%; aspect-ratio: 3 / 4; background: var(--mm-pale); border: 3px solid #111; box-shadow: 12px 12px 0 #d9c5a0; }
.mm-slider-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: none; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--mm-dark-green); font-size: 1.3rem; cursor: pointer; z-index: 2; }
.mm-slider-prev { left: 16px; }
.mm-slider-next { right: 16px; }
.mm-slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.mm-slider-dot { width: 11px; height: 11px; border-radius: 50%; border: none; background: #c9d0ca; cursor: pointer; padding: 0; }
.mm-slider-dot.is-active { background: var(--mm-dark-green); }

/* Newsletter */
.mm-newsletter { background: linear-gradient(135deg, var(--mm-dark-green), var(--mm-sage)); color: #fff; border-radius: var(--mm-radius); padding: 28px 24px; text-align: center; box-shadow: 0 10px 30px rgba(47, 58, 51, 0.15); max-width: 820px; margin-left: auto; margin-right: auto; }
.mm-newsletter h2 { color: #fff; margin: 8px 0 10px; font-size: 1.5rem; }
.mm-newsletter p { color: #f2f5f2; max-width: 560px; margin-left: auto; margin-right: auto; }
.mm-newsletter-form { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.mm-newsletter-form input[type="email"] { padding: 13px 18px; border: none; border-radius: 999px; min-width: 280px; font-size: 1rem; }
.mm-newsletter-form .mm-btn { background: #d9c5a0; color: #2e4a3a !important; border: none; cursor: pointer; box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35); }
.mm-newsletter-form .mm-btn:hover { background: #e8d9b8; }
.mm-newsletter-note { font-size: 0.9rem; opacity: 0.9; margin-top: 14px; }
.mm-newsletter-success { font-weight: 700; font-size: 1.1rem; color: #fff; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

/* Cookie consent banner */
.mm-cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 999; max-width: 720px; margin: 0 auto; background: var(--mm-white); border: 1px solid var(--mm-border); border-radius: var(--mm-radius); box-shadow: 0 10px 30px rgba(47, 58, 51, 0.2); padding: 18px 20px; text-align: center; }
.mm-cookie-banner[hidden] { display: none; }
.mm-cookie-text { margin: 0 0 14px; color: var(--mm-ink); font-size: 0.95rem; }
.mm-cookie-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.mm-cookie-settings { background: none; border: none; cursor: pointer; color: var(--mm-muted); text-decoration: underline; font-size: 0.9rem; padding: 0; }

/* Footer */
.mm-footer { background: var(--mm-white); border-top: 1px solid var(--mm-border); margin-top: 48px; padding: 32px 0; text-align: center; color: var(--mm-muted); }
.mm-footer .mm-menu { justify-content: center; margin-bottom: 12px; }

/* Responsive */
@media (max-width: 900px) {
  .mm-grid, .mm-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .mm-featured { grid-template-columns: 1fr; }
  h1 { font-size: 2.1rem; }
  .mm-header-inner { flex-direction: column; text-align: center; }
  .mm-menu { justify-content: center; }
}
@media (max-width: 560px) {
  .mm-grid, .mm-grid-4 { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  .mm-hero { padding-top: 36px; }
  .mm-slide-inner { grid-template-columns: 1fr; padding: 40px 20px; gap: 28px; }
  .mm-slide-content h2 { font-size: 1.9rem; }
  .mm-slide-media { transform: rotate(1deg); max-width: 320px; }
  .mm-about { flex-direction: column; text-align: center; }
  .mm-about-img { width: 130px; height: 130px; }
  .mm-author-box { flex-direction: column; }
  .mm-newsletter { padding: 24px 20px; }
  .mm-newsletter-form input[type="email"] { min-width: 0; flex: 1 1 220px; }
  .mm-slider-btn { width: 38px; height: 38px; }
}
