:root {
  color-scheme: dark;
  --background: #040303;
  --gold: #c6a15b;
  --text: #c0b29b;
  --secondary: #a99c88;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 240px; background: var(--background); }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.arrival {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  row-gap: clamp(2rem, 5svh, 3rem);
  place-items: center;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  padding: 4.5rem max(2rem, env(safe-area-inset-right)) max(5.25rem, calc(env(safe-area-inset-bottom) + 1.5rem)) max(2rem, env(safe-area-inset-left));
  overflow: hidden;
}

.arrival::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: url("assets/hanella-background.webp") left top / cover no-repeat;
}

.identity {
  width: 100%;
  text-align: center;
  transform: translateY(3svh);
}
.truffle-silhouette {
  position: absolute;
  z-index: -1;
  top: 26%;
  left: -14vw;
  width: clamp(23rem, 43vw, 41rem);
  height: auto;
  opacity: .06;
  -webkit-mask-image: linear-gradient(105deg, #000 20%, rgba(0,0,0,.9) 50%, rgba(0,0,0,.25) 100%);
  mask-image: linear-gradient(105deg, #000 20%, rgba(0,0,0,.9) 50%, rgba(0,0,0,.25) 100%);
  pointer-events: none;
  user-select: none;
}
.brand { margin: 0; font-size: 1rem; line-height: 1; }
.wordmark-surface {
  position: relative;
  display: block;
  width: min(23.75rem, 100%);
  margin-inline: auto;
}
.wordmark {
  display: block;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(.3px .4px 0 #98703a)
    drop-shadow(.35px .45px 0 #6a4920)
    drop-shadow(.2px .25px 0 #3b2813)
    drop-shadow(0 2px 1.5px rgba(0, 0, 0, .58));
}
.announcement, .location { line-height: 1.6; font-weight: 400; overflow-wrap: anywhere; }
.announcement {
  margin: 4.5rem 0 0;
  font-size: .875rem;
  letter-spacing: .30em;
  text-indent: .30em;
}
.location {
  margin: 2.3rem 0 0;
  color: var(--secondary);
  font-size: .75rem;
  letter-spacing: .19em;
  text-indent: .19em;
}

.gold-fragment {
  position: absolute;
  right: -8.5rem;
  bottom: 22%;
  width: 10.75rem;
  height: auto;
  opacity: .12;
  pointer-events: none;
  user-select: none;
}
.instagram {
  justify-self: center;
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: .75rem .5rem;
  color: var(--secondary);
  font-size: .875rem;
  line-height: 1.5;
  letter-spacing: .09em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 350ms ease;
}
.instagram:hover { color: var(--gold); }
.instagram:focus-visible {
  color: var(--gold);
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}
::selection { color: var(--background); background: var(--gold); }

/* One reveal; a restrained reflection crosses the original contours every 10s. */
@media (prefers-reduced-motion: no-preference) {
  .wordmark-surface { animation: reveal 1800ms cubic-bezier(.22, .61, .36, 1) both; }
  .announcement { animation: reveal 1700ms 200ms ease-out both; }
  .location { animation: reveal 1700ms 380ms ease-out both; }
  .instagram { animation: reveal 1800ms 450ms ease-out both; }
  .gold-fragment { animation: reveal-fragment 2400ms 450ms ease-out both; }
  .truffle-silhouette { animation: reveal-silhouette 2600ms 300ms ease-out both; }
  @supports (mask-image: url("assets/hanella-wordmark.svg")) or (-webkit-mask-image: url("assets/hanella-wordmark.svg")) {
    .wordmark-surface::after {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      opacity: 0;
      background: linear-gradient(110deg, transparent 44%, rgba(245, 224, 180, .06) 48%, rgba(255, 238, 204, .18) 50%, rgba(245, 224, 180, .06) 52%, transparent 56%) 100% 0 / 260% 100% no-repeat;
      -webkit-mask: url("assets/hanella-wordmark.svg") center / 100% 100% no-repeat;
      mask: url("assets/hanella-wordmark.svg") center / 100% 100% no-repeat;
      mask-mode: alpha;
      animation: gold-reflection 10s 2.9s linear infinite;
    }
  }
}
@keyframes reveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes reveal-fragment { from { opacity: 0; } to { opacity: .12; } }
@keyframes reveal-silhouette { from { opacity: 0; } to { opacity: .06; } }
@keyframes gold-reflection {
  0% { background-position: 100% 0; opacity: 0; }
  1% { opacity: 1; }
  11% { background-position: 0% 0; opacity: 1; }
  12%, 100% { background-position: 0% 0; opacity: 0; }
}

@media (max-width: 600px) {
  .arrival::before {
    background-image: url("assets/hanella-background-mobile.webp");
    background-position: 28% top;
  }
  .arrival {
    padding-block: clamp(2rem, 7svh, 3rem) max(3.2rem, calc(env(safe-area-inset-bottom) + 1.25rem));
    padding-inline: max(clamp(1rem, 7.45vw, 2rem), env(safe-area-inset-left)) max(clamp(1rem, 7.45vw, 2rem), env(safe-area-inset-right));
  }
  .identity { transform: translateY(1.5svh); }
  .wordmark-surface { width: min(16.5rem, 100%); }
  .wordmark {
    filter:
      drop-shadow(.25px .3px 0 #98703a)
      drop-shadow(.25px .3px 0 #6a4920)
      drop-shadow(.15px .2px 0 #3b2813)
      drop-shadow(0 1.5px 1px rgba(0, 0, 0, .58));
  }
  .announcement { margin-top: 3.65rem; letter-spacing: clamp(.04em, .85vw, .26em); text-indent: clamp(.04em, .85vw, .26em); }
  .location { margin-top: 2rem; letter-spacing: clamp(.02em, .6vw, .16em); text-indent: clamp(.02em, .6vw, .16em); }
  .gold-fragment { width: 8.5rem; right: -6.75rem; bottom: 23%; }
  .truffle-silhouette { width: 24rem; left: -8rem; top: -7rem; }
}
@media (max-height: 520px) {
  .arrival { min-height: max(100svh, 21rem); padding-block: 2rem max(.65rem, env(safe-area-inset-bottom)); row-gap: 1.25rem; }
  .identity { transform: none; }
  .wordmark-surface { width: min(19rem, 100%); }
  .announcement { margin-top: 1.6rem; }
  .location { margin-top: 1.1rem; }
  .gold-fragment { bottom: 25%; width: 8rem; right: -6.5rem; }
  .truffle-silhouette { width: 24rem; left: -10rem; top: -7rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .arrival::before { display: none; }
  .wordmark { filter: grayscale(1) brightness(3); }
  .wordmark-surface::after { display: none; }
  .gold-fragment { display: none; }
  .truffle-silhouette { display: none; }
  .instagram:focus-visible { outline-color: LinkText; }
}
