/*!
Theme Name: Local Ma 180
Theme URI: http://underscores.me/
Author: Skylight Designs
Author URI: https://skylightdesigns.ca/
Description: A website to remember members of local 180.
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: local_ma_180
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

Local Ma 180 is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

*/

/* ---- Cross-browser reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img, picture, video, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  text-decoration: none;
  color: inherit;
}

html {
  scroll-behavior: smooth;
  height: 100%;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-family: 'Lato', sans-serif;
  color: #1A1A2E;
  background: #FFFFFF;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
}

.font-script  {
    font-family: "Great Vibes", cursive;
    font-weight: 400;
    font-style: normal;
}

/* WordPress admin bar offset */
.admin-bar nav.fixed {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar nav.fixed {
    top: 46px;
  }
}

.their-music {
  font-size: 1.85em;
  line-height: 0.85em;
}

.echoes {
  font-size: 1.125em;
  margin-top: 0.375em;
}

main {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}

footer {
  flex-shrink: 0;
  margin-top: auto;
}

.bg-warm-ivory-background {
  background-image: url('../images/texture.jpg');
  background-size: 1000px 1000px;
  background-position: center;
  background-repeat: repeat;
}

.tribute-icon {
  width: 40px;
  height: 40px;
  stroke: #008c8c;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 250ms ease, transform 250ms ease;
}

.group:hover .tribute-icon {
  stroke: #C57A2A;
  transform: translateY(-2px);
}

/* Musician hero typographic treatment */
.hero-typo-bg {
  -webkit-text-stroke: 1px rgba(0, 188, 198, 0.08);
}
@media (min-width: 769px) {
  .hero-typo-bg {
    -webkit-text-stroke: 1.5px rgba(0, 188, 198, 0.1);
  }
}

/* Prevent drag/select artifacts on browse strip */
#browse-strip {
  -webkit-user-select: none;
  user-select: none;
}
#browse-strip img {
  -webkit-user-drag: none;
}
#browse-strip.dragging a {
  pointer-events: none;
}
#browse-strip.dragging .group:hover > div:last-child {
  opacity: 1 !important;
}

/* Hide scrollbar */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Hero */
.hero-section {
  position: relative;
  overflow: hidden;
  background: #FFFFFF;
  border-bottom: 2px solid rgba(217, 164, 65, 0.3);
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.hero-text {
  padding: 2rem 0;
  text-align: left;
  position: relative;
  z-index: 2;
}

.hero-image {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  max-height: 400px;
}

.hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-musician-image {
  background-image: url('../images/hero-musician.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 350px;
  width: 100%;
}

.hero-transition {
  position: relative;
  margin-top: -60px;
  z-index: 3;
  pointer-events: none;
}

.hero-transition img {
  width: 100%;
  height: auto;
  display: block;
}

.echoes-underline {
  display: inline-block;
  border-bottom: 3px dotted #008C8F;
  padding-bottom: 0.25em;
}

/* Pillar row */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Smooth card grayscale */
.grayscale {
  -webkit-filter: grayscale(100%) contrast(1.05);
  filter: grayscale(100%) contrast(1.05);
}

/* ================================================
   Watercolour image treatment
   ================================================ */

/* --- Browse strip cards --- */
#browse-strip > div,
#browse-strip > a {
  border-radius: 0;
}

/* Soft sepia warmth on browse strip images */
#browse-strip > div img,
#browse-strip > a img {
  -webkit-filter: grayscale(100%) sepia(35%) contrast(1.05) brightness(1.02);
  filter: grayscale(100%) sepia(35%) contrast(1.05) brightness(1.02);
  /* transition: filter 0.5s ease, transform 0.5s ease; */
}
#browse-strip > div:hover img,
#browse-strip > a:hover img {
  -webkit-filter: grayscale(0%) sepia(12%) contrast(1.02) brightness(1.0);
  filter: grayscale(0%) sepia(12%) contrast(1.02) brightness(1.0);
}

.musician-photo {
  margin-left: 3.75%;
}

/* --- Musician grid cards: watercolour frame treatment --- */
.musician-card article {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  overflow: visible !important;
}

/* Musician card image area */
.musician-card article > .relative {
  border-radius: 0 !important;
  position: relative;
}

/* Warm tonal shift on card images */
.musician-card article > .relative img {
  -webkit-filter: grayscale(100%) sepia(30%) contrast(1.08) brightness(1.0);
  filter: grayscale(100%) sepia(30%) contrast(1.08) brightness(1.0);
  transition: filter 0.6s ease;
}
.musician-card article:hover > .relative img {
  -webkit-filter: grayscale(0%) sepia(10%) contrast(1.0) saturate(1.1) brightness(1.02);
  filter: grayscale(0%) sepia(10%) contrast(1.0) saturate(1.1) brightness(1.02);
}

/* Paint-drip bottom edge on card images using gradient fade */
.musician-card article > .relative::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(
    to top,
    rgba(255,255,255,0.95) 0%,
    rgba(255,255,255,0.5) 30%,
    rgba(255,255,255,0.15) 55%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.5s ease;
}
.musician-card article:hover > .relative::after {
  opacity: 0.4;
}

/* Colour overlay becomes a subtle watercolour wash instead of flat tint */
.musician-card article > .relative > div[class*="mix-blend"] {
  mix-blend-mode: color !important;
  opacity: 0.6 !important;
  transition: opacity 0.5s ease, mix-blend-mode 0.5s ease;
}
.musician-card article:hover > .relative > div[class*="mix-blend"] {
  opacity: 0 !important;
}

/* Card text area floats on top with no hard boundary */
.musician-card article > .p-6 {
  position: relative;
  z-index: 3;
  margin-top: 0.5rem;
  background: transparent;
}


/* Decorative paint-dot accent on each card */
.musician-card article::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 12px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #E08877;
  opacity: 0.55;
  z-index: 4;
  transition: transform 0.4s ease, opacity 0.4s ease;
  filter: blur(1px);
}
.musician-card:nth-child(3n+2) article::before {
  background: #00BCC6;
  top: -4px;
  right: 18px;
  width: 12px;
  height: 12px;
}
.musician-card:nth-child(3n+3) article::before {
  background: #8B7BB5;
  top: -8px;
  right: 8px;
  width: 16px;
  height: 16px;
}
.musician-card article:hover::before {
  opacity: 0.35;
}

/* Musician card needs relative position for the pseudo-element */
.musician-card article {
  position: relative;
}

/* Musician grid: explicit widths for Isotope cross-browser consistency */
#musician-grid::after {
  content: "";
  display: block;
  clear: both;
}
.grid-sizer {
  float: left;
  width: 50%;
}
.musician-card {
  float: left;
  height: auto;
  max-height: 50em;
  width: 50%;
}
@media (min-width: 768px) {
  .grid-sizer,
  .musician-card {
    width: 25% !important;
  }
}

/* Hover lift on card */
/* .musician-card article:hover {
  transform: translateY(-4px);
  transition: transform 0.4s ease;
} */

/* Cross-browser backdrop-blur */
.backdrop-blur-sm, [class*="backdrop-blur"] {
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

/* Safari sticky fix */
nav, section {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Cross-browser appearance reset for inputs */
input[type="email"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Firefox scrollbar hide */
.no-scrollbar {
  scrollbar-width: none;
}

/* Small phones (up to 374px) */
@media (max-width: 374px) {
  .their-music {
    font-size: 2em;
    line-height: 0.75em;
  }

  .echoes {
    font-size: 1em;
  }

  .hero-text {
    padding: 1.5rem 0;
  }
}

@media (min-width: 481px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-image {
    width: auto;
    max-height: 450px;
  }

  .their-music {
    font-size: 3.5em;
    line-height: 0.82em;
  }

  .echoes {
    font-size: 1em;
  }
}

@media (min-width: 769px) {
  .hero-content {
    grid-template-columns: 1fr;
    padding: 0 64px;
    min-height: 520px;
  }
  .hero-text {
    padding: 3rem 0;
    max-width: 50%;
  }
  .hero-image {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 55%;
    max-height: none;
    overflow: visible;
  }
  .hero-image img {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
  }

  .musician-photo {
    margin-left: 3.25%;
  }

  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .their-music {
    font-size: 4em;
    line-height: 0.8em;
  }

  .echoes {
    font-size: 1.25em;
    margin-top: 0.25em;
  }

  .echoes-underline {
    padding-bottom: 0;
  }
}

@media (min-width: 1025px) {
  .pillars-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .hero-content {
    min-height: 600px;
  }

  .hero-text {
    padding: 4rem 0;
    max-width: 45%;
  }

  .hero-image {
    width: 58%;
  }

  /* .their-music {
    font-size: 5em;
    line-height: 0.785em;
  } */
}

@media (min-width: 1280px) {
  .hero-image {
    width: 60%;
  }

  .their-music {
    font-size: 4em;
    line-height: 0.8em;
  }

  .echoes {
    font-size: 1.25em;
    margin-top: 0.125em;
  }
}

@media (min-width: 1536px) {
  .hero-image {
    width: 62%;
  }

  .musician-photo {
    margin-left: 3%;
  }
}

@media (min-width: 1700px) {
  .musician-photo {
    margin-left: 2.5%;
  }
}

@media (min-width: 1900px) {
  .musician-photo {
    margin-left: 1.5%;
  }
}

/* Material Symbols Outlined */
.material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}
.icon-fill {
  font-variation-settings: "FILL" 1;
}

/* Keyframe animations */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes heroNameGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Musician page utilities */
.ghost-shadow {
  box-shadow: 0 20px 40px -10px rgba(0, 103, 105, 0.1);
}
.b-w-filter {
  filter: grayscale(100%) contrast(1.1) brightness(0.95);
}
.hover-color:hover {
  filter: grayscale(0%) contrast(1) brightness(1);
  transition: filter 0.5s ease;
}

.drop-cap::first-letter {
  float: left;
  font-size: 80px;
  line-height: 60px;
  padding-top: 12px;
  padding-right: 12px;
  padding-left: 0;
  color: #008c8f;
  font-family: "Cormorant Garamond", serif;
}
