/*
Theme Name: Funky Sunday
Theme URI: https://example.com/
Author: Funky Sunday
Description: Minimalistinen mustavalkoinen WordPress-teema Funky Sunday -yhtyeelle.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: funky-sunday
*/

:root {
  --bg: #f4f4f1;
  --ink: #0a0a0a;
  --muted: #666;
  --line: rgba(10,10,10,.14);
  --dark: #050505;
  --white: #fff;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.section { padding: 110px 0; }
.eyebrow {
  margin: 0 0 18px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
  color: #fff;
}
.site-header.scrolled,
.site-header--solid {
  background: rgba(244,244,241,.94);
  color: #0a0a0a;
  border-color: var(--line);
  backdrop-filter: blur(14px);
}
.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand-logo {
  position: relative;
  display: block;
  width: 74px;
  height: 56px;
  flex: 0 0 auto;
  text-decoration: none;
}
.brand-logo-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}
.brand-logo-black { display: none; }
.site-header.scrolled .brand-logo-white,
.site-header--solid .brand-logo-white { display: none; }
.site-header.scrolled .brand-logo-black,
.site-header--solid .brand-logo-black { display: block; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  text-decoration: none;
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.site-nav a:hover { opacity: .55; }
.menu-toggle {
  display: none;
  border: 0;
  background: none;
  color: currentColor;
  padding: 10px 0 10px 10px;
  font: inherit;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  background: #111;
  color: #fff;
}
.hero-clean::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.20), rgba(0,0,0,0) 42%, rgba(0,0,0,.30));
  z-index: 1;
  pointer-events: none;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: .82;
}

.intro-grid,
.band-story-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.home-intro h1,
.page-hero h1,
.story-heading h2,
.members-head h2,
.contact h2,
.page-contact-strip h2 {
  margin: 0;
  line-height: .92;
  letter-spacing: -.055em;
  font-weight: 900;
}
.home-intro h1 { font-size: clamp(2.8rem, 6.7vw, 6.2rem); }
.intro-copy,
.about-copy {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  max-width: 760px;
}
.intro-copy p,
.about-copy p { margin: 0 0 1.25em; }
.intro-copy p:last-of-type,
.about-copy p:last-child { margin-bottom: 0; }
.text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 34px;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
}
.text-link:hover { opacity: .55; }
.intro-links { display: flex; gap: 24px; flex-wrap: wrap; }

.page-hero {
  background: var(--dark);
  color: var(--white);
  padding: 170px 0 85px;
}
.page-hero-inner { min-height: 200px; display: flex; flex-direction: column; justify-content: end; }
.page-hero h1 { font-size: clamp(4.5rem, 13vw, 11rem); }
.story-heading h2 { font-size: clamp(2.6rem, 6vw, 5.8rem); }
.band-story { background: var(--bg); }

.band-photo-section { background: #0a0a0a; padding: 0; }
.band-photo-wrap { width: min(100%, 1600px); margin: 0 auto; }
.band-photo-wrap img { width: 100%; max-height: 850px; object-fit: cover; }

.members { background: #fff; }
.members-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 54px;
}
.members-head h2 { font-size: clamp(2.8rem, 7vw, 6.6rem); }
.members-intro { margin: 0; max-width: 470px; color: var(--muted); }
.member-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.member-card { min-width: 0; }
.member-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #e8e8e4;
  position: relative;
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: filter .3s ease, transform .5s ease; }
.member-card:hover .member-photo img { filter: grayscale(0); transform: scale(1.018); }
.member-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  background: #0a0a0a;
  color: #fff;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 900;
  letter-spacing: -.08em;
}
.member-meta { padding: 15px 2px 25px; border-bottom: 1px solid var(--line); }
.member-name { margin: 0 0 3px; font-size: 1rem; line-height: 1.2; font-weight: 850; }
.member-role { margin: 0; font-size: .84rem; color: var(--muted); }
.member-bio { margin: 9px 0 0; font-size: .86rem; color: var(--muted); }

.member-profiles { background: #fff; }
.member-profiles-head {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 64px;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.profile-card {
  display: grid;
  grid-template-columns: minmax(180px, .85fr) 1.15fr;
  min-height: 360px;
  background: var(--bg);
  overflow: hidden;
}
.profile-photo {
  min-height: 360px;
  background: #e8e8e4;
  overflow: hidden;
}
.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter .3s ease, transform .5s ease;
}
.profile-card:hover .profile-photo img {
  filter: grayscale(0);
  transform: scale(1.018);
}
.profile-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
}
.profile-role {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.profile-copy h2 {
  margin: 0 0 22px;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: .98;
  letter-spacing: -.045em;
}
.profile-bio {
  margin: 0;
  color: #3d3d3d;
  font-size: .97rem;
}
.profile-bio p { margin: 0 0 1em; }
.profile-bio p:last-child { margin-bottom: 0; }
.profile-bio--empty { color: var(--muted); font-style: italic; }

.contact {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 125px 0;
}
.contact .eyebrow { opacity: .6; }
.contact h2 { max-width: 900px; margin: 0 auto 30px; font-size: clamp(3rem, 8vw, 7rem); }
.contact-text { max-width: 620px; margin: 0 auto 38px; font-size: 1.12rem; color: rgba(255,255,255,.7); }
.contact-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}
.button:hover { background: #fff; color: #000; }
.social-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin-top: 38px; }
.social-links a { color: rgba(255,255,255,.72); text-decoration: none; font-size: .83rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.social-links a:hover { color: #fff; }

.page-contact-strip { background: #090909; color: #fff; padding: 78px 0; }
.page-contact-strip-inner { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.page-contact-strip h2 { font-size: clamp(2.5rem, 6vw, 5rem); }
.page-contact-strip .eyebrow { opacity: .6; }

.site-footer { background: #000; color: rgba(255,255,255,.45); border-top: 1px solid rgba(255,255,255,.12); }
.footer-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: .76rem; }
.footer-inner a { text-decoration: none; }

.generic-content { padding: 130px 0 80px; min-height: 70vh; }
.generic-content h1 { font-size: clamp(2.6rem, 7vw, 5rem); letter-spacing: -.05em; }

@media (max-width: 1050px) {
  .member-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .intro-grid, .band-story-grid, .member-profiles-head { grid-template-columns: 1fr; gap: 38px; }
  .profile-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 80px 0; }
  .brand-logo { width: 62px; height: 48px; }
  .menu-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: 74px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #f4f4f1;
    color: #000;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 6px 14px 14px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 16px 4px; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
  .hero { min-height: 72svh; }
  .hero-image { object-position: 50% 50%; }
  .members-head { display: block; }
  .members-intro { margin-top: 22px; }
  .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .member-profiles-head { margin-bottom: 42px; }
  .profile-card { grid-template-columns: 1fr; min-height: 0; }
  .profile-photo { min-height: 0; aspect-ratio: 4 / 5; }
  .profile-copy { padding: 26px 22px 30px; }
  .contact { padding: 90px 0; }
  .page-contact-strip-inner { display: block; }
  .page-contact-strip .button { margin-top: 30px; }
  .page-hero { padding-top: 135px; }
  .footer-inner { min-height: 96px; flex-direction: column; justify-content: center; text-align: center; gap: 5px; }
}
@media (max-width: 420px) {
  .member-grid { grid-template-columns: 1fr 1fr; }
  .member-meta { padding-bottom: 20px; }
}
