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

:root {
  --bg: #f2f1ed; /* dirty pearl */
  --fg: #111111;
  --muted: #555555;
  --rule: rgba(0,0,0,0.08);
  --container: 1240px;
  --transition: 0.2s ease;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.015em;
  -webkit-font-smoothing: antialiased;
}

.container { width: 96%; max-width: var(--container); margin: 0 auto; }

/* HEADER */
.site-header {
  position: sticky; top: 0;
  background: rgba(242,241,237,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  z-index: 100;
}
.header-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.3rem 0;
}
.brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
}
.nav { display: flex; gap: 2rem; }
.nav a {
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
  opacity: 0.7;
}
.nav a:hover { opacity: 1; }

/* HERO */
.hero { padding: 3.2rem 0 2.2rem; text-align: center; }
.hero h1 { font-size: 3rem; font-weight: 400; line-height: 1.05; margin-bottom: 1.1rem; }
.subtitle {
  font-size: 1.35rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 auto;
  font-weight: 300;
}

/* TABS */
.tabs {
  display: flex;
  justify-content: center;
  gap: 2.2rem;
  border-bottom: 1px solid var(--rule);
  margin: 2.6rem auto 2rem;
  flex-wrap: wrap;
}
.tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 1.2rem 0.2rem;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}
.tab.active { color: var(--fg); border-bottom-color: var(--fg); font-weight: 600; }

/* INFO */
.category-info { margin: 2.2rem auto 2.2rem; max-width: 65ch; text-align: center; }
.category-info h2 { font-size: 1.9rem; margin-bottom: 0.8rem; }
.category-info p { font-size: 1.25rem; color: var(--muted); }

/* CONTENT AREA */
#contentArea { margin-top: 1.2rem; }

/* GALLERY */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2rem;
  margin-top: 1.8rem;
}
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
@media (min-width: 1200px) { .gallery { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); } }

/* PHOTO CARD */
.card {
  background: var(--bg);
  border: 1px solid var(--rule);
  overflow: hidden;
  animation: fadeIn 0.35s ease-out;
}
.card img { width: 100%; display: block; aspect-ratio: 3/4; object-fit: cover; }
.card figcaption { padding: 1.4rem 1.4rem; font-size: 1.05rem; color: var(--muted); border-top: 1px solid var(--rule); }

/* FOLDER GRID (NO THUMBNAILS) */
.folder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-top: 1.8rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.folder-card {
  border: 1px solid var(--rule);
  background: transparent;
  padding: 1.35rem 1.4rem;
  cursor: pointer;
  text-align: left;
  animation: fadeIn 0.25s ease-out;
}
.folder-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
}
.folder-meta {
  font-size: 1.05rem;
  color: var(--muted);
}
.folder-card:hover { border-color: rgba(0,0,0,0.18); }

/* BACK BUTTON */
.back-row { display: flex; justify-content: center; margin: 1.6rem 0 0; }
.back-btn {
  background: transparent;
  border: 1px solid var(--fg);
  color: var(--fg);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.9rem 1.4rem;
  cursor: pointer;
}
.back-btn:hover { background: var(--fg); color: var(--bg); }

/* LOAD MORE */
.load-more-wrap { display: flex; justify-content: center; margin: 3.8rem 0; }
.load-more {
  background: transparent;
  border: 1px solid var(--fg);
  color: var(--fg);
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1.2rem 2.8rem;
  cursor: pointer;
}
.load-more:hover { background: var(--fg); color: var(--bg); }

/* TEXT */
.text-section { margin-top: 4rem; border-top: 1px solid var(--rule); padding-top: 2.4rem; }
.text-section h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.text-section p { font-size: 1.25rem; max-width: 65ch; color: var(--muted); }
.inline-link { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--fg); }

/* FOOTER */
.site-footer {
  margin-top: 4.5rem;
  padding: 2.4rem 0;
  font-size: 1.1rem;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--rule);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
