/* Robana Games studio site.
   Layout: a white header carrying the RO/BA/NA tiles, a cobalt-blue headline band, then white pages with one featured-game
   slab, news cards in a 3-up grid, and a navy footer. Brand colours come from the tile logo (tools/site/brand.py). */
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
	--paper: #ffffff;
	--paper-2: #f2f4fa;
	--ink: #14213d;
	--ink-soft: #4a5672;
	--line: #e0e5f0;
	--card: #ffffff;
	--accent: #2d5bff;
	--link: #2448d8;
	/* brand tiles: same in both themes */
	--blue: #2d5bff;
	--blue-dk: #1c3fc4;
	--orange: #ff8a1f;
	--orange-dk: #d26a08;
	--navy: #14213d;
	--band: #2d5bff;
	--band-ink: #ffffff;
	--night: #14213d;
	--night-ink: #e6ebf7;

	--f-display: "Bricolage Grotesque", "Arial Black", "Helvetica Neue", system-ui, sans-serif;
	--f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
	--s-0: .875rem;
	--s-1: clamp(1rem, .97rem + .15vw, 1.09rem);
	--s-2: clamp(1.2rem, 1.1rem + .5vw, 1.45rem);
	--s-3: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem);
	--s-4: clamp(2.3rem, 1.5rem + 3.6vw, 4.6rem);
	--wrap: 1160px;
	--gut-l: max(16px, env(safe-area-inset-left, 0px));
	--gut-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--paper: #0f1830; --paper-2: #16213f; --ink: #eef2fb; --ink-soft: #aeb9d4;
		--line: #26345a; --card: #16213f; --accent: #7d9bff; --link: #9db4ff;
		--night: #0a1124; color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--paper: #0f1830; --paper-2: #16213f; --ink: #eef2fb; --ink-soft: #aeb9d4;
	--line: #26345a; --card: #16213f; --accent: #7d9bff; --link: #9db4ff;
	--night: #0a1124; color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 450 var(--s-1)/1.65 var(--f-body); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 750; line-height: 1.08; letter-spacing: -.015em; margin: 0; text-wrap: balance; color: var(--ink); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gut-l); padding-right: var(--gut-r); }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 12px; }
.eyebrow { display: block; font: 800 .76rem/1 var(--f-body); letter-spacing: .15em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }

/* ---------- header ---------- */
.site-head { background: var(--paper); color: var(--ink); position: relative; z-index: 5; border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 .82rem/1 var(--f-display); letter-spacing: .3em; }
.brand svg { height: 34px; width: auto; display: block; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 800; padding: .45em .8em; border-radius: 999px; }
.nav a:hover { background: var(--paper-2); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.nav a.lang { box-shadow: inset 0 0 0 2px var(--line, #d9deea); margin-left: 6px; }
.menu-btn { display: none; font: 800 .95rem/1 var(--f-body); color: var(--ink); background: var(--paper-2); border: 0; border-radius: 999px; padding: .6em 1em; cursor: pointer; }
@media (max-width: 760px) {
	.menu-btn { display: inline-block; }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--paper); padding: 8px var(--gut-r) 16px var(--gut-l); box-shadow: 0 12px 20px rgb(20 33 61 / .15); }
	.nav.open { display: flex; }
	.nav a { padding: .8em 1em; }
}

/* ---------- hero band ---------- */
.band { background: var(--band); color: var(--band-ink); position: relative; overflow: hidden; }
.band h1, .band h2, .band p { color: var(--band-ink); }
.band .eyebrow { color: var(--band-ink); opacity: .75; }
.band a:not(.btn) { color: inherit; }
.band::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 28px; background: var(--paper); clip-path: polygon(0 100%, 0 40%, 4% 0, 8% 40%, 12% 0, 16% 40%, 20% 0, 24% 40%, 28% 0, 32% 40%, 36% 0, 40% 40%, 44% 0, 48% 40%, 52% 0, 56% 40%, 60% 0, 64% 40%, 68% 0, 72% 40%, 76% 0, 80% 40%, 84% 0, 88% 40%, 92% 0, 96% 40%, 100% 0, 100% 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: center; padding-block: clamp(40px, 7vw, 96px) clamp(64px, 9vw, 120px); }
.hero .wrap > * { min-width: 0; }
.hero h1 { font-size: var(--s-4); font-weight: 800; letter-spacing: -.03em; line-height: 1.0; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--orange) 62%, var(--orange) 92%, transparent 92%); padding-inline: .04em; }
.hero p { font-size: var(--s-2); font-weight: 600; margin-top: 20px; max-width: 34ch; opacity: .9; }
.hero-tiles { display: flex; gap: 12px; justify-content: center; }
.hero-tiles svg { width: min(130px, 28%); height: auto; filter: drop-shadow(0 12px 0 rgb(20 33 61 / .25)); transition: transform .25s ease; }
.hero-tiles svg:nth-child(1) { transform: rotate(-6deg) translateY(6px); }
.hero-tiles svg:nth-child(2) { transform: rotate(4deg) translateY(-10px); }
.hero-tiles svg:nth-child(3) { transform: rotate(-2deg) translateY(4px); }
.hero-tiles:hover svg { transform: none; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
@media (max-width: 760px) {
	.hero .wrap { grid-template-columns: 1fr; }
	.hero-tiles { justify-content: flex-start; order: -1; }
	.hero-tiles svg { width: 72px; }
}
.page-band .wrap { padding-block: clamp(36px, 6vw, 72px) clamp(56px, 7vw, 88px); }
.page-band h1 { font-size: var(--s-4); font-weight: 800; letter-spacing: -.03em; }
.page-band p { font-size: var(--s-2); font-weight: 600; margin-top: 14px; max-width: 40ch; opacity: .85; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5em; font: 750 1.02rem/1 var(--f-display); text-decoration: none; padding: .9em 1.35em; border-radius: 12px; border: 0; cursor: pointer; color: var(--navy); background: var(--orange); box-shadow: 0 4px 0 var(--orange-dk); transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--orange-dk); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--orange-dk); }
.btn.alt { background: var(--navy); color: #fff; box-shadow: 0 4px 0 #070d1c; }
.btn.alt:hover { box-shadow: 0 6px 0 #070d1c; }
.band .btn.line { color: #fff; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .45); }
.band .btn.line:hover { box-shadow: inset 0 0 0 2px #fff; }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn.line:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- sections ---------- */
.sec { padding-block: clamp(48px, 7vw, 96px); }
.sec + .sec { padding-top: 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-head h2 { font-size: var(--s-3); }
.more { font-weight: 800; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* featured game */
.game { display: grid; grid-template-columns: 1.35fr 1fr; background: var(--navy); color: var(--night-ink); border-radius: 20px; overflow: hidden; }
.game > * { min-width: 0; }
.game-art { position: relative; min-height: 320px; }
.game-art img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.game-art img.logo { position: absolute; left: 6%; top: 8%; width: 54%; filter: drop-shadow(0 8px 14px rgb(20 30 70 / .3)); }
.game-body { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.game-body h3 { font-size: var(--s-3); color: #fff; }
.game-body p { color: #c8cee6; }
.game-body .eyebrow { color: var(--orange); margin: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; }
.chips li { font-weight: 800; font-size: .85rem; padding: .3em .8em; border-radius: 999px; background: rgb(255 255 255 / .1); color: #fff; }
.game .cta { margin-top: 8px; }
.game .btn.line { color: #fff; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .3); }
.game .btn.line:hover { box-shadow: inset 0 0 0 2px #fff; }
@media (max-width: 860px) { .game { grid-template-columns: 1fr; } .game-art { aspect-ratio: 16 / 9; min-height: 0; max-width: 100%; } }

.next { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; margin-top: 16px; padding: 24px; border: 2px dashed var(--line); border-radius: 24px; }
.next .q { width: 72px; height: 72px; border-radius: 22px; background: var(--paper-2); display: grid; place-items: center; font: 700 2.2rem/1 var(--f-display); color: var(--ink-soft); }
.next p { color: var(--ink-soft); }

/* news cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 2px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--ink-soft); }
.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--paper-2); }
.card-body { padding: 18px 20px 22px; display: grid; gap: 8px; }
.card time, .meta { font-size: var(--s-0); font-weight: 800; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.card h3 { font-size: 1.3rem; }
.card p { color: var(--ink-soft); font-size: .98rem; line-height: 1.55; }
.tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.cards.list { grid-template-columns: 1fr; gap: 16px; }
.cards.list .card { display: grid; grid-template-columns: 300px 1fr; }
.cards.list .card img { height: 100%; aspect-ratio: auto; min-height: 170px; }
.cards.list .card-body { align-content: center; padding: 22px 26px; }
@media (max-width: 680px) { .cards.list .card { grid-template-columns: 1fr; } .cards.list .card img { aspect-ratio: 16 / 9; min-height: 0; } }

/* values */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.values div { background: var(--paper-2); border-radius: 16px; padding: 24px; display: grid; gap: 8px; align-content: start; }
.values h3 { font-size: 1.3rem; }
.values p { color: var(--ink-soft); }
.values .dot { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; }
.values .dot svg { width: 20px; height: 20px; color: #fff; }
@media (max-width: 820px) { .values { grid-template-columns: 1fr; } }

/* socials */
.socials { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; }
.socials a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; border: 2px solid var(--line); text-decoration: none; color: var(--ink); background: var(--card); }
.socials a:hover { border-color: var(--ink); }
.socials svg { width: 26px; height: 26px; flex: none; }
.socials b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; line-height: 1.2; }
.socials span { display: block; font-size: .88rem; color: var(--ink-soft); font-weight: 700; overflow-wrap: anywhere; }

/* contact */
.contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.contact > div { border: 2px solid var(--line); border-radius: 22px; padding: 22px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.contact h3 { font-size: 1.2rem; }
.contact p { color: var(--ink-soft); font-size: .98rem; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }
.mail { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 800; color: var(--ink); }
.mail span { user-select: all; overflow-wrap: anywhere; }
.mail button { font: 800 .78rem/1 var(--f-body); background: var(--orange); color: var(--navy); border: 0; border-radius: 999px; padding: .45em .8em; cursor: pointer; }

/* facts table (press) */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; }
.facts dt { font-weight: 800; }
.facts dd { margin: 0; color: var(--ink-soft); min-width: 0; }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 10px; } }
.logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.logos figure { margin: 0; border: 2px solid var(--line); border-radius: 20px; overflow: hidden; }
.logos .swatch { aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 18px; }
.logos .swatch img { max-height: 100%; width: auto; }
.logos figcaption { padding: 12px 16px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-weight: 800; font-size: .92rem; }
@media (max-width: 820px) { .logos { grid-template-columns: 1fr; } }

/* article (news post, about, privacy) */
.prose { font-size: 1.08rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.7rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose img { border-radius: 18px; }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: var(--s-0); color: var(--ink-soft); margin-top: 8px; font-weight: 700; }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--orange); color: var(--ink-soft); font-weight: 700; }
.prose code { background: var(--paper-2); padding: .1em .35em; border-radius: 6px; font-size: .92em; }
.post-hero { border-radius: 18px; overflow: hidden; margin-top: -40px; position: relative; z-index: 2; box-shadow: 0 18px 40px rgb(30 35 64 / .18); }
.post-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-foot { margin-top: 48px; padding-top: 24px; border-top: 2px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-foot { background: var(--night); color: var(--night-ink); margin-top: clamp(48px, 7vw, 96px); }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; padding-block: 48px 28px; }
.site-foot .wrap > * { min-width: 0; }
.site-foot h4 { color: #fff; font-size: 1rem; margin-bottom: 10px; }
.site-foot a { color: var(--night-ink); text-decoration: none; font-weight: 700; }
.site-foot a:hover { text-decoration: underline; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-foot .brand { color: #fff; }
.site-foot .brand svg { height: 40px; }
.site-foot p { color: #aab2d0; margin-top: 12px; max-width: 36ch; font-size: .95rem; }
.legal { border-top: 1px solid rgb(255 255 255 / .1); }
.legal .wrap { display: flex; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; grid-template-columns: none; padding-block: 18px; font-size: .88rem; color: #aab2d0; }
@media (max-width: 760px) { .site-foot .wrap { grid-template-columns: 1fr 1fr; } .site-foot .wrap > :first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
	.hero-tiles svg { transition: none; }
	.btn, .card { transition: none; }
}
