/* Amalga — the game's colours and type, on the web.
   Grenze Gotisch is for card names and big headings only; everything read is Fira Sans. */

@font-face {
  font-family: "Grenze Gotisch";
  src: url("fonts/GrenzeGotisch-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Fira Sans";
  src: url("fonts/FiraSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Fira Sans";
  src: url("fonts/FiraSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #0e0f13;          /* the background of the whole game */
  --panel: #1a1c22;
  --panel-light: #22252d;
  --bone: #e3e2de;         /* text */
  --subtle: #8a8f98;
  --gold: #c8a24a;         /* tarnished gold */
  --purple: #8b4fa8;       /* the Guide */
  --blood: #b5493e;
  --heading: "Grenze Gotisch", Georgia, serif;
  --body: "Fira Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--bone); }

h1, h2 { margin: 0; font-weight: 600; }

/* ---------------------------------------------------------------- the first screen */
.hero {
  min-height: clamp(600px, 100vh, 980px);   /* a full first screen, but never a stretched one on a tall window */
  display: flex;
  align-items: center;
  /* the art is dark on its left, where the words go; a wash keeps them readable at any width */
  background:
    linear-gradient(90deg, rgba(14,15,19,0.96) 0%, rgba(14,15,19,0.85) 38%, rgba(14,15,19,0.15) 75%, rgba(14,15,19,0) 100%),
    url("img/hero.jpg") center right / cover no-repeat;
  padding: 48px 6vw;
}

.hero-inner { max-width: 620px; }

.logo img { width: min(560px, 100%); }
.logo { margin-bottom: 18px; }

.hook {
  font-family: var(--body);      /* a sentence: the reading face, not the blackletter */
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.25;
  color: var(--bone);
  margin: 0 0 14px;
}

.pitch { color: var(--subtle); margin: 0 0 32px; max-width: 34em; }

/* ---------------------------------------------------------------- the sign-up */
.signup {
  background: rgba(26, 28, 34, 0.9);
  border: 1px solid rgba(200, 162, 74, 0.35);
  border-radius: 6px;
  padding: 20px 22px;
  max-width: 520px;
}

.signup-label { display: block; font-weight: 600; margin-bottom: 10px; }

.signup-row { display: flex; gap: 10px; flex-wrap: wrap; }

.signup input {
  flex: 1 1 220px;
  min-width: 0;
  font: inherit;
  padding: 11px 14px;
  border-radius: 4px;
  border: 1px solid #3a3e48;
  background: var(--ink);
  color: var(--bone);
}
.signup input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

.signup button {
  flex: 0 0 auto;
  font: inherit;
  font-weight: 600;
  padding: 11px 22px;
  border: 0;
  border-radius: 4px;
  background: var(--gold);
  color: var(--ink);
  cursor: pointer;
}
.signup button:hover { background: #d8b45c; }

.signup-note { font-size: 14px; color: var(--subtle); margin: 12px 0 0; }
.signup-message { font-size: 15px; margin: 8px 0 0; min-height: 1em; color: var(--gold); }

.platform { margin: 22px 0 0; color: var(--subtle); letter-spacing: 0.04em; }
.platform strong { color: var(--bone); font-weight: 600; }

/* ---------------------------------------------------------------- sections */
.section { max-width: 1120px; margin: 0 auto; padding: 88px 6vw; }

.section-title {
  font-family: var(--heading);
  font-size: clamp(30px, 3.6vw, 42px);
  margin-bottom: 28px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
}
.pillar h2 {
  font-family: var(--heading);
  font-size: 30px;
  color: var(--gold);
  margin-bottom: 10px;
}
.pillar p { color: #c9c8c3; margin: 0; }

/* ---------------------------------------------------------------- the cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.card {
  margin: 0;
  background: var(--panel);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #2c3039;
}
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card figcaption {
  font-family: var(--heading);   /* card names are the blackletter, as in the game */
  font-size: 24px;
  padding: 8px 14px 12px;
}

/* ---------------------------------------------------------------- what waits */
.below {
  display: grid;
  grid-template-columns: minmax(200px, 360px) 1fr;
  gap: 48px;
  align-items: center;
}
.below-art { filter: drop-shadow(0 0 40px rgba(139, 79, 168, 0.25)); }
.below-text h2 { font-family: var(--heading); font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 12px; }
.below-text p { color: #c9c8c3; }
.quiet { font-style: italic; color: var(--subtle) !important; }

@media (max-width: 720px) {
  .below { grid-template-columns: 1fr; }
  .below-art { max-width: 280px; margin: 0 auto; }
  /* On a phone the words cover the art rather than sit beside it: a heavier, top-to-bottom
     wash keeps them readable, with the art still showing at the edges. */
  .hero {
    background:
      linear-gradient(180deg, rgba(14,15,19,0.55) 0%, rgba(14,15,19,0.88) 30%, rgba(14,15,19,0.88) 80%, rgba(14,15,19,0.6) 100%),
      url("img/hero.jpg") 70% center / cover no-repeat;
  }
}

/* ---------------------------------------------------------------- follow */
.follow { text-align: center; }
.follow p { color: var(--subtle); margin-top: -12px; }
.socials { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.socials a {
  text-decoration: none;
  color: var(--bone);
  border: 1px solid #3a3e48;
  border-radius: 4px;
  padding: 10px 22px;
  font-weight: 600;
}
.socials a:hover { border-color: var(--gold); color: var(--gold); }

/* ---------------------------------------------------------------- footer */
.footer {
  border-top: 1px solid #22252d;
  text-align: center;
  padding: 36px 6vw 48px;
  font-size: 14px;
  color: var(--subtle);
}
.footer p { margin: 4px 0; }

/* ---------------------------------------------------------------- privacy page */
.page { max-width: 760px; margin: 0 auto; padding: 64px 6vw 88px; }
.page h1 { font-family: var(--heading); font-size: 42px; margin-bottom: 8px; }
.page h2 { font-size: 20px; margin: 32px 0 8px; color: var(--gold); }
.page p, .page li { color: #c9c8c3; }
.page .back { display: inline-block; margin-bottom: 24px; }
