:root {
  --ink: #080808;
  --bone: #e8e4dc;
  --muted: #aaa49d;
  --blood: #6d0d14;
  --blood-bright: #a51e28;
  --line: rgba(255,255,255,.15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--bone);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  background: #111;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("assets/the-thirsty-ones.webp");
  background-size: cover;
  background-position: 50% 42%;
  transform: scale(1.015);
}

.shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(0,0,0,.07) 0%, rgba(0,0,0,.18) 45%, rgba(0,0,0,.82) 86%, rgba(0,0,0,.96) 100%),
    linear-gradient(90deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,.08) 45%, rgba(0,0,0,.18) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  box-shadow: inset 0 0 140px rgba(0,0,0,.52);
}

.hero-content {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 clamp(44px, 8vh, 84px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wordmark-heading {
  margin: 0;
  width: min(760px, 80vw);
  line-height: 0;
}

.wordmark {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: screen;
  filter: contrast(1.08) drop-shadow(0 7px 24px rgba(0,0,0,.8));
  opacity: .96;
}

.tagline {
  margin: 22px 0 0;
  max-width: 620px;
  color: #d2cdc6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-style: italic;
  letter-spacing: .015em;
  text-shadow: 0 3px 20px rgba(0,0,0,.95);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  background: rgba(10,10,10,.52);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  color: #eee9e1;
  text-decoration: none;
  text-transform: uppercase;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .12em;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.socials a:hover,
.socials a:focus-visible {
  border-color: rgba(165,30,40,.95);
  background: rgba(109,13,20,.62);
  transform: translateY(-2px);
  outline: none;
}

.scroll-mark {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: 1px;
  height: 52px;
  background: rgba(255,255,255,.22);
  overflow: hidden;
}

.scroll-mark span {
  display: block;
  width: 100%;
  height: 18px;
  background: var(--blood-bright);
  animation: fall 2.4s ease-in-out infinite;
}

@keyframes fall {
  0% { transform: translateY(-20px); opacity: 0; }
  15% { opacity: 1; }
  75% { opacity: 1; }
  100% { transform: translateY(58px); opacity: 0; }
}

.afterword {
  border-top: 1px solid rgba(255,255,255,.06);
  background:
    radial-gradient(circle at 50% 0%, rgba(109,13,20,.18), transparent 42%),
    #080808;
}

.afterword-inner {
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(84px, 13vw, 150px) 0;
  text-align: center;
}

.invitation,
.warning {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}

.invitation {
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: .95;
}

.warning {
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-style: italic;
}

.contact {
  display: inline-block;
  margin-top: 46px;
  color: #ddd7cf;
  text-decoration-color: var(--blood-bright);
  text-underline-offset: 5px;
  letter-spacing: .04em;
}

footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  padding: 24px;
  border-top: 1px solid rgba(255,255,255,.06);
  color: #77736e;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dot { color: var(--blood); }

@media (max-width: 700px) {
  .hero {
    min-height: 88svh;
  }

  .hero-image {
    background-position: 52% 35%;
  }

  .hero-content,
  .afterword-inner {
    width: min(100% - 30px, 1180px);
  }

  .wordmark-heading {
    width: min(92vw, 680px);
  }


  .socials a {
    flex: 1 1 calc(33.333% - 8px);
    justify-content: center;
    padding-inline: 10px;
    font-size: .68rem;
  }

  .scroll-mark { display: none; }
}

@media (max-width: 430px) {
  .socials a { flex-basis: calc(50% - 8px); }
  .tagline { max-width: 310px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-mark span { animation: none; }
  .socials a { transition: none; }
}
