/*
Theme Name: Hexwarren
Theme URI: https://hexwarren.com
Description: The site in front of the game: a child of Twenty Twenty-Five drawn in the game's own frames, type and pictures.
Author: Borgware
Template: twentytwentyfive
Version: 0.4.0
Requires at least: 6.6
Text Domain: hexwarren
*/

/*
 * The pages are wp:html blocks carrying their layout inline, and these are the classes they share. Every class is
 * prefixed hw- so nothing of WordPress or a plugin meets it. The frames are nine-slice pictures of the game's own UI,
 * drawn through border-image at whole texels so they stay sharp.
 */

@font-face { font-family: "Inter"; src: url(assets/fonts/inter.woff2) format("woff2"); font-weight: 200 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IM Fell English"; src: url(assets/fonts/im-fell-english.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IM Fell English"; src: url(assets/fonts/im-fell-english-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IM Fell English SC"; src: url(assets/fonts/im-fell-english-sc.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

body{margin:0;background:#0a141a;color:#bcd0d6;font-family:Inter,system-ui,sans-serif;font-size:17px;line-height:1.6}
a:focus-visible,button:focus-visible{outline:2px solid #f0a04b;outline-offset:4px}

/* Frames and pictures */
.hw-px{image-rendering:pixelated;image-rendering:crisp-edges}
img.hw-px{min-width:0;max-width:100%;height:auto}
.hw-panel{border:26px solid transparent;border-image:url(assets/img/frame/panel.png) 13 fill round;image-rendering:pixelated}
.hw-card{border:16px solid transparent;border-image:url(assets/img/frame/card.png) 8 fill stretch;image-rendering:pixelated}
.hw-slot{border:20px solid transparent;border-image:url(assets/img/frame/slot.png) 10 fill stretch;image-rendering:pixelated}
.hw-well{border:24px solid transparent;border-image:url(assets/img/frame/legendary.png) 16 fill stretch;image-rendering:pixelated}
a.hw-btn,button.hw-btn,.hw-btn{display:inline-flex;align-items:center;justify-content:center;min-height:62px;box-sizing:border-box;padding:0 30px;border:20px solid transparent;border-image:url(assets/img/frame/button.png) 11 10 11 9 fill stretch;image-rendering:pixelated;font:600 15px/1 Inter,system-ui,sans-serif;letter-spacing:.18em;text-transform:uppercase;color:#e8f1f4;text-shadow:0 2px 0 #04090c;background:none;cursor:pointer}
a.hw-btn:hover,button.hw-btn:hover{border-image-source:url(assets/img/frame/button-hover.png);color:#ffffff}

/* The landing page */
.hw-hero{background:linear-gradient(180deg,#0a141a00 30%,#0a141ab3 72%,#0a141ae6 100%),url(assets/img/hero.jpg) center 30%/cover no-repeat}
.hw-play-clip{display:block;width:100%;height:auto;image-rendering:pixelated;background:#070b0d}
.hw-gate{background:url(assets/img/frame/frame.png) center bottom/1032px 414px no-repeat;image-rendering:pixelated}
.hw-shot{display:block;width:100%;height:auto}
.hw-banner{background:linear-gradient(180deg,#0a141a33 0%,#0a141acc 70%,#0a141a 100%),url(assets/img/shots/green.jpg) center 40%/cover no-repeat}
.hw-does{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px;font-size:15px}
.hw-does li{display:flex;gap:10px}
.hw-does li::before{content:"";flex:0 0 6px;height:6px;margin-top:9px;background:#f0a04b}
.hw-prose p{margin:0}
.hw-effects{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:4px;font-size:15px;font-variant-numeric:tabular-nums}
.hw-effects li{padding:6px 0;border-bottom:1px solid #22343b}

/* Draw your run */
@keyframes dealA{from{opacity:0;transform:translateY(18px) rotate(-1.5deg)}to{opacity:1;transform:none}}
@keyframes dealB{from{opacity:0;transform:translateY(18px) rotate(1.5deg)}to{opacity:1;transform:none}}
.hw-deal-a{animation:dealA .45s ease-out both}
.hw-deal-b{animation:dealB .45s ease-out both}
.hw-deal-a:nth-child(2),.hw-deal-b:nth-child(2){animation-delay:.12s}
.hw-deal-a:nth-child(3),.hw-deal-b:nth-child(3){animation-delay:.24s}
@media (prefers-reduced-motion: reduce){.hw-deal-a,.hw-deal-b{animation:none}}

/* The bestiary */
.hw-tab:focus-visible,.hw-beast:focus-visible{outline:2px solid #f0a04b;outline-offset:4px}
.hw-tab{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:12px 18px;background:none;border:0;border-bottom:2px solid transparent;cursor:pointer;font:400 13px/1.3 Inter,system-ui,sans-serif;color:#8fb3bd;text-align:left}
.hw-tab b{font:400 22px/1.1 'IM Fell English SC',Georgia,serif;color:#bcd0d6}
.hw-tab:hover b{color:#e8f1f4}
.hw-tab.hw-on{border-bottom-color:#f0a04b}.hw-tab.hw-on b{color:#e8f1f4}
.hw-beast{display:flex;flex-direction:column;align-items:center;gap:8px;padding:6px 4px 10px;background:none;border:0;cursor:pointer;text-align:center;font:400 13px/1.3 Inter,system-ui,sans-serif;color:#8fb3bd;min-width:0}
.hw-beast .hw-slot{width:136px;height:136px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;transition:transform .15s ease-out}
.hw-beast:hover .hw-slot{transform:translateY(-3px)}
.hw-beast.hw-on .hw-slot{outline:2px solid #f0a04b;outline-offset:2px}
.hw-beast .hw-nm{font-size:15px;line-height:1.25;color:#e8f1f4}
.hw-beast.hw-uq .hw-nm{color:#f0a04b}
.hw-lines{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;font-size:15px;font-variant-numeric:tabular-nums}
.hw-lines li{padding:5px 0;border-bottom:1px solid #22343b}
.hw-h{margin:4px 0 0;font-size:12px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:#8fb3bd}
.hw-chip{display:inline-block;padding:2px 10px;border:1px solid #3b545c;font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:#bcd0d6}
.hw-chip.hw-uq{border-color:#f0a04b;color:#f0a04b}
.hw-stat{display:flex;flex-direction:column;gap:2px;padding:10px 12px;background:#0a141a;border:1px solid #22343b}
.hw-stat span{font-size:11px;letter-spacing:.1em;white-space:nowrap;text-transform:uppercase;color:#8fb3bd}
.hw-stat b{font:400 24px/1.1 'IM Fell English SC',Georgia,serif;color:#e8f1f4;font-variant-numeric:tabular-nums}
@keyframes riseA{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes riseB{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.hw-rise-a{animation:riseA .3s ease-out both}
.hw-rise-b{animation:riseB .3s ease-out both}
@media (prefers-reduced-motion: reduce){.hw-rise-a,.hw-rise-b{animation:none}.hw-beast .hw-slot{transition:none}}

/* A Chronicle post: single.html */
.hw-post{max-width:1240px;margin:0 auto;padding:64px max(20px,3vw) 96px;display:flex;flex-wrap:wrap;gap:56px;align-items:flex-start}
.hw-post-main{flex:999 1 640px;min-width:0;display:flex;flex-direction:column;gap:26px}
.hw-post-head{display:flex;flex-direction:column;gap:14px}
.hw-post-meta{display:flex;flex-wrap:wrap;gap:8px 18px;font-size:13px;letter-spacing:.18em;text-transform:uppercase;color:#8fb3bd}
.hw-post-meta .wp-block-post-terms a{color:#8fb3bd}
.hw-post-meta .wp-block-post-date{font-size:inherit}
.hw-post-title{margin:0;font-family:'IM Fell English SC',Georgia,serif;font-weight:400;font-size:clamp(40px,5vw,60px);line-height:1.05;color:#e8f1f4;text-wrap:balance}
.hw-post-lead p{margin:0;font-size:20px;line-height:1.5;color:#d6e3e7;max-width:60ch}
.hw-post-lead .wp-block-post-excerpt__more-text{display:none}
.hw-post-picture{margin:0}
.hw-post-picture img{display:block;width:100%;height:auto}
.hw-post-body{display:flex;flex-direction:column;gap:18px;max-width:66ch}
.hw-post-body>*{margin:0}
.hw-post-body blockquote{margin:8px 0;padding:4px 0 4px 26px;border:0;border-left:2px solid #3b545c;font-family:'IM Fell English',Georgia,serif;font-style:italic;font-size:24px;line-height:1.45;color:#e8f1f4}
.hw-post-body blockquote p{margin:0}
.hw-post-body h2,.hw-post-body h3{margin:12px 0 0;font-family:'IM Fell English SC',Georgia,serif;font-weight:400;font-size:32px;line-height:1.1;color:#e8f1f4}
.hw-post-body img{max-width:100%;height:auto}
.hw-changes{display:flex;flex-direction:column;gap:12px;border:26px solid transparent;border-image:url(assets/img/frame/panel.png) 13 fill round;image-rendering:pixelated}
.hw-post-body .hw-changes h2{margin:0;font-family:Inter,system-ui,sans-serif;font-size:13px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:#8fb3bd}
.hw-changes ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:4px;font-size:15px;font-variant-numeric:tabular-nums}
.hw-changes li{padding:6px 0;border-bottom:1px solid #22343b}
.hw-post-nav{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;padding-top:18px;border-top:1px solid #22343b;font-size:15px}
.hw-post-side{flex:1 1 300px;min-width:0;display:flex;flex-direction:column;gap:28px}
.hw-side-head{margin:0 0 6px;font-family:Inter,system-ui,sans-serif;font-size:13px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:#8fb3bd}
.hw-recent .wp-block-latest-posts{margin:0;padding:0;list-style:none}
.hw-recent .wp-block-latest-posts li{display:flex;flex-direction:column;padding:10px 0;border-bottom:1px solid #22343b;margin:0}
.hw-recent .wp-block-latest-posts a{color:#e8f1f4}
.hw-recent .wp-block-latest-posts__post-date{font-size:13px;color:#8fb3bd}

/* The Chronicle's list of posts: home.html */
.hw-chronicle{max-width:1240px;margin:0 auto;padding:72px max(20px,3vw) 96px;display:flex;flex-direction:column;gap:40px}
.hw-chronicle-head{display:flex;flex-direction:column;gap:14px;max-width:720px}
.hw-chronicle-head p,.hw-chronicle-head h1{margin:0}
.hw-chronicle-kicker{font-size:13px;letter-spacing:.22em;text-transform:uppercase;color:#8fb3bd}
.hw-chronicle-head h1{font-family:'IM Fell English SC',Georgia,serif;font-weight:400;font-size:clamp(42px,5vw,64px);line-height:1.02;color:#e8f1f4}
.hw-chronicle-lead{font-size:20px;line-height:1.5;color:#d6e3e7}
.hw-chronicle-list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column}
.hw-chronicle-list>li{margin:0;padding:32px 0;border-top:1px solid #22343b}
.hw-chronicle-item{display:flex;flex-wrap:wrap;gap:24px 40px;align-items:center}
.hw-chronicle-picture{flex:1 1 360px;min-width:0;margin:0}
.hw-chronicle-picture img{display:block;width:100%;height:auto}
.hw-chronicle-text{flex:999 1 420px;min-width:0;display:flex;flex-direction:column;gap:12px}
.hw-chronicle-text .wp-block-post-date{font-size:13px;letter-spacing:.18em;text-transform:uppercase;color:#8fb3bd}
.hw-chronicle-text .wp-block-post-title{margin:0;font-family:'IM Fell English SC',Georgia,serif;font-weight:400;font-size:36px;line-height:1.1}
.hw-chronicle-text .wp-block-post-title a{color:#e8f1f4}
.hw-chronicle-text .wp-block-post-title a:hover{color:#ffc27a}
.hw-chronicle-text .wp-block-post-excerpt p{margin:0;color:#bcd0d6}
.hw-chronicle-pages{padding-top:18px;border-top:1px solid #22343b;font-size:15px}

/* The news form: [hexwarren_news] around a WPForms form with one email field */
.hw-news{display:flex;flex-direction:column;gap:10px}
.hw-news .hw-news-label{margin:0;font-size:13px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:#8fb3bd}
.hw-gate .hw-news{align-items:center}
body .hw-news div.wpforms-container-full{margin:0}
body .hw-news div.wpforms-container-full .wpforms-form{display:flex;flex-wrap:wrap;gap:10px;justify-content:inherit}
.hw-gate .hw-news div.wpforms-container-full .wpforms-form{justify-content:center}
body .hw-news div.wpforms-container-full .wpforms-form .wpforms-field-container{flex:1 1 260px;max-width:360px}
body .hw-news div.wpforms-container-full .wpforms-form .wpforms-field{padding:0;margin:0}
body .hw-news div.wpforms-container-full .wpforms-form .wpforms-field-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body .hw-news div.wpforms-container-full .wpforms-form input[type=email]{width:100%;max-width:none;min-height:52px;height:52px;box-sizing:border-box;padding:0 16px;background:#0a141a;border:2px solid #3b545c;border-radius:0;box-shadow:none;color:#e8f1f4;font:400 16px Inter,system-ui,sans-serif}
body .hw-news div.wpforms-container-full .wpforms-form input[type=email]:focus{border-color:#f0a04b;outline:0}
body .hw-news div.wpforms-container-full .wpforms-form .wpforms-submit-container{margin:0;padding:0}
body .hw-news div.wpforms-container-full .wpforms-form button[type=submit]{display:inline-flex;align-items:center;justify-content:center;height:auto;min-height:52px;box-sizing:border-box;padding:0 30px;border:20px solid transparent;border-image:url(assets/img/frame/button.png) 11 10 11 9 fill stretch;border-radius:0;background:none;box-shadow:none;image-rendering:pixelated;font:600 15px/1 Inter,system-ui,sans-serif;letter-spacing:.18em;text-transform:uppercase;color:#e8f1f4;text-shadow:0 2px 0 #04090c;cursor:pointer}
body .hw-news div.wpforms-container-full .wpforms-form button[type=submit]:hover{border-image-source:url(assets/img/frame/button-hover.png);background:none;color:#ffffff}
body .hw-news div.wpforms-container-full .wpforms-form .wpforms-confirmation-container-full{margin:0;padding:12px 16px;background:#0d1a20;border:1px solid #22343b;color:#d6e3e7}
