/* Color scheme: black, grey, white */
:root {
  --bg-black: #111;
  --bg-dark: #1c1c1c;
  --bg-overlay: rgba(0, 0, 0, 0.72);
  --text-main: #f5f5f5;
  --text-soft: #d5d5d5;
  --line: #444;
  --nav-height: 76px;
  --section-pad-y: clamp(2.5rem, 5vh, 4.5rem);
  --section-pad-x: clamp(0.9rem, 2.6vw, 2rem);
  --content-gap: clamp(1rem, 1.8vw, 1.6rem);
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg-black);
  color: var(--text-main);
  width: 100%;
  overflow-x: hidden;
}

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

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

/* Keep top nav always visible */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid #2d2d2d;
}

.navbar {
  min-height: var(--nav-height);
  margin: 0;
  padding: 0.75rem 1rem;
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.navbar a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  transition: background-color 180ms ease, color 180ms ease;
}

.navbar a:hover,
.navbar a:focus {
  background: #3a3a3a;
  outline: 2px solid #ffffff;
}

/* Prevent content from hiding behind fixed nav */
body {
  padding-top: var(--nav-height);
}

header,
section {
  scroll-margin-top: calc(var(--nav-height) + 12px);
}

header {
  min-height: calc(100vh - var(--nav-height));
  background: rgba(0, 0, 0, 0.68) url('images/optimized/brad-knight-huWlb1NP67w-unsplash-w800.jpg') center/cover no-repeat;
  background-blend-mode: multiply;
  color: #fff;
  text-align: center;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.hero {
  width: min(92vw, 900px);
  background: var(--bg-overlay);
  border-radius: 14px;
  padding: 2rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin: 0.3rem 0;
  letter-spacing: 1.5px;
}

.subtitle {
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  color: var(--text-soft);
  margin: 0;
}

main {
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

section {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--section-pad-y) var(--section-pad-x);
  background-size: cover;
  background-position: center;
}

#about {
  background-image: url('images/optimized/ozzie-stern-y_bBlfqga78-unsplash-w800.jpg');
  background-blend-mode: luminosity;
}

#career {
  background-image: url('images/optimized/sawyer-bengtson-tnv84LOjes4-unsplash-w800.jpg');
  background-blend-mode: luminosity;
}

#photos {
  background: var(--bg-dark);
  align-items: flex-start;
}

#shows {
  background: var(--bg-black);
}

.section-content {
  width: min(92vw, 980px);
  background: var(--bg-overlay);
  border-radius: 16px;
  padding: clamp(1.3rem, 2.2vw, 2.2rem);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  margin: 0 auto;
  overflow: hidden;
}

.section-content h2 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  margin: 0 0 1rem;
  color: #fff;
  text-shadow: 0 2px 8px #000;
}

.section-content p,
.section-content ul,
.section-content li {
  font-size: clamp(1.05rem, 2.25vw, 1.25rem);
  line-height: 1.65;
}

.photo-gallery {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: var(--content-gap);
  margin-top: 1.3rem;
  width: 100%;
  overflow: hidden;
}

.photo-gallery img {
  flex: 1 1 320px;
  max-width: calc(50% - (var(--content-gap) / 2));
  border-radius: 10px;
  border: 2px solid var(--line);
  background: #000;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.photo-gallery img:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

footer {
  background: #222;
  color: #ccc;
  text-align: center;
  padding: 1rem 0;
  font-size: 1rem;
}

/* Accessibility: visible keyboard focus */
a:focus {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 860px) {
  :root {
    --nav-height: 120px;
  }

  .navbar {
    flex-wrap: wrap;
    gap: 0.5rem;
    align-content: center;
  }

  header {
    min-height: auto;
    padding: 1.5rem 0.8rem;
  }

  section {
    min-height: auto;
    display: block;
    padding: var(--section-pad-y) 0.8rem;
  }

  .section-content {
    width: 100%;
    margin: 0;
  }

  .photo-gallery {
    flex-direction: column;
    align-items: stretch;
  }

  .photo-gallery img {
    max-width: 100%;
    flex: 0 0 auto;
    height: auto;
  }
}

@media (min-width: 861px) {
  header {
    background-image: url('images/optimized/brad-knight-huWlb1NP67w-unsplash-w1200.jpg');
  }

  #about {
    background-image: url('images/optimized/ozzie-stern-y_bBlfqga78-unsplash-w1200.jpg');
  }

  #career {
    background-image: url('images/optimized/sawyer-bengtson-tnv84LOjes4-unsplash-w1200.jpg');
  }
}

@media (min-width: 1280px) {
  header {
    background-image: url('images/optimized/brad-knight-huWlb1NP67w-unsplash-w1600.jpg');
  }

  #about {
    background-image: url('images/optimized/ozzie-stern-y_bBlfqga78-unsplash-w1600.jpg');
  }

  #career {
    background-image: url('images/optimized/sawyer-bengtson-tnv84LOjes4-unsplash-w1600.jpg');
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
