/* Dewfall Games studio home. Small on purpose: one dusk sky, one column, one card per game.
   Fonts are shared with the Glomi pages (glomi/fonts). */
:root {
  --night: #17122e;
  --dusk: #2a2150;
  --peach: #fbd3a6;
  --rose: #ee9ca0;
  --violet: #7b6bb8;
  --cream: #fff4e4;
  --mist: rgba(255, 244, 228, 0.74);
  --faint: rgba(255, 244, 228, 0.16);
  --display: "Josefin Sans", "Trebuchet MS", system-ui, sans-serif;
  --body: "Quicksand", "Nunito", system-ui, sans-serif;
  color-scheme: dark;
}
@font-face { font-family: "Josefin Sans"; src: url("glomi/fonts/JosefinSans.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "Quicksand"; src: url("glomi/fonts/Quicksand.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

* { box-sizing: border-box; }
html { background: var(--night); }
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--night) 0%, var(--dusk) 55%, #4a3468 85%, #7a4c6e 100%);
  color: var(--cream);
  font: 500 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cream); }
:focus-visible { outline: 3px solid var(--peach); outline-offset: 3px; border-radius: 6px; }
.wrap {
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* The name. A text wordmark until the Dewfall logo is chosen (swap in img/dewfall-logo.svg). */
.mark { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.mark__drop { width: 0.9em; height: 1.2em; }
.mark__name { font-family: var(--display); font-weight: 300; letter-spacing: 0.32em; text-transform: uppercase; }

.top { padding: 1.4rem 0; }
.top .mark { font-size: 1.05rem; }

.hero { padding: clamp(3rem, 12vh, 7rem) 0 clamp(2.5rem, 8vh, 4.5rem); text-align: center; }
.hero .mark { font-size: clamp(1.6rem, 6vw, 2.8rem); flex-direction: column; gap: 1rem; }
.hero .mark__drop { width: 2.2rem; height: 3rem; }
.hero p { margin: 1.4rem auto 0; max-width: 32rem; color: var(--mist); font-size: 1.15rem; }

.eyebrow { font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--mist); margin: 0 0 1rem; }

.game {
  display: grid;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(10, 8, 30, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.game__art { position: relative; display: block; aspect-ratio: 16 / 9; background: #120e33; }
.game__bg { width: 100%; height: 100%; object-fit: cover; }
.game__logo { position: absolute; inset: 0; margin: auto; width: min(52%, 320px); height: auto; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.35)); }
.game__body { padding: 1.4rem 1.4rem 1.6rem; display: grid; gap: 0.9rem; }
.game__body h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.6rem; letter-spacing: 0.04em; }
.game__body p { margin: 0; color: var(--mist); }
.btns { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.4rem; }
.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255, 244, 228, 0.4);
}
.btn--main { background: linear-gradient(135deg, var(--peach), var(--rose)); color: #2a1730; border-color: transparent; }
.btn:hover { border-color: var(--peach); }
@media (min-width: 760px) {
  .game { grid-template-columns: 1.35fr 1fr; }
  .game__art { aspect-ratio: auto; min-height: 320px; }
  .game__body { align-content: center; padding: 2rem; }
}

.foot { padding: 4rem 0 3rem; color: var(--mist); font-size: 0.9rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin-bottom: 0.8rem; }
.foot a { color: var(--mist); }
.foot p { margin: 0; }
