/* ============================================
   Gray Hammon Photo — Minimal Portfolio
   ============================================ */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  color: #1a1a1a;
  background: #fafaf8;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 40px;
  z-index: 100;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.02em;
  color: #1a1a1a;
}

/* Hamburger */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 1px;
  background: #1a1a1a;
  transition: transform 0.3s, opacity 0.3s;
}

/* ---- Navigation Overlay ---- */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fafaf8;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.nav-close {
  position: absolute;
  top: 24px;
  right: 40px;
  background: none;
  border: none;
  font-size: 36px;
  cursor: pointer;
  color: #1a1a1a;
  font-weight: 300;
  line-height: 1;
  font-family: inherit;
}

.nav-links {
  list-style: none;
  text-align: center;
}

.nav-links li {
  margin: 20px 0;
}

.nav-links a {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 38px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.01em;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 0.45;
}

/* ---- Gallery (Home) — single column ---- */
.gallery {
  padding: 130px 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-item {
  margin-bottom: 80px;
  display: block;
  overflow: hidden;
}

.gallery-item:last-child {
  margin-bottom: 0;
}

.gallery-item img {
  width: 100%;
  height: auto;
}

/* ---- Gallery Tabs (People / Places / Things) ----
   Hidden by default so that with JavaScript disabled every photo shows
   as one continuous gallery. The inline script in <head> adds `js` to
   <html>, which reveals the tab bar and enables filtering below. */
.gallery-tabs {
  display: none;
  justify-content: center;
  gap: 36px;
  margin-bottom: 64px;
}

html.js .gallery-tabs {
  display: flex;
}

.gallery-tab {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 0 6px;
  font-family: -apple-system, sans-serif;
  font-size: 13px;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #999;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.gallery-tab:hover {
  color: #1a1a1a;
}

.gallery-tab.is-active {
  color: #1a1a1a;
  border-bottom-color: #1a1a1a;
}

.gallery-tab:focus-visible {
  outline: 1px solid #1a1a1a;
  outline-offset: 4px;
}

/* Filtering: once JS is active, show only items in the chosen category. */
html.js .gallery-item {
  display: none;
}

html.js .gallery-item.is-visible {
  display: block;
}

/* Shown by JS only when the active tab has no photos. */
.gallery-empty {
  display: none;
  text-align: center;
  font-family: -apple-system, sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999;
  padding: 40px 0;
}

.gallery-empty.is-shown {
  display: block;
}

/* ---- About Page ---- */
.about {
  padding: 160px 32px 80px;
  max-width: 720px;
  margin: 0 auto;
}

.about-content {
  text-align: left;
}

.about-text h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 42px;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 32px;
  letter-spacing: 0.01em;
}

.about-text p {
  font-size: 19px;
  color: #2a2a2a;
  margin-bottom: 22px;
  line-height: 1.7;
}

.about-contact {
  margin-top: 36px;
  font-size: 17px;
}

.about-contact a {
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 1px;
  transition: opacity 0.2s;
}

.about-contact a:hover {
  opacity: 0.5;
}

/* ---- Contact Page ---- */
.contact {
  padding: 160px 32px 80px;
  max-width: 600px;
  margin: 0 auto;
  min-height: 60vh;
}

.contact-content h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 42px;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 32px;
  letter-spacing: 0.01em;
}

.contact-content p {
  font-size: 19px;
  color: #2a2a2a;
  margin-bottom: 16px;
  line-height: 1.7;
}

.contact-content a {
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 1px;
  transition: opacity 0.2s;
}

.contact-content a:hover {
  opacity: 0.5;
}

.contact-social {
  margin-top: 40px;
}

.contact-social a {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: none;
  font-style: normal;
  font-family: -apple-system, sans-serif;
  transition: opacity 0.2s;
}

.contact-social a:hover {
  opacity: 0.5;
}

/* ---- Footer ---- */
.footer {
  padding: 48px 24px;
  text-align: center;
  font-size: 11px;
  color: #888;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: -apple-system, sans-serif;
  font-style: normal;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .header {
    padding: 20px 20px;
  }

  .logo {
    font-size: 18px;
  }

  .gallery {
    padding: 90px 16px 50px;
  }

  .gallery-tabs {
    gap: 24px;
    margin-bottom: 44px;
  }

  .gallery-tab {
    font-size: 12px;
    letter-spacing: 0.12em;
  }

  .gallery-item {
    margin-bottom: 40px;
  }

  .about {
    padding: 110px 20px 50px;
  }

  .about-text h1 {
    font-size: 32px;
  }

  .about-text p {
    font-size: 17px;
  }

  .contact {
    padding: 110px 20px 50px;
  }

  .contact-content h1 {
    font-size: 32px;
  }

  .contact-content p {
    font-size: 17px;
  }

  .nav-links a {
    font-size: 28px;
  }

  .nav-close {
    right: 20px;
  }
}
