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

:root {
  --sunset-orange: #ff5f2e;
  --sunset-pink: #ff9776;
  --sunset-yellow: #ffd56b;
  --ocean-blue: #2a6f97;
  --deal-red: #d7263d;
  --ink: #1a1a1a;
  --paper: #fff8ec;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__brand {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  color: var(--sunset-yellow);
  text-decoration: none;
}

.site-header__nav {
  display: flex;
  gap: 1rem;
}

.site-header__nav a {
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: border-color 0.15s ease;
}

.site-header__nav a:hover,
.site-header__nav a.is-active {
  border-color: var(--sunset-yellow);
}

/* ---------- Landing page ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: var(--ink);
  padding: 2rem 1.25rem;
  text-align: center;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 40%, rgba(0, 0, 0, 0.8));
}

.hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: var(--paper);
}

/* On wider screens (or short/landscape viewports, where a full-bleed cover
   crop would only show the top of his head) there's room to show him in
   full alongside the copy instead. */
@media (min-width: 900px), (max-height: 500px) {
  .hero {
    height: 100svh;
    min-height: 0;
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-start;
    text-align: left;
    padding: 0;
    background: linear-gradient(135deg, var(--ocean-blue), var(--ink));
  }

  .hero__media {
    position: relative;
    inset: auto;
    flex: 0 0 44%;
    background: var(--ink);
  }

  .hero__media::after {
    display: none;
  }

  .hero__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  .hero__content {
    flex: 1 1 56%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    max-width: 640px;
    max-height: 100%;
    overflow-y: auto;
    padding: 3rem 4rem;
  }

  .hero__title,
  .hero__text {
    text-shadow: none;
  }

  .cta-button {
    align-self: center;
  }
}

.hero__badge {
  display: inline-block;
  background: var(--deal-red);
  color: #fff;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  transform: rotate(-3deg);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}

.hero__title {
  font-family: 'Luckiest Guy', cursive;
  font-weight: 400;
  font-size: clamp(2.2rem, 8vw, 4.2rem);
  line-height: 1.05;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45);
  margin: 0 0 1.25rem;
  color: var(--sunset-yellow);
}

.hero__text {
  font-size: clamp(1rem, 2.6vw, 1.25rem);
  line-height: 1.5;
  margin: 0 0 1rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.hero__text strong {
  color: var(--sunset-yellow);
}

.cta-button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 1rem 2rem;
  background: var(--deal-red);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: 999px;
  border: 3px solid #fff;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3);
  transition: transform 0.12s ease;
}

.cta-button:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

/* ---------- Gallery page ---------- */

.gallery-intro {
  text-align: center;
  padding: 2rem 1.25rem 1rem;
  background: linear-gradient(135deg, var(--sunset-orange), var(--sunset-pink));
  color: #fff;
}

.gallery-intro h1 {
  font-family: 'Luckiest Guy', cursive;
  font-weight: 400;
  font-size: clamp(1.8rem, 6vw, 3rem);
  margin: 0 0 0.5rem;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25);
}

.gallery-intro p {
  margin: 0;
  font-weight: 600;
}

.gallery-grid {
  column-count: 2;
  column-gap: 0.6rem;
  padding: 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .gallery-grid {
    column-count: 3;
  }
}

@media (min-width: 960px) {
  .gallery-grid {
    column-count: 4;
  }
}

@media (min-width: 1300px) {
  .gallery-grid {
    column-count: 5;
  }
}

.gallery-item {
  display: block;
  break-inside: avoid;
  margin-bottom: 0.6rem;
  border-radius: 10px;
  overflow: hidden;
  background: #e5e5e5;
  border: 3px solid #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  cursor: zoom-in;
}

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

.gallery-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  font-weight: 600;
  color: #555;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
  touch-action: pan-y;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__close {
  top: 1rem;
  right: 1rem;
}

.lightbox__nav--prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__nav--next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.site-footer {
  text-align: center;
  padding: 1.5rem;
  color: #777;
  font-size: 0.85rem;
}
