/* Rogue Monkey Studio — single stylesheet, no framework, no web fonts. */

:root {
  --bg:        #FFF6E9;
  --bg-alt:    #FFE9CC;
  --ink:       #17131F;
  --ink-soft:  #4C4459;
  --paper:     #FFFFFF;

  --brand:     #FFB703;

  --game-1:    #C3282B;  /* France 2027 */
  --game-2:    #6D28AF;  /* Untitled Deckbuilder */
  --game-3:    #0B7A75;  /* IbBiGi */
  --game-4:    #A84E14;  /* Untitled Robot Survival */

  --accent:    var(--brand);
  --on-accent: var(--ink);

  --radius:    18px;
  --border:    3px solid var(--ink);
  --shadow:    6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --wrap:      1080px;

  --font: "Trebuchet MS", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* Per-game theming: set --accent once on <body>, everything else follows. */
body.theme-game-1 { --accent: var(--game-1); --on-accent: #FFFFFF; }
body.theme-game-2 { --accent: var(--game-2); --on-accent: #FFFFFF; }
body.theme-game-3 { --accent: var(--game-3); --on-accent: #FFFFFF; }
body.theme-game-4 { --accent: var(--game-4); --on-accent: #FFFFFF; }

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%,   rgba(255,183,3,.30),  transparent 42%),
    radial-gradient(circle at 88% 4%,   rgba(109,40,175,.16), transparent 38%),
    radial-gradient(circle at 50% 100%, rgba(195,40,43,.14),  transparent 45%);
  background-attachment: fixed;
}

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

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg);
  padding: 10px 16px; z-index: 10;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Available to screen readers, not shown on screen. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- header ---------- */

.site-header {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 20px 0 8px;
}

.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.05rem; letter-spacing: .02em;
  text-decoration: none; margin-right: auto;
}
.wordmark img { width: 38px; height: 38px; }
.wordmark span { line-height: 1.15; }

.site-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.site-nav a {
  text-decoration: none; font-weight: 700; font-size: .93rem;
  padding: 7px 12px; border-radius: 999px;
}
.site-nav a:hover { background: var(--paper); box-shadow: var(--shadow-sm); }

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

.hero { padding: 46px 0 30px; display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.hero__text { max-width: 80ch; }
.hero__art { flex: 0 0 auto; width: 100%; max-width: 220px; }
.hero__art img {
  width: 100%; height: auto; border-radius: var(--radius);
  border: var(--border); box-shadow: var(--shadow);
}
@media (min-width: 860px) {
  .hero { flex-direction: row; align-items: center; gap: 40px; }
  .hero__text { flex: 1 1 auto; min-width: 0; }
  .hero__art { max-width: 260px; }
}
.hero h1 {
  font-size: clamp(2.3rem, 7vw, 3.9rem);
  line-height: 1.02; margin: 0 0 14px; letter-spacing: -.02em;
}
.hero .tagline {
  display: inline-block; transform: rotate(-1.6deg);
  background: var(--brand); border: var(--border); border-radius: 999px;
  padding: 5px 16px; font-weight: 800; font-size: .95rem; margin-bottom: 18px;
}
.hero p { font-size: 1.1rem; color: var(--ink-soft); margin: 0 0 14px; }
.hero p:last-child { margin-bottom: 0; }

/* ---------- sections ---------- */

section { padding: 26px 0; }

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 20px; letter-spacing: -.01em;
}

/* ---------- game cards ---------- */

.subsection + .subsection { margin-top: 30px; }
.subsection h3 {
  margin: 0 0 14px; font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft);
}
.subsection__empty { margin: 0; color: var(--ink-soft); }

.games { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .games { grid-template-columns: 1fr 1fr; gap: 30px; } }

.card {
  display: flex; flex-direction: column;
  position: relative;
  background: var(--paper);
  border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:nth-child(odd)  { transform: rotate(-1.2deg); }
.card:nth-child(even) { transform: rotate(1.2deg); }
.card:hover, .card:focus-visible {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 10px 12px 0 var(--ink);
}

.card__art { border-bottom: 3px solid var(--ink); background: var(--bg-alt); }
.card__art img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.card__body { padding: 18px 20px 22px; }
.card__body h4 { margin: 0 0 6px; font-size: 1.35rem; letter-spacing: -.01em; }
.card__body p  { margin: 10px 0 0; color: var(--ink-soft); }

.card__more { display: inline-block; margin-top: 14px; font-weight: 800; }
.card:hover .card__more { text-decoration: underline; }

/* A card holding several links (e.g. one per language): the main link stretches over the whole
   card, the others sit above it. Avoids nesting <a> inside the card's own <a>. */
.card:focus-within {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 10px 12px 0 var(--ink);
}
.card__links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-top: 14px; }
.card__links .card__more { margin-top: 0; }
.card__link { text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; }
.card__lang {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 800; text-decoration: none;
}
.card__lang:hover { text-decoration: underline; }
.card:has(.card__lang:hover) .card__more { text-decoration: none; }
.flag { flex: none; border: 1.5px solid var(--ink); border-radius: 2px; }

.lang-switch { margin: 0; font-weight: 700; }

/* ---------- badges & meta ---------- */

.badge {
  display: inline-block;
  border: var(--border); border-radius: 999px;
  padding: 3px 12px; font-size: .76rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  background: var(--accent); color: var(--on-accent);
}
.badge--soon { background: var(--game-1); color: #FFFFFF; }

.working-title { font-size: .8rem; font-weight: 700; color: var(--ink-soft); }

/* ---------- game page ---------- */

.backlink { display: inline-block; margin: 18px 0 0; font-weight: 700; text-decoration: none; }
.backlink:hover { text-decoration: underline; }

.game-head { padding: 22px 0 10px; }
.game-head h1 {
  font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.05;
  margin: 12px 0 8px; letter-spacing: -.02em;
}

.game-art {
  border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; background: var(--bg-alt);
  margin: 8px 0 30px;
}
.game-art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.game-body { display: grid; gap: 30px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .game-body { grid-template-columns: 1.6fr 1fr; gap: 40px; } }

.prose p { margin: 0 0 16px; }
.prose p:last-child { margin-bottom: 0; }
.prose h3 { margin: 26px 0 10px; font-size: 1.2rem; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 1.3em; }
.prose li { margin: 0 0 6px; }

.about { max-width: 74ch; }

.factsheet {
  background: var(--paper); border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 22px;
}
.factsheet h2 { font-size: 1.05rem; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .06em; }
.factsheet dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .95rem; }
.factsheet dt { font-weight: 800; }
.factsheet dd { margin: 0; color: var(--ink-soft); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 800;
  padding: 11px 20px; border: var(--border); border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn--ghost { background: var(--paper); color: var(--ink); }

/* Links whose real destination is not known yet (placeholder hrefs). */
a[href^="#"][href$="-todo"] { opacity: .55; }

/* ---------- legal / privacy page ---------- */

.legal { padding: 30px 0 10px; max-width: 74ch; }
.legal h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.08;
  margin: 0 0 20px; letter-spacing: -.02em;
}
.legal h2 { font-size: clamp(1.15rem, 3vw, 1.4rem); margin: 30px 0 10px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em; background: var(--paper); color: var(--ink);
  border: 1px solid rgba(0,0,0,.18); border-radius: 6px; padding: 1px 6px;
}

.legal__switch { display: flex; gap: 14px; margin: 0 0 26px; font-weight: 700; }

.legal__meta {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 14px;
  margin: 0 0 26px; font-size: .95rem;
}
.legal__meta dt { font-weight: 800; }
.legal__meta dd { margin: 0; color: var(--ink-soft); }

.legal__callout {
  background: var(--brand); border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 22px; margin: 0 0 30px;
}
.legal__callout h2 { margin: 0 0 8px; }
.legal__callout p { margin: 0; color: var(--ink); font-weight: 600; }

.legal__rule { border: 0; border-top: var(--border); margin: 50px 0 40px; }

/* ---------- newsletter ---------- */

.newsletter {
  background: var(--brand); border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px 24px; margin: 34px 0;
}
.newsletter h2 { margin: 0 0 6px; }
.newsletter p { margin: 0 0 16px; max-width: 54ch; }
.newsletter__embed {
  background: var(--paper); border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  width: 100%; max-width: 480px;
}
.newsletter__embed iframe { display: block; width: 100%; max-width: 100%; border: 0; }

.newsletter small { display: block; margin-top: 12px; font-size: .82rem; }

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

.site-footer {
  border-top: 3px solid var(--ink);
  margin-top: 40px; padding: 28px 0 40px;
  display: grid; gap: 18px;
}
.site-footer a { font-weight: 700; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.socials a {
  display: inline-block; text-decoration: none; font-size: .9rem;
  padding: 6px 14px; border: var(--border); border-radius: 999px;
  background: var(--paper);
  transition: transform .15s ease, box-shadow .15s ease;
}
.socials a:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-sm); }
.colophon { font-size: .85rem; color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .card:nth-child(odd), .card:nth-child(even) { transform: none; }
  .card:hover, .card:focus-visible, .card:focus-within { transform: none; }
  .hero .tagline { transform: none; }
  .btn:hover, .newsletter button:hover, .socials a:hover { transform: none; }
}
