/*
Theme Name: Michael Flexig Official
Theme URI: https://michaelflexig.com/
Author: Michael Flexig / custom build
Description: Minimal, cinematic artist theme for the official Michael Flexig website.
Version: 0.11.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: michael-flexig-official
*/

:root {
  --mf-bg: #05070b;
  --mf-text: #f7f2e8;
  --mf-muted: rgba(247, 242, 232, .72);
  --mf-line: rgba(247, 242, 232, .20);
  --mf-gold: #d9bd7a;
  --mf-display: "Bodoni MT", "Bodoni 72", Didot, "Times New Roman", serif;
  --mf-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--mf-bg); }
body {
  margin: 0;
  color: var(--mf-text);
  background: var(--mf-bg);
  font-family: var(--mf-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--mf-gold);
  outline-offset: 5px;
}

.mf-site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  padding: 28px clamp(24px, 4vw, 70px);
  background: linear-gradient(to bottom, rgba(2,4,8,.56), rgba(2,4,8,0));
  pointer-events: none;
}

.mf-header-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
  max-width: 1800px;
  margin: 0 auto;
  pointer-events: auto;
}

.mf-header-phi {
  margin-right: auto;
  font-family: var(--mf-display);
  font-size: 28px;
  line-height: 1;
  font-weight: 400;
  color: var(--mf-gold);
  opacity: .94;
  text-shadow: 0 2px 18px rgba(0,0,0,.26);
}

.mf-nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 38px); }
.mf-nav-list {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 38px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.mf-nav-list li { margin: 0; padding: 0; }
.mf-nav a {
  position: relative;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.90);
  transition: color .22s ease;
}
.mf-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: .18em; bottom: -9px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}
.mf-nav a:hover { color: #fff; }
.mf-nav a:hover::after,
.mf-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.mf-language {
  padding-left: 22px;
  border-left: 1px solid var(--mf-line);
  font-size: 11px;
  letter-spacing: .16em;
  white-space: nowrap;
  color: rgba(255,255,255,.82);
}
.mf-language .active { color: #fff; }
.mf-language .inactive { color: rgba(255,255,255,.38); cursor: default; }

.mf-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1672 / 941;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  background: #05070b;
}
.mf-hero-picture,
.mf-hero-picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* The approved desktop artwork is never cropped or distorted. */
.mf-hero-picture img { object-fit: contain; object-position: 50% 50%; }

.mf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(2,4,8,.05) 0%, rgba(2,4,8,0) 44%, rgba(2,4,8,.10) 70%, rgba(2,4,8,.24) 100%),
    linear-gradient(0deg, rgba(2,4,8,.10), transparent 28%);
  pointer-events: none;
}

/* Desktop master: centered on the architectural/light cross axis in the approved hero. */
.mf-hero-copy {
  position: absolute;
  z-index: 2;
  left: 73.9%;
  top: 52.0%;
  width: min(43vw, 700px);
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  filter: drop-shadow(0 3px 16px rgba(0,0,0,.22));
}

.mf-hero-phi {
  margin: 0 0 13px;
  font-family: var(--mf-display);
  font-size: clamp(46px, 4.4vw, 74px);
  font-weight: 400;
  line-height: .88;
  color: var(--mf-gold);
}

.mf-hero h1 {
  margin: 0;
  font-family: var(--mf-display);
  font-size: clamp(32px, 3.35vw, 58px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 2px 22px rgba(0,0,0,.20);
}
.mf-hero-kicker {
  margin: 19px 0 0;
  font-size: clamp(9px, .72vw, 12px);
  font-weight: 500;
  letter-spacing: .39em;
  text-transform: uppercase;
  color: rgba(255,255,255,.76);
}

.mf-page {
  min-height: 100svh;
  padding: 160px clamp(24px, 7vw, 120px) 80px;
  background:
    radial-gradient(circle at 80% 10%, rgba(88,74,129,.15), transparent 35%),
    linear-gradient(180deg, #090b12 0%, #05070b 100%);
}
.mf-page-inner { max-width: 1100px; margin: 0 auto; }
.mf-page h1 {
  margin: 0 0 42px;
  font-family: var(--mf-display);
  font-size: clamp(42px, 6vw, 86px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.mf-page-content { max-width: 760px; font-size: 18px; line-height: 1.75; color: rgba(255,255,255,.78); }
.mf-page-content p:first-child { margin-top: 0; }
.mf-empty-note {
  font-family: var(--mf-display);
  font-size: clamp(22px, 3vw, 36px);
  color: rgba(255,255,255,.60);
}

.mf-mobile-menu-button { display: none; }


/* v0.6 desktop master: the approved artwork already contains the Phi/title composition.
   Keep the semantic HTML copy available for mobile, but do not double-render it on desktop. */
@media (min-width: 821px) {
  /* Desktop: keep the entire approved master inside the visible browser height.
     This avoids the slight width-driven zoom that pushed the feet below the viewport. */
  .mf-hero {
    height: 100svh;
    aspect-ratio: auto;
  }
  .mf-hero-picture img {
    object-fit: contain;
    object-position: 50% 50%;
    /* v0.11: subtle optical balance correction. Master artwork remains untouched. */
    transform: translateY(12px) scale(.99);
    transform-origin: 50% 50%;
  }
  .mf-hero-copy { display: none; }
}

@media (min-width: 821px) {
  body.admin-bar .mf-hero { height: calc(100svh - 32px); }
}

@media (max-width: 820px) {
  .mf-site-header { padding: 19px 20px; }
  .mf-header-inner { justify-content: space-between; gap: 16px; }
  .mf-header-phi { font-size: 25px; }
  .mf-mobile-menu-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 0;
    padding: 9px 0;
    color: #fff;
    background: transparent;
    font: inherit;
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .mf-mobile-menu-button::before {
    content: "";
    width: 21px;
    height: 12px;
    border-top: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
  }
  .mf-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    padding: 90px 38px;
    background: rgba(4,6,10,.97);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
  }
  body.mf-menu-open { overflow: hidden; }
  body.mf-menu-open .mf-nav { opacity: 1; visibility: visible; transform: translateY(0); }
  .mf-nav-list { flex-direction: column; align-items: flex-start; gap: 30px; }
  .mf-nav a { font-size: 17px; letter-spacing: .13em; }
  .mf-language { margin-left: 0; padding-left: 14px; }

  .mf-hero { min-height: 100svh; aspect-ratio: auto; }
  .mf-hero-picture img { object-fit: cover; object-position: 50% 50%; }
  .mf-hero::before {
    background:
      linear-gradient(0deg, rgba(3,5,9,.48) 0%, rgba(3,5,9,.07) 45%, rgba(3,5,9,.03) 74%),
      linear-gradient(90deg, rgba(3,5,9,.12), transparent 58%);
  }
  .mf-hero-copy {
    top: auto;
    left: 50%;
    right: auto;
    bottom: 7.2vh;
    width: calc(100% - 38px);
    transform: translateX(-50%);
    text-align: center;
  }
  .mf-hero-phi {
    margin-bottom: 11px;
    font-size: clamp(44px, 13vw, 66px);
  }
  .mf-hero h1 {
    font-size: clamp(31px, 9.2vw, 48px);
    line-height: 1;
    letter-spacing: .09em;
    white-space: nowrap;
  }
  .mf-hero-kicker {
    margin-top: 14px;
    font-size: 9px;
    letter-spacing: .32em;
  }
  .mf-page { padding-top: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
