:root {
  --bg: #8B7D6B; /* sand grey C2B280*/
  --text: #2D2926;
}

body {
  margin: 0;
  font-family: sans-serif;
  background: var(--bg);
  color: var(--text);
  letter-spacing: 1px;
}

h1,
h2 {
  color: #2D2926;
}

p,
button,
a {
  color: #121212;
  line-height: 1.6;
  text-decoration: none;
}

/* Layout */
.page {
  text-align: center;
  margin-bottom: 40px;
}

/* Site header (persistent nav) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bg);
  padding: 24px 40px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.brand-name {
  font-size: 24px;
  font-weight: 600;
}

.brand-tagline {
  font-size: 12px;
  opacity: 0.75;
}

.site-nav {
  display: flex;
  gap: 24px;
}

@media (max-width: 600px) {
  .site-header {
    padding: 16px 20px;
  }

  .site-nav {
    gap: 16px;
  }
}

/* Contextual sub-header (back button + section title) */
.header {
  position: sticky;
  top: 0;
  background: var(--bg);
  padding: 20px;
  z-index: 10;
}

.sub-header {
  border-top: 1px solid rgba(45, 41, 38, 0.15);
}

/* Stub pages (blog / zines / about) */
.stub-page {
  padding: 120px 20px;
  opacity: 0.7;
}

/* Close button */
.close-btn {
  position: absolute;
  left: 20px;
  top: 20px;
  border: none;
  background: none;
  font-size: 40px;
  cursor: pointer;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  padding: 40px;
}

/* Gallery landing tiles (photos / painting / sketches / drawings) */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
}

.tile {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
}

.tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  transition: box-shadow 0.2s;
}

.tile:hover img {
  box-shadow: 0px 0px 9px rgba(45, 41, 38, 0.72);
}

.tile-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  letter-spacing: 3px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

@media (max-width: 600px) {
  .tile-grid {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .tile-label {
    font-size: 22px;
  }
}

.card {
  text-decoration: none;
  color: inherit;
}

.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.card img:hover {
  box-shadow: 0px 0px 9px rgba(45, 41, 38, 0.72);
}

/* Footer */
.footer {
  padding: 20px;
}

/* Masonry */
.masonry {
  column-count: 2;
  column-gap: 40px;
  width: 66%;
  margin: auto;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 40px;
}

.masonry img {
  width: 100%;
  cursor: pointer;
  border-radius: 4px;
}

.masonry img:hover {
  box-shadow: 0px 0px 5px rgba(45, 41, 38, 0.72);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(207, 204, 198, 0.90);

  /* background: linear-gradient( /* cinematic
    to bottom,
    rgba(207, 204, 198, 0.90),
    rgba(20,18,16,0.45)
  ); */

  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;

  backdrop-filter: blur(8px) saturate(110%);
  -webkit-backdrop-filter: blur(8px) saturate(110%);
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  /* Using an RGBA version of your Espresso #2D2926 */
  box-shadow: 0px 0px 18px rgba(45, 41, 38, 0.72);
  border-radius: 8px; /* A tiny radius softens the digital 'sharpness' of the edges */
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  background: none;
  color: black;
  border: none;
  cursor: pointer;
}

/* About */
.about,
.about p {
  text-transform: none;
  margin: 20px;
  /* padding: 20px; */
  /* display: flex; */
  /* justify-content: center;
  align-items: center;
  height: 100vh; */
}

/* Responsive */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .masonry {
    column-count: 1;
    width: 90%;
  }
}

/* Optional: placeholder space to avoid layout shift */
.masonry-item div {
  min-height: 150px;
}

/* Blog */
.blog-list {
  display: flex;
  flex-direction: column;
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: left;
}

.blog-list-item {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(45, 41, 38, 0.15);
}

.blog-list-title {
  font-size: 18px;
}

.blog-list-date {
  opacity: 0.6;
  white-space: nowrap;
}

.blog-post-body {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px 20px 60px;
  text-align: left;
}

.blog-post-date {
  opacity: 0.6;
  margin-bottom: 20px;
}

.blog-post-body img {
  max-width: 100%;
  display: block;
  border-radius: 4px;
  margin: 20px 0;
}

/* Zines */
.zine-intro {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 20px 0;
  text-align: left;
}

.zine-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 20px;
}

.zine-card {
  text-align: left;
}

.zine-card img {
  width: 100%;
  display: block;
}

.zine-card-body {
  padding: 16px 0;
}

.zine-card-title {
  margin: 0 0 4px;
}

.zine-card-subtitle {
  opacity: 0.75;
  margin: 0 0 8px;
}

.zine-card-specs {
  opacity: 0.6;
  font-size: 14px;
  margin: 0 0 12px;
}

.zine-card-description {
  margin: 0 0 16px;
}

.zine-buy-btn {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid var(--text);
  cursor: pointer;
}