/* winterfalling.com, paper kit B (WinterFalling/AgentDocs/project/mockups/paper-kit). Buttons are the game's
   ButtonWinter sprites (white + gold); sheets are UI_paperSheet. Rule: lip + shadow = clickable.
   IM Fell English by Igino Marini, SIL OFL 1.1 (fonts/OFL.txt) */
@font-face{font-family:'Fell';src:url('../fonts/im-fell-english.woff2') format('woff2');font-display:swap}
@font-face{font-family:'Fell';font-style:italic;src:url('../fonts/im-fell-english-italic.woff2') format('woff2');font-display:swap}
@font-face{font-family:'Fell SC';src:url('../fonts/im-fell-english-sc.woff2') format('woff2');font-display:swap}

/* faded ink is darker than the game's #86694a so small text passes WCAG AA on parchment */
:root{--ink:#2a1a0d;--ink-soft:#5b4229;--ink-faded:#6b5034;--rubric:#962216;--rubric-hi:#b32d1b;--outline:#322226;
  --frame:rgba(42,26,13,.72);--lip:rgba(42,26,13,.4);--light:#eadbc0}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--light);font:20px/1.5 'Fell',Georgia,serif;
  background:#17100b}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
button{font:inherit;color:inherit}
p{margin:0 0 .8em}
h1,h2,h3{font-weight:normal;line-height:1.15;margin:0 0 .45em}
h2{font-size:clamp(30px,4vw,42px)}
.sheet h2::first-letter{color:var(--rubric)}
h3{font-size:24px;color:var(--rubric)}
a:focus-visible,button:focus-visible{outline:3px solid #c4402c;outline-offset:4px}
.wrap{width:min(1180px,100% - 32px);margin-inline:auto}
.i{width:20px;height:20px}
.flip{transform:scaleX(-1)}

/* buttons: the live Button_white / Button_gold sprites (up, over, down; the pages preload over and down, and the
   border colour is transparent, so a sprite still loading never shows). They slice horizontally only, so the border
   widths are the sprite's 90 / 80 of 180x200 scaled to the height. */
.bw{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:10px;height:64px;padding:0 6px 7px;
  font-size:24px;color:var(--outline);white-space:nowrap;text-decoration:none;cursor:pointer;background:none;
  border:0 solid transparent;border-width:0 26px 0 29px;border-image:url('../img/ui/btn_white_up.png') 0 80 0 90 fill stretch}
.bw:hover{border-image-source:url('../img/ui/btn_white_over.png')}
.bw:active{padding-top:4px;border-image-source:url('../img/ui/btn_white_down.png')}
.bw.gold{border-image-source:url('../img/ui/btn_gold_up.png')}
.bw.gold:hover{border-image-source:url('../img/ui/btn_gold_over.png')}
.bw.gold:active{border-image-source:url('../img/ui/btn_gold_down.png')}
.bw.sm{height:48px;padding:0 4px 5px;font-size:19px;border-width:0 19px 0 22px}
.bw.icon{width:52px;padding-left:0;padding-right:0}
.bw svg{flex:none}
.bw .store{width:28px;height:28px}
.bw .gog{height:26px;width:auto;filter:brightness(0) saturate(100%) opacity(.8)}

/* plate: clickable tiles (screenshots) */
.plate{position:relative;border:2px solid var(--frame);border-radius:10px;color:var(--ink);cursor:pointer;
  background:linear-gradient(180deg,#f5ebd2,#e8d8b2);
  box-shadow:inset 0 0 0 3px #f3e8cc,inset 0 0 0 4px rgba(42,26,13,.28),0 3px 0 var(--lip),0 6px 10px rgba(60,30,8,.18);
  transition:transform .08s,box-shadow .08s,background .08s}
.plate:hover{background:linear-gradient(180deg,#fbf3de,#efe1bf);transform:translateY(-2px);
  box-shadow:inset 0 0 0 3px #f8efd8,inset 0 0 0 4px rgba(42,26,13,.4),0 5px 0 var(--lip),0 9px 14px rgba(60,30,8,.22)}
.plate:active{transform:translateY(3px);background:linear-gradient(180deg,#e6d6b0,#efe2c2);
  box-shadow:inset 0 0 0 3px #ece0c0,inset 0 0 0 4px rgba(42,26,13,.3),inset 0 3px 6px rgba(60,30,8,.22)}
/* card: static info, no lip */
.card{border:1px solid rgba(42,26,13,.4);border-radius:6px;background:rgba(255,250,235,.22);box-shadow:inset 0 0 0 3px rgba(255,250,235,.22)}
.key{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:32px;padding:0 8px 2px;font-size:16px;
  border:2px solid var(--frame);border-radius:6px;background:linear-gradient(180deg,#f7efda,#e6d5ae);box-shadow:0 3px 0 var(--lip)}

/* hero */
.hero{display:flex;flex-direction:column;align-items:center;text-align:center;padding:40px 16px 64px;
  background:linear-gradient(180deg,rgba(23,16,11,.05),rgba(23,16,11,.3) 62%,#17100b),url('../img/hero.jpg') center/cover}
.hero .logo{width:min(560px,88vw);margin-bottom:18px;filter:drop-shadow(0 6px 10px rgba(0,0,0,.45))}
.slip{max-width:32em;margin:0 0 26px;font-size:21px;color:var(--ink);border-style:solid;border-width:26px;padding:0 10px;
  border-image:url('../img/ui/paper-sheet.webp') 120 fill / 26px stretch;filter:drop-shadow(0 6px 10px rgba(0,0,0,.45))}
.buy{display:flex;flex-wrap:wrap;gap:16px;justify-content:center}
/* newsletter signup under the buy buttons: a link to Substack's subscribe page */
.signup{margin-top:22px}

/* sheets: the game's paper sheet sprite */
main{display:grid;gap:52px;padding-bottom:60px}
.sheet{color:var(--ink);border-style:solid;border-width:60px;padding:4px 14px;
  border-image:url('../img/ui/paper-sheet.webp') 120 fill / 60px stretch;filter:drop-shadow(0 10px 18px rgba(0,0,0,.6))}
.sheet a{color:var(--rubric)}
.sheet a.bw{color:var(--outline)}
.lead{max-width:44em;font-size:22px}
.lead::first-letter{float:left;font-size:78px;line-height:.8;margin:8px 10px 0 -2px;color:var(--rubric)}
.rule{height:30px;margin:14px 0 22px;background:url('../img/ui/paper-rule.png') center/auto 30px no-repeat}
.feats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.feat{padding:18px 20px 8px}
.feat p{font-size:19px}

/* trailer: static frame, gold play button; YouTube loads only after the click */
.video{position:relative;display:block;width:100%;aspect-ratio:16/9;padding:7px;border:2px solid var(--frame);border-radius:6px;background:#2a1a0d;
  box-shadow:inset 0 0 0 3px #4a3524}
.video img,.video iframe{width:100%;height:100%;object-fit:cover;border:0;border-radius:2px}
.video .bw{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);height:84px;width:84px;border-width:0 32px 0 36px}
/* the sprite's borders are 36/32, so -4px puts the icon on the middle of the face */
.video .bw svg{width:40px;height:40px;margin-left:-4px}
.gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:28px}
.shot{display:block;padding:6px;border-radius:8px}
.shot img{border-radius:3px;aspect-ratio:16/9;object-fit:cover}

/* awards on the dark, one row between the trailer and about sheets; Tacticon stays 2/3 the size of the others */
.awards{display:flex;flex-wrap:wrap;gap:clamp(16px,5vw,72px);justify-content:center;align-items:center}
.awards img{height:clamp(126px,21vw,255px);width:auto}
.awards img[src*="tacticon"]{height:clamp(84px,14vw,170px)}

/* community + press */
.duo{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:start}
.duo .buy{justify-content:flex-start}
.kv{display:flex;align-items:baseline;gap:8px;font-size:19px;line-height:1.7}
.kv i{flex:1;border-bottom:2px dotted rgba(42,26,13,.3);transform:translateY(-6px)}
.dlrow{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin-top:18px}

.footer{text-align:center;padding:30px 16px;font-size:17px;color:rgba(234,219,192,.8);border-top:1px solid rgba(234,219,192,.12)}
.footer p{margin:.3em 0}

/* lightbox: the screenshot on a sheet, controls are buttons */
.lb{width:min(1100px,100% - 32px);max-width:none;max-height:none;margin:auto;padding:0 4px;color:var(--ink);background:none;
  border-style:solid;border-width:44px;border-image:url('../img/ui/paper-sheet.webp') 120 fill / 44px stretch}
.lb::backdrop{background:rgba(10,6,3,.88)}
.lb .video{aspect-ratio:auto}
.lbbar{display:flex;align-items:center;gap:14px;margin-top:16px;font-size:20px}
.lbbar .sp{flex:1}
.lbbar .hint{font-size:17px;color:var(--ink-soft)}
.lbbar .chev{width:10px;height:16px}

/* press kit page */
.pk-top{display:flex;align-items:center;justify-content:center;gap:24px;padding:24px 16px}
.pk-top img{width:220px}
.pk-top h1{margin:0;font:clamp(34px,6vw,52px) 'Fell SC';letter-spacing:.12em}
main.pk-grid{grid-template-columns:360px 1fr;gap:28px;align-items:start}
.pk-grid .sheet{border-width:40px;border-image-width:40px;padding:0 6px}
.pk-body{display:grid;gap:28px;min-width:0}
.facts{position:sticky;top:16px;font-size:19px}
.facts dl{margin:0 0 20px}
.facts dt,.credits dt{color:var(--rubric);margin-top:.6em}
.facts dd,.credits dd{margin:0}
.sheet li+li{margin-top:.4em}
.thumbs{display:grid;gap:14px;grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}
.thumbs a{display:flex;flex-direction:column;gap:.3em;text-decoration:none;font-size:17px}
.thumbs img{border:2px solid var(--frame);border-radius:3px;background:#2a1a0d}

@media (max-width:960px){
  .feats,.gallery{grid-template-columns:1fr 1fr}
  .duo,main.pk-grid{grid-template-columns:1fr}
  .facts{position:static}
}
@media (max-width:600px){
  body{font-size:19px}
  .sheet,.pk-grid .sheet{border-width:34px;border-image-width:34px;padding:0 2px}
  .feats{grid-template-columns:1fr}
  .gallery{gap:12px}
  .hero{padding-top:24px}
  .slip{font-size:19px}
  .hero .buy .bw{flex:1 1 100%}
  .signup .bw{font-size:20px}
  .lbbar .hint{display:none}
  .lead::first-letter{font-size:64px}
  .lb{border-width:24px;border-image-width:24px}
  .pk-top{flex-direction:column;gap:8px}
}
