/* ------------------------------------------------------------------ fonts */
@font-face {
  font-family: "Big Shoulders Stencil";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/big-shoulders-stencil-latin-var.woff2) format("woff2");
}
@font-face {
  font-family: "Rajdhani";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/rajdhani-500-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Rajdhani";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/rajdhani-600-latin.woff2) format("woff2");
}

/* ------------------------------------------------------------------ base */
:root {
  --ink: #0b0908;
  --ink-deep: #050403;
  --bone: #e8ddca;
  --bone-dim: #a89a82;
  --bone-faint: #7d715f;
  --red: #d8434e;
  --red-mid: #c9303a;
  --red-deep: #8f1f27;
  --ember: #e2632a;
  --line: #3a2f28;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
}

body {
  min-height: 100svh;
  background: var(--ink);
  color: var(--bone);
  font-family: "Rajdhani", "Segoe UI", system-ui, sans-serif;
  font-weight: 500;
  overflow-x: hidden;
}

::selection {
  background: var(--red-deep);
  color: #f4ead8;
}

a {
  color: var(--bone-dim);
  text-decoration-color: rgba(216, 67, 78, 0.6);
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--red);
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.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;
}

/* ------------------------------------------------------------- backdrop */
.backdrop,
.backdrop img {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  animation: drift 55s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes drift {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.09) translateY(-1%);
  }
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      120% 90% at 50% 40%,
      transparent 36%,
      rgba(5, 4, 3, 0.5) 72%,
      rgba(5, 4, 3, 0.9) 100%
    ),
    linear-gradient(to top, rgba(5, 4, 3, 0.78), transparent 32%),
    linear-gradient(to bottom, rgba(5, 4, 3, 0.4), transparent 18%);
}

.bulwark {
  position: fixed;
  right: max(-40px, -2vw);
  bottom: -4vh;
  z-index: 2;
  width: clamp(340px, 34vw, 560px);
  pointer-events: none;
  opacity: 0.8;
  filter: brightness(0.55) saturate(0.95) drop-shadow(0 0 24px rgba(5, 4, 3, 0.8));
  -webkit-mask-image: linear-gradient(315deg, #000 48%, transparent 82%);
  mask-image: linear-gradient(315deg, #000 48%, transparent 82%);
}

#embers {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

/* ------------------------------------------------------------- content */
main {
  position: relative;
  z-index: 4;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: clamp(1.2rem, 4vh, 3rem) 1.4rem 6.4rem;
}

.content {
  width: min(100%, 720px);
  text-align: center;
}

.mark {
  width: 46px;
  height: auto;
  margin-bottom: 1.4rem;
  filter: drop-shadow(0 0 14px rgba(226, 99, 42, 0.35));
}

.eyebrow {
  font-weight: 600;
  font-size: clamp(0.72rem, 1.6vw, 0.92rem);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.logotype {
  margin-top: 0.35rem;
  font-family: "Big Shoulders Stencil", "Arial Narrow", sans-serif;
  font-weight: 800;
  font-size: clamp(5.2rem, 21vw, 10.4rem);
  line-height: 0.88;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--bone);
  text-shadow:
    0 3px 30px rgba(0, 0, 0, 0.65),
    0 0 80px rgba(201, 48, 58, 0.18);
}

.logotype .red {
  display: block;
  color: var(--red);
}

.tagline {
  margin-top: 0.9rem;
  font-weight: 600;
  font-size: clamp(1.02rem, 2.6vw, 1.5rem);
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  color: var(--red);
}

.tagline::before,
.tagline::after {
  content: "";
  display: inline-block;
  width: clamp(24px, 5vw, 52px);
  height: 1px;
  margin: 0 1em;
  vertical-align: middle;
  background: linear-gradient(to right, transparent, rgba(216, 67, 78, 0.75));
}

.tagline::after {
  background: linear-gradient(to left, transparent, rgba(216, 67, 78, 0.75));
}

.lore {
  max-width: 34em;
  margin: 1.5rem auto 0;
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  line-height: 1.55;
  color: var(--bone-dim);
  text-wrap: pretty;
}

/* ---------------------------------------------------------------- stamp */
.stamp {
  display: inline-block;
  margin: 2.1rem auto 1.7rem;
  padding: 0.52em 1.45em;
  border: 1px solid rgba(216, 67, 78, 0.65);
  box-shadow:
    0 0 0 4px rgba(216, 67, 78, 0.12),
    inset 0 0 18px rgba(143, 31, 39, 0.22);
  background: rgba(143, 31, 39, 0.1);
  font-weight: 600;
  font-size: clamp(0.86rem, 1.9vw, 1.02rem);
  letter-spacing: 0.52em;
  text-indent: 0.52em;
  text-transform: uppercase;
  color: var(--red);
  transform: rotate(-1.4deg);
}

/* ----------------------------------------------------------------- form */
.notify {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  max-width: 460px;
  margin: 0 auto;
}

.notify input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(12, 9, 8, 0.68);
  color: var(--bone);
  font: 500 1.05rem "Rajdhani", sans-serif;
  letter-spacing: 0.04em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.notify input[type="email"]::placeholder {
  color: rgba(168, 154, 130, 0.55);
}

.notify input[type="email"]:focus {
  outline: none;
  border-color: rgba(216, 67, 78, 0.75);
  box-shadow: 0 0 0 3px rgba(216, 67, 78, 0.22);
}

.notify button {
  height: 52px;
  padding: 0 1.5rem;
  border: 1px solid rgba(226, 99, 42, 0.35);
  border-radius: 3px;
  background: linear-gradient(180deg, var(--red-mid), var(--red-deep));
  color: #f4ead8;
  font: 600 0.95rem "Rajdhani", sans-serif;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.notify button:hover,
.notify button:focus-visible {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(201, 48, 58, 0.35);
}

.notify button:active {
  transform: translateY(0);
}

.notify button:disabled {
  cursor: default;
  filter: saturate(0.4) brightness(0.75);
  transform: none;
  box-shadow: none;
}

.hp {
  position: absolute;
  left: -6000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  min-height: 1.4em;
  margin-top: 0.85rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.form-status.ok {
  color: var(--ember);
}

.form-status.err {
  color: var(--red);
}

.microcopy {
  margin-top: 0.5rem;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  color: var(--bone-faint);
}

.microcopy a {
  color: var(--bone-faint);
}

/* --------------------------------------------------------------- footer */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1.2rem, 3vw, 2rem);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

footer a {
  color: var(--bone-faint);
  text-decoration: none;
}

footer a:hover {
  color: var(--red);
}

footer .flavor {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  color: rgba(125, 113, 95, 0.72);
}

/* ------------------------------------------------------------- subpages */
.subpage {
  background:
    radial-gradient(110% 80% at 50% 20%, #171009 0%, var(--ink) 58%, var(--ink-deep) 100%);
}

.subpage .content {
  max-width: 620px;
  padding: 4rem 0;
}

.subtitle {
  margin-top: 0.4rem;
  font-family: "Big Shoulders Stencil", "Arial Narrow", sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--bone);
}

.prose {
  margin-top: 1.6rem;
  text-align: left;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--bone-dim);
}

.prose.centered {
  text-align: center;
}

.prose h2 {
  margin: 1.6rem 0 0.4rem;
  font: 600 0.95rem "Rajdhani", sans-serif;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone);
}

.prose p {
  margin: 0.5rem 0;
}

.prose .effective {
  margin-top: 1.8rem;
  font-size: 0.86rem;
  color: var(--bone-faint);
}

.back-link {
  display: inline-block;
  margin-top: 2.2rem;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--red);
}

.back-link:hover {
  color: var(--ember);
}

/* ------------------------------------------------------------ animation */
.content > * {
  animation: rise 0.75s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.content > *:nth-child(1) { animation-delay: 0.05s; }
.content > *:nth-child(2) { animation-delay: 0.14s; }
.content > *:nth-child(3) { animation-delay: 0.22s; }
.content > *:nth-child(4) { animation-delay: 0.32s; }
.content > *:nth-child(5) { animation-delay: 0.42s; }
.content > *:nth-child(6) { animation-delay: 0.52s; }
.content > *:nth-child(7) { animation-delay: 0.6s; }
.content > *:nth-child(8) { animation-delay: 0.66s; }
.content > *:nth-child(9) { animation-delay: 0.72s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .backdrop img {
    animation: none;
  }
  .content > * {
    animation: none;
  }
  .notify button,
  .notify button:hover {
    transform: none;
  }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 960px) {
  .bulwark {
    display: none;
  }
  footer .flavor {
    display: none;
  }
}

@media (max-width: 560px) {
  .notify {
    flex-direction: column;
  }
  .notify button {
    width: 100%;
  }
  .backdrop img {
    object-position: 64% 40%;
  }
  main {
    padding-bottom: 5.4rem;
  }
}
