/* Sly Son Studios — site.css
   One stylesheet for the whole site. Dark theme only (the brand look).
   Motif: one 36-degree cut through everything. tan(36deg) = 0.7265, so every
   cut corner is 22 px wide by 16 px high (or 11 by 8, or 9 by 6.5). */

:root {
  color-scheme: dark;
  --bg: #0b0d12;
  --bg-2: #11151c;
  --bg-3: #171c26;
  --line: #262d3a;
  --line-2: #343d4d;
  --text: #e8ebf0;
  --muted: #9aa3b3;
  --accent: #ff7a1f;        /* fox ember: the studio colour */
  --accent-soft: #ffb36b;
  --accent-ink: #1a0d03;
  --deck: #4da3ff;          /* VR Deck blue: the product colour */
  --deck-soft: #9ccaff;
  --ok: #3fb950;
  --warn: #e3b341;
  --bad: #e5484d;
  --font-head: "Sora", system-ui, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
  --cut: 22px;
  --cut-h: 16px;
  --gutter: 16px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font-body);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin-top: 2.1em; }
h3 { font-size: 1.15rem; margin-top: 1.8em; }
h2 + h3, h1 + h2 { margin-top: .6em; }
p, ul, ol, table, pre, figure, dl { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: .35em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
small { color: var(--muted); }

code, kbd, samp { font-family: var(--font-mono); font-size: .92em; }
code { background: var(--bg-3); border: 1px solid var(--line); border-radius: 3px; padding: .08em .38em; word-break: break-word; }
kbd { background: var(--bg-3); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; padding: .05em .45em; font-size: .85em; }
pre {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 14px 16px;
  overflow-x: auto;
  font-size: .9rem;
  line-height: 1.5;
}
pre code { background: none; border: 0; padding: 0; font-size: inherit; word-break: normal; }
.copy {
  position: absolute; top: 8px; right: 8px;
  font: 600 .75rem var(--font-body);
  padding: 4px 9px;
  background: var(--bg-3); color: var(--muted);
  border: 1px solid var(--line-2); cursor: pointer;
}
.copy:hover { color: var(--text); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 12px; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.skip:focus { left: var(--gutter); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 18, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 64px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--font-head); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .95rem; line-height: 1.1; }
.brand:hover { color: var(--text); }
.brand img { width: 36px; height: 36px; }
.brand small { display: block; font-weight: 500; color: var(--muted); letter-spacing: .22em; font-size: .6rem; margin-top: 3px; }
.site-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav li { margin: 0; }
.site-nav a { display: block; padding: 8px 11px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- hero: the one 36-degree cut ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 56px 0 52px;
  background: linear-gradient(36deg, var(--bg-2) 0 50%, var(--bg) 50% 100%);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: -30% -10%; pointer-events: none;
  background: linear-gradient(36deg, transparent 49.75%, var(--accent) 49.75% 50.05%, transparent 50.05%);
  opacity: .85;
}
.hero.deck { background: linear-gradient(36deg, #0f1a2a 0 50%, var(--bg) 50% 100%); }
.hero.deck::before { background: linear-gradient(36deg, transparent 49.75%, var(--deck) 49.75% 50.05%, transparent 50.05%); }
.hero .wrap { position: relative; display: grid; gap: 28px; align-items: center; }
@media (min-width: 760px) { .hero .wrap { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; } }
.hero h1 { margin-bottom: .35em; }
.hero .lede { font-size: 1.15rem; color: var(--muted); max-width: 56ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero .art { justify-self: center; width: min(100%, 320px); }
.hero .art img { width: 100%; }
.hero .art.icon img { width: 72%; margin: 0 auto; filter: drop-shadow(0 18px 40px rgba(77, 163, 255, .25)); }
.eyebrow { font-family: var(--font-head); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.hero.deck .eyebrow { color: var(--deck); }

/* ---------- buttons and pills ---------- */
.btn {
  display: inline-block; padding: 11px 20px;
  background: var(--accent); color: var(--accent-ink);
  font: 600 .95rem var(--font-head); text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 8px, 100% 100%, 0 100%);
}
.btn:hover { background: var(--accent-soft); color: var(--accent-ink); }
.btn.ghost { background: var(--bg-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { background: var(--line); color: #fff; }
.btn.deck { background: var(--deck); color: #061120; }
.btn.deck:hover { background: var(--deck-soft); }
.pill { display: inline-block; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border: 1px solid var(--line-2); color: var(--muted); border-radius: 999px; vertical-align: middle; }
.pill.soon { border-color: rgba(77, 163, 255, .6); color: var(--deck-soft); }
.pill.todo { border-color: rgba(255, 122, 31, .6); color: var(--accent-soft); }

/* ---------- sections and cards ---------- */
.section { padding: 44px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section > .wrap > h2:first-child { margin-top: 0; }
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); list-style: none; padding: 0; margin: 0; }
.cards li { margin: 0; }
.card {
  position: relative; height: 100%;
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 22px 22px 20px;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut-h), 100% 100%, 0 100%);
}
.card::after {
  content: ""; position: absolute; left: calc(100% - var(--cut)); top: 0;
  width: 27.2px; height: 2px; background: var(--accent);
  transform-origin: 0 0; transform: rotate(36deg);
}
.card.deck::after { background: var(--deck); }
.card h2, .card h3 { margin-top: 0; font-size: 1.2rem; }
.card p { color: var(--muted); font-size: .97rem; }
.card p:last-child { margin-bottom: 0; }
.card .pill { margin-bottom: 12px; }
.card a.more { font-weight: 600; text-decoration: none; }
.card a.more::after { content: " \2192"; }

/* ---------- support (docs) layout ---------- */
.docs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 28px var(--gutter) 56px; }
.docs-nav h2 { font-size: .74rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin: 0 0 10px; }
.docs-nav ul { list-style: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
.docs-nav li { margin: 0; flex: 0 0 auto; }
.docs-nav a { display: block; padding: 8px 12px; white-space: nowrap; color: var(--muted); text-decoration: none; border: 1px solid var(--line); background: var(--bg-2); font-size: .92rem; }
.docs-nav a:hover { color: var(--text); border-color: var(--line-2); }
.docs-nav a[aria-current="page"] { color: var(--text); border-color: var(--deck); box-shadow: inset 3px 0 0 var(--deck); }
@media (min-width: 900px) {
  .docs { grid-template-columns: 236px minmax(0, 1fr); gap: 52px; }
  .docs-nav { position: sticky; top: 84px; align-self: start; }
  .docs-nav ul { flex-direction: column; overflow: visible; margin: 0; padding: 0; }
  .docs-nav a { white-space: normal; }
}
.docs-main { max-width: 78ch; min-width: 0; }
.docs-main > h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.lede { font-size: 1.12rem; color: var(--muted); }
.toc { font-size: .92rem; background: var(--bg-2); border: 1px solid var(--line); padding: 12px 16px 12px 32px; margin: 0 0 1.6em; columns: 2; column-gap: 24px; }
.toc li { break-inside: avoid; }
@media (max-width: 600px) { .toc { columns: 1; } }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; margin: 0; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-3); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

/* ---------- callouts and badges ---------- */
.note, .warn, .tip { border-left: 3px solid var(--deck); background: var(--bg-2); padding: 12px 16px; margin: 0 0 1.2em; }
.note > :last-child, .warn > :last-child, .tip > :last-child { margin-bottom: 0; }
.warn { border-left-color: var(--bad); }
.tip { border-left-color: var(--ok); }
.badge { display: inline-block; font: 700 .7rem/1 var(--font-mono); letter-spacing: .06em; padding: 4px 7px; background: #2a1618; color: #ffb4b8; border: 1px solid #5a2a2e; border-radius: 3px; vertical-align: middle; white-space: nowrap; }
.badge.ok { background: #122417; color: #9be0a8; border-color: #244d2e; }
.badge.info { background: #10203a; color: #9ccaff; border-color: #234a7a; }

/* ---------- steps ---------- */
ol.steps { counter-reset: s; list-style: none; padding: 0; }
ol.steps > li { counter-increment: s; position: relative; padding-left: 46px; margin-bottom: 1.1em; min-height: 32px; }
ol.steps > li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; display: grid; place-items: center;
  background: var(--bg-3); border: 1px solid var(--line-2);
  font: 700 .9rem var(--font-head); color: var(--accent-soft);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 6.5px, 100% 100%, 0 100%);
}
.deck-pages ol.steps > li::before { color: var(--deck-soft); }

/* ---------- key list (overview) ---------- */
.keys { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); list-style: none; padding: 0; margin: 0 0 1.5em; }
.keys li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; background: var(--bg-2); border: 1px solid var(--line); padding: 12px 14px; margin: 0; }
.keys img { width: 40px; height: 40px; padding: 8px; background: #1b1f2a; border-radius: 6px; }
.keys b { display: block; font-family: var(--font-head); font-size: .95rem; }
.keys span { color: var(--muted); font-size: .88rem; }

/* ---------- screenshots ---------- */
.shot { margin: 1.5em 0; }
.shot img { border: 1px solid var(--line); background: var(--bg-2); }
.shot figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.shot.todo .frame {
  aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center;
  padding: 16px; color: var(--muted); font-size: .9rem;
  border: 1px dashed var(--line-2);
  background: repeating-linear-gradient(36deg, var(--bg-2) 0 14px, var(--bg) 14px 28px);
}
.shot.todo .frame b { display: block; color: var(--text); font-family: var(--font-head); margin-bottom: 6px; }
.shot.todo .frame code { font-size: .78rem; }
.shotlist { border: 1px solid var(--line); background: var(--bg-2); padding: 18px 20px; margin: 2.6em 0 0; }
.shotlist h2 { margin-top: 0; font-size: 1.1rem; }
.shotlist p { font-size: .92rem; color: var(--muted); }
.shotlist ol { padding-left: 1.3em; margin: 0; font-size: .95rem; }
.shotlist li { margin-bottom: .6em; }
.shotlist code { font-size: .8rem; }

/* ---------- placeholders (game page, logo) ---------- */
.ph { border: 1px dashed var(--line-2); color: var(--muted); padding: 14px 16px; background: repeating-linear-gradient(36deg, var(--bg-2) 0 14px, var(--bg) 14px 28px); font-size: .95rem; }
.ph b { color: var(--text); }
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin: 0 0 1.4em; }
.gallery .ph { aspect-ratio: 16 / 10; display: grid; place-items: center; text-align: center; }
.ph.square { aspect-ratio: 1; display: grid; place-items: center; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); margin-top: 48px; padding: 30px 0 40px; color: var(--muted); font-size: .88rem; }
.site-foot .wrap { display: grid; gap: 14px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-foot li { margin: 0; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--text); }
.site-foot .legal { font-size: .8rem; max-width: 80ch; }
.slash { height: 3px; width: 72px; background: linear-gradient(36deg, transparent 0 20%, var(--accent) 20% 80%, transparent 80%); margin-bottom: 4px; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero { padding: 40px 0 36px; }
  .hero .art { width: min(100%, 200px); }
  .card { padding: 18px 18px 16px; }
}
@media print {
  .site-head, .site-foot, .docs-nav, .copy { display: none; }
  body { background: #fff; color: #000; }
}
