/* ShitHouseGaming – publisher website
   Layout: landing page with a two-orc hero that bleeds into the studio backdrop of the renders, an asset index,
   and one detail page per asset (hero, gallery with lightbox, features, specs, setup, limitations).
   Look: the charcoal studio backdrop of the renders, bone-white type, moss green from the key images,
   gold from the logo frame for small highlights. */

/* Fonts are self-hosted (SIL Open Font License, see fonts/OFL-*.txt): no requests to Google servers. */
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/poppins-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #1f2024;          /* studio backdrop of the renders */
  --bg-deep: #18191c;
  --bg-raised: #27292f;
  --line: #383b43;
  --fg: #ece8df;          /* bone white */
  --fg-muted: #a7a59e;
  --accent: #9cc261;      /* moss green of the key images */
  --accent-ink: #172006;
  --gold: #e0b45e;        /* logo frame */
  --font-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --step--1: 0.875rem; --step-0: 1rem; --step-1: 1.25rem; --step-2: 1.6rem; --step-3: clamp(1.9rem, 3.4vw, 2.5rem); --step-4: clamp(2.5rem, 5.6vw, 4.3rem);
  --wrap: 1180px;
  --radius: 10px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 var(--step-0)/1.65 var(--font-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--fg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; text-wrap: balance; margin: 0; }
p { margin: 0; max-width: 66ch; }
code { font-family: var(--font-mono); font-size: 0.88em; color: var(--fg); background: var(--bg-raised); padding: 1px 5px; border-radius: 4px; }
ul { margin: 0; }

.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- header with asset tabs ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg-deep); }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg-deep) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--gold); }
.brand span { font: 600 1.05rem/1 var(--font-display); }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; min-width: 0; margin-left: auto; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none; color: var(--fg-muted); text-decoration: none; font-size: var(--step--1); font-weight: 500;
  padding: 9px 12px; border-radius: 8px; white-space: nowrap;
}
.tabs a:hover { color: var(--fg); background: var(--bg-raised); }
.tabs a[aria-current="page"] { color: var(--fg); background: var(--bg-raised); box-shadow: inset 0 -2px 0 var(--accent); }

/* ---------- shared bits ---------- */
.eyebrow { font: 500 0.78rem/1.4 var(--font-mono); color: var(--accent); letter-spacing: 0.07em; text-transform: uppercase; }
.lead { font-size: var(--step-1); color: var(--fg-muted); line-height: 1.55; }
.muted { color: var(--fg-muted); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; font: 600 0.95rem/1 var(--font-body); padding: 13px 18px; border-radius: 9px;
  border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--fg); filter: none; }
.btn.static { background: transparent; color: var(--fg-muted); border: 1px dashed var(--line); cursor: default; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font: 500 0.74rem/1 var(--font-mono); padding: 6px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg-muted); letter-spacing: 0.03em; white-space: nowrap; }
.chip.status { border-color: var(--accent); color: var(--accent); }
.chip.free { border-color: var(--gold); color: var(--gold); }
section { padding-block: 72px; }
.section-head { display: grid; gap: 10px; margin-bottom: 32px; }
.section-head h2 { font-size: var(--step-3); font-weight: 600; }
.band { background: var(--bg-deep); border-block: 1px solid var(--line); }

/* ---------- landing hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse 55% 85% at 74% 55%, #2c2c30 0%, var(--bg) 70%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 8px; align-items: center; min-height: 640px; }
.hero-copy { display: grid; gap: 22px; padding-block: 64px; position: relative; z-index: 2; }
.hero h1 { font-size: var(--step-4); font-weight: 700; letter-spacing: -0.015em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-art { position: relative; align-self: end; display: grid; grid-template-columns: 1fr 1fr; margin: 0; max-width: 560px; justify-self: end; padding-top: 24px; }
.hero-art img {
  width: 100%; aspect-ratio: 660 / 1280; object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 62%, transparent 100%);
}
.hero-art img + img { margin-left: -14%; }
.hero-art img:first-child { position: relative; z-index: 1; }
.hero-art figcaption { position: absolute; bottom: 18px; right: 40px; font: 500 0.72rem/1 var(--font-mono); color: var(--fg-muted); letter-spacing: 0.05em; }

/* ---------- asset cards (landing) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card-asset {
  display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--bg-raised); color: var(--fg); text-decoration: none; transition: border-color .15s, transform .15s;
}
.card-asset:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--fg); }
.card-asset img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card-body { display: grid; gap: 12px; padding: 20px; align-content: start; }
.card-body h3 { font-size: var(--step-1); font-weight: 600; }
.card-body p { color: var(--fg-muted); font-size: 0.95rem; }
.card-more { font-size: var(--step--1); font-weight: 600; color: var(--accent); margin-top: 4px; }

/* ---------- principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.principle { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 2px solid var(--accent); }
.principle h3 { font-size: var(--step-1); font-weight: 600; }
.principle p { color: var(--fg-muted); font-size: 0.95rem; }

/* ---------- about / contact teaser ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: start; }
.prose { display: grid; gap: 14px; align-content: start; }
.prose h2 { font-size: var(--step-3); font-weight: 600; }
.prose h3 { font-size: var(--step-1); font-weight: 600; margin-top: 10px; }
.prose p, .prose li { color: var(--fg-muted); }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: 6px; max-width: 66ch; }
.panel { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 14px; align-content: start; }
.panel h3 { font-size: var(--step-1); font-weight: 600; }
.mail { font: 500 1.05rem/1.3 var(--font-mono); color: var(--fg); word-break: break-all; user-select: all; }
.about-logo { width: 96px; height: 96px; border-radius: 16px; border: 1px solid var(--gold); }

/* ---------- product page ---------- */
.crumbs { font-size: var(--step--1); color: var(--fg-muted); padding-top: 28px; }
.crumbs a { color: var(--fg-muted); }
.p-hero .wrap { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 44px; align-items: center; padding-block: 28px 64px; }
.p-hero-art { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-deep); }
.p-hero-art img { width: 100%; }
.p-hero-copy { display: grid; gap: 18px; min-width: 0; }
.p-hero h1 { font-size: var(--step-3); font-weight: 700; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 4px 0 0; }
.facts div { background: var(--bg-raised); padding: 12px 14px; display: grid; gap: 2px; }
.facts dt { font: 500 0.7rem/1.3 var(--font-mono); color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.facts dd { margin: 0; font-size: 0.95rem; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gallery a { display: grid; gap: 8px; color: var(--fg-muted); text-decoration: none; font-size: var(--step--1); }
.gallery a:first-child { grid-column: 1 / -1; }
.gallery a:first-child img { aspect-ratio: 21 / 9; }
.gallery img { border-radius: 8px; border: 1px solid var(--line); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: border-color .15s; }
.gallery a:hover img { border-color: var(--accent); }
.gallery a:hover { color: var(--fg); }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; list-style: none; padding: 0; }
.features li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 12px; color: var(--fg-muted); }
.features li::before { content: ""; width: 8px; height: 8px; margin-top: 0.62em; border-radius: 2px; background: var(--accent); }
.features strong { color: var(--fg); font-weight: 600; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec-table th { width: 30%; padding-right: 20px; font: 500 0.74rem/1.5 var(--font-mono); color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.table-wrap { overflow-x: auto; }

.steps { counter-reset: step; display: grid; gap: 16px; list-style: none; padding: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; color: var(--fg-muted); }
.steps li::before { content: counter(step); width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--bg-raised); border: 1px solid var(--line); color: var(--accent); font: 600 0.9rem/1 var(--font-mono); }
.steps strong { color: var(--fg); }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.note-box { border-left: 3px solid var(--gold); background: var(--bg-raised); padding: 16px 18px; border-radius: 0 8px 8px 0; display: grid; gap: 8px; }
.note-box h3 { font-size: 1rem; font-weight: 600; }
.note-box p { color: var(--fg-muted); font-size: 0.95rem; }

.sibling { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 20px; align-items: center; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.sibling img { border-radius: 8px; aspect-ratio: 1; object-fit: cover; }
.sibling h3 { font-size: var(--step-1); font-weight: 600; }

/* lightbox */
dialog.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1600px, 96vw); max-height: 94vh; }
dialog.lightbox::backdrop { background: rgba(10, 10, 12, 0.88); }
dialog.lightbox img { max-height: 84vh; width: auto; margin-inline: auto; border-radius: 8px; }
dialog.lightbox .lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 4px 0; color: var(--fg); font-size: var(--step--1); }
dialog.lightbox button { font: 600 0.85rem/1 var(--font-body); background: var(--bg-raised); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; cursor: pointer; }

/* sub pages */
.page-head .wrap { padding-block: 56px 8px; display: grid; gap: 14px; }
.page-head h1 { font-size: var(--step-3); font-weight: 700; }
.placeholder { background: rgba(224, 180, 94, 0.15); color: var(--gold); padding: 0 4px; border-radius: 3px; }

/* footer */
.site-foot { border-top: 1px solid var(--line); background: var(--bg-deep); }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding-block: 34px; font-size: var(--step--1); color: var(--fg-muted); }
.site-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-foot a { color: var(--fg-muted); }
.site-foot a:hover { color: var(--fg); }

@media (max-width: 900px) {
  .hero .wrap, .p-hero .wrap, .split, .two-col { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { min-height: 0; }
  .hero-copy { padding-block: 44px 0; }
  .hero-art { margin-right: 0; max-width: 520px; justify-self: center; }
  .cards, .principles { grid-template-columns: minmax(0, 1fr); }
  .features { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  section { padding-block: 52px; }
  .sibling { grid-template-columns: 80px minmax(0, 1fr); }
  .sibling .btn { grid-column: 1 / -1; justify-content: center; }
  .site-head .wrap { flex-wrap: wrap; gap: 8px; }
  .tabs { margin-left: 0; width: 100%; }
}
@media (max-width: 560px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .spec-table th { width: 38%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- portfolio ---------- */
.principles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 22px; }
.work a { color: inherit; text-decoration: none; }
.work a.wide { grid-column: 1 / -1; }
.work figure { margin: 0; display: grid; gap: 12px; }
.work img { width: 100%; border-radius: 8px; border: 1px solid var(--line); transition: border-color .15s; }
.work a:hover img { border-color: var(--accent); }
.work figcaption { display: grid; gap: 4px; }
.work figcaption strong { font: 600 1.05rem/1.3 var(--font-display); color: var(--fg); }
.work figcaption span { color: var(--fg-muted); font-size: 0.95rem; max-width: 66ch; }
@media (max-width: 900px) {
  .principles.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) { .principles.four { grid-template-columns: minmax(0, 1fr); } }
