@font-face { font-family: "Garamond"; src: url("/assets/fonts/EBGaramond.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("/assets/fonts/AlegreyaSans-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Alegreya Sans"; font-style: italic; src: url("/assets/fonts/AlegreyaSans-Italic.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Alegreya Sans"; font-weight: 500; src: url("/assets/fonts/AlegreyaSans-Medium.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Alegreya Sans"; font-weight: 700; src: url("/assets/fonts/AlegreyaSans-Bold.woff2") format("woff2"); font-display: swap; }

/* The palette of the game's icon: indigo dusk, amber steppe sun, burgundy pennant, olive grass, linen. */
:root {
  --ink: #14111c; --ink-2: #1c1826; --ink-3: #262033; --dusk: #232238;
  --linen: #ece2cc; --linen-2: #c9bc9f; --muted: #9d927b;
  --sun: #e39a3b; --sun-2: #f2b85f; --wine: #8f2f34; --olive: #7d8a45; --steel: #9aa3ad;
  --line: rgba(236, 226, 204, .14);
  --serif: "Garamond", "EB Garamond", Georgia, serif;
  --sans: "Alegreya Sans", system-ui, sans-serif;
  --r: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--ink); color: var(--linen); font: 18px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sun-2); }
a:hover { color: var(--linen); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 820px; }
.two { display: grid; gap: 40px; grid-template-columns: 1.1fr .9fr; align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }

/* Top bar */
.top { position: sticky; top: 0; z-index: 20; background: rgba(20, 17, 28, .86); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 20px; height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--linen); text-decoration: none; font: 600 1.15rem var(--serif); white-space: nowrap; }
.brand img { image-rendering: pixelated; border-radius: 6px; }
.links { display: flex; gap: 18px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.links a { color: var(--linen-2); text-decoration: none; font-weight: 500; white-space: nowrap; }
.links a:hover { color: var(--sun-2); }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; color: var(--linen); text-decoration: none; font-size: .9rem; white-space: nowrap; }
@media (max-width: 760px) { .links { display: none; } .lang { margin-left: auto; } }

/* Hero */
.hero { position: relative; min-height: min(86vh, 820px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.hero::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(20,17,28,.25) 0%, rgba(20,17,28,.15) 35%, rgba(20,17,28,.82) 72%, var(--ink) 100%),
  linear-gradient(90deg, rgba(20,17,28,.75) 0%, rgba(20,17,28,0) 65%); }
.hero-text { position: relative; z-index: 1; padding-bottom: 56px; padding-top: 120px; width: 100%; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); margin-bottom: .25em; text-shadow: 0 2px 18px rgba(0,0,0,.5); }
.hero h1 em { display: block; font-style: normal; color: var(--sun-2); font-size: 1.15em; letter-spacing: .02em; }
.hero .lede { max-width: 640px; font-size: 1.2rem; color: var(--linen); text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.early { display: inline-block; background: var(--wine); color: var(--linen); padding: 3px 12px; border-radius: 999px; font-size: .88rem; font-weight: 500; margin-bottom: 14px; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--sun); margin: 0 0 .6em; }
.lede { font-size: 1.12rem; color: var(--linen-2); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 8px; border: 1px solid var(--line);
  background: rgba(236,226,204,.06); color: var(--linen); font-weight: 700; text-decoration: none; transition: background .15s, transform .15s; }
.btn:hover { background: rgba(236,226,204,.14); color: var(--linen); transform: translateY(-1px); }
.btn.primary { background: var(--sun); border-color: var(--sun); color: #1b130a; }
.btn.primary:hover { background: var(--sun-2); color: #1b130a; }
.btn.ghost { background: transparent; }

.facts-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-2); }
.facts { list-style: none; margin: 0; padding: 18px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.facts li { display: flex; flex-direction: column; }
.facts b { font: 600 1.2rem var(--serif); color: var(--sun-2); }
.facts span { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } }

/* Bands */
.band { padding: 88px 0; }
.band.dusk { background: linear-gradient(180deg, var(--ink) 0%, var(--dusk) 18%, var(--dusk) 82%, var(--ink) 100%); }
.band.night { background: #0f0d16; }
.head { margin-bottom: 34px; max-width: 760px; }
.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; margin-top: 18px; }
.card.muted { background: transparent; }
.card ol { margin: 0; padding-left: 1.2em; }
.card li { margin: .35em 0; }
.framed { margin: 0; }
.framed img { border-radius: var(--r); border: 1px solid var(--line); width: 100%; }
figcaption { color: var(--muted); font-size: .92rem; margin-top: 8px; }
.note { color: var(--muted); font-size: .92rem; }

/* Gothic comparison */
.table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: rgba(20,17,28,.55); }
table { border-collapse: collapse; width: 100%; font-size: .98rem; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
thead th { font: 600 1.05rem var(--serif); color: var(--sun-2); background: rgba(236,226,204,.04); }
tbody th { font-weight: 700; width: 18%; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.tag { display: block; width: max-content; margin-top: 6px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 1px 8px; border-radius: 999px; }
.tag.same { background: rgba(125,138,69,.25); color: #c4d07f; }
.tag.diff { background: rgba(143,47,52,.3); color: #f0a3a0; }
@media (max-width: 720px) {
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tbody tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  tbody th, td { border: 0; width: auto; padding: 6px 16px; }
  td::before { content: attr(data-label); display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
}
.similar-box { margin-top: 40px; padding: 26px 28px; border-left: 3px solid var(--sun); background: rgba(236,226,204,.04); border-radius: 0 var(--r) var(--r) 0; }
.similar { margin: 0; padding-left: 1.3em; }
.similar li { margin: .4em 0; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; border-top: 3px solid var(--wine); }
.feature:nth-child(3n+2) { border-top-color: var(--sun); }
.feature:nth-child(3n) { border-top-color: var(--olive); }
.feature p { color: var(--linen-2); margin: 0; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shots figure { margin: 0; }
.shots a { display: block; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.shots img { width: 100%; aspect-ratio: 16 / 9.6; object-fit: cover; transition: transform .3s; }
img.pixel { image-rendering: pixelated; }
.shots a:hover img { transform: scale(1.03); }
.shots figure:first-child { grid-column: span 2; grid-row: span 2; }
@media (max-width: 860px) { .shots { grid-template-columns: 1fr 1fr; } .shots figure:first-child { grid-column: span 2; grid-row: auto; } }
@media (max-width: 560px) { .shots { grid-template-columns: 1fr; } .shots figure:first-child { grid-column: auto; } }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(8,6,12,.9); }
.lightbox img { max-width: 96vw; max-height: 94vh; image-rendering: pixelated; border-radius: 6px; }
.lightbox button { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(20,17,28,.8); color: var(--linen); font-size: 26px; cursor: pointer; }

/* World */
.palankas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.palanka { border-radius: var(--r); padding: 26px; background: var(--ink-2); border: 1px solid var(--line); position: relative; overflow: hidden; }
.palanka::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }
.palanka.p0::before { background: linear-gradient(#2f4f9c, #b8325a); }
.palanka.p1::before { background: linear-gradient(#3e7a45, #b87333); }
.palanka.p2::before { background: linear-gradient(#d9b23a, #b73a2c); }
.palanka h3 { font-size: 1.6rem; }
.palanka .quests { color: var(--muted); font-size: .95rem; font-style: italic; margin: 0; }
@media (max-width: 860px) { .palankas { grid-template-columns: 1fr; } }

/* Play */
.steps { margin: 0 0 16px; padding-left: 1.3em; }
.steps li { margin: .5em 0; }
pre { background: #0d0b12; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; overflow-x: auto; font-size: .85rem; color: var(--linen-2); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font: 600 1.18rem var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sun); font-family: var(--sans); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--linen-2); margin: 10px 0 4px; }

/* Closing call and footer */
.cta { text-align: center; background: radial-gradient(ellipse at 50% 100%, rgba(227,154,59,.22), transparent 60%), var(--ink); }
.cta img { margin: 0 auto 18px; image-rendering: pixelated; }
.cta .ctas { justify-content: center; }
.foot { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: .92rem; }
.foot h3 { font-size: 1rem; color: var(--linen-2); }
.foot ul { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--linen-2); }
.lost { min-height: 100vh; display: grid; place-items: center; text-align: center; }
