/* Studio Chahut: site styles (designs validated 23-24 Nov 2026).
   Colours: "Ink + 35% plum". Headings Space Grotesk, text Inter. Square corners. */

@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/space-grotesk-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #17111c;        /* page */
  --surf: #231b2a;      /* panels, cards */
  --surf2: #30253b;     /* buttons */
  --line: rgba(255, 255, 255, .10);
  --text: #f5efec;
  --muted: #b9adb3;
  --accent: #f29111;    /* logo orange */
  --radius: 2px;
  --wrap: 1200px;
  --head: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { filter: brightness(1.12); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
h2 { font-size: 30px; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
svg { fill: currentColor; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px var(--head); letter-spacing: -0.02em; }
.brand img { width: 48px; height: 48px; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--text); }
.nav a[aria-current] { color: var(--text); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; font-weight: 700; font-size: 16px; text-decoration: none; border-radius: var(--radius); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-accent { background: var(--accent); color: var(--bg); }
.btn-ghost { border: 2px solid rgba(255, 255, 255, .7); color: #fff; padding: 12px 22px; }
.btn-discord { background: #5865f2; color: #fff; }
.btn-small { padding: 12px 22px; align-self: flex-start; }
.icons { display: flex; flex-wrap: wrap; gap: 10px; }
.icon-btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--surf2); border-radius: var(--radius); }
.icon-btn svg { width: 20px; height: 20px; }

/* Sections */
.section { padding-top: 64px; padding-bottom: 64px; }
.section-title { margin-bottom: 24px; }
.panel { background: var(--surf); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prose p { font-size: 18px; line-height: 1.7; color: var(--muted); margin-bottom: 14px; }
.prose h2 { margin-bottom: 18px; }

/* Home */
.intro { display: flex; flex-wrap: wrap; align-items: center; gap: 44px; padding-top: 56px; padding-bottom: 64px; }
.intro-logo { width: 210px; flex: none; }
.intro-text { flex: 1 1 300px; display: flex; flex-direction: column; gap: 16px; }
.intro h1 { font-size: 40px; }
.intro p { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 620px; }
.intro .icons { margin-top: 6px; }
.games { display: flex; flex-direction: column; gap: 28px; padding-bottom: 72px; }
.game-card { display: flex; flex-wrap: wrap; background: var(--surf); text-decoration: none; border-radius: var(--radius); overflow: hidden; }
.game-card img { flex: 1 1 560px; min-width: 0; width: 100%; align-self: center; }
.game-card-text { flex: 1 1 340px; padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.game-card h3 { font-size: 30px; }
.game-card p { font-size: 16px; line-height: 1.65; color: var(--muted); }
.contact { padding: 60px 32px 64px; }
.contact-in { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.contact h2 { text-align: center; }
.link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.link-btn { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--surf2); text-decoration: none; font-weight: 600; font-size: 16px; border-radius: var(--radius); }
.link-btn svg { width: 20px; height: 20px; flex: none; }
.mail-big { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px; background: var(--accent); color: var(--bg); text-decoration: none; font-weight: 700; font-size: 18px; border-radius: var(--radius); }
.mail-big svg { width: 20px; height: 20px; }

/* Game pages */
.game-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding-top: 48px; }
.game-hero h1 { flex: 1 1 620px; min-width: 0; }
.game-hero h1 img { width: 100%; border-radius: var(--radius); }
.game-hero-text { flex: 1 1 320px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.tagline { font: 700 28px/1.2 var(--head); letter-spacing: -0.02em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.meta { font-size: 14px; color: var(--muted); }
.features { display: flex; flex-direction: column; gap: 56px; padding-bottom: 72px; }
.feature { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.feature img { flex: 1 1 480px; min-width: 0; width: 100%; border-radius: var(--radius); }
.feature:nth-child(even) img { order: 2; }
.feature-text { flex: 1 1 320px; display: flex; flex-direction: column; gap: 12px; order: 1; }
.feature h3 { font-size: 26px; color: var(--accent); }
.feature p { font-size: 17px; line-height: 1.65; color: var(--muted); }
.band { padding: 48px 32px; }
.band-in { max-width: var(--wrap); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.band-in > div:first-child { flex: 1 1 360px; }
.band h2 { font-size: 28px; margin-bottom: 8px; }
.band-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.press { display: flex; flex-wrap: wrap; gap: 40px; }
.facts { flex: 1 1 520px; margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; font-size: 16px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.press-box { flex: 1 1 320px; align-self: flex-start; background: var(--surf); padding: 28px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 16px; }
.press-box p { color: var(--muted); line-height: 1.6; }
.press-box .small { font-size: 14px; }
.press-box .js-mail { color: var(--text); font-weight: 600; text-decoration: none; }
.support { border-top: 1px solid var(--line); padding: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; font-size: 14px; color: var(--muted); }
.support img { height: 52px; width: auto; }
.two-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.video-label { display: block; margin-top: 10px; font-weight: 600; font-size: 15px; color: var(--muted); }
.about { display: flex; flex-wrap: wrap; gap: 48px; }
.about > div:first-child { flex: 1 1 520px; }
.about-side { flex: 1 1 320px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.about-side h2 { font-size: 26px; }
.credits { font-size: 15px; color: var(--muted); margin-top: 8px; }
.credits strong { color: var(--text); }

/* Video (click to load) */
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video img { opacity: .8; }
.video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: var(--radius); background: var(--accent); cursor: pointer; }
.video-play svg { width: 30px; height: 30px; fill: var(--bg); }
.video-play:hover { filter: brightness(1.1); }
.video-note { position: absolute; right: 12px; bottom: 10px; font-size: 12px; color: rgba(255, 255, 255, .75); }

/* Galleries */
.gallery { display: grid; gap: 12px; }
.gallery.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.gallery.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery a { display: block; }
.gallery img, .loops video { width: 100%; border-radius: var(--radius); }
.loops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lightbox { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(10, 6, 14, .94); cursor: zoom-out; }
.lightbox img { max-height: 92vh; width: auto; border-radius: var(--radius); }

/* Legal, 404 */
.legal h1 { font-size: 32px; margin-bottom: 10px; }
.legal h2 { font-size: 18px; margin: 28px 0 8px; }
.legal p { font-size: 15px; line-height: 1.7; color: var(--muted); margin-bottom: 8px; }
.legal .en { font-size: 14px; font-style: italic; }
.notfound { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 96px; padding-bottom: 96px; }
.notfound img { width: 120px; transform: rotate(-12deg); }
.notfound .code { font-size: 14px; font-weight: 700; letter-spacing: .08em; color: var(--accent); }
.notfound h1 { font-size: 40px; }

/* Devlog */
.devlog-head h1 { font-size: 40px; margin-bottom: 8px; }
.devlog-head p { font-size: 18px; color: var(--muted); margin-bottom: 32px; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; background: var(--surf); text-decoration: none; border-radius: var(--radius); overflow: hidden; }
.post-card-text { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.post-meta { font-size: 13px; color: var(--muted); }
.post-meta .tag { color: var(--accent); font-weight: 700; }
.post-card h3 { font-size: 21px; line-height: 1.25; }
.post-card p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.article { padding-top: 48px; padding-bottom: 72px; }
.article .back { font-size: 14px; color: var(--muted); text-decoration: none; }
.article .post-meta { margin: 24px 0 10px; font-size: 14px; }
.article h1 { font-size: 42px; line-height: 1.12; margin-bottom: 24px; }
.article .cover { width: 100%; border-radius: var(--radius); margin-bottom: 32px; }
.article p { font-size: 18px; line-height: 1.75; color: #ded5e2; margin-bottom: 18px; }
.article h2 { font-size: 26px; margin: 36px 0 14px; }
.article figure { margin: 32px 0; }
.article figure img { width: 100%; border-radius: var(--radius); }
.article figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.article blockquote { margin: 32px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); font: 700 22px/1.45 var(--head); }
.article-end { margin-top: 48px; padding: 28px; background: var(--surf); border-radius: var(--radius); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.article-end p { margin: 0; font-size: 17px; color: var(--text); flex: 1 1 300px; }

/* Footer */
.site-footer { padding: 26px 16px; text-align: center; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }

/* Phones */
@media (max-width: 640px) {
  .wrap, .band, .contact { padding-left: 16px; padding-right: 16px; }
  .header-in { padding-top: 8px; padding-bottom: 8px; }
  .brand-name, .nav-contact { display: none; }
  .brand img { width: 40px; height: 40px; }
  .nav { gap: 16px; }
  .nav a { font-size: 14px; }
  .intro { padding-top: 28px; padding-bottom: 40px; gap: 20px; justify-content: center; text-align: center; }
  .intro-logo { width: 120px; }
  .intro h1 { font-size: 26px; }
  .intro p { font-size: 17px; }
  .intro .icons { justify-content: center; }
  .game-card-text { padding: 22px 20px 26px; }
  .game-card h3 { font-size: 26px; }
  .game-hero-text { align-items: center; text-align: center; }
  .game-hero .cta { justify-content: center; }
  .feature { gap: 16px; }
  .feature:nth-child(even) img { order: 0; }
  .gallery.cols-5, .gallery.cols-3, .loops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 10px; }
  .article h1 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
