/* ============================================================
   Heliotrope Games — landing page styles
   Palette is sampled from the logo. Edit the variables below
   to restyle most of the page.
   ============================================================ */

:root {
  /* --- sampled from the logo --- */
  --ink:         #14100a;   /* page background, deep warm black */
  --ink-alt:     #1e1810;   /* alternating section background */
  --ink-deep:    #0d0a06;   /* footer */
  --brown:       #3a2a18;   /* borders, dividers */
  --brown-mid:   #604830;
  --tan:         #a88b5c;   /* muted / secondary text */
  --stone:       #d8c8ac;   /* headings */
  --cream:       #f0e4d0;   /* body text */
  --leaf:        #b5c85c;   /* accent — the sprout */
  --leaf-bright: #d4e67e;
  --leaf-deep:   #7d9438;

  --font-display: 'Trebuchet MS', 'Segoe UI', Candara, Optima, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --max-width: 1040px;
  --radius: 8px;
}

/* ---------- base ---------- */

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--cream);
  background: var(--ink);
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--stone);
  margin: 0 0 0.5em;
}

h2 {
  font-size: 2rem;
  letter-spacing: 0.01em;
}

p { margin: 0 0 1.1em; }

a { color: var(--leaf); }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.narrow { max-width: 680px; }
.center { text-align: center; }

.section { padding: 88px 0; }
.section-alt { background: var(--ink-alt); }

/* .sr-only is MailerLite's name for the same thing */
.visually-hidden,
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 30px;
  border: 0;
  border-radius: var(--radius);
  background: var(--leaf);
  color: #1a1508;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover { background: var(--leaf-bright); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* ---------- hero ---------- */

.site-header {
  background: var(--ink);
  border-bottom: 1px solid var(--brown);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* horizontal lockup — emblem + wordmark in one image */
.nav-logo {
  width: 170px;
  height: auto;
}

.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--tan);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--leaf); }

/* publisher brand band — warm glow behind the emblem, like light through leaves */
.brand-band {
  padding: 84px 0;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%, rgba(96, 72, 48, 0.5) 0%, transparent 70%),
    var(--ink);
  border-top: 1px solid var(--brown);
  border-bottom: 1px solid var(--brown);
}

/* the logo lockup already contains the company name, so it *is* the h1 */
.brand-band h1 { margin: 0; }

.hero-logo {
  width: min(420px, 78vw);
  height: auto;          /* required: without it the height="961" attribute wins */
  margin: 0 auto;
  filter: drop-shadow(0 6px 26px rgba(0, 0, 0, 0.55));
}

.tagline {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  color: var(--stone);
  margin-bottom: 1.8em;
}

/* ---------- first game ---------- */

.game-title {
  margin: 0 0 24px;
}

/* capped at the logo's native 395px so it never upscales into blur */
.game-title img {
  width: min(100%, 395px);
  height: auto;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.game-blurb {
  font-size: 1.08rem;
  margin-bottom: 2.2em;
}

/* ============================================================
   MailerLite form
   MailerLite's own stylesheet is deliberately NOT loaded — these
   rules restyle its markup to match the site. The ml-* class names
   come from the embed and must not be renamed.
   ============================================================ */

.ml-form-embedContainer {
  max-width: 470px;
  margin: 4px auto 32px;
}

.ml-form-embedContainer .ml-block-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.ml-form-embedContainer .ml-form-formContent { flex: 1 1 250px; }
.ml-form-embedContainer .ml-form-embedSubmit { flex: 0 0 auto; }

.ml-form-embedContainer input[type="email"] {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--brown-mid);
  border-radius: var(--radius);
  background: var(--ink-alt);
  color: var(--cream);
  font: inherit;
}

.ml-form-embedContainer input[type="email"]::placeholder { color: #7d6a4e; }

.ml-form-embedContainer input[type="email"]:focus {
  outline: 2px solid var(--leaf);
  outline-offset: 1px;
  border-color: transparent;
}

/* matches .btn */
.ml-form-embedContainer .ml-form-embedSubmit button {
  padding: 13px 30px;
  border: 0;
  border-radius: var(--radius);
  background: var(--leaf);
  color: #1a1508;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.ml-form-embedContainer .ml-form-embedSubmit button:hover {
  background: var(--leaf-bright);
  transform: translateY(-1px);
}

.ml-form-note {
  min-height: 1.4em;
  margin: 12px 0 0;
  font-size: 0.9rem;
}

.ml-form-note.error { color: #e8846b; }

.ml-form-successContent h4 {
  margin: 0 0 0.3em;
  font-size: 1.2rem;
  color: var(--leaf-bright);
}

.ml-form-successContent p { margin: 0; }

/* submit spinner — recoloured for the green button */
.ml-form-embedSubmit button.loading { display: none; }

.ml-form-embedSubmitLoad {
  display: inline-block;
  width: 20px;
  height: 20px;
}

.ml-form-embedSubmitLoad:after {
  content: " ";
  display: block;
  width: 11px;
  height: 11px;
  margin: 1px;
  border-radius: 50%;
  border: 4px solid;
  border-color: #1a1508 #1a1508 #1a1508 transparent;
  animation: ml-form-embedSubmitLoad 1.2s linear infinite;
}

@keyframes ml-form-embedSubmitLoad {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.eyebrow {
  margin-bottom: 0.4em;
  color: var(--leaf);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.launch {
  display: inline-block;
  margin-bottom: 1.2em;
  padding: 6px 14px;
  border: 1px solid var(--leaf-deep);
  border-radius: 999px;
  background: rgba(181, 200, 92, 0.1);
  color: var(--leaf-bright);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* horizontal stat row, divided by hairlines */
.specs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--brown);
  border-bottom: 1px solid var(--brown);
}

.specs li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 32px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tan);
}

.specs li + li { border-left: 1px solid var(--brown); }

.specs strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--stone);
}

/* ---------- signup ---------- */

/* ---------- footer ---------- */

.footer {
  padding: 48px 0;
  background: var(--ink-deep);
  border-top: 1px solid var(--brown);
  color: var(--tan);
  font-size: 0.92rem;
}

.footer-inner { text-align: center; }

/* emblem only — the wordmark is already in the copyright line below */
.footer-logo {
  width: 64px;
  height: auto;
  margin: 0 auto 22px;
}

.social {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 0 0 1.6em;
  padding: 0;
}

.social a {
  display: flex;
  align-items: center;
  color: var(--tan);
  text-decoration: none;
  transition: color 0.15s ease;
}

/* icons inherit the link colour, so they turn green on hover too */
.social-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.social a:hover { color: var(--leaf); }

.copyright { margin: 0; font-size: 0.85rem; color: #6b5a42; }

/* ---------- mobile ---------- */

@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .specs li { padding: 14px 20px; }
  .nav-links { gap: 18px; }
  .nav-logo { width: 140px; }
  .brand-band { padding: 56px 0; }
}
