:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  background: #ede4dd;
}

body {
  margin: 0;
  min-width: 320px;
  background: #ede4dd;
}

body[data-page='home'] {
  background:
    linear-gradient(180deg, rgba(237, 228, 221, 0.82) 0%, rgba(237, 228, 221, 0.88) 24%, rgba(237, 228, 221, 0.92) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    url('./src/bg/MonetBG.jpg') center top / 180% auto;
}

.desktop-warning {
  position: sticky;
  top: 0;
  z-index: 30;
  display: none;
  margin: 0 auto;
  width: min(100%, 40rem);
  padding: 0.9rem 1rem 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(24, 22, 31, 0.62);
}

.hero-top {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(20, 17, 22, 0.24) 0%, rgba(20, 17, 22, 0.62) 100%),
    linear-gradient(90deg, rgba(20, 17, 22, 0.52) 0%, rgba(20, 17, 22, 0.16) 58%, rgba(20, 17, 22, 0.12) 100%),
    url('https://images.unsplash.com/photo-1577083165633-14ebcdb0f658?auto=format&fit=crop&w=1200&q=80') center 42% / cover;
}

.hero-top__inner {
  position: relative;
  z-index: 1;
}

.hero-top__spacer {
  height: 6.5rem;
}

.reveal-strip {
  position: relative;
  margin-top: 0;
}

.reveal-strip__inner {
  position: relative;
  overflow: hidden;
  padding-top: 0;
}

.reveal-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0;
}

.reveal-door {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(39, 23, 13, 0.34), rgba(23, 12, 7, 0.48)),
    linear-gradient(90deg, rgba(80, 50, 30, 0.92), rgba(131, 89, 56, 0.94), rgba(70, 42, 23, 0.92)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 3px, transparent 3px 36px),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.1) 0 2px, transparent 2px 28px);
  transform: translate3d(0, 0, 0);
  transition: transform 120ms linear;
  will-change: transform;
}

.reveal-door__label {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.26);
  padding: 0.45rem 0.85rem;
  font-size: 0.58rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.red-tape {
  position: relative;
  transform: rotate(-2.5deg);
}

.red-tape::before,
.red-tape::after {
  content: '';
  position: absolute;
  top: 50%;
  height: 0.85rem;
  width: 0.85rem;
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-50%) rotate(45deg);
}

.red-tape::before {
  left: -0.45rem;
}

.red-tape::after {
  right: -0.45rem;
}

.photo-placeholder {
  border: 1px solid rgba(20, 17, 22, 0.08);
  background:
    linear-gradient(180deg, rgba(20, 17, 22, 0.1), rgba(20, 17, 22, 0.25)),
    linear-gradient(135deg, #9a9a9a, #444);
  box-shadow: 0 12px 25px rgba(20, 17, 22, 0.1);
}

.hero-gallery__image {
  width: 100%;
  object-fit: cover;
  display: block;
}

.animated-kicker {
  display: inline-flex;
  position: relative;
  overflow: hidden;
}

.animated-kicker::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(159, 57, 47, 0.18), transparent);
  transform: translateX(-120%);
  animation: sweep 4.2s ease-in-out infinite;
}

.piece-card {
  padding: 0.15rem 0;
}

.piece-title {
  margin: 0 0 0.75rem;
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 500;
}

.piece-media {
  width: 100%;
  border-radius: 1.15rem;
  height: auto;
  display: block;
}

.piece-card-portrait .piece-media {
  width: 52%;
}

.piece-card-offset .piece-media {
  margin-left: auto;
}

.carousel-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 420ms ease;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 72%;
  opacity: 0.4;
  transform: scale(0.9);
  transition: transform 300ms ease, opacity 300ms ease;
}

.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.carousel-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1.15rem;
}

.carousel-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 9999px;
  background: rgba(20, 17, 22, 0.08);
  color: rgba(20, 17, 22, 0.7);
  font-size: 1rem;
  cursor: pointer;
}

.carousel-control:focus-visible {
  outline: 2px solid rgba(159, 57, 47, 0.6);
  outline-offset: 2px;
}

.archive-row {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 0.8rem 0 1rem;
  border-bottom: 1px solid rgba(20, 17, 22, 0.08);
}

.archive-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 9999px;
  background: rgba(159, 57, 47, 0.1);
  color: #9f392f;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.archive-title {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 500;
}

.archive-copy {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(20, 17, 22, 0.68);
}

.archive-row-portrait {
  grid-template-columns: 2.5rem minmax(0, 14rem);
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 0.8rem;
}

.more-item {
  display: grid;
  gap: 0.55rem;
}

.more-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1rem;
}

.more-meta {
  display: grid;
  gap: 0.2rem;
}

.more-title {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.1;
}

.more-copy {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.45;
  color: rgba(20, 17, 22, 0.64);
}

.floating-plus {
  position: relative;
  text-decoration: none;
}

.floating-plus:focus-visible {
  transform: scale(1.05);
}

.cta-wrap {
  display: grid;
  justify-items: center;
  gap: 0;
}

@keyframes sweep {
  0% {
    transform: translateX(-120%);
  }

  45%,
  100% {
    transform: translateX(120%);
  }
}

@media (min-width: 768px) {
  .desktop-warning {
    display: block;
  }
}
