:root {
  --ivory: #f6f1e8;
  --espresso: #211c18;
  --gold: #c5a06b;
  --line: rgba(246, 241, 232, 0.28);
  --display: "Cormorant Garamond", "Iowan Old Style", "Baskerville", Georgia, serif;
  --body: Manrope, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--espresso);
  color: var(--ivory);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

body:not(.is-unlocked) {
  overflow: hidden;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--gold);
  color: var(--espresso);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.guest-gate {
  position: fixed;
  z-index: 30;
  inset: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: clamp(1rem, 4vw, 3rem);
  background:
    linear-gradient(100deg, rgba(13, 20, 19, 0.84), rgba(17, 26, 24, 0.48)),
    url("assets/meer-und-wellen-poster.jpg") center / cover no-repeat;
  transition: opacity 420ms ease, visibility 420ms ease;
}

body.is-unlocked .guest-gate {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.guest-panel {
  width: min(31rem, 100%);
  padding: clamp(2rem, 5vw, 3.4rem);
  border: 1px solid rgba(246, 241, 232, 0.28);
  background: rgba(25, 31, 29, 0.78);
  box-shadow: 0 1.5rem 5rem rgba(10, 14, 13, 0.28);
  text-align: center;
  backdrop-filter: blur(18px);
}

.guest-logo {
  display: block;
  width: clamp(8.5rem, 29vw, 10.5rem);
  height: auto;
  margin: 0 auto 1.4rem;
}

.guest-eyebrow,
.guest-form label,
.guest-form button {
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.guest-eyebrow {
  margin: 0 0 1rem;
  color: var(--gold);
}

.guest-panel h1 {
  font-size: clamp(3.6rem, 8vw, 5.7rem);
  line-height: 0.8;
}

.guest-intro {
  max-width: 24rem;
  margin: 1.8rem auto 1.6rem;
  color: rgba(246, 241, 232, 0.76);
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.55;
}

.guest-form {
  display: grid;
  gap: 0.65rem;
  text-align: left;
}

.guest-form label {
  margin-top: 0.45rem;
  color: rgba(246, 241, 232, 0.75);
}

.guest-form input {
  width: 100%;
  min-height: 3rem;
  border: 1px solid rgba(246, 241, 232, 0.33);
  border-radius: 0;
  padding: 0.75rem 0.9rem;
  background: rgba(246, 241, 232, 0.08);
  color: var(--ivory);
  font: 0.9rem var(--body);
}

.guest-form input:focus {
  border-color: var(--gold);
  outline: 0;
}

.guest-form button {
  min-height: 3.25rem;
  margin-top: 0.8rem;
  border: 1px solid var(--ivory);
  background: var(--ivory);
  color: var(--espresso);
  transition: background 180ms ease, border-color 180ms ease;
}

.guest-form button:hover {
  border-color: var(--gold);
  background: var(--gold);
}

.guest-error {
  min-height: 1.35rem;
  margin: 0.15rem 0 0;
  color: #e9c8af;
  font-size: 0.72rem;
  text-align: center;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 1rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  background: var(--ivory);
  color: var(--espresso);
  font-size: 0.75rem;
  font-weight: 700;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

.coming-soon {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.background-video,
.veil {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.background-video {
  z-index: -3;
  background: #26342f url("assets/meer-und-wellen-poster.jpg") center / cover no-repeat;
  object-fit: cover;
  object-position: center 54%;
  transform: scale(1.015);
}

.veil {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(16, 24, 23, 0.77) 0%, rgba(22, 28, 26, 0.36) 47%, rgba(20, 23, 21, 0.22) 100%),
    linear-gradient(180deg, rgba(13, 15, 14, 0.3) 0%, transparent 35%, rgba(15, 18, 17, 0.58) 100%),
    linear-gradient(135deg, rgba(186, 124, 81, 0.2), transparent 44%);
}

.page-frame {
  position: fixed;
  z-index: 2;
  inset: 1.1rem;
  border: 1px solid var(--line);
  pointer-events: none;
}

.page-frame::before,
.page-frame::after {
  position: absolute;
  width: 3.4rem;
  height: 1px;
  background: var(--gold);
  content: "";
}

.page-frame::before {
  top: -1px;
  left: 12%;
}

.page-frame::after {
  right: 12%;
  bottom: -1px;
}

.page-content {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(2rem, 4.2vw, 4.5rem) clamp(2rem, 6vw, 7rem);
}

.site-header,
.site-footer {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  width: max-content;
}

.brand-logo {
  display: block;
  width: clamp(10rem, 15vw, 13.5rem);
  height: auto;
  filter: drop-shadow(0 0.2rem 1rem rgba(11, 14, 13, 0.22));
}

.status {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.status span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0.28rem rgba(197, 160, 107, 0.16);
  animation: breathe 2.8s ease-in-out infinite;
}

.hero-copy {
  position: relative;
  z-index: 3;
  align-self: center;
  width: min(54rem, 72vw);
  padding: clamp(4rem, 10vh, 7rem) 0;
}

.eyebrow,
.signature p,
.site-footer {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 1.5rem;
  color: rgba(246, 241, 232, 0.82);
}

.eyebrow span {
  margin: 0 0.55rem;
  color: var(--gold);
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4.5rem, 9.5vw, 10rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.77;
  text-wrap: balance;
  text-shadow: 0 0.2rem 2rem rgba(11, 14, 13, 0.2);
}

h1 em {
  color: var(--gold);
  font-weight: 400;
}

.intro {
  max-width: 37rem;
  margin: clamp(2rem, 4.5vh, 3.2rem) 0 0;
  color: rgba(246, 241, 232, 0.87);
  font-family: var(--display);
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  line-height: 1.6;
}

.signature {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(2rem, 4vh, 3rem);
}

.signature > span {
  width: 2.9rem;
  height: 1px;
  background: var(--gold);
}

.signature p {
  margin: 0;
  color: rgba(246, 241, 232, 0.76);
  font-size: 0.59rem;
}

.site-footer {
  letter-spacing: 0.14em;
}

.site-footer p {
  margin: 0;
}

.poem-line {
  justify-self: start;
}

.copyright {
  justify-self: end;
  color: rgba(246, 241, 232, 0.64);
}

.motion-toggle {
  justify-self: center;
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.65rem;
  border: 0;
  padding: 0.6rem 0.8rem;
  background: transparent;
  color: rgba(246, 241, 232, 0.8);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.motion-toggle:hover {
  color: var(--ivory);
}

.motion-icon {
  position: relative;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid rgba(246, 241, 232, 0.5);
  border-radius: 50%;
}

.motion-icon::before,
.motion-icon::after {
  position: absolute;
  top: 0.53rem;
  width: 1px;
  height: 0.7rem;
  background: currentColor;
  content: "";
}

.motion-icon::before {
  left: 0.7rem;
}

.motion-icon::after {
  right: 0.7rem;
}

.motion-toggle[aria-pressed="true"] .motion-icon::before {
  top: 0.5rem;
  left: 0.76rem;
  width: 0;
  height: 0;
  border-top: 0.4rem solid transparent;
  border-bottom: 0.4rem solid transparent;
  border-left: 0.58rem solid currentColor;
  background: transparent;
}

.motion-toggle[aria-pressed="true"] .motion-icon::after {
  display: none;
}

@keyframes breathe {
  50% {
    opacity: 0.55;
    transform: scale(0.8);
  }
}

@media (max-width: 760px) {
  .guest-gate {
    align-items: start;
  }

  .guest-panel {
    margin: auto 0;
    padding: 1.8rem 1.35rem;
  }

  .guest-panel h1 {
    font-size: clamp(3.45rem, 17vw, 4.8rem);
  }

  .guest-intro {
    margin-top: 1.4rem;
  }

  .page-frame {
    inset: 0.7rem;
  }

  .page-content {
    padding: 1.8rem 1.55rem 1.65rem;
  }

  .background-video {
    object-position: 59% center;
  }

  .veil {
    background:
      linear-gradient(180deg, rgba(14, 20, 19, 0.55) 0%, rgba(17, 24, 22, 0.32) 36%, rgba(13, 17, 16, 0.72) 100%),
      linear-gradient(90deg, rgba(20, 30, 28, 0.42), transparent 80%);
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .brand-logo {
    width: 9.2rem;
  }

  .status {
    grid-column: 2;
    font-size: 0.54rem;
    letter-spacing: 0.12em;
  }

  .hero-copy {
    width: 100%;
    align-self: end;
    padding: 4.5rem 0 3.2rem;
  }

  h1 {
    font-size: clamp(4.25rem, 21vw, 6.5rem);
    line-height: 0.8;
  }

  .intro {
    max-width: 29rem;
    font-size: 1.02rem;
    line-height: 1.55;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    gap: 1rem;
  }

  .poem-line {
    display: none;
  }

  .motion-toggle {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    padding-right: 0;
  }

  .motion-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .copyright {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    font-size: 0.52rem;
  }
}

@media (max-height: 650px) and (min-width: 761px) {
  .page-content {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .hero-copy {
    padding: 2.5rem 0;
  }

  h1 {
    font-size: clamp(4rem, 11vh, 6rem);
  }

  .intro {
    margin-top: 1.4rem;
  }

  .signature {
    margin-top: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guest-gate {
    transition: none;
  }

  .status span {
    animation: none;
  }

  .background-video {
    transform: none;
  }
}
