/* Miacat Studios: one shared stylesheet for every page. */
:root {
  --bg: #0d0f17;
  --bg-2: #141826;
  --card: #181d2d;
  --card-2: #1f2538;
  --line: #2a3149;
  --text: #eef0f7;
  --muted: #a3aac2;
  --ember: #ff8a3d;
  --ember-2: #ffb46b;
  --sky: #5fd0e0;
  --radius: 18px;
  --wrap: 1120px;
  --head: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ember-2); text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3 { font-family: var(--head); line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(13, 15, 23, .78);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-head .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 800 1.15rem var(--head); }
.brand svg { width: 30px; height: 30px; flex: none; }
.site-head nav { margin-left: auto; display: flex; gap: 4px; }
.site-head nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: .95rem; font-weight: 500; }
.site-head nav a:hover, .site-head nav a[aria-current] { color: var(--text); background: rgba(255,255,255,.06); }
@media (max-width: 560px) { .site-head nav a.opt { display: none; } .site-head nav a { padding: 8px 9px; } }

/* Buttons and tags */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-weight: 650; text-decoration: none;
  background: linear-gradient(135deg, var(--ember), #ff6a3d); color: #1a0d05;
  box-shadow: 0 6px 24px rgba(255, 120, 50, .25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { color: #1a0d05; transform: translateY(-1px); box-shadow: 0 10px 30px rgba(255, 120, 50, .35); }
.btn.ghost { background: rgba(255,255,255,.06); color: var(--text); box-shadow: none; border: 1px solid var(--line); }
.btn.ghost:hover { color: #fff; background: rgba(255,255,255,.1); }
.btn.sky { background: linear-gradient(135deg, var(--sky), #3fb6d8); color: #04191d; box-shadow: 0 6px 24px rgba(80, 200, 220, .22); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 .9em; padding: 0; list-style: none; }
.tags li { font-size: .78rem; font-weight: 600; letter-spacing: .02em; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--muted); }
.tags li.hot { background: rgba(255,138,61,.16); color: var(--ember-2); }
.tags li.cool { background: rgba(95,208,224,.14); color: var(--sky); }

/* Hero */
.hero { position: relative; padding: clamp(56px, 10vw, 120px) 0 clamp(40px, 7vw, 80px); isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% 0 0; z-index: -1;
  background:
    radial-gradient(600px 340px at 18% 30%, rgba(255,138,61,.22), transparent 70%),
    radial-gradient(520px 320px at 85% 20%, rgba(95,208,224,.16), transparent 70%);
}
.hero .eyebrow { color: var(--ember-2); font-weight: 650; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; margin-bottom: 1em; }
.hero h1 span { background: linear-gradient(90deg, var(--ember-2), var(--ember) 45%, var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 640px; }

/* Sections */
section { padding: clamp(48px, 8vw, 88px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head p { margin: 0; color: var(--muted); max-width: 520px; }

/* Featured game */
.feature {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); overflow: hidden;
}
.feature .art { position: relative; min-height: 320px; }
.feature .art img { width: 100%; height: 100%; object-fit: cover; }
.feature .body { padding: clamp(24px, 4vw, 44px); }
.feature .body ul.points { padding-left: 1.1em; margin: 0 0 1em; color: var(--muted); }
.feature .body ul.points li { margin: .25em 0; }
.feature .body ul.points strong { color: var(--text); font-weight: 600; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature .art { min-height: 0; aspect-ratio: 1260/1000; } }

/* Video (loads YouTube only when clicked) */
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); }
.video button { all: unset; cursor: pointer; position: absolute; inset: 0; display: grid; place-items: center; }
.video button img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.video button:hover img { opacity: 1; }
.video button:focus-visible { outline: 3px solid var(--ember); outline-offset: -3px; }
.video .play { position: relative; width: 74px; height: 74px; border-radius: 50%; background: rgba(0,0,0,.6); display: grid; place-items: center; backdrop-filter: blur(4px); border: 2px solid rgba(255,255,255,.7); }
.video .play::after { content: ""; margin-left: 6px; border-left: 22px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Strip of screenshots */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.strip img { border-radius: 12px; aspect-ratio: 16/9; object-fit: cover; border: 1px solid var(--line); }
@media (max-width: 700px) { .strip { grid-template-columns: repeat(2, 1fr); } }

/* Project cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
@media (max-width: 360px) { .grid { grid-template-columns: 1fr; } }
.card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: #3a4362; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.card .thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-2); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .thumb img { transform: scale(1.04); }
.card .thumb.icon { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #2b2150, #12142a 70%); }
.card .thumb.icon img { width: 34%; height: auto; object-fit: contain; filter: drop-shadow(0 8px 24px rgba(160, 90, 255, .45)); }
.card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card .body p { color: var(--muted); font-size: .97rem; }
.card .body .link { margin-top: auto; font-weight: 650; text-decoration: none; }
a.link::after { content: " →"; }

/* About and contact */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.about .lead { font-size: 1.12rem; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel h3 { margin-bottom: .7em; }
.links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.links a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--card-2); color: var(--text); text-decoration: none; font-weight: 550; }
.links a:hover { background: #283050; }
.links svg { width: 20px; height: 20px; flex: none; color: var(--ember-2); }
.links small { margin-left: auto; color: var(--muted); font-weight: 400; }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } }

/* Long text pages (privacy, game pages) */
.page { padding: clamp(40px, 7vw, 72px) 0 72px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.45rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .3em 0; }
.callout { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--sky); border-radius: 14px; padding: 18px 22px; margin: 1.5em 0; }
.callout ul { margin: .5em 0 0; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }
.gallery figure { margin: 0; }
.gallery figure.wide { grid-column: 1 / -1; }
.gallery img { border-radius: 14px; border: 1px solid var(--line); aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.gallery figcaption { font-size: .88rem; color: var(--muted); margin-top: 6px; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } }
.banner { border-radius: calc(var(--radius) + 4px); overflow: hidden; border: 1px solid var(--line); margin-bottom: 28px; }

/* Footer */
footer { border-top: 1px solid rgba(255,255,255,.06); padding: 28px 0 40px; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
footer nav { margin-left: auto; display: flex; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Layout tweaks after the first preview */
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .grid.two { grid-template-columns: 1fr; } }
.card .thumb { aspect-ratio: 2 / 1; }
.video-wrap { max-width: 860px; margin: 32px auto 0; }
@media (max-width: 480px) {
  .site-head .wrap { gap: 8px; }
  .brand { font-size: 1rem; gap: 8px; }
  .brand svg { width: 26px; height: 26px; }
  .site-head nav { gap: 0; }
  .site-head nav a { padding: 6px 7px; font-size: .88rem; }
}
.prose ul.tags { padding-left: 0; }

/* ===== Brand theme (29 Nov 2026): colours and type taken from the Miacat Studios banner and profile picture =====
   Moonlit violet night, parchment-cream lettering, purple and pink glow. Overrides the first look above. */
:root {
  --bg: #0b0714;
  --bg-2: #130c22;
  --card: #170f28;
  --card-2: #211538;
  --line: #2f2148;
  --text: #f3eadb;          /* parchment cream, like the MIACAT lettering */
  --muted: #b9abd0;
  --ember: #a855f7;         /* main accent: the STUDIOS purple */
  --ember-2: #d9a7ff;       /* light lilac for links */
  --sky: #f0a6e8;           /* moon pink */
  --head: "Cinzel", Georgia, serif;
}
h1, h2, h3 { letter-spacing: .01em; font-weight: 700; }
h1 { font-weight: 800; }
a:hover { color: #fff; }
.site-head { background: rgba(11, 7, 20, .8); border-bottom-color: rgba(200, 150, 255, .1); }
.brand { font-family: var(--head); font-weight: 700; letter-spacing: .03em; }
.brand img { width: 36px; height: 36px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px rgba(200,140,255,.35), 0 0 14px rgba(168,85,247,.45); }
.btn { background: linear-gradient(135deg, #b565ff, #8b3fe0); color: #fff; box-shadow: 0 6px 24px rgba(150, 70, 240, .35); }
.btn:hover { color: #fff; box-shadow: 0 10px 32px rgba(170, 90, 255, .5); }
.btn.ghost { background: rgba(255,255,255,.05); color: var(--text); box-shadow: none; }
.tags li { background: rgba(200,160,255,.08); }
.tags li.hot { background: rgba(168,85,247,.2); color: #dcb8ff; }
.tags li.cool { background: rgba(240,166,232,.15); color: var(--sky); }
.card:hover { border-color: #4a3470; box-shadow: 0 18px 44px rgba(0,0,0,.45), 0 0 0 1px rgba(168,85,247,.15); }
.links svg { color: #c99bff; }
.links a:hover { background: #2c1d4a; }
.callout { border-left-color: var(--ember); }
section#tools { background: linear-gradient(180deg, transparent, var(--bg-2) 18%, var(--bg-2) 82%, transparent) !important; }

/* Banner hero: the banner art is the headline, the text sits under it */
.hero { padding: 0 0 clamp(40px, 7vw, 72px); }
.hero::before { display: none; }
.hero-banner { position: relative; margin: 0; }
.hero-banner img { width: 100%; height: clamp(260px, 42vw, 620px); object-fit: cover; object-position: 48% 50%; }
.hero-banner::after {
  content: ""; position: absolute; inset: auto 0 0; height: 45%;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}
.hero .intro { position: relative; margin-top: clamp(-70px, -5vw, -24px); text-align: center; }
.hero .eyebrow { color: #cfa3ff; font-family: var(--head); letter-spacing: .25em; font-size: .85rem; }
.hero .eyebrow::before, .hero .eyebrow::after { content: ""; display: inline-block; width: 40px; height: 1px; background: currentColor; vertical-align: middle; margin: 0 12px; opacity: .6; }
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.8rem); max-width: 860px; margin-inline: auto; }
.hero h1 span { background: linear-gradient(90deg, #f3eadb, #e8b4ff 40%, #b565ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-inline: auto; }
.hero .actions { justify-content: center; }
.paw { display: inline-block; width: 1em; height: 1em; vertical-align: -0.12em; color: #b565ff; }
@media (max-width: 480px) {
  .hero .eyebrow::before, .hero .eyebrow::after { width: 18px; margin: 0 8px; }
  .hero .eyebrow { letter-spacing: .15em; font-size: .75rem; }
}
@media (max-width: 420px) { .brand-name { display: none; } .brand img { width: 40px; height: 40px; } }
.about-title { display: flex; align-items: center; gap: 18px; margin-bottom: .6em; } .about-title h2 { margin: 0; } .about-title img { width: 96px; height: 96px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(200,140,255,.3), 0 0 30px rgba(168,85,247,.35); }
.motto { font-family: var(--head); font-size: 1.2rem; font-weight: 700; color: var(--text); border-left: 3px solid var(--ember); padding: 4px 0 4px 16px; margin-top: 1.2em; }
