:root {
  --wood:   #0c0d10;   
  --wood-2: #16181d;   
  --wood-3: #23262d;
  --cream:  #eef1f4;   
  --cream-d:#a7adb8;   
  --gold:   #cfd6df;   
  --gold-d: #828b98;
  --crimson:#e5484d;    
  --crimson-d:#b02f33;
  --terra:  #e5484d;
  --ember:  #e0813a;
  --sky:    #8fc3e6;
  --grass:  #4fae86;   
  --shadow: #030405;   

  --wrap: 1120px;
  --ff-display: "Press Start 2P", "Courier New", monospace;
  --ff-body: "Pixelify Sans", "Trebuchet MS", sans-serif;
  --hero-img: url("assets/img/scene-snow.jpg");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--wood);
  color: var(--cream);
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.62;
  image-rendering: pixelated;
  overflow-x: hidden;
}

.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px);
  mix-blend-mode: multiply;
}

img { max-width: 100%; height: auto; display: block; image-rendering: pixelated; }
a { color: inherit; }

h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 400; line-height: 1.35; margin: 0; letter-spacing: 0; }
.sigil { width: 100%; height: 100%; overflow: visible; }

.btn {
  display: inline-block; font-family: var(--ff-display); font-size: .62rem; line-height: 1.5;
  color: #fff; background: var(--crimson); padding: 1.05em 1.5em; border: none;
  text-decoration: none; box-shadow: 5px 5px 0 var(--shadow);
  transition: transform .06s steps(2), box-shadow .06s steps(2), background .1s;
}
.btn:hover  { background: #ec5f63; transform: translate(2px,2px); box-shadow: 3px 3px 0 var(--shadow); }
.btn:active { transform: translate(5px,5px); box-shadow: 0 0 0 var(--shadow); }
.btn-ghost { background: var(--wood-2); color: var(--cream); box-shadow: 5px 5px 0 var(--shadow), inset 0 0 0 3px var(--gold); }
.btn-ghost:hover { background: var(--wood-3); color: var(--gold); }
.btn-sm { font-size: .5rem; padding: .8em 1.1em; box-shadow: 4px 4px 0 var(--shadow); }
.btn-sm:hover { box-shadow: 2px 2px 0 var(--shadow); }

.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1rem, 4vw, 2.5rem); background: transparent;
  border-bottom: none; box-shadow: none;
}
.wordmark { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--cream); font-family: var(--ff-display); font-size: .82rem; text-shadow: 2px 2px 0 var(--shadow); }
.wordmark .sigil { width: 30px; height: 30px; }
.topnav { display: flex; align-items: center; gap: clamp(.8rem, 2.2vw, 1.8rem); }
.topnav a { text-decoration: none; color: var(--cream-d); font-size: 1rem; font-weight: 600; transition: color .12s; }
.topnav a:hover { color: var(--gold); }

.hero {
  position: relative; overflow: hidden; min-height: 90vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 5rem 1.5rem 7rem;
  background: linear-gradient(rgba(4,5,7,.40), rgba(2,3,4,.80)), var(--hero-img) center 40% / cover no-repeat;
  image-rendering: pixelated;
}
.hero-emblem { display: none; }
.hero-inner { position: relative; max-width: 780px; }
.hero-logo {
  display: block; width: min(90%, 560px); margin: 0 auto 1rem; height: auto;
  image-rendering: auto;
  box-shadow: 0 0 0 4px var(--shadow), 0 0 0 8px var(--gold), 0 0 0 12px var(--shadow), 10px 12px 0 rgba(0,0,0,.4);
}
.hero-kicker { font-family: var(--ff-display); color: var(--gold); font-size: .6rem; margin: 0 0 1.8rem; text-shadow: 2px 2px 0 var(--shadow); }
.hero-title { font-family: var(--ff-display); font-size: clamp(1.8rem, 6.5vw, 4.2rem); line-height: 1.25; color: var(--cream); text-shadow: 4px 4px 0 var(--shadow), 8px 8px 0 rgba(0,0,0,.35); margin: 0; }
.hero-tagline { font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: var(--cream); font-weight: 500; max-width: 34ch; margin: 1.8rem auto 2.4rem; text-shadow: 2px 2px 0 var(--shadow); }
.hero-actions { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; }
.steam-cta {
  display: inline-flex; align-items: center; gap: .8rem;
  font-family: var(--ff-display); font-size: clamp(.85rem, 2.4vw, 1.3rem);
  color: var(--cream); text-decoration: none; text-shadow: 3px 3px 0 var(--shadow);
  padding: .3em 0; transition: color .12s, transform .08s steps(2);
}
.steam-cta:hover { color: var(--crimson); transform: translateY(-2px); }
.steam-ico { width: 1.5em; height: 1.5em; display: inline-block; }
.steam-ico .sigil { width: 100%; height: 100%; }
.steam-logo { height: 1.5em; width: auto; display: inline-block; vertical-align: middle; image-rendering: auto; }
.hero-sub { margin-top: 1.6rem; display: flex; justify-content: center; }
.hero-release { margin-top: 2.2rem; color: var(--cream); font-size: 1rem; font-weight: 600; text-shadow: 1px 1px 0 var(--shadow); }
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(to bottom, transparent, var(--wood)); }

main > section { padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.25rem, 4vw, 3rem); }
.rule { width: var(--wrap); max-width: 100%; margin: 0 auto clamp(2.5rem,6vw,4rem); height: 4px; background: repeating-linear-gradient(to right, var(--gold) 0 12px, transparent 12px 20px); }
.section-head { max-width: var(--wrap); margin: 0 auto clamp(2rem,5vw,3rem); }
.section-head h2 { font-size: clamp(1.1rem, 3.2vw, 1.9rem); color: var(--gold); text-shadow: 3px 3px 0 var(--shadow); line-height: 1.4; }
.section-head p { color: var(--cream-d); font-size: 1.1rem; max-width: 52ch; margin: 1.2rem 0 0; }

.world { background: var(--wood-2); border-block: 4px solid var(--shadow); }
.world-grid { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
.world-lead h2 { font-size: clamp(1.2rem, 4vw, 2.4rem); color: var(--gold); line-height: 1.4; text-shadow: 3px 3px 0 var(--shadow); }
.world-body p { font-size: 1.18rem; margin: 0 0 1.3rem; }
.world-body p:last-child { color: var(--cream-d); }

.features-grid { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.feature { background: var(--wood-2); padding: 2rem 1.6rem; box-shadow: 6px 6px 0 var(--shadow), inset 0 0 0 3px var(--gold-d); }
.feature-sigil { width: 48px; height: 48px; margin-bottom: 1.2rem; color: var(--gold); }
.feature h3 { font-size: .82rem; line-height: 1.5; margin-bottom: 1rem; color: var(--cream); }
.feature p { color: var(--cream-d); font-size: 1.05rem; margin: 0; }

.roster { max-width: var(--wrap); margin: 0 auto; display: flex; flex-direction: column; gap: 1.8rem; }
.hero-card { display: grid; grid-template-columns: 190px 1fr; gap: clamp(1.4rem,4vw,3rem); align-items: center; padding: clamp(1.5rem, 3vw, 2.2rem); background: var(--wood-2); box-shadow: 6px 6px 0 var(--shadow), inset 0 0 0 3px var(--tint); }
.hero-card:nth-child(even) { direction: rtl; }
.hero-card:nth-child(even) > * { direction: ltr; }
.hero-portrait { aspect-ratio: 1; width: 100%; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--tint) 30%, transparent), transparent 72%), var(--wood); box-shadow: 0 0 0 4px var(--shadow), 0 0 0 8px var(--tint); overflow: hidden; }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.hero-sigil { width: 56%; height: 56%; color: var(--tint); }
.hero-meta h3 { font-size: clamp(.95rem, 3vw, 1.5rem); color: var(--cream); text-shadow: 2px 2px 0 var(--shadow); }
.hero-class { font-family: var(--ff-display); color: var(--tint); font-size: .55rem; margin: .8rem 0 1.1rem; }
.hero-blurb { color: var(--cream-d); margin: 0; max-width: 60ch; font-size: 1.08rem; }

.media-frame { max-width: var(--wrap); margin: 0 auto; }
.media-placeholder { aspect-ratio: 16/9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; background: repeating-conic-gradient(var(--wood-2) 0 25%, var(--wood-3) 0 50%) 0 0 / 40px 40px; box-shadow: 0 0 0 4px var(--shadow), 0 0 0 8px var(--gold), 0 0 0 12px var(--shadow); color: var(--cream-d); }
.media-placeholder .sigil { width: 48px; height: 48px; color: var(--gold); }
.media-placeholder p { font-family: var(--ff-display); font-size: .7rem; margin: .6rem 0 0; color: var(--cream); }
.media-placeholder span { font-size: .95rem; }
.media-frame iframe, .media-frame img { width: 100%; aspect-ratio: 16/9; display: block; object-fit: cover; box-shadow: 0 0 0 4px var(--shadow), 0 0 0 8px var(--gold), 0 0 0 12px var(--shadow); }
.media-frame video { width: 100%; height: auto; display: block; image-rendering: auto; box-shadow: 0 0 0 4px var(--shadow), 0 0 0 8px var(--gold), 0 0 0 12px var(--shadow); }
.shots { max-width: var(--wrap); margin: clamp(1.6rem,4vw,2.4rem) auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.8rem,2vw,1.4rem); }
.shot img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; box-shadow: 0 0 0 3px var(--shadow), 0 0 0 6px var(--gold-d); transition: transform .1s steps(2); }
.shot img:hover { transform: translateY(-3px); box-shadow: 0 0 0 3px var(--shadow), 0 0 0 6px var(--gold); }
@media (max-width: 700px) { .shots { grid-template-columns: 1fr; } }

.join { background: var(--wood-2); border-block: 4px solid var(--shadow); overflow: hidden; }
.join-inner { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.join-copy { text-align: left; }
.join-inner h2 { font-size: clamp(1.3rem,4vw,2.4rem); color: var(--gold); text-shadow: 3px 3px 0 var(--shadow); line-height: 1.4; }
.join-copy > p { color: var(--cream-d); margin: 1.4rem 0 2rem; max-width: 42ch; font-size: 1.12rem; }
.join-form { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.join-form input[type=email] { flex: 1 1 260px; min-width: 0; background: var(--wood); border: none; box-shadow: inset 0 0 0 3px var(--gold-d); color: var(--cream); font-family: var(--ff-body); font-weight: 600; font-size: 1.05rem; padding: .95em 1.1em; }
.join-form input[type=email]:focus { outline: none; box-shadow: inset 0 0 0 3px var(--gold); }
.join-form input[type=email]::placeholder { color: #6b7a8c; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.join-alt { display: flex; gap: .8rem; flex-wrap: wrap; }
.join-art { display: flex; align-items: center; justify-content: center; }
.join-art img { width: min(100%, 320px); height: auto; image-rendering: pixelated; filter: drop-shadow(8px 10px 0 rgba(0,0,0,.45)); }
.flash { font-family: var(--ff-display); font-size: .58rem; line-height: 1.6; margin: 0 0 1.4rem; padding: 1em 1.3em; display: inline-block; box-shadow: 4px 4px 0 var(--shadow); }
.flash-ok  { color: var(--wood); background: var(--grass); }
.flash-bad { color: var(--cream); background: var(--terra); }

.kickstarter { background: var(--wood-2); border-block: 4px solid var(--shadow); }
.ks-inner { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(2rem,6vw,4.5rem); align-items: center; }
.ks-box { display: flex; justify-content: center; }
.ks-box img { width: min(100%, 360px); height: auto; image-rendering: auto; box-shadow: 10px 12px 0 rgba(0,0,0,.5); transition: transform .12s steps(2); }
.ks-box img:hover { transform: translateY(-4px) rotate(-.5deg); }
.ks-copy h2 { font-size: clamp(1.3rem,4vw,2.4rem); color: var(--gold); text-shadow: 3px 3px 0 var(--shadow); line-height: 1.4; }
.ks-kicker { font-family: var(--ff-display); font-size: .58rem; color: var(--cream-d); margin: 0 0 1rem; }
.ks-logo { width: min(100%, 380px); height: auto; image-rendering: auto; display: block; }
.btn-ks { background: #00d075; color: #04240f; display: inline-flex; align-items: center; gap: .7em; }
.btn-ks:hover { background: #1ae08a; }
.ks-k { height: 1.4em; width: auto; image-rendering: auto; }
.ks-copy p { color: var(--cream-d); font-size: 1.14rem; margin: 1.4rem 0 2rem; max-width: 46ch; }
@media (max-width: 860px) { .ks-inner { grid-template-columns: 1fr; text-align: center; } .ks-copy p { margin-inline: auto; } .ks-logo { margin-inline: auto; } .ks-box img { width: min(70%, 300px); } }

.studio { background: var(--wood); }
.studio-grid { max-width: 860px; margin: 0 auto; display: grid; grid-template-columns: 88px 1fr; gap: clamp(1.4rem,4vw,2.6rem); align-items: center; }
.studio-mark { width: 96px; height: 96px; color: var(--gold); }
.brandmark { image-rendering: auto; display: block; }
.studio-mark .brandmark { width: 100%; height: auto; }
.footer-brand .brandmark { width: 56px; height: auto; margin-bottom: .6rem; }
.studio-body h2 { font-size: .95rem; line-height: 1.5; color: var(--gold); margin-bottom: 1.1rem; text-shadow: 2px 2px 0 var(--shadow); }
.studio-body p { color: var(--cream-d); margin: 0; font-size: 1.1rem; }

.footer { background: var(--wood); border-top: 4px solid var(--shadow); box-shadow: 0 -4px 0 var(--gold-d); padding: clamp(2.5rem,6vw,4rem) clamp(1.25rem,4vw,3rem) 2rem; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1fr auto auto; gap: 2.5rem; align-items: start; }
.footer-brand .sigil { width: 40px; height: 40px; color: var(--gold); margin-bottom: .8rem; }
.footer-game { font-family: var(--ff-display); font-size: .8rem; color: var(--cream); margin: 0; }
.footer-studio { color: var(--cream-d); margin: .6rem 0 0; font-size: 1rem; }
.footer-links, .footer-social { display: flex; flex-direction: column; gap: .7rem; }
.footer-links a, .footer-social a { color: var(--cream-d); text-decoration: none; font-size: 1rem; font-weight: 600; transition: color .12s; }
.footer-links a:hover, .footer-social a:hover { color: var(--gold); }
.copyright { max-width: var(--wrap); margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 3px solid var(--wood-3); color: #5f6b7a; font-size: .95rem; }

.press-hero { text-align: center; padding: clamp(3rem,7vw,5rem) 1.5rem clamp(2rem,4vw,3rem); }
.press-body { max-width: 900px; margin: 0 auto; padding: 0 clamp(1.25rem,4vw,2rem) clamp(4rem,8vw,6rem); }
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: clamp(2.5rem,5vw,3.5rem); }
.fact { background: var(--wood-2); padding: 1.4rem; box-shadow: 5px 5px 0 var(--shadow), inset 0 0 0 3px var(--gold-d); }
.fact h3 { font-family: var(--ff-display); font-size: .5rem; color: var(--gold); margin-bottom: .8rem; line-height: 1.5; }
.fact p { margin: 0; font-size: 1.05rem; }
.press-section { margin-bottom: clamp(2.5rem,5vw,3.5rem); }
.press-section h2 { font-size: 1rem; color: var(--gold); margin-bottom: 1.2rem; line-height: 1.5; text-shadow: 2px 2px 0 var(--shadow); }
.press-section p { margin: 0 0 1rem; }
.press-list { list-style: none; padding: 0; margin: 0; }
.press-list li { position: relative; padding-left: 1.8rem; margin-bottom: .9rem; color: var(--cream); }
.press-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; background: var(--gold); box-shadow: 2px 2px 0 var(--shadow); }
.press-heroes { display: flex; flex-direction: column; gap: 1.6rem; }
.press-hero-row { display: grid; grid-template-columns: 54px 1fr; gap: 1.3rem; align-items: start; padding: 1.3rem; background: var(--wood-2); box-shadow: inset 0 0 0 3px var(--tint); }
.press-hero-sigil { width: 54px; height: 54px; color: var(--tint); }
.press-hero-row h4 { font-family: var(--ff-display); font-size: .68rem; line-height: 1.5; margin: .2rem 0 .7rem; color: var(--cream); }
.press-hero-row h4 span { color: var(--tint); }
.press-hero-row p { color: var(--cream-d); margin: 0; font-size: 1.03rem; }
.press-link { color: var(--gold); text-decoration: none; box-shadow: inset 0 -3px 0 var(--gold-d); }
.press-link:hover { box-shadow: inset 0 -6px 0 var(--gold-d); }
.press-note { color: var(--cream-d); font-size: 1rem; }

@media (max-width: 860px) {
  body { font-size: 19px; }
  .topnav a:not(.btn) { display: none; }
  .world-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-card { grid-template-columns: 1fr; text-align: center; gap: 1.4rem; }
  .hero-card:nth-child(even) { direction: ltr; }
  .hero-portrait { width: 150px; margin: 0 auto; }
  .hero-blurb { margin-inline: auto; }
  .studio-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .fact-grid { grid-template-columns: 1fr 1fr; }
  .join-inner { grid-template-columns: 1fr; }
  .join-art { order: -1; }
  .join-art img { width: min(60%, 220px); }
}

.hero-portrait img, .join-art img { image-rendering: pixelated; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto !important; } }
