@font-face {
  font-family: "Mencken Std";
  src: url("assets/mencken-std-narrow.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #09090a;
  --paper: #f7f4ee;
  --accent: #da6b5d;
  --logo-width: min(376px, 26.7vw);
  --logo-top: clamp(0px, 0.8vh, 12px);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
}
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--ink);
  color: var(--paper);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #c3bfc3;
}
.background, .background__video, .background__shade, .background__grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.background { z-index: -1; background: #08090a; }
.background__video {
  display: block;
  opacity: 0;
  object-fit: cover;
  object-position: 50% 50%;
  pointer-events: none;
  transition: opacity .35s ease;
}
.is-ready .background__video { opacity: 1; }
.background__shade {
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(6, 6, 8, .35) 0%, rgba(6, 6, 8, .12) 28%, transparent 49%, rgba(7, 7, 8, .16) 74%, rgba(5, 5, 6, .56) 100%),
    linear-gradient(90deg, rgba(6, 7, 9, .11), transparent 27%, transparent 73%, rgba(6, 7, 9, .11));
}
.background__grain {
  opacity: .075;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: multiply;
}

/* Header stays behind the loader and is fully revealed by the vertical wipe. */
.brand {
  position: fixed;
  z-index: 31;
  top: var(--logo-top);
  left: 50%;
  width: var(--logo-width);
  max-width: calc(100vw - 52px);
  transform: translateX(-50%);
  pointer-events: none;
}
.brand__surface { position: relative; width: 100%; padding: 3px 17px 14px; }
.brand__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 170px;
  object-fit: contain;
  user-select: none;
}

/* Instant swaps on a single full-screen preloader. */
.loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #0C2418;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
  transition: transform 900ms cubic-bezier(.55, 0, .18, 1);
}
.loader__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(.5);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.loader.loader--leaving {
  pointer-events: none;
  transform: translate3d(0, -101%, 0);
}

/* Centered Instagram call-to-action. */
.actions {
  position: fixed;
  left: 50%;
  z-index: 5;
  bottom: max(28px, calc(env(safe-area-inset-bottom) + 20px));
  display: flex;
  justify-content: center;
  width: max-content;
  max-width: calc(100% - 32px);
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity .9s ease .75s, transform .9s cubic-bezier(.2,.7,.2,1) .75s;
}
.is-ready .actions { opacity: 1; transform: translate(-50%, 0); }
.instagram-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  outline: none;
  color: #fff;
  font-family: "Mencken Std", Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-thickness: .05em;
  text-underline-offset: 8px;
  transition: opacity .2s ease, transform .2s ease;
}
.instagram-button:hover, .instagram-button:focus-visible {
  transform: translateY(-2px);
  opacity: .82;
}
.instagram-button:focus-visible { outline: 2px solid rgba(255,255,255,.96); outline-offset: 5px; }
.instagram-button:active { transform: scale(.96); }

@media (hover: hover) and (pointer: fine) {
  .instagram-button { cursor: pointer; }
}

@media (max-width: 700px) {
  :root { --logo-width: calc(100vw - 130px); --logo-top: max(0px, env(safe-area-inset-top)); }
  .brand { max-width: 430px; }
  .brand__surface { padding: 0 13px 11px; }

  .actions { bottom: max(20px, calc(env(safe-area-inset-bottom) + 14px)); }
  .instagram-button { font-size: 24px; letter-spacing: 0; }
  .background__shade {
    background: linear-gradient(to bottom, rgba(0,0,0,.24), transparent 30%, transparent 56%, rgba(0,0,0,.53) 100%);
  }
}
@media (max-height: 560px) and (min-width: 701px) {
  :root { --logo-width: min(250px, 24.75vw); --logo-top: 0; }
  .brand__surface { padding: 0 13px 8px; }
  .actions { bottom: 15px; }
  .instagram-button { font-size: 24px; letter-spacing: 0; }

}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .brand { will-change: auto; }
}
