/*
Theme Name: Mme Faitout
Theme URI: https://example.com/
Author: Custom theme
Description: A clean split-screen WordPress theme for Mme Faitout, with biography, newsletter signup and social links.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: mme-faitout
*/

:root {
  --mf-bg: #ffffff;
  --mf-text: #1f1f1f;
  --mf-muted: #66625f;
  --mf-accent: #ffd900;
  --mf-accent-hover: #f2cb00;
  --mf-border: #e8e5df;
  --mf-max-copy: 670px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mf-bg);
  color: var(--mf-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.mf-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
  background: #fff;
}

.mf-left {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  padding: clamp(34px, 5vw, 80px) clamp(28px, 7vw, 110px) 34px;
  background: #fff;
}

.mf-left-inner {
  width: min(100%, var(--mf-max-copy));
  margin: 0 auto;
}

.mf-logo-wrap {
  width: min(330px, 72%);
  margin: 0 auto clamp(28px, 5vh, 54px);
}

.mf-logo-wrap img {
  width: 100%;
  max-height: 150px;
  object-fit: contain;
}

.mf-bio h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 2.1vw, 40px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.mf-bio p {
  margin: 0 0 18px;
  font-size: clamp(16px, 1.03vw, 19px);
  line-height: 1.78;
  color: #353332;
}

.mf-bio strong { font-weight: 650; }

.mf-signoff {
  margin-top: 24px !important;
  font-weight: 600;
}

.mf-newsletter {
  margin-top: clamp(34px, 5vh, 60px);
  padding-top: 30px;
  border-top: 1px solid var(--mf-border);
}

.mf-newsletter h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 1.6vw, 30px);
  letter-spacing: -0.02em;
}

.mf-newsletter p {
  margin: 0 0 18px;
  color: var(--mf-muted);
  line-height: 1.6;
}

.mf-newsletter-form {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 14px;
}

.mf-newsletter-fields {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  width: 100%;
  min-width: 0;
  gap: 12px;
}

.mf-newsletter-form input[type="text"],
.mf-newsletter-form input[type="email"] {
  width: 100%;
  min-width: 0;
  height: 56px;
  padding: 0 18px;
  border: 1px solid #d7d4cf;
  border-radius: 8px;
  background: #fff;
  color: var(--mf-text);
  font: inherit;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.mf-newsletter-form input[type="text"]:focus,
.mf-newsletter-form input[type="email"]:focus {
  border-color: #9f9684;
  box-shadow: 0 0 0 4px rgba(255, 217, 0, .18);
}

.mf-newsletter-form button {
  height: 56px;
  min-width: 170px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--mf-accent);
  color: #202020;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
  grid-column: 1 / -1;
  justify-self: start;
}

.mf-newsletter-form button:hover {
  transform: translateY(-1px);
  background: var(--mf-accent-hover);
  box-shadow: 0 10px 24px rgba(0,0,0,.15);
}

.mf-newsletter-consent {
  display: flex;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
  gap: 10px;
  color: var(--mf-muted);
  font-size: 13px;
  line-height: 1.5;
}

.mf-newsletter-consent input {
  display: block;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--mf-accent-hover);
}

.mf-newsletter-consent span {
  min-width: 0;
}

.mf-newsletter-consent a {
  font-weight: 600;
  text-underline-offset: 2px;
}

.mf-contact-company {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.mf-contact-company[hidden] {
  display: none !important;
}

.mf-newsletter p.mf-newsletter-notice,
.mf-newsletter p.mf-newsletter-success,
.mf-newsletter p.mf-newsletter-error {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
}

.mf-newsletter p.mf-newsletter-notice {
  background: #fff9d8;
  color: #695800;
}

.mf-newsletter p.mf-newsletter-success {
  background: #edf8ef;
  color: #245a2c;
}

.mf-newsletter p.mf-newsletter-error {
  background: #fff0ee;
  color: #8a2e22;
}

.mf-form-note {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: #8a857e;
}

.mf-socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 38px;
  padding-bottom: 6px;
}

.mf-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--mf-accent);
  color: #2b2b2b;
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  transition: transform .2s ease, background-color .2s ease;
}

.mf-social:hover,
.mf-social:focus-visible {
  transform: translateY(-2px);
  background: var(--mf-accent-hover);
}

.mf-right {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #ece9e3;
}

.mf-right::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.04), transparent 18%);
}

.mf-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.mf-right.is-default-artwork {
  background: #f6f3ed;
}

.mf-right.is-default-artwork img {
  object-fit: contain;
  padding: clamp(18px, 2.5vw, 38px);
}

.mf-footer-copy {
  margin-top: 22px;
  text-align: center;
  color: #aaa39c;
  font-size: 12px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1050px) {
  .mf-left {
    padding-left: clamp(26px, 5vw, 64px);
    padding-right: clamp(26px, 5vw, 64px);
  }

  .mf-newsletter-fields {
    grid-template-columns: 1fr;
  }

  .mf-newsletter-form button {
    width: 100%;
  }
}

@media (max-width: 820px) {
  .mf-home {
    display: flex;
    flex-direction: column;
  }

  .mf-left {
    order: 1;
    min-height: auto;
    padding-top: 34px;
    padding-bottom: 46px;
  }

  .mf-right {
    order: 2;
    position: relative;
    height: min(118vw, 760px);
  }

  .mf-logo-wrap {
    width: min(300px, 78%);
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .mf-left { padding-left: 22px; padding-right: 22px; }
  .mf-bio p { line-height: 1.68; }
  .mf-social { width: 42px; height: 42px; }
}
