/* Goblin Crew marketing site — F.O.E. Technologies
   Palette from the game. No tracking. */

:root {
  --ink: #0b161b;
  --teal: #152a30;
  --slate: #22383e;
  --gold: #f2be56;
  --gold-mid: #e2ae4c;
  --amber: #b8822e;
  --parchment: #efdfba;
  --sage: #a3b4ae;
  --brown: #6b4a1c;
  --ink-rgb: 11, 22, 27;
  --gold-rgb: 242, 190, 86;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --max: 1120px;
  --narrow: 760px;
  --header-h: 4.25rem;
}

@font-face {
  font-family: "Cinzel Decorative";
  src: url("../fonts/cinzel-decorative-black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("../fonts/barlow-sc-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("../fonts/barlow-sc-semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("../fonts/barlow-sc-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: "Barlow Semi Condensed", "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--parchment);
  background: var(--ink);
  min-height: 100vh;
}

img, video { max-width: 100%; height: auto; display: block; }
button, input, a { font: inherit; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--gold-mid); }

h1, h2, .display {
  font-family: "Cinzel Decorative", Georgia, serif;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--gold);
  margin: 0 0 0.6em;
}

h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); text-align: center; }
h3 {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin: 0 0 0.4em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 1000;
  background: var(--gold);
  color: var(--ink);
  padding: 0.5rem 0.9rem;
  font-weight: 700;
  border-radius: 6px;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}
.wrap-narrow {
  width: min(var(--narrow), calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(var(--ink-rgb), 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.18);
}
.header-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
}
.wordmark img { width: 148px; height: auto; }
.wordmark:hover { opacity: 0.9; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--amber);
  color: var(--gold);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle:hover, .nav-toggle:focus-visible {
  background: var(--slate);
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.nav-list {
  display: flex;
  gap: 0.15rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-list a {
  color: var(--parchment);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.92rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  padding: 2.2rem 0 3.5rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(11,22,27,0.55) 0%, rgba(11,22,27,0.72) 45%, var(--ink) 100%),
    url("../assets/hero/hero-bg.webp") center 30% / cover no-repeat,
    var(--ink);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 20%, rgba(242,190,86,0.12), transparent 55%);
  pointer-events: none;
}

@media (max-width: 700px) {
  .hero::before {
    background:
      linear-gradient(180deg, rgba(11,22,27,0.62) 0%, rgba(11,22,27,0.78) 50%, var(--ink) 100%),
      url("../assets/hero/hero-bg-portrait.webp") center 20% / cover no-repeat,
      var(--ink);
  }
}

.hero-inner { text-align: center; }
.hero-logo {
  width: min(420px, 82vw);
  margin: 0.4rem auto 1.1rem;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.55));
}
.tagline {
  font-family: "Cinzel Decorative", Georgia, serif;
  font-weight: 900;
  font-size: clamp(1.25rem, 3.4vw, 2rem);
  color: var(--gold);
  margin: 0 0 0.55rem;
}
.lede {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--parchment);
  max-width: 38rem;
  margin: 0 auto 1.5rem;
  font-weight: 600;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--gold);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:focus-visible { outline: 2px solid var(--parchment); outline-offset: 3px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--gold);
  color: var(--ink);
}
.btn-primary:hover { background: var(--gold-mid); color: var(--ink); }
.btn-secondary {
  background: transparent;
  color: var(--gold);
}
.btn-secondary:hover { background: rgba(var(--gold-rgb), 0.12); color: var(--gold); }
.btn-soon {
  background: var(--slate);
  color: var(--sage);
  border-color: #3a5056;
  cursor: default;
  pointer-events: none;
}
.btn-soon:hover { transform: none; }

.video-frame {
  position: relative;
  width: min(920px, 100%);
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 2px solid rgba(var(--gold-rgb), 0.55);
  background: #000;
  aspect-ratio: 16 / 9;
}
.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-toggle {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  background: rgba(11,22,27,0.8);
  color: var(--parchment);
  border: 1px solid var(--amber);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.video-toggle:hover, .video-toggle:focus-visible {
  background: var(--ink);
  color: var(--gold);
  outline: 2px solid var(--gold);
}

/* Sections */
.section { padding: 3.25rem 0; }
.section + .section { border-top: 1px solid rgba(var(--gold-rgb), 0.12); }
.eyebrow {
  display: block;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  font-size: 0.78rem;
  margin-bottom: 0.55rem;
}
.section-intro {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2rem;
  color: var(--parchment);
}

/* What it is */
.pills {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-top: 1.5rem;
}
.pill {
  background: var(--teal);
  border: 1px solid var(--slate);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 1.2rem;
}
.pill dt {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 0.82rem;
  margin-bottom: 0.3rem;
}
.pill dd { margin: 0; color: var(--parchment); }

/* Modes */
.mode-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
.mode-card {
  background: var(--teal);
  border: 1px solid var(--slate);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.25rem;
}
.mode-card h3 { margin-bottom: 0.35rem; }
.mode-card p { color: var(--parchment); font-size: 1.05rem; }
.mode-featured {
  background:
    linear-gradient(180deg, rgba(11,22,27,0.25), rgba(11,22,27,0.55)),
    var(--teal);
  border-color: var(--amber);
  display: grid;
  gap: 1rem;
}
.badge {
  display: inline-block;
  background: var(--brown);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.45rem;
}
.mode-featured .video-frame { width: 100%; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}
.gallery a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--slate);
  background: var(--teal);
  text-decoration: none;
}
.gallery a:hover,
.gallery a:focus-visible {
  border-color: var(--gold);
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.gallery-caption {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sage);
  padding: 0.45rem 0.7rem 0.6rem;
}

/* Features */
.feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.feature-list li {
  background: var(--teal);
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 0.95rem 1.1rem;
}
.feature-list strong {
  display: block;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 0.2rem;
}

/* Get it / signup */
.get-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.store-card, .signup-card, .press-card {
  background: var(--teal);
  border: 1px solid var(--slate);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.5rem;
}
.store-card h3 { font-size: 1.35rem; }
.note {
  color: var(--sage);
  font-size: 0.95rem;
  margin-top: 0.75rem;
}
.todo-comment { /* for humans reading the HTML */ }

.signup-card form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.9rem;
}
.signup-card label {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--sage);
}
.signup-card input[type="email"] {
  background: var(--ink);
  border: 1px solid var(--slate);
  color: var(--parchment);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  width: 100%;
}
.signup-card input[type="email"]:focus {
  outline: 2px solid var(--gold);
  border-color: var(--gold);
}
.signup-status {
  margin-top: 0.8rem;
  color: var(--gold);
  font-weight: 600;
}
.signup-status[hidden] { display: none; }
.privacy {
  color: var(--sage);
  font-size: 0.88rem;
  line-height: 1.45;
  margin-top: 0.85rem;
}
.footer-contact {
  margin-top: 0.35rem;
  font-size: 0.95rem;
}
.footer-contact a { color: var(--gold); }


/* Footer */
.site-footer {
  background: #071014;
  border-top: 1px solid rgba(var(--gold-rgb), 0.18);
  padding: 2.4rem 0 2.8rem;
  font-size: 0.98rem;
}
.footer-brand {
  text-align: center;
  margin-bottom: 1.1rem;
}
.footer-brand strong {
  font-family: "Cinzel Decorative", Georgia, serif;
  font-weight: 900;
  color: var(--gold);
  display: block;
  margin-bottom: 0.3rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  justify-content: center;
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}
.disclosure {
  max-width: 46rem;
  margin: 0 auto;
  color: var(--sage);
  font-size: 0.88rem;
  line-height: 1.55;
}
.disclosure h2 {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 700;
  text-align: left;
  margin-bottom: 0.45rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(7, 10, 12, 0.92);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 0.75rem;
}
.lightbox[hidden] { display: none; }
.lightbox-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--parchment);
  font-weight: 700;
}
.lightbox-close, .lightbox-nav {
  background: transparent;
  border: 1px solid var(--amber);
  color: var(--gold);
  font-weight: 700;
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}
.lightbox-close:hover, .lightbox-nav:hover,
.lightbox-close:focus-visible, .lightbox-nav:focus-visible {
  background: var(--slate);
  outline: 2px solid var(--gold);
}
.lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0.5rem 0;
}
.lightbox-stage img {
  max-height: min(78vh, 100%);
  max-width: 100%;
  width: auto;
  height: auto;
  border: 1px solid var(--amber);
  border-radius: 8px;
}
.lightbox-caption {
  text-align: center;
  color: var(--sage);
  padding: 0.4rem;
}

/* Press page extras */
.facts {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 2rem;
  background: var(--teal);
  border-radius: var(--radius);
  overflow: hidden;
}
.facts th, .facts td {
  text-align: left;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--slate);
  vertical-align: top;
}
.facts th {
  width: 34%;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.press-hero-art {
  width: min(720px, 100%);
  margin: 1rem auto 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--amber);
}
.placeholder {
  color: var(--sage);
  font-style: italic;
}

/* Focus fallback */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Desktop */
@media (min-width: 640px) {
  .pills { grid-template-columns: 1fr 1fr; }
  .mode-grid { grid-template-columns: 1fr 1fr; }
  .mode-featured { grid-column: 1 / -1; grid-template-columns: 1.1fr 0.9fr; align-items: center; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .feature-list { grid-template-columns: 1fr 1fr; }
  .get-grid { grid-template-columns: 1fr 1fr; }
  .signup-card { grid-column: 1 / -1; }
  .signup-card form { flex-direction: row; align-items: flex-end; }
  .signup-card .field { flex: 1; }
}

@media (min-width: 960px) {
  .pills { grid-template-columns: repeat(4, 1fr); }
  .mode-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr 1fr; }
  .get-grid { grid-template-columns: 1fr 1fr 1.15fr; }
  .signup-card { grid-column: auto; }
  .signup-card form { flex-direction: column; align-items: stretch; }
}

@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(11, 22, 27, 0.98);
    border-bottom: 1px solid rgba(var(--gold-rgb), 0.18);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem 1rem 1rem;
    gap: 0;
  }
  .nav-list a { display: block; padding: 0.7rem 0.2rem; border-bottom: 1px solid var(--slate); }
  .site-header { position: sticky; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn:hover { transition: none; transform: none; }
  .hero::before { background-attachment: scroll; }
}
