/*
Theme Name: Moonveil Hollow
Theme URI: https://example.com/moonveil-hollow
Author: Moonveil Hollow
Author URI: https://example.com
Description: A dark, elegant boutique/resale landing-page theme for Moonveil Hollow with editable social marketplace links.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: moonveil-hollow
Tags: custom-logo, custom-menu, featured-images, full-width-template, one-column, two-columns, blog, e-commerce
*/

:root {
  --mh-bg: #120f1d;
  --mh-bg-soft: #1c1729;
  --mh-card: rgba(255, 255, 255, 0.075);
  --mh-card-strong: rgba(255, 255, 255, 0.12);
  --mh-text: #f8f3ff;
  --mh-muted: #cfc3df;
  --mh-accent: #c9a7ff;
  --mh-accent-2: #f0c66f;
  --mh-rose: #d88bbd;
  --mh-border: rgba(255, 255, 255, 0.16);
  --mh-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --mh-radius: 24px;
  --mh-width: 1160px;
  --mh-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mh-serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(201, 167, 255, 0.22), transparent 32rem),
    radial-gradient(circle at 92% 12%, rgba(240, 198, 111, 0.12), transparent 30rem),
    radial-gradient(circle at 52% 88%, rgba(216, 139, 189, 0.13), transparent 32rem),
    var(--mh-bg);
  color: var(--mh-text);
  font-family: var(--mh-font);
  line-height: 1.6;
}

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

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.mh-wrap {
  width: min(100% - 40px, var(--mh-width));
  margin-inline: auto;
}

.mh-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(18, 15, 29, 0.78);
  border-bottom: 1px solid var(--mh-border);
}

.admin-bar .mh-site-header { top: 32px; }

.mh-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.mh-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: max-content;
}

.mh-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(201, 167, 255, 0.26), rgba(240, 198, 111, 0.18));
  border: 1px solid var(--mh-border);
  box-shadow: 0 12px 30px rgba(201, 167, 255, 0.18);
  overflow: hidden;
}

.mh-brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.mh-brand-moon { font-size: 1.25rem; transform: translateY(-1px); }
.mh-brand-text { display: grid; line-height: 1.05; }
.mh-brand-name { font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: .95rem; }
.mh-brand-kicker { color: var(--mh-muted); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }

.mh-menu-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--mh-border);
  color: var(--mh-text);
  background: var(--mh-card);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
}

.mh-nav { display: flex; align-items: center; gap: 18px; }
.mh-nav ul { list-style: none; display: flex; align-items: center; gap: 18px; margin: 0; padding: 0; }
.mh-nav a { text-decoration: none; color: var(--mh-muted); font-weight: 700; font-size: .92rem; }
.mh-nav a:hover, .mh-nav .current-menu-item > a { color: var(--mh-text); }

.mh-button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--mh-accent), var(--mh-rose));
  color: #160f22;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 40px rgba(201, 167, 255, .22);
  cursor: pointer;
}

.mh-button:hover,
.wp-block-button__link:hover { transform: translateY(-1px); }

.mh-button--ghost {
  background: rgba(255, 255, 255, 0.07);
  color: var(--mh-text);
  border-color: var(--mh-border);
  box-shadow: none;
}

.mh-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 58px;
}

.mh-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: 46px;
  align-items: center;
}

.mh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 12px;
  border: 1px solid var(--mh-border);
  border-radius: 999px;
  color: var(--mh-muted);
  background: rgba(255, 255, 255, 0.06);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.mh-hero h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: .88;
  letter-spacing: -.07em;
}

.mh-hero h1 span {
  display: block;
  font-family: var(--mh-serif);
  font-weight: 500;
  font-style: italic;
  color: var(--mh-accent-2);
  letter-spacing: -.045em;
}

.mh-lede {
  max-width: 690px;
  color: var(--mh-muted);
  font-size: clamp(1.06rem, 2vw, 1.26rem);
  margin: 26px 0 0;
}

.mh-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.mh-hero-card {
  position: relative;
  min-height: 480px;
  border: 1px solid var(--mh-border);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.045)),
    radial-gradient(circle at 50% 24%, rgba(240, 198, 111, 0.22), transparent 15rem),
    rgba(255,255,255,.055);
  box-shadow: var(--mh-shadow);
  overflow: hidden;
}

.mh-hero-card::before {
  content: "";
  position: absolute;
  inset: 38px 58px auto auto;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  background: radial-gradient(circle at 33% 32%, #fff8d8, #f0c66f 56%, rgba(240,198,111,.18) 57%);
  box-shadow: 0 0 80px rgba(240,198,111,.42);
}

.mh-hero-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -18% -10%;
  height: 62%;
  background:
    linear-gradient(160deg, transparent 0 34%, rgba(18,15,29,.44) 35% 100%),
    linear-gradient(40deg, #241a33, #2f2142 42%, #161124);
  clip-path: polygon(0 65%, 14% 48%, 24% 58%, 38% 31%, 51% 48%, 64% 20%, 82% 47%, 100% 28%, 100% 100%, 0 100%);
}

.mh-product-note {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  z-index: 2;
  border: 1px solid var(--mh-border);
  border-radius: 24px;
  padding: 22px;
  background: rgba(18,15,29,.72);
  backdrop-filter: blur(14px);
}

.mh-product-note strong { display: block; font-size: 1.05rem; }
.mh-product-note p { margin: 8px 0 0; color: var(--mh-muted); }

.mh-section { padding: 58px 0; }
.mh-section-header { max-width: 780px; margin-bottom: 28px; }
.mh-section-kicker { color: var(--mh-accent-2); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 900; }
.mh-section h2,
.entry-title,
.page-title {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1;
  letter-spacing: -.045em;
}
.mh-section-header p { color: var(--mh-muted); font-size: 1.08rem; }

.mh-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.mh-card {
  border: 1px solid var(--mh-border);
  border-radius: var(--mh-radius);
  background: var(--mh-card);
  padding: 24px;
  box-shadow: 0 16px 50px rgba(0,0,0,.16);
}

.mh-card h3 { margin: 0 0 8px; font-size: 1.28rem; }
.mh-card p { margin: 0; color: var(--mh-muted); }
.mh-card-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; margin-bottom: 18px; background: rgba(201,167,255,.15); border: 1px solid var(--mh-border); }

.mh-marketplace-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.mh-marketplace {
  display: grid;
  min-height: 170px;
  align-content: space-between;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--mh-border);
  background: linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.045));
  text-decoration: none;
}
.mh-marketplace span:first-child { font-size: 2rem; }
.mh-marketplace strong { font-size: 1.1rem; }
.mh-marketplace small { color: var(--mh-muted); }
.mh-marketplace:hover { transform: translateY(-2px); background: var(--mh-card-strong); }

.mh-callout {
  border: 1px solid var(--mh-border);
  border-radius: 34px;
  padding: clamp(28px, 5vw, 54px);
  background:
    radial-gradient(circle at top right, rgba(240,198,111,.16), transparent 25rem),
    linear-gradient(135deg, rgba(201,167,255,.12), rgba(255,255,255,.055));
  box-shadow: var(--mh-shadow);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
}
.mh-callout h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -.045em; }
.mh-callout p { margin: 12px 0 0; color: var(--mh-muted); }

.mh-content {
  width: min(100% - 40px, 860px);
  margin: 0 auto;
  padding: 54px 0;
}

.mh-entry-card {
  border: 1px solid var(--mh-border);
  border-radius: var(--mh-radius);
  background: var(--mh-card);
  padding: 28px;
  margin-bottom: 22px;
}
.entry-meta, .entry-footer { color: var(--mh-muted); font-size: .92rem; }
.entry-content { color: var(--mh-text); }
.entry-content p, .entry-content li { color: var(--mh-muted); }
.entry-content a { color: var(--mh-accent-2); }
.wp-block-image img { border-radius: 18px; }

input, textarea, select {
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid var(--mh-border);
  background: rgba(255,255,255,.07);
  color: var(--mh-text);
  padding: 12px 14px;
}
label { font-weight: 800; }

.mh-pagination { display: flex; gap: 10px; justify-content: center; padding: 20px 0; }
.page-numbers { padding: 8px 12px; border: 1px solid var(--mh-border); border-radius: 999px; text-decoration: none; color: var(--mh-muted); }
.page-numbers.current { color: #160f22; background: var(--mh-accent); }

.mh-site-footer {
  border-top: 1px solid var(--mh-border);
  padding: 34px 0;
  background: rgba(0,0,0,.12);
}
.mh-footer-inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; color: var(--mh-muted); }
.mh-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.mh-socials a { text-decoration: none; border: 1px solid var(--mh-border); background: var(--mh-card); border-radius: 999px; padding: 9px 12px; font-weight: 800; color: var(--mh-text); }

@media (max-width: 860px) {
  .mh-header-inner { min-height: 70px; }
  .mh-menu-toggle { display: inline-flex; }
  .mh-nav { position: absolute; left: 20px; right: 20px; top: calc(100% + 10px); padding: 16px; border: 1px solid var(--mh-border); border-radius: 22px; background: rgba(18,15,29,.96); box-shadow: var(--mh-shadow); display: none; }
  .mh-nav.is-open { display: block; }
  .mh-nav ul { display: grid; gap: 10px; }
  .mh-hero { padding-top: 56px; }
  .mh-hero-grid { grid-template-columns: 1fr; }
  .mh-grid, .mh-marketplace-grid { grid-template-columns: 1fr; }
  .mh-callout { grid-template-columns: 1fr; }
}

@media (max-width: 782px) {
  .admin-bar .mh-site-header { top: 46px; }
}
