/*
Theme Name: MM Magazine
Theme URI: https://travextravel.com
Author: MM Magazine
Author URI: https://travextravel.com
Description: A custom online magazine theme.
Version: 0.1.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mm-magazine
Tags: magazine, blog, news, custom
*/

/* ============================================================
   GOOGLE FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Pirata+One&family=Spectral:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --background:   hsl(228, 14%, 98%);
  --foreground:   hsl(0, 0%, 4.3%);
  --surface:      hsl(0, 0%, 100%);
  --muted-text:   hsl(0, 0%, 42%);
  --border:       hsl(220, 4%, 79%);

  --font-display: 'Pirata One', cursive;
  --font-serif:   'Spectral', Georgia, serif;
  --font-sans:    'Inter', system-ui, sans-serif;
}

html.dark {
  --background:  hsl(0, 0%, 1.2%);
  --foreground:  hsl(210, 37%, 97%);
  --surface:     hsl(240, 2%, 13%);
  --muted-text:  hsl(210, 15%, 62%);
  --border:      hsl(220, 4%, 22%);
}

/* ============================================================
   BASE RESET + TYPOGRAPHY
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.75;
  background-color: var(--background);
  color: var(--foreground);
  text-align: justify;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.1;
  text-align: left;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--foreground); }

img {
  max-width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

::selection {
  background-color: #0b0b0b;
  color: #f4f7fa;
}
html.dark ::selection {
  background-color: #f4f7fa;
  color: #0b0b0b;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex: 1; }

.mm-container {
  max-width: 1536px;
  margin: 0 auto;
  padding: 0 1rem;
}

.mm-page {
  max-width: 1536px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

/* Section header: title + horizontal rule */
.mm-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.mm-section-header__title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  line-height: 1;
  white-space: nowrap;
  color: var(--muted-text);
}
.mm-section-header__title--dark {
  color: var(--foreground);
}
.mm-section-header__line {
  flex: 1;
  height: 1px;
  background-color: var(--border);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: 1536px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
}

.site-header__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--foreground);
  text-decoration: none;
  flex-shrink: 0;
}

.site-header__nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

.site-header__nav-link {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-text);
  transition: color 0.2s;
  white-space: nowrap;
}
.site-header__nav-link:hover { color: var(--foreground); }

/* Mobile controls */
.site-header__mobile {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
  padding: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--foreground);
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.is-open span:nth-child(2) { opacity: 0; }
.hamburger-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  background-color: var(--background);
  border-top: 1px solid var(--border);
  padding: 1rem;
  gap: 1rem;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-text);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:hover { color: var(--foreground); }

/* Search form in header */
.header-search {
  position: relative;
  display: flex;
  align-items: center;
}
.header-search input[type="search"] {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
  padding: 0.25rem 0;
  width: 120px;
  outline: none;
}
.header-search input[type="search"]::placeholder { color: var(--muted-text); }

/* ============================================================
   ANNOUNCEMENT BANNER
   ============================================================ */
.announcement-banner {
  background-color: var(--foreground);
  color: var(--background);
  font-family: var(--font-serif);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  overflow: hidden;
  height: 2rem;
  display: flex;
  align-items: center;
}
.announcement-banner__track {
  display: flex;
  gap: 3rem;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
  will-change: transform;
}
.announcement-banner__track:hover { animation-play-state: paused; }
.announcement-banner__item a { color: inherit; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   POST CARD
   ============================================================ */
.post-card {
  width: 400px;
  min-width: 400px;
  max-width: 400px;
  height: 413px;
  flex-shrink: 0;
}

.post-card__inner {
  background-color: var(--surface);
  border-radius: 0.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  padding: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.post-card__inner:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }

html.dark .post-card__inner {
  background-color: #121214;
}

.post-card__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 0.125rem;
  flex-shrink: 0;
}

.post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.post-card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__meta {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  color: var(--muted-text);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin: 0.5rem 0;
}
.post-card__meta-sep { margin: 0 0.25rem; }

.post-card__excerpt {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--foreground);
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  text-align: left;
}

.post-card__footer {
  margin-top: auto;
  padding-top: 0.5rem;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* ============================================================
   INTERACTIVE HOVER BUTTON
   ============================================================ */
.mm-btn {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  padding: 0.5rem 1.5rem;
  cursor: pointer;
  background: var(--background);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12rem;
  transition: color 0.3s;
  white-space: nowrap;
}

.mm-btn__face {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.3s, opacity 0.3s;
}
.mm-btn__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--foreground);
  flex-shrink: 0;
  transition: transform 0.3s;
}
.mm-btn__label {
  display: inline-block;
  transition: transform 0.3s, opacity 0.3s;
}
.mm-btn__hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--background);
  transform: translateX(3rem);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
}

.mm-btn:hover .mm-btn__dot    { transform: scale(100); }
.mm-btn:hover .mm-btn__label  { transform: translateX(3rem); opacity: 0; }
.mm-btn:hover .mm-btn__hover  { transform: translateX(-1.25rem); opacity: 1; }

/* ============================================================
   HOME PAGE — FEATURED POST
   ============================================================ */
.featured-section { margin-bottom: 2.5rem; }

.featured-grid {
  display: grid;
  gap: 2rem;
}

.featured-left { }

.featured-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1;
  margin-bottom: 1.5rem;
  text-align: left;
}
.featured-title a { color: var(--foreground); }
.featured-title a:hover { color: var(--foreground); }

.featured-meta {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-text);
}

.featured-excerpt {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 65ch;
  text-align: left;
}
.featured-excerpt p { margin: 0; }

/* ============================================================
   HOME PAGE — HERO BANNER
   ============================================================ */
.hero-banner {
  height: 75vh;
  margin-bottom: 2.5rem;
}
.hero-banner__inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  overflow: hidden;
}
.hero-banner__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: blur(2px);
}

/* ============================================================
   HOME PAGE — CATEGORY CAROUSEL
   ============================================================ */
.carousel-section { margin-bottom: 2.5rem; }

.carousel-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.carousel-header__title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  line-height: 1;
  white-space: nowrap;
  color: var(--foreground);
}
.carousel-header__line {
  flex: 1;
  height: 1px;
  background-color: var(--border);
}
.carousel-header__controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.carousel-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted-text);
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.carousel-btn:hover { color: var(--foreground); border-color: var(--foreground); }
.carousel-btn:disabled { opacity: 0.2; cursor: default; }
.carousel-btn svg { width: 1rem; height: 1rem; }
.carousel-view-all {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  color: var(--muted-text);
  margin-left: 0.25rem;
  transition: color 0.2s;
}
.carousel-view-all:hover { color: var(--foreground); }

.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

/* ============================================================
   ARCHIVE / INDEX PAGE
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.archive-post-card {
  display: grid;
  gap: 1rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.archive-post-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.25rem;
}

.archive-post-card__title {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.1;
  text-align: left;
}
.archive-post-card__title a { color: var(--foreground); transition: opacity 0.2s; }
.archive-post-card__title a:hover { opacity: 0.7; }

.archive-post-card__meta {
  font-family: var(--font-serif);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-text);
  text-align: left;
}

.archive-post-card__excerpt {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--foreground);
  text-align: justify;
}
.archive-post-card__excerpt p { margin: 0; }

.read-more-link {
  display: inline-flex;
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post { }

.entry-header {
  text-align: center;
  max-width: 56rem;
  margin: 0 auto 2rem;
}

.entry-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  text-align: center;
}

.entry-meta {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--muted-text);
  text-align: center;
}
.entry-meta a { text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s; }
.entry-meta a:hover { color: var(--foreground); }

.entry-featured-image {
  width: 100%;
  margin-bottom: 2rem;
}
.entry-featured-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.25rem;
}
.entry-featured-image figcaption {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 0.875rem;
  color: var(--muted-text);
  margin-top: 0.5rem;
}

/* Article body */
.article-content {
  max-width: 680px;
  margin: 0 auto;
}

.article-content p {
  line-height: 2;
  margin-bottom: 1em;
  color: var(--foreground);
}
.article-content a { text-decoration: underline; }
.article-content strong,
.article-content b { font-weight: 700; }
.article-content em,
.article-content i { font-style: italic; }

.article-content h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.5rem;
  letter-spacing: 0.03em;
  line-height: 1;
  margin-top: 2em;
  margin-bottom: 1em;
}
.article-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.03em;
  line-height: 1;
  margin-top: 2em;
  margin-bottom: 1em;
}
.article-content h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  line-height: 1;
  margin-top: 2em;
  margin-bottom: 1em;
}
.article-content hr {
  margin-top: 2.5em;
  margin-bottom: 2.5em;
  border: none;
  border-top: 1px solid var(--border);
}
.article-content blockquote {
  font-style: italic;
  border-left: 3px solid var(--border);
  padding-left: 1em;
  margin-left: 1em;
  color: var(--muted-text);
}
.article-content ul,
.article-content ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}
.article-content li { margin-bottom: 0.25em; }
.article-content img {
  width: 100%;
  height: auto;
  border-radius: 0.25rem;
  margin: 1.5em 0;
}
.article-content figure { margin: 1.5em 0; }
.article-content figcaption {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-text);
  margin-top: 0.5rem;
}

/* About Author */
.author-bio {
  max-width: 680px;
  margin: 3rem auto 0;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.author-bio__heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
}
.author-bio__inner {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}
.author-bio__avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.author-bio__avatar-fallback {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  flex-shrink: 0;
  color: var(--foreground);
}
.author-bio__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  text-align: left;
}
.author-bio__name a { transition: text-decoration 0.2s; }
.author-bio__name a:hover { text-decoration: underline; }
.author-bio__description {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted-text);
  text-align: left;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  background-color: var(--background);
  color: var(--foreground);
  margin-top: auto;
}

.footer-body {
  max-width: 1536px;
  margin: 0 auto;
  padding: 2.5rem 1rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-brand__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--foreground);
  display: block;
  margin-bottom: 0.5rem;
}
.footer-brand__tagline {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  color: var(--muted-text);
}

.footer-col__heading {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-text);
  margin-bottom: 1rem;
}

.footer-col__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-col__links a {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  color: var(--muted-text);
  transition: color 0.2s;
}
.footer-col__links a:hover { color: var(--foreground); }

.footer-bottom {
  border-top: 1px solid var(--border);
}
.footer-bottom__inner {
  max-width: 1536px;
  margin: 0 auto;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}
.footer-bottom__inner span,
.footer-bottom__inner a {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  color: var(--muted-text);
}
.footer-bottom__inner a:hover { color: var(--foreground); }

/* ============================================================
   DARK MODE TOGGLE (floating)
   ============================================================ */
.theme-toggle {
  position: fixed;
  bottom: 1.5625rem;
  right: 1.5625rem;
  z-index: 50;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, bottom 0.1s;
}
.theme-toggle:hover { background: var(--surface); }
.theme-toggle svg { width: 1.125rem; height: 1.125rem; }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
html.dark .theme-toggle .icon-sun  { display: block; }
html.dark .theme-toggle .icon-moon { display: none; }

/* ============================================================
   PAGINATION
   ============================================================ */
.mm-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0;
  font-family: var(--font-serif);
}
.mm-pagination a,
.mm-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-text);
  transition: color 0.2s, border-color 0.2s;
}
.mm-pagination a:hover { color: var(--foreground); border-color: var(--foreground); }
.mm-pagination .current {
  background: var(--foreground);
  color: var(--background);
  border-color: var(--foreground);
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area {
  max-width: 680px;
  margin: 3rem auto 0;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-serif);
}
.comments-title,
.comment-reply-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
}
.comment-list { list-style: none; }
.comment { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.comment-author { font-weight: 700; margin-bottom: 0.25rem; }
.comment-meta { font-size: 0.8125rem; color: var(--muted-text); margin-bottom: 0.75rem; }
.comment-content p { margin-bottom: 0.5em; font-size: 1rem; }
.comment-form label {
  display: block;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.375rem;
  color: var(--muted-text);
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  font-family: var(--font-serif);
  font-size: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--foreground);
  padding: 0.625rem 0.875rem;
  border-radius: 0.25rem;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 1rem;
}
.comment-form textarea { min-height: 8rem; resize: vertical; }
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--foreground); }
.comment-form .form-submit .submit {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--foreground);
  color: var(--background);
  border: none;
  padding: 0.625rem 1.5rem;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: opacity 0.2s;
}
.comment-form .form-submit .submit:hover { opacity: 0.85; }

/* ============================================================
   ARCHIVE / TAXONOMY HEADER
   ============================================================ */
.archive-header {
  margin-bottom: 2.5rem;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 { text-align: center; padding: 4rem 1rem; }
.error-404 .page-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 8rem);
  line-height: 1;
  margin-bottom: 1rem;
}
.error-404 .page-content p {
  font-family: var(--font-serif);
  color: var(--muted-text);
  margin-bottom: 1.5rem;
}

/* ============================================================
   SEARCH RESULTS
   ============================================================ */
.search-header { margin-bottom: 2rem; }
.search-header h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 768px) {
  .mm-container { padding: 0 2rem; }
  .mm-page { padding: 2rem 2rem; }
  .site-header__nav { display: flex; }
  .site-header__mobile { display: none; }
  .footer-body { padding: 4rem 2rem 3rem; }
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
  }
  .footer-bottom__inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    text-align: left;
    padding: 1.25rem 2rem;
  }
  .footer-bottom__inner .footer-center { text-align: center; }
  .footer-bottom__inner .footer-right  { text-align: right; }
  .featured-section { margin-bottom: 4rem; }
  .featured-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
  .featured-left { padding-left: 2rem; }
  .hero-banner { margin-bottom: 4rem; }
  .carousel-section { margin-bottom: 4rem; }
  .carousel-header { margin-bottom: 1.5rem; }
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .archive-post-card {
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
  }
  .archive-post-card__image { aspect-ratio: 4/3; height: 100%; width: 100%; }
}

@media (min-width: 1024px) {
  .featured-left { padding-left: 4rem; }
  .posts-grid { grid-template-columns: repeat(3, 1fr); }
}
