/*
Theme Name: Milele Wildlife
Theme URI: https://dev.milelewild.org
Author: Milele Wildlife Sanctuary
Description: A lightweight block-compatible theme for Milele Wildlife Sanctuary.
Version: 0.2.0
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: milelewild
*/

:root {
  --mw-header-height: 76px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--wp--preset--color--cream);
}

a {
  text-underline-offset: 0.18em;
}

.mw-site-header {
  border-bottom: 0;
  z-index: 10;
}

.mw-header-stack {
  gap: 12px;
}

.mw-header-logo {
  line-height: 0;
  margin: 0 !important;
}

.mw-header-logo img {
  height: auto;
  width: 120px;
}

.mw-brand-mark,
.mw-brand-mark img {
  height: auto !important;
  width: min(205px, 24vw) !important;
}

.mw-brand-mark img {
  object-fit: contain;
}

.mw-hero-logo {
  display: block !important;
  line-height: 0;
  margin: 0 0 var(--wp--preset--spacing--30) 0 !important;
  max-width: none !important;
  position: relative;
  z-index: 4;
}

.mw-hero-wordmark,
.mw-hero-wordmark img {
  height: auto !important;
  width: min(310px, 42vw) !important;
}

.mw-hero-wordmark {
  display: block !important;
  line-height: 0;
  margin: 0 0 var(--wp--preset--spacing--30) 0 !important;
}

.mw-hero-title,
.mw-hero-copy {
  position: relative;
  z-index: 3;
}

.mw-hero {
  min-height: 462px;
  position: relative;
}

.mw-hero .wp-block-cover__image-background {
  filter: saturate(1.08) contrast(1.03);
}

.mw-hero-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem) !important;
  line-height: 1.02;
  max-width: 840px;
}

.mw-hero-copy {
  font-size: clamp(1rem, 1.45vw, 1.28rem) !important;
  font-weight: 700;
  line-height: 1.45;
  max-width: 700px;
  text-wrap: pretty;
}

.mw-intro-copy {
  font-size: clamp(1.08rem, 1.5vw, 1.28rem) !important;
  line-height: 1.55;
}

.mw-section h2 {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
}

.mw-welcome-title {
  font-size: clamp(2.6rem, 5vw, 4.1rem) !important;
  line-height: 1.05;
}

.mw-clean-columns h3 {
  color: var(--wp--preset--color--charcoal);
  margin-bottom: 0.25rem;
}

.mw-clean-columns ul {
  padding-left: 1.4rem;
}

.mw-clean-columns li + li {
  margin-top: 0.35rem;
}

.mw-kicker {
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 800;
}

.mw-section {
  padding-top: var(--wp--preset--spacing--50);
  padding-bottom: var(--wp--preset--spacing--50);
}

.mw-stat-grid,
.mw-card-grid,
.mw-gallery-grid {
  align-items: stretch;
}

.mw-card {
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--forest) 14%, transparent);
  border-radius: 8px;
  height: 100%;
}

.mw-card strong {
  color: var(--wp--preset--color--forest);
}

.mw-icon-pill {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.mw-gallery-image img,
.mw-feature-image img {
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.mw-wide-image img {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.mw-footer {
  border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--cream) 20%, transparent);
}

.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
  border: 1px solid currentColor;
  border-radius: 6px;
  padding: 8px;
}

.wp-block-button__link {
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.wp-block-button__link:hover {
  box-shadow: 0 12px 24px color-mix(in srgb, var(--wp--preset--color--charcoal) 16%, transparent);
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  :root {
    --mw-header-height: 68px;
  }

  .mw-header-logo img {
    width: 96px;
  }

  .mw-brand-mark,
  .mw-brand-mark img {
    width: min(145px, 42vw) !important;
  }

  .mw-hero-logo {
    margin-bottom: var(--wp--preset--spacing--30) !important;
    max-width: none !important;
  }

  .mw-hero-wordmark,
  .mw-hero-wordmark img {
    width: min(240px, 70vw) !important;
  }

  .mw-hero {
    min-height: 520px;
  }

  .mw-hero-title {
    font-size: clamp(2.25rem, 12vw, 3.2rem) !important;
  }

  .mw-hero-copy {
    font-size: 1.08rem !important;
  }
}
