/*
Theme Name: Firn Studios
Theme URI: https://firnstudios.com
Author: Firn Studios
Description: Custom theme for Firn Studios. Dark, layered, stripe texture. Self-hosted fonts, no tracking code of its own.
Version: 1.4.11
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: firn
*/

:root{
  --ink:#e4eaed;
  --l1:#0c1013;
  --l2:#11171b;
  --l3:#171f24;
  --l4:#070a0c;
  --link:#87c9ed;
  --mute:#8c9ba4;
  --rule:rgba(228,234,237,.2);
  --stripe:rgba(255,255,255,.028);
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--l1);color:var(--ink);font:20px/1.6 "Source Serif 4",Georgia,serif;-webkit-font-smoothing:antialiased}
a{color:inherit}
img{max-width:100%;height:auto;display:block}
.w{max-width:1180px;margin:0 auto;padding:0 40px}
.disp{font-family:"Barlow Condensed","Arial Narrow",sans-serif;font-weight:700;letter-spacing:-.005em}
.screen-reader-text,.skip:not(:focus){position:absolute;left:-9999px}
.skip:focus{position:fixed;left:12px;top:12px;background:var(--ink);color:var(--l1);padding:8px 14px;z-index:99}

/* header */
.site-header .w{display:flex;justify-content:space-between;align-items:center;padding-top:14px;padding-bottom:14px}
.mark{font-size:34px;text-decoration:none;letter-spacing:.04em}
.custom-logo-link{display:block}
.custom-logo{height:clamp(110px,14vw,184px);width:auto}
.site-header nav a{margin-left:34px;text-decoration:none;font-size:18px;color:var(--mute)}
.site-header nav a:hover,.site-header nav a[aria-current="page"]{color:var(--ink);text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:1px}

/* texture + layers */
.tex{background-image:repeating-linear-gradient(45deg,var(--stripe) 0 14px,transparent 14px 28px)}
.layer{padding:110px 0;border-top:1px solid var(--rule)}
.l2{background-color:var(--l2)}
.l3{background-color:var(--l3)}

/* hero */
.hero{position:relative;padding:70px 0 120px;background-size:cover;background-position:center}
.hero.has-bg::before{content:"";position:absolute;inset:0;background:linear-gradient(rgba(12,16,19,.62),rgba(12,16,19,.92))}
.hero .w{position:relative}
.hero h1{font-size:clamp(60px,10.4vw,136px);line-height:.92;margin:0 0 70px;max-width:11em}
.hero h1 span{display:block}
.hero p{margin:0 0 0 50%;max-width:30em;font-size:22px}
.page-title{padding-top:60px;padding-bottom:20px}
.page-title h1{font-size:clamp(60px,9vw,120px);line-height:.92;margin:0}

/* sections with a screenshot background */
.bg-img{position:relative;background-size:cover;background-position:center}
.bg-img::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(12,16,19,.55),rgba(12,16,19,.92) 65%)}
.bg-img>.w{position:relative}

/* two-column rows */
.cols2{display:grid;grid-template-columns:5fr 7fr;gap:64px}
.cols2 h2{font-size:clamp(44px,5.4vw,70px);line-height:.96;margin:0}
.cols2 p{margin:0 0 24px;max-width:31em}
.more,.prose a,.cols2 a{color:var(--link);text-underline-offset:5px}
.more{font-weight:600}

/* game block */
.game{display:grid;grid-template-columns:5fr 7fr;gap:64px;align-items:end}
.game.no-img{grid-template-columns:1fr}
.game h2{font-size:clamp(84px,13vw,176px);line-height:.82;margin:0 0 26px}
.status{font-style:italic;color:var(--mute);margin:0 0 22px}
.game p{margin:0 0 22px;max-width:27em}
.shot{background:repeating-linear-gradient(45deg,#141c22 0 14px,#0e1519 14px 28px);border:1px solid var(--rule);color:#6d7e88;font-style:italic;font-size:16px}
.shot img{width:100%}
.shot.empty{aspect-ratio:16/10;display:flex;align-items:center;justify-content:center;text-align:center;padding:20px}

/* games page detail rows */

.facts .row{display:grid;grid-template-columns:5fr 7fr;gap:64px;padding:34px 0;border-top:1px solid var(--rule)}
.facts .row:first-child{border-top:0;padding-top:0}
.facts h3{margin:0;font-size:38px;line-height:1}
.facts p{margin:0;max-width:31em}
.lede{font-size:26px;line-height:1.45;max-width:30em;margin:0}

/* gallery (classic [gallery] shortcode) */
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px;margin:0}
.gallery .gallery-item{margin:0;width:auto;float:none}
.gallery img{width:100%;aspect-ratio:16/10;object-fit:cover;display:block;border:1px solid var(--rule)}
.gallery br{display:none}
.gallery-caption{font-size:15px;color:var(--mute)}
.section-title{font-size:clamp(44px,5.4vw,70px);line-height:.96;margin:0 0 44px}

/* policy and plain pages */
.prose{max-width:40em;padding:30px 0 110px}
.prose h2{font-size:42px;line-height:1;margin:56px 0 14px}
.prose p,.prose li{margin:0 0 20px}
.prose ul,.prose ol{padding-left:1.4em;margin:0 0 20px}
.prose ol.ten li{margin:0 0 18px;padding-left:.3em}
.prose ol.ten li::marker{font-family:"Barlow Condensed",sans-serif;font-weight:700;color:var(--link)}
.prose .updated{color:var(--mute);font-style:italic;margin-top:50px}
.todo{background:rgba(135,201,237,.18);padding:0 5px}

/* footer */
.site-footer{background-color:var(--l4);color:#c9d4d9;padding:90px 0 44px;border-top:1px solid var(--rule)}
.site-footer .big{font-size:clamp(90px,19vw,260px);line-height:.8;letter-spacing:.02em;margin:0 0 70px}
.foot-logo{margin:0 0 56px}
.foot-logo img{width:110px;height:auto}
.site-footer .cols{display:flex;justify-content:space-between;gap:30px;flex-wrap:wrap;font-size:17px;color:#8ea0a9}
.site-footer a{margin-right:26px;color:#aebcc3}
.site-footer a:last-child{margin-right:0}
.site-footer .cols div:first-child a{margin:0 0 0 14px}

@media(max-width:820px){
  .w{padding:0 22px}
  .hero p{margin-left:0}
  .cols2,.game,.facts .row{grid-template-columns:1fr;gap:22px}
  .site-header .w{flex-direction:column;align-items:flex-start;gap:14px}
  .site-header nav a{margin:0 22px 0 0}
  .layer{padding:70px 0}
}

/* contact form */
.form{max-width:36em;padding-bottom:110px}
.form label{display:block;margin:0 0 22px;font-size:18px}
.form input[type=text],.form input[type=email],.form textarea{display:block;width:100%;margin-top:8px;padding:12px 14px;background:var(--l2);color:var(--ink);border:1px solid var(--rule);border-radius:0;font:inherit;font-size:19px}
.form textarea{min-height:200px;resize:vertical}
.form input:focus,.form textarea:focus{outline:2px solid var(--link);outline-offset:2px}
.form button{padding:12px 30px;background:var(--link);color:#0c1013;border:0;border-radius:0;font:700 22px "Barlow Condensed",sans-serif;letter-spacing:.03em;cursor:pointer}
.form button:hover{background:var(--ink)}
.hp{position:absolute;left:-9999px;height:0;overflow:hidden}
.notice{max-width:36em;padding:16px 18px;border:1px solid var(--rule);background:var(--l2);margin:0 0 30px}

/* Hauler page story */
.story-grid{display:grid;grid-template-columns:7fr 5fr;gap:64px;align-items:start}
.story-grid.no-img{grid-template-columns:1fr}
.story-img{position:sticky;top:30px}
@media(max-width:820px){.story-grid{grid-template-columns:1fr;gap:36px}.story-img{position:static}}
.story{max-width:34em}
.story p{margin:0 0 24px}
.story .lede{font-size:30px;line-height:1.35;margin-bottom:32px}
.page-title .status{margin-bottom:0}

/* screenshot lightbox */
html.lb-open{overflow:hidden}
.lb{position:fixed;inset:0;z-index:1000;background:rgba(5,8,10,.95);display:flex;align-items:center;justify-content:center}
.lb[hidden]{display:none}
.lb-stage{margin:0;display:flex;flex-direction:column;align-items:center;max-width:calc(100vw - 150px)}
.lb-img{display:block;max-width:100%;max-height:calc(100vh - 110px);width:auto;height:auto;border:1px solid var(--rule)}
.lb-count{margin-top:14px;font-size:15px;color:var(--mute)}
.lb-btn{position:absolute;display:flex;align-items:center;justify-content:center;width:52px;height:52px;padding:0;background:rgba(17,23,27,.85);color:#e6edf1;border:1px solid var(--rule);cursor:pointer}
.lb-btn:hover,.lb-btn:focus-visible{border-color:var(--link);color:var(--link)}
.lb-prev{left:20px;top:50%;transform:translateY(-50%)}
.lb-next{right:20px;top:50%;transform:translateY(-50%)}
.lb-close{top:20px;right:20px}
.gallery a{cursor:zoom-in}
@media (max-width:700px){
  .lb-stage{max-width:100vw}
  .lb-img{max-height:calc(100vh - 170px);border-left:0;border-right:0}
  .lb-prev,.lb-next{top:auto;bottom:20px;transform:none}
  .lb-prev{left:20px}.lb-next{right:20px}
}
