/* Shared chrome for the live Scarforged coming-soon site */

@font-face {
  font-family: "Cinzel Decorative";
  src: url("../assets/fonts/cinzel-decorative-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cinzel";
  src: url("../assets/fonts/cinzel-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.site-foot {
  background: #000;
  color: #9a9a9a;
  border-top: 1px solid #1c1c1c;
  padding: 2rem 1.5rem 2.4rem;
  font-family: Cinzel, Georgia, serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-align: center;
}
.site-foot .wrap {
  max-width: 54rem;
  margin: 0 auto;
  display: grid;
  gap: 1.1rem;
  justify-items: center;
}
.site-foot address {
  font-style: normal;
  color: #cfcfcf;
  line-height: 1.7;
  text-align: center;
  width: 100%;
}
.site-foot a {
  color: #c4a46a;
  text-decoration: none;
  border-bottom: 1px solid rgba(196, 164, 106, 0.3);
}
.site-foot a:hover { color: #ecd7a4; }
.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.15rem;
}
.site-foot .credit-line {
  margin: 0;
  color: #6e6e6e;
  font-size: 0.82rem;
  font-family: Cinzel, Georgia, serif;
  letter-spacing: 0.06em;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.65rem 1.1rem;
  font-family: Cinzel, serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid rgba(196, 164, 106, 0.45);
  background: #1a120c;
  color: #ecd7a4;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(180deg, #8a3a22, #4a160f);
  border-color: #c45c32;
  color: #f8e7c8;
}
.btn-ghost { background: transparent; }
.btn.is-loading,
.btn[disabled] {
  opacity: 0.7;
  pointer-events: none;
}
.btn .spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(248, 231, 200, 0.25);
  border-top-color: #f8e7c8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  max-width: min(380px, calc(100vw - 2rem));
  background: #140f0a;
  border: 1px solid rgba(196, 164, 106, 0.45);
  padding: 0.9rem 1rem;
  color: #cfc3b0;
  font-family: Georgia, serif;
  font-size: 0.9rem;
  display: none;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.cookie-banner.is-open { display: block; }
.cookie-banner p { margin: 0 0 0.8rem; }
.cookie-banner a { color: #c4a46a; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }



.legal {
  min-height: 100svh;
  background: #000;
  color: #e8e8e8;
  font-family: Georgia, "Times New Roman", serif;
}
.legal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #1c1c1c;
}
.legal-bar a.brand {
  font-family: Cinzel, serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: #ecd7a4;
  text-decoration: none;
}
.legal-main {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.4rem 1.5rem 3rem;
}
.legal-main h1 {
  font-family: "Cinzel Decorative", Cinzel, serif;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 700;
  margin: 0 0 0.6rem;
  color: #f3e6cc;
}
.legal-main h2 {
  font-family: Cinzel, serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 2rem 0 0.55rem;
  color: #c4a46a;
}
.legal-main p, .legal-main li { color: #bdbdbd; line-height: 1.7; }
.legal-main a { color: #c4a46a; }
.legal-main .lede { color: #e8e8e8; }

.form {
  display: grid;
  gap: 0.9rem;
  text-align: left;
  max-width: 36rem;
  margin: 1.4rem auto 0;
}
.form label {
  display: grid;
  gap: 0.3rem;
  font-family: Cinzel, serif;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c4a46a;
}
.form input,
.form textarea,
.form select {
  font: 1rem/1.4 Georgia, serif;
  color: #e8e8e8;
  background: #0c0c0c;
  border: 1px solid #2a2a2a;
  padding: 0.7rem 0.8rem;
  width: 100%;
}
.form textarea { min-height: 130px; resize: vertical; }
.form .check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-family: Georgia, serif;
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
  color: #bdbdbd;
}
.form .check input { width: auto; }
.field-error {
  display: none;
  color: #e07a6a;
  font-family: Georgia, serif;
  font-size: 0.85rem;
  letter-spacing: 0;
  text-transform: none;
}
label.is-invalid .field-error { display: block; }
label.is-invalid input,
label.is-invalid textarea {
  border-color: #e07a6a;
}
.form-banner {
  display: none;
  padding: 0.75rem 0.9rem;
  border: 1px solid #2a2a2a;
  font-family: Georgia, serif;
  font-size: 0.95rem;
}
.form-banner.is-error {
  display: block;
  border-color: #e07a6a;
  color: #e07a6a;
  background: rgba(122, 28, 22, 0.25);
}
.hp-field {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.thanks-box {
  min-height: 70svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.4rem;
  background: #000;
  color: #e8e8e8;
}
.thanks-box h1 {
  font-family: "Cinzel Decorative", Cinzel, serif;
  margin: 0 0 0.7rem;
}
.lost-box {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1.2rem;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.82)),
    #080705;
  color: #e8e8e8;
}
.lost-box h1 {
  font-family: "Cinzel Decorative", Cinzel, serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin: 0 0 0.7rem;
}

.bg.is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, #0a0a0a, #16110c, #0a0a0a);
  background-size: 200% 100%;
  animation: sheen 1.4s infinite;
}
@keyframes sheen {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@media (max-width: 768px) {
  .cookie-banner {
    left: 0.6rem;
    right: 0.6rem;
    max-width: none;
    bottom: 0.6rem;
  }
  .cookie-actions { flex-direction: column; }
  .cookie-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .btn .spinner, .bg.is-loading::before { animation: none; }
}
