:root {
  --bg: #fffaf4;
  --paper: #fff;
  --text: #1f1a17;
  --muted: #685f59;
  --accent: #c1544b;
  --accent-soft: #f7d6ce;
  --line: #eadfd6;
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, #ffece6 0%, transparent 35%),
    radial-gradient(circle at 80% 20%, #f8efe5 0%, transparent 30%),
    var(--bg);
  line-height: 1.6;
}

.bg-collage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-collage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 170, 150, 0.2), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(255, 205, 170, 0.18), transparent 45%),
    linear-gradient(180deg, rgba(255, 250, 244, 0.48), rgba(255, 250, 244, 0.68));
}

.bg-photo {
  position: absolute;
  width: clamp(180px, 20vw, 360px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
  opacity: 0.44;
  filter: saturate(1.32) contrast(1.08) blur(0.35px);
  transform-origin: center;
}

.p1 { top: -4%; left: -2%; transform: rotate(-12deg); filter: hue-rotate(-8deg) saturate(1.25); }
.p2 { top: 4%; left: 22%; transform: rotate(9deg); filter: hue-rotate(18deg) saturate(1.22); }
.p3 { top: -2%; right: 20%; transform: rotate(-7deg); filter: hue-rotate(34deg) saturate(1.2); }
.p4 { top: 8%; right: -4%; transform: rotate(14deg); filter: hue-rotate(46deg) saturate(1.15); }
.p5 { top: 36%; left: 6%; transform: rotate(11deg); filter: hue-rotate(-22deg) saturate(1.3); }
.p6 { top: 40%; left: 36%; transform: rotate(-9deg); filter: hue-rotate(62deg) saturate(1.18); }
.p7 { top: 42%; right: 22%; transform: rotate(13deg); filter: hue-rotate(-36deg) saturate(1.28); }
.p8 { top: 36%; right: -6%; transform: rotate(-10deg); filter: hue-rotate(82deg) saturate(1.14); }
.p9 { bottom: -5%; left: 20%; transform: rotate(-8deg); filter: hue-rotate(24deg) saturate(1.2); }
.p10 { bottom: -6%; right: 14%; transform: rotate(10deg); filter: hue-rotate(-52deg) saturate(1.3); }

header,
main,
footer {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 0;
  padding: 0.55rem clamp(1rem, 4vw, 3rem) 0.35rem;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.lang-switch {
  display: flex;
  gap: 0.4rem;
}

.lang-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  font-weight: 700;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.hero-content {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(0.9rem, 1.6vw, 1.3rem);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(2px);
  animation: rise 0.7s ease-out;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  line-height: 1.15;
}

h1 {
  font-size: clamp(1.6rem, 3.8vw, 3rem);
  margin: 0.1rem 0 0.55rem;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-top: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.mini-note {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.mini-note a {
  color: var(--accent);
}

.btn {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
}

.btn.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.section {
  width: min(1240px, calc(100% - 1.5rem));
  margin: 0.65rem auto 2rem;
  padding: clamp(1.2rem, 2.8vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.gallery-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.gallery-grid figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.4rem;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  cursor: pointer;
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

input[type="text"] {
  display: block;
  width: min(100%, 540px);
  margin: 0.4rem 0 0.8rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #dbcfc6;
  border-radius: 10px;
  background: #fff;
}

textarea {
  display: block;
  width: min(100%, 680px);
  min-height: 180px;
  resize: vertical;
  margin: 0.4rem 0 0.8rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #dbcfc6;
  border-radius: 10px;
  background: #fff;
  font-family: "Manrope", sans-serif;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.instagram p {
  max-width: 70ch;
}

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

.card {
  margin-top: 0.8rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(125deg, var(--accent-soft), #fff7f4);
  border-radius: 14px;
  border: 1px solid #efd1c7;
}

.claim-form {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: #fffaf7;
  border: 1px solid #efddd4;
}

.claim-form label {
  display: block;
  font-weight: 700;
  margin-top: 0.4rem;
}

.footer {
  padding: 1.4rem;
  text-align: center;
  color: var(--muted);
}

.story-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(28, 22, 18, 0.66);
}

.story-modal.open {
  display: flex;
}

.story-modal-content {
  position: relative;
  width: min(780px, 96vw);
  max-height: 92vh;
  overflow: auto;
  background: #fffaf7;
  border: 1px solid #e7d3c9;
  border-radius: 16px;
  padding: 1rem;
}

.story-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid #d8bdb1;
  border-radius: 999px;
  background: #fff;
  color: #5a4f49;
  font-weight: 700;
  cursor: pointer;
}

#story-image {
  width: 100%;
  max-height: 56vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

#story-title {
  margin: 0.9rem 0 0.35rem;
}

#story-text {
  margin: 0;
  color: #4f4540;
}

@keyframes rise {
  from {
    transform: translateY(14px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 820px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nft-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 560px) {
  .bg-photo {
    width: clamp(140px, 34vw, 220px);
    opacity: 0.22;
  }

  .p2,
  .p4,
  .p6,
  .p8,
  .p10 {
    display: none;
  }

  .nav {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.7rem;
  }

  .brand {
    font-size: 1.6rem;
  }

  .nav-links {
    gap: 0.6rem;
    font-size: 0.92rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
