/* =========================================================
   FMMA MODERN 0.3 — landing composition
   Mobile first where practical; desktop hero intentionally compact.
   ========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--wp--preset--color--ink);
}

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

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid var(--wp--preset--color--accent);
  outline-offset: 4px;
}

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  z-index: 50;
  inset: 0 0 auto;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 58%, transparent 100%);
}

.site-header__inner {
  min-height: 68px;
  padding-inline: clamp(1.25rem, 3.2vw, 2.75rem);
  gap: 1.25rem;
}

.site-brand {
  flex: 0 0 auto;
  gap: 0.65rem;
}

.site-brand .wp-block-site-title {
  margin: 0;
  font-size: clamp(0.9rem, 0.78rem + 0.35vw, 1.1rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-brand a,
.site-nav a {
  text-decoration: none;
}

.site-nav {
  font-size: clamp(0.66rem, 0.61rem + 0.15vw, 0.75rem);
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.site-nav .wp-block-navigation__container {
  gap: clamp(0.8rem, 1.6vw, 1.6rem);
}

/* ---------- Hero ---------- */

.fmma-hero {
  padding-inline: clamp(0.75rem, 2vw, 2rem);
  background: var(--wp--preset--color--ink);
}

.fmma-hero__grid {
  display: grid;
  grid-template-columns: minmax(330px, 0.78fr) minmax(0, 1.72fr);
  height: clamp(480px, 55svh, 540px);
  min-height: 480px;
  max-width: 1240px;
}

.fmma-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(5.2rem, 8vh, 6.2rem) clamp(1.5rem, 2.8vw, 2.75rem) clamp(1.5rem, 3vw, 2.4rem);
  background: linear-gradient(135deg, #0c0d10 0%, #15171b 100%);
}

.fmma-kicker {
  margin: 0 0 0.65rem;
  color: var(--wp--preset--color--accent);
  font-size: clamp(0.64rem, 0.61rem + 0.1vw, 0.7rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.fmma-hero__title {
  max-width: 8ch;
  margin: 0 0 0.85rem;

  font-family: var(--wp--preset--font-family--hand) !important;
  font-size: clamp(3.3rem, 4.4vw, 5.4rem) !important;
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.045em;

  transform: rotate(-2deg);
  transform-origin: left center;
}

.fmma-hand {
  font-family: var(--wp--preset--font-family--sans);
  font-size: clamp(1.15rem, 0.95rem + 0.7vw, 1.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  transform: none;
}

.fmma-hero__intro {
  max-width: 28rem;
  margin: 0;
  color: var(--wp--preset--color--muted);
  font-size: clamp(0.9rem, 0.86rem + 0.2vw, 1.05rem) !important;
  line-height: 1.45;
}

.fmma-hero__buttons {
  margin-top: clamp(0.9rem, 1.8vh, 1.25rem);
  gap: 0.6rem;
}

.wp-block-button__link {
  padding: 0.72rem 1rem;
  font-size: 0.7rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.fmma-hero__media {
  height: 100%;
  min-height: 0 !important;
  overflow: hidden;
}

.fmma-hero__media .wp-block-cover__image-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.fmma-hero__media .wp-block-cover__inner-container {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  height: 100%;
  padding: clamp(1.4rem, 2.8vw, 2.75rem);
}

/* Handwriting is deliberately a secondary accent, never the semantic H1. */
.fmma-hand {
  max-width: 13ch;
  margin: 0 0 clamp(0.25rem, 1.5vh, 0.8rem);
  font-family: var(--wp--preset--font-family--hand);
  font-size: clamp(1.45rem, 1rem + 1.2vw, 2.45rem);
  font-weight: 700;
  line-height: 1.02;
  text-align: right;
  text-wrap: balance;
  transform: rotate(-4deg);
  transform-origin: center;
}

/* Optional future SVG artwork. Keep a real H1 in the editor/DOM. */
.fmma-hero-title-art {
  display: block;
  width: min(100%, 390px);
  height: auto;
}
.fmma-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---------- Discipline strip ---------- */

.fmma-disciplines {
  position: relative;
  z-index: 3;
  padding: 2px clamp(0.75rem, 2vw, 2rem) clamp(3rem, 6vw, 6rem);
  background: var(--wp--preset--color--ink);
}

.fmma-card-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px !important;
  max-width: 1240px;
  background: #292c31;
}

.fmma-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: var(--wp--preset--color--surface);
}

.fmma-card__media {
  width: 100%;
  min-height: 0 !important;
  height: clamp(130px, 10vw, 165px) !important;
  aspect-ratio: auto;
  overflow: hidden;
}

.fmma-card__media .wp-block-cover__image-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.fmma-card:hover .fmma-card__media .wp-block-cover__image-background {
  transform: scale(1.025);
}

.fmma-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 !important;
  padding: 0.9rem 1rem 1rem;
}

.fmma-card__body h3 {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.fmma-card__body p {
  margin: 0;
  color: var(--wp--preset--color--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.fmma-card__link {
  margin-top: auto !important;
  padding-top: 0.7rem;
}

.fmma-card__link a {
  color: var(--wp--preset--color--accent);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

/* ---------- General content/footer ---------- */

.fmma-content {
  padding: clamp(6rem, 10vw, 9rem) clamp(1.25rem, 4vw, 3rem) clamp(4rem, 8vw, 7rem);
}

.site-footer {
  border-top: 1px solid #292b30;
}

.site-footer__inner {
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
  color: var(--wp--preset--color--muted);
}

/* ---------- Medium desktop / small laptop ---------- */

@media (max-width: 1100px) {
  .fmma-hero__grid {
    grid-template-columns: minmax(310px, 0.9fr) minmax(0, 1.45fr);
    height: clamp(470px, 58svh, 520px);
    min-height: 470px;
  }
  .fmma-hero__title {
    font-size: clamp(3rem, 5.4vw, 4.7rem) !important;
  }
  .fmma-card__media {
    height: clamp(125px, 13vw, 150px) !important;
  }
}

/* ---------- Tablet ---------- */

@media (max-width: 900px) {
  .site-header__inner {
    min-height: 66px;
  }

  .fmma-hero__grid {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .fmma-hero__copy {
    min-height: auto;
    padding: 6.5rem clamp(1.5rem, 5vw, 3rem) 2.5rem;
  }

  .fmma-hero__title {
    max-width: 8ch;
    font-size: clamp(3.25rem, 10vw, 5.4rem) !important;
  }

  .fmma-hero__media {
    min-height: clamp(320px, 46svh, 450px) !important;
  }

  .fmma-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fmma-card__media {
    height: clamp(150px, 26vw, 220px) !important;
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 520px) {
  .site-header__inner {
    min-height: 62px;
  }

  .fmma-hero,
  .fmma-disciplines {
    padding-inline: 0;
  }

  .fmma-hero__copy {
    padding: 5.7rem 1.25rem 2rem;
  }

  .fmma-hero__title {
    font-size: clamp(3.1rem, 16vw, 4.65rem) !important;
    line-height: 0.88;
  }

  .fmma-hero__media {
    min-height: 330px !important;
  }

  .fmma-hero__media .wp-block-cover__inner-container {
    padding: 1.25rem;
  }

  .fmma-hand {
    font-size: clamp(1.45rem, 7vw, 2.1rem);
  }

  .fmma-card-grid {
    grid-template-columns: 1fr;
  }

  .fmma-card__media {
    height: auto !important;
    aspect-ratio: 16 / 8.5;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .fmma-card:hover .fmma-card__media .wp-block-cover__image-background {
    transform: none;
  }
}
