/* --- CONFIGURATION --- */
:root {
  /* Brand Palette */
  --walnut: #3E2723;
  --cream:  #F5F5DC;
  --sage:   #586C45;
  --sawdust: #C19A6B;
  --text-dark: #2c1e1a;
  
  /* Spacing & Layout */
  --container-width: 1100px;
  --gutter: 2rem;
}

/* --- GLOBAL RESET --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--cream);
  color: var(--text-dark);
  font-family: 'Lato', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 4px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3 {
  font-family: 'Alfa Slab One', serif;
  color: var(--walnut);
  letter-spacing: 1px;
  text-transform: uppercase;
}

p {
  margin-bottom: 1rem;
}

/* --- LAYOUT COMPONENTS --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Navbar / Header */
.site-header {
  background-color: var(--walnut);
  padding: 1.5rem 0;
  border-bottom: 5px solid var(--sage);
  margin-bottom: 3rem;
}

.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  color: var(--cream);
  font-size: 1.5rem;
}

.nav-links a {
  color: var(--cream);
  font-weight: 700;
  margin-left: 2rem;
  font-size: 1.1rem;
}

.nav-links a:hover {
  color: var(--sawdust);
  text-decoration: underline;
}

/* --- GALLERY GRID SYSTEM --- */
.gallery-grid {
  display: grid;
  /* Auto-fit creates columns based on screen width */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

/* Image Cards */
.gallery-item {
  background: white;
  border: 2px solid var(--walnut);
  padding: 1rem;
  box-shadow: 8px 8px 0px var(--sage); /* The "Analog" Shadow */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 12px 12px 0px var(--walnut);
}

.gallery-item h3 {
  font-size: 1.2rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.gallery-item p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0;
}

/* --- UTILITIES --- */
.btn {
  display: inline-block;
  background-color: var(--walnut);
  color: var(--cream);
  padding: 0.8rem 1.5rem;
  font-weight: 700;
  border-radius: 4px;
}

.btn:hover {
  background-color: var(--sage);
}

.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }

/* Mobile Tweaks */
@media (max-width: 768px) {
  .nav-flex {
    flex-direction: column;
    gap: 1rem;
  }
  .nav-links a {
    margin: 0 1rem;
  }
}