
/*
Theme Name: Mini Mensa Mouse World
Theme URI: https://minimensa.com
Author: Alfons Scholing & ChatGPT
Author URI: https://minimensa.com
Description: Low-poly mouse world theme for Mini Mensa – orientation-aware backgrounds, transparent post stamps, and an accessible card grid.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: minimensa-mouseworld
*/

:root {
  --mm-bg-overlay: rgba(15, 118, 110, 0.26);
  --mm-card-bg: rgba(255, 255, 255, 0.82);
  --mm-card-bg-hover: rgba(255, 255, 255, 0.97);
  --mm-accent: #0f766e;
  --mm-accent-soft: #22c55e;
  --mm-accent-warm: #f97316;
  --mm-text: #111827;
  --mm-muted: #6b7280;
  --mm-radius-lg: 0.9rem;

  --font-heading: "IBM Plex Serif", "Times New Roman", Georgia, serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--mm-text);
  background-color: #0f766e;
}

.page-minimensa {
  min-height: 100vh;
  background-image: url("assets/bg-portrait-1x.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.page-minimensa::before {
  content: "";
  position: fixed;
  inset: 0;
  background-color: rgba(255,255,255,0.10);
  pointer-events: none;
  z-index: 0;
}

@media (orientation: landscape) {
  .page-minimensa {
    background-image: url("assets/bg-landscape-1x.webp");
  }
}

@media (min-width: 1024px) and (min-resolution: 2dppx) {
  .page-minimensa {
    background-image: url("assets/bg-landscape-2x.webp");
  }
}

@media (max-width: 768px) and (min-resolution: 2dppx) {
  .page-minimensa {
    background-image: url("assets/bg-portrait-2x.webp");
  }
}

/* Layout shell */
.mm-shell {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem clamp(0.75rem, 2vw, 1.5rem) 3rem;
}

/* Header / letterhead */

.mm-crest {
  position: relative;
  z-index: 2;
  text-align: center;
  margin: 1.2rem auto 0.4rem;
}

.mm-crest-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #f9fafb;
}

.mm-crest-logo {
  width: 240px;
  height: auto;
  border-radius: 999px;
  box-shadow: none;
  animation: mm-logo-pulse 8s ease-in-out infinite;
}

.mm-crest-wordmark {
  margin-top: 0.55rem;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 3px 12px rgba(15,23,42,0.8);
  white-space: nowrap;
}

.mm-crest-subtitle {
  margin-top: 0.1rem;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.92;
}

@media (max-width: 480px) {
  .mm-crest-logo {
  width: 240px;
  height: auto;
  border-radius: 999px;
  box-shadow: none;
  animation: mm-logo-pulse 8s ease-in-out infinite;
}
}
.mm-header {
  position: relative;
  z-index: 3;
  padding: 0.5rem 0 1.5rem;
  color: #f9fafb;
}

.mm-header-inner {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: center;
  text-align: center;
  backdrop-filter: none;
  background-color: transparent;
  border-radius: 0;
  padding: 0.2rem 0 0.8rem;
  box-shadow: none;
}

.mm-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.mm-logo {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: inherit;
}

.mm-logo::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 999px;
  background-color: rgba(15,23,42,0.7);
  opacity: 0.9;
  z-index: -1;
}

.mm-logo-img {
  width: 88px;
  height: auto;
  border-radius: 999px;
  box-shadow: 0 15px 35px rgba(15,23,42,0.7);
  animation: mm-logo-pulse 8s ease-in-out infinite;
}

.mm-wordmark {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 3px 10px rgba(15,23,42,0.75);
}

.mm-tagline {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #e5e7eb;
}

.mm-intro {
  margin: 0.35rem auto 0;
  max-width: 60ch;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #f9fafb;
}

.mm-intro a {
  color: #a5f3fc;
}

.mm-intro a:hover,
.mm-intro a:focus-visible {
  text-decoration: underline;
}

/* Search */
.mm-search {
  width: 100%;
  max-width: 900px;
  margin: 0.4rem auto 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  background-color: rgba(255,255,255,0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 30px rgba(15,23,42,0.18);
}

.mm-search input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  border: none;
  font-size: 0.95rem;
  font-family: var(--font-body);
  background-color: transparent;
  color: #111827;
}

.mm-search input::placeholder {
  color: #6b7280;
}

.mm-search button {
  flex: 0 0 auto;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  background-color: #22c55e;
  color: #064e3b;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(22,163,74,0.45);
}

.mm-search button:hover {
  filter: brightness(1.05);
}

.mm-search button:active {
  transform: translateY(1px);
}

/* Grid */
.mm-main {
  margin-top: 1.5rem;
}

.mm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.6rem;
}

.mm-card {
  position: relative;
  border-radius: var(--mm-radius-lg);
  overflow: hidden;
}

.mm-card a {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 0.5rem 0.6rem 0.6rem;
  color: var(--mm-text);
  text-decoration: none;
  background-color: transparent; /* fully transparent, part of background */
  backdrop-filter: none;
  border-radius: var(--mm-radius-lg);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, backdrop-filter 160ms ease;
}

.mm-card a::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: inherit;
  background: radial-gradient(circle at top, rgba(15,23,42,0.24), transparent 60%);
  opacity: 0;
  z-index: -1;
  transition: opacity 160ms ease;
}

.mm-card:hover a,
.mm-card a:focus-visible {
  background-color: rgba(255,255,255,0.96); /* glass panel */
  backdrop-filter: blur(18px);
  transform: translateY(-6px);
  box-shadow: 0 24px 42px rgba(15,23,42,0.4);
}
.mm-card:hover a::before,
.mm-card a:focus-visible::before {
  opacity: 1; /* gradient shadow appears */
}

.mm-card:hover a::before,
.mm-card a:focus-visible::before {
  opacity: 1;
}

.mm-card header {
  margin-bottom: 0.35rem;
}

.mm-card-topic {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background-color: rgba(15,118,110,0.96);
  color: #e5fdfb;
  font-size: 0.7rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.mm-card-title {
  margin: 0.25rem 0 0.15rem;
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.9vw, 1.3rem);
  line-height: 1.32;
  max-height: 3.9em;
  overflow: hidden;
}

.mm-card-meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--mm-muted);
}

.mm-card-logo {
  margin-top: 0.35rem;
  display: flex;
  justify-content: flex-end;
}

.mm-card-logo img {
  width: 22px;
  height: auto;
  filter: drop-shadow(0 0 4px rgba(15,23,42,0.5));
  opacity: 0.9;
}

.mm-card--feature {
}

.mm-card--feature .mm-card-title {
  margin: 0.25rem 0 0.15rem;
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.9vw, 1.3rem);
  line-height: 1.32;
  max-height: 3.9em;
  overflow: hidden;
}

/* Single article */
.mm-article {
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.9);
  border-radius: 1.1rem;
  padding: 1.3rem 1.4rem 2rem;
  box-shadow: 0 20px 50px rgba(15,23,42,0.4);
  margin-top: 1.5rem;
}

.mm-article h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  margin-top: 0;
}

.mm-article .entry-content {
  font-size: 1rem;
  line-height: 1.8;
}

.mm-article .entry-content p {
  margin-bottom: 1.1rem;
}

.mm-article a {
  color: #0f766e;
}

.mm-article a:hover {
  text-decoration: underline;
}

/* Comments */
.mm-comments {
  margin-top: 2rem;
}

.mm-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: #e5e7eb;
}

/* Pulsing logo */
@keyframes mm-logo-pulse {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.9;
    filter: drop-shadow(0 0 10px rgba(250,250,250,0.3));
  }
  50% {
    transform: translateY(-4px);
    opacity: 1;
    filter: drop-shadow(0 0 22px rgba(250,250,250,0.8));
  }
}

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

/* Screenreader helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


.mm-thinktank-note {
  margin: 0.4rem auto 0;
  max-width: 58ch;
  font-size: 0.6rem;
  line-height: 1.45;
  color: #d1d5db;
  opacity: 0.9;
}


.mm-primary-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0.8rem;
  margin: 0 0 0.6rem;
  padding: 0;
  list-style: none;
}

.mm-primary-nav li {
  list-style: none;
}

.mm-primary-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #111827;
  border: 1px solid rgba(148,163,184,0.4);
  background-color: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
}

.mm-primary-nav a:hover,
.mm-primary-nav a:focus-visible {
  background-color: #22c55e;
  color: #064e3b;
}
