/* global.css — blosum band website */

/* ─── Google Fonts ─────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400;1,600&family=IBM+Plex+Mono:wght@300;400&family=Playfair+Display:ital,wght@1,400;1,500&display=swap');

/* ─── Variables ──────────────────────────────────────────── */
:root {
  --bg:           #0e0d0c;
  --bg-alt:       #171614;
  --bg-card:      #141312;
  --text:         #ddd8cf;
  --text-muted:   #6e6960;
  --accent:       #b87c6e;
  --accent-dim:   #7a4f45;
  --border:       #252320;
  --border-light: #2e2c29;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  --container:    1100px;
  --pad:          clamp(1.25rem, 4vw, 2.5rem);
  --nav-h:        56px;

  --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-mono);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

ul { list-style: none; }

button {
  cursor: pointer;
  font-family: var(--font-mono);
  background: none;
  border: none;
}

/* ─── Film grain overlay ─────────────────────────────────── */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.042;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: screen;
}

/* ─── Container ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ─── Navigation ─────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(14, 13, 12, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  color: var(--text);
  transition: color 0.2s var(--ease);
}
.nav-logo:hover { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--text-muted);
  padding: 0.35rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: all 0.2s var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  border-color: var(--border-light);
}

/* ─── Mobile nav ─────────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text-muted);
  transition: all 0.25s var(--ease);
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.75rem;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-toggle {
    display: flex;
  }
}

/* ─── Page wrapper ───────────────────────────────────────── */
.page-content {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem var(--pad);
  margin-top: 6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-text {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: lowercase;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-link {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: lowercase;
  transition: color 0.2s var(--ease);
}
.footer-link:hover { color: var(--accent); }

/* ─── Section titles ─────────────────────────────────────── */
.section-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2rem;
}

.section-label::before {
  content: '— ';
  color: var(--accent-dim);
}

/* ─── Page hero ──────────────────────────────────────────── */
.page-hero {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3.5rem;
}

.page-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--text);
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--text-muted);
  padding: 0.55rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 2px;
  transition: all 0.2s var(--ease);
}

.btn:hover {
  color: var(--text);
  border-color: var(--accent-dim);
  background: rgba(184, 124, 110, 0.06);
}

.btn-accent {
  color: var(--accent);
  border-color: var(--accent-dim);
}
.btn-accent:hover {
  background: rgba(184, 124, 110, 0.1);
  color: var(--text);
}

/* ─── Utility ────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
