/* nemeton.rospro.pl: the forest at dusk, leather and brass from the game's windows */
@font-face { font-family: "Lato"; src: url(fonts/Lato-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url(fonts/Lato-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Alegreya SC"; src: url(fonts/AlegreyaSC-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #161b15; --bg2: #1d241b; --panel: #232b20; --line: rgba(233, 201, 141, .22);
  --leather: #5b3b25; --leather2: #3f2817; --thread: #e2c792;
  --text: #efe8da; --dim: #b8b2a3; --head: #f7e4ba; --gold: #f2b440; --gold2: #b9832a; --green: #a9d47c;
  --serif: "Alegreya SC", Georgia, serif; --sans: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--sans); }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
code { background: rgba(0, 0, 0, .3); border-radius: 4px; padding: 1px 6px; font-size: .92em; }
kbd { display: inline-block; min-width: 22px; padding: 0 6px; border-radius: 4px; background: #2a1a0e; border: 1px solid rgba(226, 199, 146, .5);
      color: var(--head); font: 700 12px/20px var(--sans); text-align: center; margin: 1px 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.top { padding-top: 96px; padding-bottom: 40px; }
h1, h2, h3 { font-family: var(--serif); color: var(--head); font-weight: 700; letter-spacing: .02em; line-height: 1.2; }

/* the bar on top */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 10; transition: background .25s, box-shadow .25s; }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 62px; }
.nav.solid, .page-releases .nav, .page-devlog .nav { background: rgba(18, 22, 17, .92); box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(0, 0, 0, .35);
                                                     backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.brand { display: flex; align-items: center; gap: 10px; font: 700 20px var(--serif); color: var(--head); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 6px; }
.nav nav { display: flex; gap: 18px; flex: 1; }
.nav nav a { color: var(--text); opacity: .8; font-weight: 700; font-size: 15px; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav nav a:hover { opacity: 1; text-decoration: none; }
.nav nav a.on { opacity: 1; border-color: var(--gold); }

/* buttons */
.btn { display: inline-block; background: var(--gold); color: #3a2a10; font-weight: 800; font-size: 19px; padding: 14px 30px; border-radius: 999px;
       box-shadow: 0 6px 0 var(--gold2), 0 10px 24px rgba(0, 0, 0, .35); transition: transform .1s, box-shadow .1s; }
.btn:hover { text-decoration: none; transform: translateY(2px); box-shadow: 0 4px 0 var(--gold2), 0 8px 18px rgba(0, 0, 0, .35); }
.btn.small { font-size: 14px; padding: 7px 16px; box-shadow: 0 3px 0 var(--gold2); white-space: nowrap; }
.btn.ghost { background: rgba(20, 14, 8, .45); color: var(--head); box-shadow: inset 0 0 0 2px rgba(247, 228, 186, .6); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--head); }

/* the hero */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; background-size: cover; background-position: center 40%; }
.hero-in { padding-bottom: 9vh; padding-top: 120px; }
.hero h1 { font-size: clamp(46px, 8vw, 92px); margin: 0 0 10px; text-shadow: 0 4px 24px rgba(0, 0, 0, .55); }
.hero-logo { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 28px); margin: 0 0 10px; }
.hero-logo img { width: clamp(72px, 11vw, 132px); height: auto; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .5)); }
.hero-logo h1 { margin: 0; color: #ffde8c; letter-spacing: .02em; }
.brand img { border-radius: 0; }
.lead { max-width: 640px; font-size: clamp(17px, 2vw, 20px); text-shadow: 0 2px 10px rgba(0, 0, 0, .7); margin: 0 0 28px; }
.cta { display: flex; gap: 16px; flex-wrap: wrap; }
.ver-line { margin-top: 22px; color: var(--text); opacity: .85; font-size: 14px; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }

/* the seam between parts, as on the game's windows */
.stitch { height: 2px; max-width: 1080px; margin: 0 auto; background: repeating-linear-gradient(90deg, var(--thread) 0 7px, transparent 7px 12px); opacity: .45; }

/* the features: a screenshot and a text, sides alternating */
.feature { padding: 56px 0; }
.feature .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.feature.flip .wrap { grid-template-columns: 1fr 1.25fr; }
.feature.flip .feat-img { order: 2; }
.feat-text h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 12px; }
.feat-text p { color: var(--dim); font-size: 17px; margin: 0; }
figure { margin: 0; }
.shot { display: block; position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 14px 40px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .05); }
.shot img { transition: transform .4s; width: 100%; }
.shot:hover img { transform: scale(1.025); }
figcaption { color: var(--dim); font-size: 14px; margin-top: 8px; }

/* parts with a heading */
.block { padding: 56px 0; }
.sec { font-size: 30px; margin: 0 0 22px; display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.sec .more { font: 700 14px var(--sans); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 22px 0; }
.gallery.wide { grid-template-columns: repeat(3, 1fr); }
.single { margin: 22px 0; }

/* panels in leather */
.panel { position: relative; background: radial-gradient(120% 90% at 25% 0%, #6a4630 0%, var(--leather) 45%, var(--leather2) 100%); border-radius: 16px;
         padding: 28px 30px; box-shadow: 0 14px 34px rgba(0, 0, 0, .45), inset 0 0 0 2px #24150b, inset 0 0 40px rgba(0, 0, 0, .35); }
.panel::before { content: ""; position: absolute; inset: 9px; border: 2px dashed rgba(226, 199, 146, .5); border-radius: 10px; pointer-events: none; }
.panel .sec { font-size: 24px; margin-bottom: 14px; }
.panel ul, .panel ol { margin: 0 0 18px; padding-left: 20px; }
.panel li { margin: 4px 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.keys { border-collapse: collapse; width: 100%; font-size: 15px; }
.keys td { padding: 5px 0; vertical-align: top; }
.keys td:first-child { white-space: nowrap; padding-right: 14px; }

/* devlog cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards.list { grid-template-columns: repeat(2, 1fr); }
.card { display: flex; flex-direction: column; background: var(--panel); border-radius: 14px; overflow: hidden; color: var(--text);
        box-shadow: 0 10px 28px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .04); transition: transform .15s, box-shadow .15s; }
.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0, 0, 0, .45), 0 0 0 1px var(--line); }
.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card-text { padding: 16px 20px 20px; }
.card time, .card .ver { color: var(--gold); font-size: 13px; font-weight: 700; margin-right: 10px; }
.card .ver { color: var(--dim); }
.card h3 { margin: 6px 0 8px; font-size: 23px; }
.card p { margin: 0; color: var(--dim); font-size: 15px; }

/* pages with text */
.title { font-size: clamp(36px, 5vw, 54px); margin: 10px 0 8px; }
.intro, .meta { color: var(--dim); font-size: 17px; margin: 0 0 26px; }
.crumbs { margin: 0; font-weight: 700; font-size: 14px; }
.crumbs a::before { content: "\2190  "; }
.post h2 { font-size: 28px; margin: 40px 0 10px; }
.post p, .post li { font-size: 17.5px; }
.post .cover { margin-bottom: 30px; }
.pager { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 24px; border-top: 2px dashed var(--line); font-weight: 700; }

/* the release notes */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; }
.toc a { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--panel); color: var(--dim); }
.toc a.rel { color: var(--head); box-shadow: inset 0 0 0 1px var(--gold2); }
.release { padding: 22px 0 18px; border-top: 2px dashed var(--line); scroll-margin-top: 80px; }
.release header { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.release h2 { margin: 0; font-size: 30px; }
.release time { color: var(--dim); font-size: 14px; margin-left: auto; }
.release ul { margin: 12px 0 0; padding-left: 20px; }
.release li { margin: 5px 0; }
.badge { font: 700 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.badge.rel { background: var(--gold); color: #3a2a10; }
.badge.dev { background: rgba(255, 255, 255, .08); color: var(--dim); }

/* the footer */
.foot { margin-top: 40px; padding: 28px 0 36px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* a screenshot opened large */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(8, 10, 8, .92); display: flex; flex-direction: column; align-items: center; justify-content: center;
            padding: 24px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 90px); border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.lightbox p { color: var(--dim); margin: 14px 0 0; }

@media (max-width: 860px) {
  .feature .wrap, .feature.flip .wrap, .two { grid-template-columns: 1fr; gap: 24px; }
  .feature.flip .feat-img { order: 0; }
  .cards, .cards.list, .gallery.wide { grid-template-columns: 1fr 1fr; }
  .nav nav { gap: 12px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .nav .btn.small, .brand span { display: none; }
  .nav .wrap { gap: 14px; }
  .brand { font-size: 0; }
  .nav nav a { font-size: 14px; }
  .cards, .cards.list, .gallery, .gallery.wide { grid-template-columns: 1fr; }
  .feature, .block { padding: 36px 0; }
  .panel { padding: 24px 20px; }
}
