@font-face {
  font-family: 'Pasta And Wine';
  src: url('../fonts/PastaAndWineBig.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Pasta And Wine Little';
  src: url('../fonts/PastaAndWineLittle.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Postcards From Napoli';
  src: url('../fonts/PostcardsFromNapoli-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #F6C1C7;
  --color-text: #D83E2C;
  --color-accent: #a98467;
  --color-frame: #90A66C;
  --font-heading: 'Pasta And Wine', Georgia, 'Times New Roman', serif;
  --font-script: 'Pasta And Wine Little', Georgia, cursive;
  --font-body: 'Postcards From Napoli', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  font-size: 62.5%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: normal;
  color: var(--color-text);
  margin: 0;
}

/* Language switcher */
.lang-switcher {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  gap: 0.4rem;
  z-index: 2;
}

.lang-option {
  background: none;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  border-radius: 4px;
  margin: auto;
  cursor: pointer;
  width: 4rem;
  font-size: 2rem;
  letter-spacing: 0.2rem;
  font-family: var(--font-script);
  transition: background-color 0.2s ease;
}

.lang-option:hover {
  animation: langWiggle 0.6s ease-in-out infinite;
}

@keyframes langWiggle {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  25% { transform: translateY(-3px) rotate(-8deg) scale(1.1); }
  50% { transform: translateY(-1px) rotate(0deg) scale(1.08); }
  75% { transform: translateY(-3px) rotate(8deg) scale(1.1); }
}

.lang-option.active {
  background: var(--color-text);
  border-color: var(--color-text);
  color: white;
}


.lang-option.active:hover {
  animation: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-main {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  width: 100%;
}

.hero-composition {
  display: flex;
  flex-direction: column;
  position: relative;
  align-items: center;
}

.hero-names-block {
  display: inline-flex;
  flex-direction: column;
  transform: rotate(-20deg);
}

.hero-name-line {
  position: relative;
  font-family: var(--font-heading);
  font-size: 12rem;
  line-height: 1;
  white-space: nowrap;
}

.hero-name-line-2 { margin-left: 2.5rem; }

.hero-name-line .script {
  font-family: var(--font-script);
  margin-right: 0.2em;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 8rem;
  line-height: 1;
  margin: 0;
  transform: rotate(-20deg) translateX(24rem);
}

.hero-glass {
  position: absolute;
  width: 12rem;
  height: auto;
  transition: transform 0.35s ease-in-out;
}

/* Anchored to their own text line with em units, so the offset scales
   with that line's (responsive) font-size instead of drifting with the
   viewport. */
.hero-glass-1 { top: -10rem; left: 35rem; transform: rotate(15deg); }
.hero-glass-2 { bottom: -5rem; left: -12rem;  transform: rotate(20deg); }
.hero-glass-1:hover { transform: rotate(20deg); }
.hero-glass-2:hover { transform: rotate(15deg); }

.hero-date-block {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  font-size: 3rem;
  text-align: right;
  font-family: var(--font-script);
}

.hero-date-block .date {
  margin: 0;
}

.hero-date-block .venue {
  margin: 0.2rem 0 0;
}

.venue-link {
  color: inherit;
  text-decoration: none;
  display: inline-block;
}

.venue-link:hover,
.venue-link:focus-visible {
  animation: langWiggle 0.6s ease-in-out infinite;
}

.hero-badge {
  position: absolute;
  left: -50px;
  bottom: -50px;
  width: 170px;
  height: 170px;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: width 0.35s ease-in-out, height 0.35s ease-in-out;
}

.hero-badge:hover {
  width: 180px;
  height: 180px;
  cursor: pointer;
}

.hero-badge.wiggle {
  animation: badgeWiggle 0.38s ease;
}

@keyframes badgeWiggle {
  0% { transform: rotate(0deg) scale(1); }
  20% { transform: rotate(-10deg) scale(1.08); }
  40% { transform: rotate(8deg) scale(1.08); }
  60% { transform: rotate(-6deg) scale(1.05); }
  80% { transform: rotate(4deg) scale(1.03); }
  100% { transform: rotate(0deg) scale(1); }
}

.hero-badge-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-frame);
  animation: badgeColorShift 10s ease-in-out infinite;
}

@keyframes badgeColorShift {
  0%, 100% { background-color: var(--color-frame); }
  50% { background-color: #AFA6D9; }
}

.hero-badge-text-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero-badge-text-svg text {
  font-family: var(--font-body);
  font-size: 4rem;
  fill: var(--color-text);
}

/* Countdown corner */
.hero-countdown-corner {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  display: flex;
  gap: 1rem;
  z-index: 2;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 45px;
}

.countdown-unit span {
  font-size: 3rem;
  font-family: var(--font-heading);
  color: var(--color-text);
}

.countdown-unit small {
  text-transform: uppercase;
  font-size: 1.5rem;
  font-family: var(--font-script);
  letter-spacing: 0.05em;
}
@media (max-height: 580px) {
  .hero-date-block {
    top: 2rem;
    left: 2rem;
    right: auto;
    bottom: auto;
    text-align: left;
  }
}
@media (max-width: 700px) or (max-height: 580px) {
  .hero-countdown-corner {
    display: none
  }
  .hero-badge {
    display: none
  }
  .hero-date-block {
    font-size: 2rem;
  }
  .hero-name-line {
    font-size: 6rem;
  }
  .hero-tagline {
    font-size: 4rem;
    transform: rotate(-20deg) translateX(12rem);
  }
  .hero-glass {
    width: 8rem;
  }
  .hero-glass-1 {
    top: -9rem;
    left: 17rem;
  }
  .hero-glass-2 {
    bottom: -6rem;
    left: -9rem;
  }
}

/* Ebens hjørne gallery overlay */
.gallery-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 12, 10, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.gallery-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.gallery-overlay-content {
  position: relative;
  background: var(--color-frame);
  animation: badgeColorShift 10s ease-in-out infinite;
  border-radius: 16px;
  padding: 2.5rem 2rem 2rem;
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-overlay.open .gallery-overlay-content {
  transform: scale(1);
}

.gallery-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--color-text);
  cursor: pointer;
}

.gallery-title {
  font-family: var(--font-body);
  text-align: center;
  font-size: 6rem;
  margin-bottom: 1.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}

.gallery-photo {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-frame);
  opacity: 0;
  transform: scale(0.4) rotate(-10deg);
}

.gallery-overlay.open .gallery-photo {
  animation: galleryPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-photo.img-error {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.gallery-photo.img-error::after {
  content: '📷';
}

@keyframes galleryPopIn {
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}

.no-scroll { overflow: hidden; }
