:root {
  color-scheme: dark;
  --background: #10100f;
  --surface: #181817;
  --surface-raised: #20201e;
  --text: #f4f1e9;
  --muted: #a7a49c;
  --border: rgba(244, 241, 233, 0.12);
  --accent: #ee786c;
  --accent-strong: #ff9589;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --radius-large: 28px;
  --radius-medium: 18px;
  --page-width: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 75% -20%, rgba(238, 120, 108, 0.14), transparent 34rem),
    var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body:has(.age-gate:not([hidden])) {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header,
main,
.site-footer {
  width: min(calc(100% - 40px), var(--page-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark,
.empty-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(238, 120, 108, 0.5);
  border-radius: 13px;
  background: rgba(238, 120, 108, 0.09);
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.95rem;
  letter-spacing: 0.14em;
}

.brand small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.63rem;
  letter-spacing: 0.16em;
}

.header-actions,
.age-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.button {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.button-small {
  min-height: 42px;
  padding-inline: 16px;
}

.button-primary {
  background: var(--accent);
  color: #17100f;
}

.button-primary:hover {
  background: var(--accent-strong);
}

.button-secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.button-secondary:hover {
  border-color: rgba(244, 241, 233, 0.26);
  background: rgba(255, 255, 255, 0.065);
}

.icon-button {
  width: 42px;
  height: 42px;
  border-color: var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
}

.icon-button svg,
.toolbar svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  gap: clamp(56px, 9vw, 140px);
  align-items: end;
  min-height: 580px;
  padding-block: 110px 90px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-strong);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero h1,
.catalog h2,
.age-card h1 {
  margin: 0;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero h1 {
  max-width: 880px;
  font-size: clamp(3.4rem, 7vw, 7.4rem);
  font-weight: 700;
}

.hero h1 span {
  display: block;
  color: var(--muted);
  font-weight: 500;
}

.hero-description {
  max-width: 660px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border-top: 1px solid var(--border);
}

.hero-stats div {
  padding: 22px 16px 0 0;
}

.hero-stats dt {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 650;
  letter-spacing: -0.04em;
}

.hero-stats dd {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.catalog {
  padding-block: 76px 110px;
  border-top: 1px solid var(--border);
}

.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.catalog h2 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.results-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.84rem;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 12px;
  margin-top: 40px;
}

.search-field,
.select-field {
  position: relative;
  display: flex;
  align-items: center;
  height: 54px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--muted);
}

.search-field:focus-within,
.select-field:focus-within {
  border-color: rgba(238, 120, 108, 0.58);
}

.search-field svg {
  position: absolute;
  left: 17px;
}

.search-field input,
.select-field select {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.search-field input {
  padding: 0 18px 0 48px;
}

.search-field input::placeholder {
  color: #77756f;
}

.select-field select {
  appearance: none;
  padding: 0 44px 0 17px;
  cursor: pointer;
}

.select-field svg {
  position: absolute;
  right: 16px;
  pointer-events: none;
}

.pack-banner {
  --pack-accent: var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding: 28px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--pack-accent);
  border-radius: var(--radius-medium);
  background: linear-gradient(100deg, color-mix(in srgb, var(--pack-accent) 8%, transparent), transparent 42%), var(--surface);
}

.pack-banner h3 {
  margin: 3px 0;
  font-size: 1.3rem;
}

.pack-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.pack-banner .pack-period {
  color: var(--pack-accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.gallery-card {
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: zoom-in;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.gallery-card:hover {
  z-index: 2;
  transform: translateY(-5px);
  border-color: rgba(244, 241, 233, 0.28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

.gallery-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(238, 120, 108, 0.14), transparent 42%),
    #242421;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 380ms ease;
}

.gallery-card:hover .gallery-image img {
  transform: scale(1.025);
}

.gallery-image::after {
  content: "ICEZ PREVIEW";
  position: absolute;
  right: 10px;
  bottom: 9px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.72);
}

.gallery-info {
  display: grid;
  gap: 3px;
  padding: 14px;
}

.gallery-info strong {
  overflow: hidden;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-info span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-state {
  display: grid;
  justify-items: center;
  padding: 90px 20px;
  text-align: center;
}

.empty-state[hidden] {
  display: none;
}

.empty-state h3 {
  margin: 18px 0 4px;
  font-size: 1.35rem;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 32px 46px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.76rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 10, 9, 0.9);
  backdrop-filter: blur(18px);
}

.age-gate[hidden] {
  display: none;
}

.age-card {
  width: min(100%, 520px);
  padding: clamp(28px, 6vw, 54px);
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.age-card h1 {
  font-size: clamp(2.6rem, 8vw, 4.6rem);
}

.age-card > p:not(.eyebrow) {
  margin: 24px 0 30px;
  color: var(--muted);
}

.lightbox {
  width: min(94vw, 1080px);
  max-height: 92vh;
  padding: 0;
  overflow: visible;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: #0c0c0b;
  color: var(--text);
  box-shadow: var(--shadow);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
}

.lightbox figure {
  display: grid;
  justify-items: center;
  margin: 0;
}

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 74px);
  object-fit: contain;
}

.lightbox figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 16px 20px;
}

.lightbox figcaption span {
  color: var(--muted);
  font-size: 0.82rem;
}

.lightbox-close {
  position: absolute;
  top: -42px;
  right: 0;
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-raised);
  box-shadow: var(--shadow);
  font-size: 0.82rem;
}

.toast[hidden] {
  display: none;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 58px;
    min-height: auto;
  }

  .hero-stats {
    max-width: 680px;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header,
  main,
  .site-footer {
    width: min(calc(100% - 28px), var(--page-width));
  }

  .site-header {
    min-height: 72px;
  }

  .header-actions .button {
    display: none;
  }

  .hero {
    padding-block: 76px 66px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 15vw, 5.8rem);
  }

  .hero-stats dd {
    font-size: 0.68rem;
  }

  .catalog {
    padding-block: 58px 80px;
  }

  .catalog-heading,
  .pack-banner,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbar {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .pack-banner {
    padding: 22px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .gallery-info {
    padding: 11px;
  }

  .age-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .site-footer {
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
