@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700&display=swap');

/* ====================== TOKENS ====================== */
:root {
  --bg: #5d0c1d;
  --text: #ccb38d;
  --muted: #c6a98a;
  --line: rgba(215,191,163,.25);
}

/* ====================== BASE ====================== */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
html { overflow-x: hidden; }          /* stop horizontal scroll on mobile */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Baloo 2', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;                 /* belt + suspenders */
  -webkit-text-size-adjust: 100%;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }  /* avoid default blue links */
a:hover { opacity: .92; }

/* Long words / URLs never force overflow */
.wrap, .tagline, .gallery { word-break: break-word; overflow-wrap: anywhere; }

/* ====================== LAYOUT ====================== */
.wrap {
  width: 100%;
  max-width: 600px;                   /* safe bound */
  padding: 24px 16px 20px;            /* smaller side padding on phones */
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* ====================== LOGO ====================== */
.logo__img {
  width: clamp(160px, 60vw, 280px);   /* scales with viewport, no fixed height */
  height: auto;
  object-fit: contain;
  margin-inline: auto;
}

/* ====================== TAGLINE ====================== */
.tagline {
  text-align: center;
  font-size: clamp(18px, 5.4vw, 22px);
  line-height: 1.35;
  max-width: 40ch;
  font-style: italic;
  font-weight: 300;
}

/* ====================== SOCIAL ICONS ====================== */
.socials {
  display: flex;
  gap: 16px;
  justify-content: center;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(215,191,163,.4);
  color: var(--text);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.icon-btn:hover {
  transform: translateY(-2px);
  background: rgba(215,191,163,.1);
  border-color: var(--text);
}
.icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--text);
  fill: none;
}

/* ====================== DIVIDER ====================== */
.divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(to right, transparent, rgba(215,191,163,.35), transparent);
  margin: 8px 0 0;
}

/* ====================== GALLERY ====================== */
.gallery-wrap { width: 100%; }
.gallery-intro {
  text-align: center;
  color: var(--muted);
  margin: 14px 0 16px;
  font-size: clamp(13px, 3.9vw, 15px);
}
.gallery {
  column-gap: 24px;
}
@media (max-width: 479px){ .gallery { column-count: 1; } }
@media (min-width: 480px){ .gallery { column-count: 2; } }
@media (min-width: 768px){ .gallery { column-count: 3; } }
@media (min-width: 1200px){ .gallery { column-count: 4; } }
@media (max-width: 480px) {
  .logo__img {
    width: 275px;
  }
}

.tile {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #4a141d;
  margin: 0 0 26px;
  break-inside: avoid;
  opacity: 0;
  transform: translateY(15px) scale(.96);
  transition: opacity .6s ease, transform .6s ease;
}
.tile.in {
  opacity: 1;
  transform: none;
}
.tile img {
  width: 100%;
  height: auto;
  display: block;
  filter: blur(6px);
  opacity: .75;
  transition: filter .7s ease, opacity .7s ease, transform .3s ease;
}
.tile img.is-loaded {
  filter: none;
  opacity: 1;
}
.tile:hover img { transform: scale(1.02); }

/* remove ratio enforcement (natural shape) */
.tile.tall img,
.tile.wide img,
.tile.big img {
  aspect-ratio: auto;
  object-fit: initial;
}

/* ====================== FOOTER NOTE ====================== */
.foot {
  text-align: center;
  opacity: .7;
  font-size: 12px;
  margin: 6px 0 0;
}

/* ====================== SAFE VIEWPORT HEIGHT ====================== */
@supports (height: 100svh) {
  body { min-height: 100svh; }
}

/* ====================== REDUCED MOTION ====================== */
@media (prefers-reduced-motion: reduce) {
  .tile,
  .tile img { transition: none; }
}
/* ===== Mobile drastic scale-down ===== */
@media (max-width: 480px) {
  /* Smaller logo */
  .logo__img {
    width: 275px;
  }

  /* Smaller photos and tighter layout */
  .gallery {
    column-count: 1;
    column-gap: 12px;
  }

  .tile {
    margin-bottom: 12px;
    border-radius: 8px;
  }

  .tile img {
    transform: scale(0.75);      /* dramatic reduction */
    opacity: 0.9;                /* slightly softer */
    border-radius: 8px;
  }

  /* Make text match the smaller visual rhythm */
  .tagline {
    font-size: 15px;
  }

  .gallery-intro {
    font-size: 12px;
  }

  .foot {
    font-size: 10px;
  }
}
