/* Patrick J Soule Music — Phase 1 B&W shell */
:root {
  --bg: #000000;
  --fg: #ffffff;
  --muted: #b3b3b3;
  --border: #333333;
  --border-strong: #666666;
  --focus: #ffffff;
  --surface: #0a0a0a;
  --surface-2: #141414;
  --max: 920px;
  --header-h: 68px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --transition: 0.15s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--fg); text-decoration: underline; text-underline-offset: 0.15em; transition: opacity var(--transition); }
a:hover { opacity: 0.75; }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
ul { list-style: none; }
p + p { margin-top: 1rem; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header / nav */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
  padding: 0.5rem 0;
}

.logo-link {
  color: var(--fg);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.logo-link:hover { opacity: 1; text-decoration: none; }
.logo-link span {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--fg);
  padding: 0.4rem 0.65rem;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}
.nav-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.1rem;
  align-items: center;
}
.nav-list a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.nav-list a:hover,
.nav-list a.active {
  color: var(--fg);
  text-decoration: underline;
}

main { flex: 1; }

/* Hero / sections */
.hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}
.hero-kicker {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  padding: 0.25rem 0.6rem;
}
.hero h1 {
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero-lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 36em;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.section {
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--border);
}
.section:last-of-type { border-bottom: none; }
.section-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.section h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 0.9em; }

/* Cards / lists */
.card-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
.card-grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card-grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.25rem;
}
.card p { color: var(--muted); font-size: 0.95rem; }
.card a { color: var(--fg); }

.bio-copy {
  max-width: 44rem;
}
.bio-copy h2 + p { margin-top: 0; }
.rule {
  width: 100%;
  border-top: 1px solid var(--border);
}
.stack { display: flex; flex-direction: column; gap: 1rem; }
.stack-tight { display: flex; flex-direction: column; gap: 0.5rem; }

.meta-list li {
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: space-between;
}
.meta-list li:last-child { border-bottom: none; }
.meta-list .when { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.65rem 1.15rem;
  border: 1px solid var(--fg);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  cursor: pointer;
  background: transparent;
  color: var(--fg);
  transition: background var(--transition), color var(--transition), opacity var(--transition);
}
.btn:hover { opacity: 1; background: var(--fg); color: var(--bg); }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.btn-solid { background: var(--fg); color: var(--bg); }
.btn-solid:hover { background: transparent; color: var(--fg); }
.btn-ghost { border-color: var(--border-strong); color: var(--muted); }
.btn-ghost:hover { color: var(--fg); border-color: var(--fg); background: transparent; }

/* Forms */
.form-group { margin-bottom: 1.15rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--fg);
  padding: 0.7rem 0.85rem;
  font: inherit;
  border-radius: 0;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--fg);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.9rem; color: var(--muted); margin-top: 0.75rem; }
.form-success {
  border: 1px solid var(--fg);
  padding: 1.25rem;
  display: none;
}
.form-success.visible { display: block; }
.form-card.sent #contact-form { display: none; }
.form-card.sent .form-success { display: block; }

.placeholder-box {
  border: 1px dashed var(--border-strong);
  padding: 1.25rem;
  color: var(--muted);
  background: var(--surface-2);
  font-size: 0.95rem;
}
.placeholder-box strong { color: var(--fg); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: auto;
  color: var(--muted);
  font-size: 0.85rem;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--fg); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-mark { color: var(--fg); font-weight: 600; margin-bottom: 0.25rem; }

/* Page title block (inner pages) */
.page-head {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
}
.page-head h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

/* Mobile nav */
@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.25rem 1.25rem;
  }
  .nav.open { display: block; }
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .header-inner { position: relative; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* Header wordmark image: left-biased; image IS the brand */
.logo-link.logo-wordmark {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  padding: 0.2rem 0;
  margin-right: 0.5rem;
  flex-shrink: 0;
}
.logo-link.logo-wordmark:hover { opacity: 0.9; }
.logo-wordmark-img {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(280px, 55vw);
  object-fit: contain;
  object-position: left center;
  border: 0;
}
.header-inner {
  justify-content: flex-start;
  gap: 1.25rem;
}
.header-inner .nav {
  margin-left: auto;
}

/* About headshot */
.about-layout {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}
@media (min-width: 720px) {
  .about-layout {
    grid-template-columns: 220px 1fr;
  }
}
.about-photo {
  width: 100%;
  max-width: 280px;
  border: 1px solid var(--border-strong);
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
}

/* Cover art grid */
.cover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.cover-card {
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}
.cover-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.cover-card figcaption {
  padding: 0.65rem 0.75rem 0.85rem;
  font-size: 0.85rem;
  line-height: 1.35;
}
.cover-card figcaption strong {
  display: block;
  font-weight: 600;
}
.cover-card figcaption span {
  color: var(--muted);
  font-size: 0.75rem;
}
