/* vorira.com — shared style. Colours per page via --primary / --sky / --ink (site.config.json themes). */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.6 ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: #FBF7EE;
}
a { color: var(--primary); }
img { max-width: 100%; }

.hero {
  position: relative;
  text-align: center;
  padding: 56px 16px 40px;
  background: linear-gradient(180deg, var(--sky), #9ED88A);
  color: #fff;
}
.hero h1 { margin: 12px 0 4px; font-size: clamp(32px, 7vw, 52px); line-height: 1.1; text-shadow: 0 3px 0 rgba(0, 0, 0, .18); }
.hero .icon { border-radius: 28px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.hero .subtitle { margin: 0; font-size: 20px; font-weight: 700; }
.hero .promo { max-width: 640px; margin: 16px auto 24px; }
.button {
  display: inline-block; padding: 14px 26px; border-radius: 999px; margin: 4px;
  background: var(--ink); color: #fff; font-weight: 800; text-decoration: none;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .25);
}
.button.alt { background: #fff; color: var(--ink); }
.langs { position: absolute; top: 14px; right: 16px; font-size: 14px; }
.langs a, .langs strong { margin-left: 8px; color: inherit; }

.shots {
  display: flex; gap: 16px; overflow-x: auto; padding: 24px 16px; scroll-snap-type: x mandatory;
  max-width: 1100px; margin: 0 auto;
}
.shots img { flex: 0 0 auto; width: min(260px, 70vw); height: auto; border-radius: 18px; scroll-snap-align: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .15); }

.text { max-width: 760px; margin: 0 auto; padding: 8px 16px 40px; }
.text h1 { font-size: 30px; line-height: 1.2; }
.text h2 { margin-top: 2.2em; padding-top: .4em; border-top: 2px solid rgba(0, 0, 0, .06); }
.text h3 { margin-top: 1.6em; }
.text li { margin: .3em 0; }
.text code { background: rgba(0, 0, 0, .06); padding: 1px 5px; border-radius: 5px; }
.legal { font-size: 16px; }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--sky); color: #fff; }
.bar .home { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; text-decoration: none; }
.bar .home img { border-radius: 10px; }
.bar .langs { position: static; }

.apps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.apps a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px; border-radius: 18px; background: #fff; text-decoration: none; color: var(--ink); font-weight: 800; box-shadow: 0 4px 14px rgba(0, 0, 0, .08); }
.apps img { border-radius: 16px; }

footer { text-align: center; padding: 28px 16px 40px; font-size: 14px; color: rgba(59, 42, 26, .75); }

/* Studio home page */
.studio {
  padding: 72px 20px 56px; text-align: center; color: #fff;
  background: radial-gradient(120% 90% at 50% 0%, #3E8DB0 0%, var(--sky) 45%, #1F4A63 100%);
}
.studio .wordmark { display: inline-block; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; font-size: 15px; padding: 6px 14px; border: 2px solid rgba(255, 255, 255, .55); border-radius: 999px; }
.studio h1 { max-width: 760px; margin: 22px auto 10px; font-size: clamp(30px, 6vw, 50px); line-height: 1.12; }
.studio p { max-width: 600px; margin: 0 auto; font-size: 19px; opacity: .92; }

.games { max-width: 1000px; margin: 0 auto; padding: 32px 16px 8px; }
.games > h2, .contact h2 { font-size: 28px; margin: 8px 0 18px; border: 0; padding: 0; }
.game {
  display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center;
  padding: 24px; margin-bottom: 24px; border-radius: 26px; background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  border-top: 6px solid var(--primary);
}
.game-shot img { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 6px 18px rgba(0, 0, 0, .15); }
.game-title { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.game-title img { border-radius: 18px; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.game-title strong { display: block; font-size: 26px; line-height: 1.15; }
.game-title small { display: block; font-size: 16px; font-weight: 700; color: var(--primary); }
.game .cta { margin: 18px 0 0; }
.game .button { margin: 4px 8px 4px 0; }
.game .button.alt { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px currentColor; }
.contact { padding-top: 16px; }

@media (max-width: 640px) {
  .game { grid-template-columns: 1fr; padding: 18px; }
  .game-shot { max-width: 240px; margin: 0 auto; }
}

@media (prefers-color-scheme: dark) {
  body { background: #1E1A14; color: #F3EBDD; }
  .text h2 { border-top-color: rgba(255, 255, 255, .08); }
  .text code { background: rgba(255, 255, 255, .1); }
  .apps a { background: #2A241C; color: #F3EBDD; }
  .game { background: #2A241C; }
  .game-title, .game .button.alt { color: #F3EBDD; }
  footer { color: rgba(243, 235, 221, .7); }
  footer a { color: inherit; }
}
