/* Torrano Dev: the look every site shares. Each site sets its own colours and fonts
   on :root in its page (see the <style> block at the top of each index.html). */

:root {
  --bg: #100d16;
  --bg-2: #18131f;
  --surface: #1f1928;
  --text: #f3ead8;
  --muted: #b8ad9c;
  --accent: #e8b45a;
  --accent-ink: #1a1206;
  --line: rgba(243, 234, 216, 0.14);
  --hero-shade: 16, 13, 22;
  --display: "Fraunces", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.15rem; white-space: nowrap; }
.brand svg, .brand img { width: 30px; height: 30px; flex: none; }
.brand small { font-family: var(--body); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 6px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { text-decoration: none; color: var(--muted); font-size: 0.95rem; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--line); }
.nav .nav-cta { color: var(--accent-ink); background: var(--accent); font-weight: 600; }
.nav .nav-cta:hover { color: var(--accent-ink); background: var(--accent); filter: brightness(1.08); }
@media (max-width: 720px) {
  .topbar .wrap { flex-wrap: wrap; gap: 0 12px; padding-block: 8px; }
  .nav { width: 100%; margin-left: 0; padding-bottom: 4px; }
}

/* Hero */
.hero { position: relative; min-height: min(86vh, 860px); display: flex; align-items: flex-end; isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgb(var(--hero-shade)) 0%, rgba(var(--hero-shade), 0.82) 28%, rgba(var(--hero-shade), 0.25) 62%, rgba(var(--hero-shade), 0.35) 100%),
    linear-gradient(to right, rgba(var(--hero-shade), 0.7), transparent 65%);
}
.hero .wrap { padding-block: 120px 72px; }
.hero h1 { max-width: 14ch; }
.hero .lede { max-width: 44ch; }
.hero-logo { width: min(460px, 86vw); margin-bottom: 18px; filter: drop-shadow(0 6px 24px rgba(0,0,0,0.5)); }
.eyebrow { display: inline-block; font: 600 0.78rem/1.4 var(--body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.lede { font-size: clamp(1.08rem, 2vw, 1.28rem); color: var(--text); opacity: 0.92; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--text);
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--surface); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn-primary:hover { background: var(--accent); filter: brightness(1.08); }
.btn .arrow { font-size: 0.9em; opacity: 0.8; }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.prose p { color: var(--muted); }
.prose p strong { color: var(--text); font-weight: 600; }
.framed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0,0,0,0.35); }

/* Status chips */
.chip { display: inline-block; font: 600 0.72rem/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.chip.live { color: #0e2a17; background: #8fe3a8; border-color: transparent; }
.chip.soon { color: #2a1d05; background: #f6cf72; border-color: transparent; }
.chip.dev { color: var(--text); background: var(--line); }

/* Game cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--card-min, 280px)), 1fr)); gap: 22px; }
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 16px 40px rgba(0,0,0,0.35); }
.card-art { aspect-ratio: 16 / 9; background: var(--bg-2) center / cover no-repeat; }
.card-art.type { display: grid; place-items: center; font: 600 1.7rem var(--display); letter-spacing: 0.04em; }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 4px 0 0; }
.card-body p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.card-body .go { margin-top: auto; padding-top: 8px; font-size: 0.9rem; font-weight: 600; color: var(--accent); }
.card .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.85rem; color: var(--muted); }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--feature-min, 250px)), 1fr)); gap: 18px; }
.feature { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.feature .icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 14px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); font-size: 1.1rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--gallery-min, 340px)), 1fr)); gap: 14px; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.35s ease; }
.gallery a:hover img { transform: scale(1.03); }

/* Fact list */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { background: var(--bg-2); padding: 18px 20px; }
.facts dt { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 600; }

/* People */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.person { display: flex; gap: 20px; align-items: center; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; transition: border-color 0.2s ease, transform 0.2s ease; }
.person:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); transform: translateY(-2px); }
.avatar { flex: none; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font: 600 2rem var(--display); color: var(--accent-ink); background: var(--accent); }
.person h3 { margin: 0 0 2px; }
.person p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.person .go { display: inline-block; margin-top: 8px; font-size: 0.9rem; font-weight: 600; color: var(--accent); }

/* Closing call to action */
.closing { text-align: center; }
.closing .section-head { margin-inline: auto; }
.closing .actions { justify-content: center; }

/* Studio footer (the same on every site) */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-block: 56px 36px; font-size: 0.95rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font: 600 0.75rem/1.4 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer .brand { color: var(--text); margin-bottom: 12px; }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
