/*
Theme Name: Moss & Minnow
Description: Child theme of Kadence carrying the "Water Garden" brand. Homepage is a standalone full-viewport GSAP experience (its own CSS lives inline in front-page.php); this stylesheet covers the calmer hub (category) and article (single) templates, restyling Kadence's own header/footer to match rather than replacing them. Kadence itself stays untouched.
Template: kadence
Version: 1.1.0
Author: Private use only
*/

:root {
  --mm-deep: #04222c;
  --mm-water: #07333f;
  --mm-shallow: #0b4a56;
  --mm-glass: #0e3d4a;
  --mm-moss: #8fd672;
  --mm-moss-dim: #5da35a;
  --mm-glow: #5ff2c8;
  --mm-minnow: #ffb36b;
  --mm-ink: #eaf6f0;
  --mm-ink-dim: #a9c9c2;
  --mm-line: rgba(234, 246, 240, 0.14);

  --mm-serif: 'Italiana', serif;
  --mm-sans: 'Quicksand', sans-serif;

  --mm-space-xs: 8px; --mm-space-sm: 12px; --mm-space-md: 20px;
  --mm-space-lg: 32px; --mm-space-xl: 56px; --mm-space-2xl: 96px;

  --mm-text-xs: 0.8125rem; --mm-text-sm: 0.9375rem; --mm-text-base: 1.0625rem;
  --mm-text-lg: clamp(1.375rem, 1.2rem + 0.9vw, 1.75rem);
  --mm-text-xl: clamp(2rem, 1.5rem + 2.5vw, 3.25rem);
}

/* ---------- Global reskin (light touch over Kadence — hub/article pages only; homepage is self-contained) ---------- */
body:not(.home) {
  background: var(--mm-deep);
  color: var(--mm-ink);
  font-family: var(--mm-sans);
  font-size: var(--mm-text-base);
  line-height: 1.65; /* dark-on-dark reading: extra line-height over the usual 1.55 */
}
body:not(.home) h1, body:not(.home) h2, body:not(.home) h3, body:not(.home) .entry-title, body:not(.home) .site-title {
  font-family: var(--mm-serif) !important;
  font-weight: 400 !important;
}
body:not(.home) a { color: var(--mm-glow); }
body:not(.home) ::selection { background: var(--mm-glow); color: var(--mm-deep); }
body:not(.home) :focus-visible { outline: 2px solid var(--mm-glow); outline-offset: 3px; }
body:not(.home) .site-header, body:not(.home) .site-footer { background: var(--mm-water); color: var(--mm-ink); }
body:not(.home) .site-header a, body:not(.home) .site-footer a { color: var(--mm-ink); }

.mm-eyebrow {
  font-family: var(--mm-sans); font-size: var(--mm-text-xs); font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--mm-glow);
}
.mm-wrap { max-width: 1180px; margin-inline: auto; padding-inline: var(--mm-space-lg); }
@media (max-width: 640px) { .mm-wrap { padding-inline: var(--mm-space-md); } }

/* Ambient bubbles — hero bands only, respects reduced-motion */
.mm-bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.mm-bub {
  position: absolute; bottom: -10%; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.45), rgba(255,255,255,.05) 60%, transparent);
  border: 1px solid rgba(255,255,255,.12);
  animation: mm-rise 12s linear infinite;
}
@keyframes mm-rise { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: .8; } 100% { transform: translateY(-130%); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mm-bub { animation: none; display: none; } }

/* ================= HUB / CATEGORY ARCHIVE ================= */
.mm-hub-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--mm-water) 0%, var(--mm-deep) 100%);
  padding: var(--mm-space-2xl) var(--mm-space-lg) var(--mm-space-xl);
  border-bottom: 1px solid var(--mm-line);
}
.mm-hub-hero h1 { font-size: var(--mm-text-xl); margin: var(--mm-space-xs) 0 0; position: relative; z-index: 1; }
.mm-hub-hero p { color: var(--mm-ink-dim); max-width: 62ch; margin-top: var(--mm-space-sm); font-size: var(--mm-text-lg); line-height: 1.5; position: relative; z-index: 1; }

.mm-post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--mm-space-md); padding: var(--mm-space-xl) var(--mm-space-lg); }
.mm-post-card {
  border: 1px solid var(--mm-line); border-radius: 10px; overflow: hidden;
  background: linear-gradient(165deg, rgba(20,66,80,.55), rgba(8,36,47,.75));
  text-decoration: none; color: var(--mm-ink); display: flex; flex-direction: column;
  transition: transform .25s ease, border-color .25s ease;
}
.mm-post-card:hover { transform: translateY(-3px); border-color: var(--mm-glow); }
.mm-post-card .mm-thumb {
  height: 170px; background-size: cover; background-position: center;
  background-image:
    radial-gradient(circle at 70% 20%, rgba(143,214,114,.3), transparent 50%),
    radial-gradient(circle at 25% 80%, rgba(95,242,200,.22), transparent 55%),
    linear-gradient(180deg, #0d4b58, #062a35);
}
.mm-post-card .mm-body { padding: var(--mm-space-md); display: grid; gap: 6px; }
.mm-post-card .mm-kicker { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mm-ink-dim); }
.mm-post-card h3 { font-size: 1.15rem; margin: 0; line-height: 1.3; color: var(--mm-ink); }
.mm-post-card .mm-excerpt { font-size: var(--mm-text-sm); color: var(--mm-ink-dim); line-height: 1.6; margin: 0; }

.mm-pagination { display: flex; gap: var(--mm-space-sm); padding: 0 var(--mm-space-lg) var(--mm-space-xl); font-size: var(--mm-text-sm); }
.mm-pagination a, .mm-pagination span { padding: 8px 14px; border: 1px solid var(--mm-line); border-radius: 6px; text-decoration: none; color: var(--mm-ink); }
.mm-pagination .current { background: var(--mm-glow); color: var(--mm-deep); border-color: var(--mm-glow); }

/* ================= ARTICLE / SINGLE ================= */
.mm-article-toolbar {
  display: flex; justify-content: space-between; padding: var(--mm-space-sm) var(--mm-space-lg);
  border-bottom: 1px solid var(--mm-line); font-size: var(--mm-text-xs); color: var(--mm-ink-dim);
}
.mm-article-body { display: grid; grid-template-columns: 200px 1fr; gap: var(--mm-space-xl); padding: var(--mm-space-xl) var(--mm-space-lg); max-width: 1180px; margin-inline: auto; }
@media (max-width: 760px) { .mm-article-body { grid-template-columns: 1fr; gap: var(--mm-space-md); } }
.mm-toc { font-size: var(--mm-text-xs); color: var(--mm-ink-dim); position: sticky; top: var(--mm-space-md); align-self: start; }
.mm-toc .mm-eyebrow { display: block; margin-bottom: var(--mm-space-sm); }
.mm-toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.mm-toc li { border-bottom: 1px solid var(--mm-line); padding-bottom: 6px; }
.mm-toc a { text-decoration: none; color: var(--mm-ink-dim); }
.mm-toc a:hover { color: var(--mm-glow); }
.mm-article-main { max-width: 68ch; }
.mm-article-main h1 { font-size: var(--mm-text-xl); margin: 0 0 var(--mm-space-md); }
.mm-article-main .mm-thumb { width: 100%; border-radius: 10px; margin-bottom: var(--mm-space-md); }
.mm-article-main .mm-entry-content { max-width: 66ch; line-height: 1.75; color: var(--mm-ink); }
.mm-article-main .mm-entry-content p { margin: 0 0 var(--mm-space-sm); }
.mm-article-main .mm-entry-content h2, .mm-article-main .mm-entry-content h3 { margin: var(--mm-space-lg) 0 var(--mm-space-sm); font-size: 1.4rem; }
.mm-related { padding: var(--mm-space-xl) var(--mm-space-lg); border-top: 1px solid var(--mm-line); background: var(--mm-water); }
.mm-related h2 { font-size: var(--mm-text-lg); margin: 0 0 var(--mm-space-md); }
