/*
Theme Name: Sister Midnight
Description: One-page band site for Sister Midnight: moonlit hero, videos, bio, members, shows, venues, booking and Instagram. Edit everything under Appearance > Customize.
Version: 1.5.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: sister-midnight
License: GNU General Public License v2 or later
*/

@font-face {
  font-family: 'Adam';
  src: url('fonts/Adam-Medium.otf') format('opentype');
  font-weight: 500;
  font-display: swap;
}

:root {
  --sm-black: #000000;
  --sm-coal: #0a0a0b;
  --sm-line: #26272a;
  --sm-rule: #3a3b40;
  --sm-silver: #c9ccd1;
  --sm-mist: #a9adb4;
  --sm-white: #f2f3f5;
  --sm-display: 'Big Shoulders Display', Impact, sans-serif;
  --sm-name: 'Adam', 'Big Shoulders Display', Impact, sans-serif;
  --sm-body: 'Archivo', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--sm-black);
  color: var(--sm-white);
  font: 16px/1.6 var(--sm-body);
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #d4d7dc; }
a:hover { color: #ffffff; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #ffffff; outline-offset: 3px;
}
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.sm-wrap { max-width: 1240px; margin: 0 auto; }
.sm-band { padding: clamp(48px, 6vw, 96px) max(5vw, 16px); border-top: 1px solid var(--sm-line); }
.sm-band--coal { background: var(--sm-coal); }
.sm-band--black { background: var(--sm-black); }
.sm-split { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.sm-split > :first-child { flex: 1 1 280px; min-width: 0; }
.sm-split > :last-child { flex: 2 1 420px; min-width: 0; }

.sm-h2 {
  margin: 0 0 14px;
  font-family: var(--sm-display); font-weight: 800;
  font-size: clamp(36px, 5vw, 52px); line-height: 1.05; color: #ffffff;
  text-wrap: balance;
}
.sm-lede { margin: 0; color: #b8bbc1; max-width: 40ch; }

.sm-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid var(--sm-silver); color: #ffffff;
  text-decoration: none; font-weight: 600; background: transparent;
}
.sm-btn:hover { background: #ffffff; color: #000000; }
.sm-btn--solid { background: #ffffff; color: #000000; border-color: #ffffff; }
.sm-btn--solid:hover { background: var(--sm-silver); }

/* Header */
.sm-header {
  position: sticky; top: var(--wp-admin--admin-bar--height, 0); z-index: 50;
  background: rgba(0, 0, 0, 0.88);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sm-line);
}
.sm-nav {
  max-width: 1240px; margin: 0 auto; padding: 14px max(5vw, 16px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px;
}
.sm-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #ffffff; }
.sm-logo-moon { width: 32px; height: 32px; flex: none; filter: drop-shadow(0 0 6px rgba(200, 190, 255, 0.35)); }
.sm-logo span { font-family: var(--sm-name); font-weight: 500; font-size: 20px; letter-spacing: 0.08em; }
.sm-menu { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; }
.sm-menu a { text-decoration: none; padding: 10px 0; }
.sm-nav-end { display: flex; align-items: center; gap: 8px; }
.sm-menu-book { padding: 10px 18px; border: 1px solid var(--sm-silver); color: #ffffff; text-decoration: none; font-size: 15px; }
.sm-menu-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--sm-line); color: #ffffff; cursor: pointer; padding: 0;
}
.sm-menu-toggle .sm-close { display: none; }
.sm-menu-toggle[aria-expanded="true"] .sm-burger { display: none; }
.sm-menu-toggle[aria-expanded="true"] .sm-close { display: inline; }

/* Phones and small tablets: one slim row, links behind the menu button */
@media (max-width: 860px) {
  .sm-nav { padding: 8px 16px; gap: 0 12px; flex-wrap: wrap; }
  .sm-logo { gap: 8px; }
  .sm-logo-moon { width: 26px; height: 26px; }
.sm-logo span { font-size: 16px; letter-spacing: 0.06em; }
  .sm-menu-book { padding: 8px 12px; font-size: 14px; }
  .sm-js .sm-menu-toggle { display: inline-flex; }
  .sm-menu { order: 3; flex-basis: 100%; flex-direction: column; gap: 0; }
  .sm-js .sm-menu { display: none; }
  .sm-js .sm-menu.is-open { display: flex; border-top: 1px solid var(--sm-line); margin-top: 8px; padding: 4px 0 8px; }
  .sm-menu a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid #16171a; }
  .sm-menu a:last-child { border-bottom: 0; }
  html { scroll-padding-top: 64px; }
}

/* Videos */
.sm-videos { padding: clamp(32px, 4vw, 56px) max(5vw, 16px); background: var(--sm-coal); }
.sm-videos .sm-wrap { display: flex; flex-wrap: wrap; gap: 28px; align-items: stretch; }
.sm-video-main {
  flex: 999 1 560px; min-width: 0; position: relative; aspect-ratio: 16 / 9;
  background: linear-gradient(160deg, #1d1e21 0%, #050506 70%);
  border: 1px solid #2c2d31; overflow: hidden; display: block; text-decoration: none;
}
.sm-video-main iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sm-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.sm-play span {
  width: 84px; height: 84px; border-radius: 50%; border: 2px solid #ffffff;
  display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.4);
}
.sm-video-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.sm-video-list { display: flex; flex-direction: column; gap: 10px; }
.sm-video-item {
  display: flex; gap: 14px; align-items: center; text-decoration: none;
  padding: 8px; border: 1px solid var(--sm-line); color: #e4e6e9; font-size: 15px;
}
.sm-video-item:hover { border-color: var(--sm-silver); }
.sm-thumb {
  flex: none; width: 104px; aspect-ratio: 16 / 9; object-fit: cover;
  background: linear-gradient(160deg, #2a2b2f, #0b0b0c);
}

/* Hero */
.sm-hero { position: relative; height: clamp(560px, 62vw, 780px); overflow: hidden; background: #000; }
.sm-hero-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.sm-hero-title {
  position: relative; z-index: 2; max-width: 1240px; margin: 0 auto;
  padding: 56px max(5vw, 16px) 0; text-align: center;
}
.sm-hero-title h1 {
  margin: 0;
  font-family: var(--sm-name); font-weight: 500;
  font-size: clamp(44px, 9vw, 132px); line-height: 1; letter-spacing: 0.04em;
  text-wrap: balance;
  background: linear-gradient(180deg, #ffffff 0%, #d6d9dd 45%, #8c9098 60%, #e9ebee 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sm-hero-photo {
  position: absolute; z-index: 1; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(1040px, 96%); height: var(--sm-band-h, 62%);
  display: flex; align-items: flex-end; justify-content: center;
}
.sm-hero-photo img { width: auto; max-width: 100%; height: 100%; object-fit: contain; object-position: bottom center; }
.sm-hero-empty {
  width: 100%; height: 100%; border: 1.5px dashed #9ea2a9; border-bottom: 0;
  background: rgba(0, 0, 0, 0.35); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 16px;
}
.sm-hero-empty strong { color: #e4e6e9; font-size: 17px; }
.sm-hero-empty span { color: #a3a7ae; font-size: 14px; max-width: 46ch; }
/* Photo banner: whole image shown at its 2:1 shape, cropped only on very wide screens */
.sm-hero--photo { height: auto; aspect-ratio: 2 / 1; max-height: 900px; width: 100%; }
.sm-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.sm-hero--photo .sm-hero-title h1 { text-shadow: none; }

@media (prefers-reduced-motion: no-preference) {
  .sm-glow { animation: smPulse 7s ease-in-out infinite; }
}
@keyframes smPulse { 0%, 100% { opacity: .55; } 50% { opacity: .9; } }

/* Bio */
.sm-bio-text { max-width: 68ch; color: var(--sm-silver); font-size: 17px; }
.sm-bio-text p { margin: 0 0 18px; }
.sm-bio-text p:last-child { margin-bottom: 0; }

/* Members */
.sm-members { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; margin-top: 22px; }
.sm-member { display: flex; flex-direction: column; gap: 12px; }
.sm-member-photo {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  background: linear-gradient(170deg, #2b2c30 0%, #0d0d0e 100%); border: 1px solid #2c2d31;
  filter: grayscale(1) contrast(1.08);
}
.sm-member h3 { margin: 4px 0 0; font-family: var(--sm-display); font-weight: 800; font-size: 30px; line-height: 1.05; color: #fff; }
.sm-member-role { margin: 0; color: var(--sm-silver); font-weight: 600; font-size: 15px; }
.sm-member-bio { margin: 0; color: var(--sm-mist); font-size: 15px; }

/* Shows */
.sm-shows { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--sm-rule); }
.sm-show {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px;
  padding: 22px 0; border-bottom: 1px solid var(--sm-rule);
}
.sm-show-date {
  flex: 0 0 150px; font-family: var(--sm-display); font-weight: 800;
  font-size: 34px; line-height: 1; color: #fff; white-space: nowrap;
}
.sm-show-info { flex: 1 1 260px; min-width: 0; }
.sm-show-venue { font-size: 18px; font-weight: 600; color: var(--sm-white); }
.sm-show-where { color: var(--sm-mist); font-size: 15px; }
.sm-show .sm-btn { flex: none; min-height: 44px; }
.sm-empty { color: var(--sm-mist); margin: 20px 0 0; }

/* Venues */
.sm-venues { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 32px; }
.sm-venue { padding: 16px 0; border-bottom: 1px solid #2c2d31; }
.sm-venue strong { display: block; color: var(--sm-white); font-weight: 600; }
.sm-venue span { color: #a3a7ae; font-size: 15px; }
.sm-venue--wide { grid-column: 1 / -1; }

/* Booking */
.sm-book { padding: clamp(48px, 6vw, 96px) max(5vw, 16px); background: var(--sm-white); color: #0a0a0b; }
.sm-book .sm-h2 { color: #000; font-weight: 900; }
.sm-book p { color: #3a3b40; max-width: 42ch; margin: 0; }
.sm-book a { color: #000; font-weight: 600; }
.sm-book-intro { display: flex; flex-direction: column; gap: 18px; }
.sm-contact-line { display: flex; flex-direction: column; gap: 4px; }
.sm-contact-line small { color: #55575d; font-size: 14px; }
.sm-contact-line strong { color: #000; }
.sm-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 20px; }
.sm-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: #000; }
.sm-form input, .sm-form textarea {
  font: 16px/1.4 var(--sm-body); min-height: 48px; padding: 10px 14px;
  border: 1px solid #8c9098; background: #fff; color: #000; border-radius: 0; width: 100%;
}
.sm-form textarea { resize: vertical; }
.sm-form .sm-full { grid-column: 1 / -1; }
.sm-form button {
  grid-column: 1 / -1; justify-self: start; min-height: 52px; padding: 0 30px; border: 0;
  background: #000; color: #fff; font: 600 16px var(--sm-body); cursor: pointer;
}
.sm-form button:hover { background: #2a2b2f; }
.sm-hp { position: absolute; left: -9999px; }
.sm-notice { grid-column: 1 / -1; padding: 14px 16px; border: 1px solid #000; background: #fff; color: #000; margin: 0; }
.sm-notice--error { border-color: #a00000; color: #7a0000; }

/* Instagram */
.sm-insta-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.sm-social { display: flex; flex-wrap: wrap; gap: 10px; }
.sm-insta-head p { margin: 6px 0 0; color: #b8bbc1; }
.sm-insta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.sm-insta-grid a { aspect-ratio: 1; display: block; background: linear-gradient(135deg, #2e2f33, #0b0b0c); }
.sm-insta-grid a:nth-child(2n) { background: linear-gradient(200deg, #3a3b40, #0b0b0c); }
.sm-insta-grid a:nth-child(3n) { background: linear-gradient(160deg, #25262a, #050506); }

/* Footer */
.sm-footer { padding: 36px max(5vw, 16px); border-top: 1px solid var(--sm-line); background: #000; }
.sm-footer .sm-wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  color: #a3a7ae; font-size: 14px;
}
.sm-footer-name { font-family: var(--sm-name); font-weight: 500; font-size: 18px; color: #fff; letter-spacing: 0.08em; }
.sm-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.sm-footer nav a { padding: 10px 0; }

/* Other pages and posts */
.sm-page { max-width: 760px; margin: 0 auto; padding: clamp(48px, 6vw, 96px) max(5vw, 16px); }
.sm-page h1 { font-family: var(--sm-display); font-weight: 800; font-size: clamp(36px, 5vw, 52px); line-height: 1.05; margin: 0 0 24px; }
.sm-page .entry-content { color: var(--sm-silver); font-size: 17px; }

@media (max-width: 600px) {
  .sm-show-date { flex-basis: 100%; font-size: 28px; }
  .sm-hero-photo { height: 55%; }
  .sm-hero--photo .sm-hero-photo { height: var(--sm-band-h, 45%); }
}
.sm-hero-title.screen-reader-text { position: absolute; padding: 0; }
