/*
Theme Name: Zenon's Mechanical Couture
Theme URI: https://mcouture.darkfaery-subculture.com/
Author: Darkfaery / Mechanical Couture
Description: A minimal dark gallery theme for Mechanical Couture: static pages, no blog clutter, no comments, and a dramatic collector-gallery layout.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zenons-mechanical-couture
*/

:root {
  --z-bg: #050505;
  --z-bg-soft: #101010;
  --z-panel: #151515;
  --z-text: #f1ece5;
  --z-muted: #b5aaa0;
  --z-line: rgba(255,255,255,.14);
  --z-gold: #c8a96a;
  --z-red: #7b1f2a;
  --z-shadow: 0 20px 55px rgba(0,0,0,.55);
  --z-max: 1120px;
}

* { box-sizing: border-box; }

html {
  background: var(--z-bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--z-text);
  background:
    radial-gradient(circle at 20% 0%, rgba(123,31,42,.25), transparent 34rem),
    radial-gradient(circle at 82% 8%, rgba(200,169,106,.12), transparent 28rem),
    linear-gradient(180deg, #060606 0%, #0a0a0a 55%, #030303 100%);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.65;
}

a { color: var(--z-gold); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

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

.zenon-site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.zenon-header {
  border-bottom: 1px solid var(--z-line);
  background: rgba(5,5,5,.82);
  backdrop-filter: blur(10px);
}

.zenon-header-inner,
.zenon-main,
.zenon-footer-inner {
  width: min(var(--z-max), calc(100% - 2rem));
  margin: 0 auto;
}

.zenon-header-inner {
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.zenon-brand {
  display: inline-flex;
  flex-direction: column;
  gap: .15rem;
}

.zenon-site-title {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.05;
}

.zenon-site-title a { color: var(--z-text); }
.zenon-site-title a:hover { text-decoration: none; color: var(--z-gold); }

.zenon-tagline {
  margin: 0;
  color: var(--z-muted);
  font-size: .92rem;
  letter-spacing: .05em;
}

.zenon-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .65rem 1rem;
}

.zenon-nav a {
  color: var(--z-muted);
  font-size: .95rem;
  letter-spacing: .04em;
}

.zenon-nav a:hover,
.zenon-nav .current-menu-item > a,
.zenon-nav .current_page_item > a {
  color: var(--z-gold);
}

.zenon-main {
  flex: 1;
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.zenon-card {
  background: linear-gradient(180deg, rgba(21,21,21,.88), rgba(9,9,9,.92));
  border: 1px solid var(--z-line);
  box-shadow: var(--z-shadow);
  padding: clamp(1.25rem, 4vw, 2.75rem);
}

.zenon-entry-header {
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--z-line);
  padding-bottom: 1.25rem;
}

.zenon-entry-title {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4.2rem);
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.zenon-entry-content {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.zenon-entry-content > *:first-child { margin-top: 0; }
.zenon-entry-content > *:last-child { margin-bottom: 0; }

.zenon-entry-content h1,
.zenon-entry-content h2,
.zenon-entry-content h3 {
  line-height: 1.15;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.zenon-entry-content h2 {
  margin-top: 2.4rem;
  color: var(--z-gold);
}

.zenon-entry-content p {
  max-width: 76ch;
}

.zenon-entry-content .wp-block-button__link {
  background: var(--z-gold);
  color: #090909;
  border-radius: 0;
  font-weight: 700;
  letter-spacing: .04em;
}

.zenon-footer {
  border-top: 1px solid var(--z-line);
  background: rgba(0,0,0,.75);
}

.zenon-footer-inner {
  padding: 1.25rem 0 1.6rem;
  color: var(--z-muted);
  font-size: .92rem;
  text-align: center;
}

.zenon-footer-links {
  margin: .35rem 0 0;
  display: flex;
  justify-content: center;
  gap: .8rem;
  flex-wrap: wrap;
}

/* Legacy WordPress shortcode gallery fallback. */
.gallery {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 2rem 0;
}
.gallery .gallery-item {
  margin: 0 !important;
  width: auto !important;
  max-width: 100%;
}
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  border: 0 !important;
}
.gallery br { display: none; }

@media (max-width: 760px) {
  .zenon-header-inner { align-items: flex-start; flex-direction: column; }
  .zenon-nav ul { justify-content: flex-start; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
}
