@charset "UTF-8";

:root {
  --paper-dark: #1f1a12;
  --paper-brown: #4b351e;
  --paper-mid: #7a5a31;
  --paper-light: #d7bd86;
  --ink: #18130c;
  --ink-soft: rgba(24, 19, 12, 0.72);
  --field-border: rgba(44, 31, 18, 0.75);
  --field-bg: rgba(222, 196, 139, 0.32);
}

html,
body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Courier New", Courier, "Lucida Console", Monaco, monospace;
  background-image: url("./img/hg.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--ink);
  overflow: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.08), transparent 42%),
    linear-gradient(to bottom, rgba(48,31,13,0.08), rgba(48,31,13,0.2));
  pointer-events: none;
  z-index: 1;
}

#stage {
  position: relative;
  width: 100%;
  min-height: 100vh;
  z-index: 2;
}

.content {
  position: relative;
  z-index: 5;
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 120px 0;
  text-align: center;
}

.logo {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

.logo img {
  display: block;
  width: 400px;
  height: auto;
}

.newsletter {
  width: min(720px, 100%);
  margin: 58px auto 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.register {
  margin: 0;
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255,255,255,0.45);
}

.subline {
  margin: 13px 0 28px 0;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.newsletter-form {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 10px;
  width: min(620px, 100%);
  margin: 0 auto;
  padding: 14px;
  border: 2px solid var(--field-border);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.16), rgba(77,45,18,0.14)),
    var(--field-bg);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.18),
    0 8px 24px rgba(50, 32, 14, 0.16);
}

.newsletter-form::before,
.newsletter-form::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border-color: rgba(44, 31, 18, 0.55);
  pointer-events: none;
}

.newsletter-form::before {
  top: 7px;
  left: 7px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.newsletter-form::after {
  right: 7px;
  bottom: 7px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 18px;
  border: 1px solid rgba(31, 22, 13, 0.85);
  outline: none;
  box-sizing: border-box;
  font-family: "Courier New", Courier, "Lucida Console", Monaco, monospace;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.22), rgba(74,49,24,0.08)),
    rgba(238, 214, 156, 0.42);
  box-shadow:
    inset 0 2px 7px rgba(34, 23, 11, 0.18),
    0 1px 0 rgba(255,255,255,0.25);
}

.newsletter-form input::placeholder {
  color: rgba(24, 19, 12, 0.55);
}

.newsletter-form input:focus {
  border-color: rgba(0, 0, 0, 0.95);
  box-shadow:
    inset 0 2px 7px rgba(34, 23, 11, 0.22),
    0 0 0 2px rgba(24, 19, 12, 0.16);
}

.newsletter-form button {
  height: 50px;
  padding: 0 22px;
  border: 1px solid rgba(31, 22, 13, 0.95);
  cursor: pointer;
  font-family: "Courier New", Courier, "Lucida Console", Monaco, monospace;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ead6a2;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.12), rgba(0,0,0,0.14)),
    #392817;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    0 3px 0 rgba(25, 16, 8, 0.75);
}

.newsletter-form button:hover {
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.16), rgba(0,0,0,0.18)),
    #4a321a;
}

.newsletter-form button:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    0 1px 0 rgba(25, 16, 8, 0.75);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-message {
  display: none;
  margin: 14px 0 0 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.form-message.is-visible {
  display: block;
}

.form-message.is-success {
  color: rgba(24, 19, 12, 0.78);
}

.form-message.is-error {
  color: #5d1c12;
}

.notice {
  margin: 18px 0 0 0;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(24, 19, 12, 0.62);
}

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: var(--ink);
  border: 2px solid rgba(44, 31, 18, 0.7);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.14), rgba(77,45,18,0.14)),
    rgba(222, 196, 139, 0.28);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.18),
    0 4px 12px rgba(50, 32, 14, 0.14);
}

.social-icons a:hover {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.2), rgba(77,45,18,0.2)),
    rgba(222, 196, 139, 0.42);
  transform: translateY(-2px);
}

.social-icons svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-icons a[aria-label="Facebook"] svg {
  fill: currentColor;
  stroke: none;
}

.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 22px 34px;
  box-sizing: border-box;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(24, 19, 12, 0.82);
}

.footer a {
  color: inherit;
  text-decoration: none;
  font-weight: 800;
}

.footer a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.legal {
  display: flex;
  align-items: center;
  gap: 12px;
}

.smoke {
  position: absolute;
  inset: auto -10% -10% -10%;
  height: 50vh;
  background:
    radial-gradient(circle at 15% 70%, rgba(255,255,255,0.08), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(255,255,255,0.06), transparent 34%),
    radial-gradient(circle at 85% 60%, rgba(255,255,255,0.08), transparent 26%);
  filter: blur(30px);
  opacity: 0.7;
  pointer-events: none;
  animation: drift 16s ease-in-out infinite alternate;
  z-index: 3;
}

.sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 4;
}

.spark {
  position: absolute;
  bottom: -40px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 0, 0.95) 0%, rgba(255, 255, 255, 0.95) 50%, rgba(255, 0, 0, 0) 100%);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9), 0 0 18px rgba(255, 114, 31, 0.5);
  opacity: 0;
  animation: rise linear infinite;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(0, -30px, 0) scale(1.06);
  }
}

@keyframes rise {
  0% {
    transform: translate3d(0, 0, 0) scale(0.7);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  70% {
    opacity: 0.95;
  }

  100% {
    transform: translate3d(var(--spark-x), -105vh, 0) scale(0.2);
    opacity: 0;
  }
}

@media (max-width: 760px) {
  body {
    overflow-y: auto;
  }

  .content {
    width: min(100% - 28px, 900px);
    padding: 28px 0 150px 0;
  }

  .logo img {
    width: min(330px, 86vw);
  }

  .newsletter {
    margin-top: 44px;
    padding: 0;
  }

  .register {
    font-size: 26px;
    letter-spacing: 5px;
  }

  .subline {
    font-size: 14px;
    letter-spacing: 3px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input[type="email"],
  .newsletter-form button {
    width: 100%;
  }

  .footer {
    position: absolute;
    padding: 26px 18px;
    text-align: center;
    font-size: 12px;
    letter-spacing: 2px;
  }

  .legal {
    flex-wrap: wrap;
    justify-content: center;
  }
}