/* XPedition site: the download page (index.html) and the Questions page (questions.html).
   2.1.1 (2026-11-25) For the site's content policy (default-src 'self'): the pages carry no style attributes, so
   a Questions picture's plate takes its width from the picture itself; the script is in site.js.
   2.1.0 (2026-11-25) The owner's second look: the first screen shows the book and the guide window at the game's
   own size under the headline; each part of the features is one screen, its two plates stepping over each other
   with the heading in the free corner; the Questions page runs in two columns with every picture at the game's
   own size, and its topics sit under the title.
   2.0.0 (2026-11-25) Rebuilt (the owner: "the FAQ page isn't listed, the welcome page is also quite cramped").
   The direction: real game windows set out on the brand's black like plates in an explorer's field book, each in
   the heavy bronze frame the in-game book wears, under a warm lamp light; a hairline that ends in a waypoint
   marks each new part of the page. One header on both pages. Widths: desktop from 1100, a middle width down to
   760, a phone below it. */
@font-face { font-family:'XPedition Serif'; src:url(fonts/XPeditionSerif.ttf) format('truetype'); font-display:swap; }
@font-face { font-family:'Marcellus SC'; src:url(fonts/MarcellusSC.ttf) format('truetype'); font-display:swap; }

:root {
  --ground:#0d0b08; --ground-2:#13100b;
  --bone:#efe5cf; --text:#d6ccb6; --text-2:#a89e88; --muted:#837a6a;
  --gold:#f3c543; --gold-game:#ffd100;
  --line:rgba(239,229,207,.09); --line-gold:rgba(243,197,67,.32);
  --serif:'XPedition Serif', Georgia, serif;
  --sc:'Marcellus SC', 'XPedition Serif', Georgia, serif;
  --gut:72px;
}

* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
html, body { margin:0; }
body { background:var(--ground) url(img/grain.png); color:var(--text); font-family:var(--serif); font-size:18px; line-height:1.5;
  -webkit-text-size-adjust:100%; text-size-adjust:100%; overflow-x:hidden; }
p, ul, figure { margin:0; }
ul { padding:0; list-style:none; }
h1, h2, h3 { font-weight:normal; margin:0; color:var(--bone); }
img { display:block; max-width:100%; height:auto; }
a { color:inherit; }
a:focus-visible, button:focus-visible { outline:2px solid var(--gold-game); outline-offset:4px; }
.in { width:1136px; max-width:calc(100% - 2 * var(--gut)); margin:0 auto; }
.sc { font-family:var(--sc); letter-spacing:.04em; }

/* ---------------- the red button: the game's own button, the only red on the page; its name never breaks */
.dlb { width:300px; height:56px; border-radius:3px; display:flex; align-items:center; justify-content:center; font:inherit; font-size:22px; line-height:1;
  color:var(--gold-game); text-decoration:none; white-space:nowrap; cursor:pointer; border:0; padding:0 12px; flex:none;
  background:linear-gradient(#8e1410, #66100c); box-shadow:inset 0 1px 0 rgba(255,255,255,.16), inset 0 0 0 1px #2a0403, 0 0 0 1px #000, 0 0 0 2px #8a8a8a, 0 0 0 3px #000; }
.dlb:hover { background:linear-gradient(#a0170f, #741210); }
.dlb.small { width:auto; height:40px; font-size:18px; padding:0 22px; }
.on-phone, .dlb.on-phone { display:none; }

/* ---------------- the header, the same on both pages */
.top { position:relative; z-index:3; border-bottom:1px solid var(--line); }
.top .in { display:flex; align-items:center; justify-content:space-between; height:88px; }
.brand { display:block; flex:none; }
.brand img { width:135px; height:48px; }
.nav { display:flex; align-items:center; gap:40px; }
.nav a:not(.dlb) { font-family:var(--sc); font-size:18px; letter-spacing:.04em; color:var(--text-2); text-decoration:none; padding:8px 0;
  border-bottom:1px solid transparent; }
.nav a:not(.dlb):hover { color:var(--bone); }
.nav a[aria-current] { color:var(--gold); border-bottom-color:var(--gold); }
.nav .dlb { margin-left:8px; }

/* ---------------- the waypoint: a gold hairline that ends in a diamond, over each part's heading */
.way { display:block; position:relative; width:60px; height:9px; margin-bottom:22px; }
.way::before { content:""; position:absolute; left:0; top:4px; width:46px; height:1px; background:linear-gradient(90deg, transparent, var(--gold)); }
.way::after { content:""; position:absolute; left:49px; top:0; width:7px; height:7px; border:1px solid var(--gold); transform:rotate(45deg); }

/* ---------------- a picture in the book's heavy bronze frame (its colours taken from the game's frame) */
.plate { position:relative; margin:10px; background:#0b0907;
  box-shadow:0 0 0 1px #000, 0 0 0 3px #49320b, 0 0 0 5px #83622c, 0 0 0 6px #ae8a42, 0 0 0 7px #deb86f, 0 0 0 9px #180c00, 0 0 0 10px #000,
    0 34px 60px -12px rgba(0,0,0,.85); }
.plate::before, .plate::after { content:""; position:absolute; left:-13px; right:-13px; height:16px; pointer-events:none;
  background:
    linear-gradient(135deg, #f0d48e, #b89048 45%, #5a420f) 1px 1px / 14px 14px no-repeat,
    linear-gradient(135deg, #f0d48e, #b89048 45%, #5a420f) right 1px top 1px / 14px 14px no-repeat,
    linear-gradient(#000, #000) left / 16px 16px no-repeat,
    linear-gradient(#000, #000) right / 16px 16px no-repeat; }
.plate::before { top:-13px; }
.plate::after { bottom:-13px; }
.plate img { width:100%; }
figcaption { margin:24px 0 0 10px; font-size:22px; line-height:1.3; color:var(--gold); }

/* ================= the download page ================= */
/* 1 the first screen: the headline over the game's own windows at the game's own size, under a lamp */
.hero { position:relative; overflow:hidden; }
.hero .in { padding:52px 0 88px; }
.hero-copy { position:relative; z-index:1; display:flex; align-items:flex-end; justify-content:space-between; flex-wrap:wrap; gap:24px 48px;
  margin-bottom:40px; }
.hero h1 { font-size:64px; line-height:1.05; white-space:nowrap; }
.hero h1 br { display:none; }
.hero h1 span { color:var(--gold); }
.hero .for { font-size:21px; color:var(--text-2); margin-top:14px; }
.hero .dlb { margin:0 3px 5px 0; }
/* the scene: the book at the right, the guide window over its left page, the arrow beside it; one pixel of the
   game to one pixel of the page at 1280 */
.scene { position:relative; aspect-ratio:1136 / 732; width:100%; }
.scene::before { content:""; position:absolute; inset:-14% -10% -6% 4%; pointer-events:none;
  background:radial-gradient(closest-side, rgba(224,170,60,.26), rgba(214,160,52,.09) 58%, transparent); }
.scene img { position:absolute; height:auto; filter:drop-shadow(0 18px 26px rgba(0,0,0,.85)) drop-shadow(0 0 1px #000); }
.scene .compass { left:34%; top:-10%; width:62%; opacity:.07; filter:none; }
.scene .book { left:19.19%; top:0; width:80.81%; }
.scene .guide { left:0; top:40.98%; width:61.62%; }
.scene .arrow { left:2.64%; top:13%; width:14.96%; filter:drop-shadow(0 6px 8px rgba(0,0,0,.8)); }
/* the one movement on the site: the three pieces settle in as the page opens */
@media (prefers-reduced-motion:no-preference) {
  .scene .book, .scene .guide, .scene .arrow { animation:settle .9s cubic-bezier(.2, .7, .2, 1) both; }
  .scene .guide { animation-delay:.18s; }
  .scene .arrow { animation-delay:.42s; }
}
@keyframes settle { from { opacity:0; transform:translateY(16px); } }

/* 2 the features, three parts, one screen each: the large plate, the second plate stepping over its corner, the
   heading in the free corner. --c1 and --c2 are the columns; the large plate spans both, the second the last two */
.feat { padding-bottom:16px; }
.part { padding-top:128px; scroll-margin-top:24px; }
.part:first-child { padding-top:40px; }
.part h2 { font-size:48px; line-height:1.1; }
.spread { display:grid; grid-template-columns:var(--c1) var(--c2) minmax(0, 1fr); align-items:start; }
.spread > * { grid-row:1; }
.spread .big { grid-column:1 / 3; }
.spread .head { grid-column:3; padding:4px 0 0 44px; }
.spread .small { grid-column:2 / 4; margin-top:var(--drop); position:relative; z-index:1; }
.lev  { --c1:58.1%;  --c2:5.63%;  --drop:196px; --bw:724px; --sw:476px; }
.gear { --c1:48.42%; --c2:20.77%; --drop:176px; --bw:786px; --sw:586px; }
.prof { --c1:58.1%;  --c2:15.49%; --drop:250px; --bw:836px; --sw:476px; }

/* 3 questions, a way in from the home page */
.ask { margin-top:112px; padding:96px 0 104px; background:var(--ground-2); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.ask .in { display:grid; grid-template-columns:272px minmax(0, 1fr); grid-template-rows:auto auto 1fr; column-gap:56px; }
.ask .way, .ask h2, .ask .more { grid-column:1; }
.ask .more { align-self:start; justify-self:start; }
.ask h2 { font-size:48px; line-height:1.1; }
.ask ul { grid-column:2; grid-row:1 / 4; display:grid; grid-template-columns:1fr 1fr; column-gap:56px; }
.ask li { padding:26px 0 28px; border-top:1px solid var(--line); }
.ask li a { font-size:22px; line-height:1.35; color:var(--gold); text-decoration:underline; text-decoration-color:rgba(243,197,67,.22); text-underline-offset:5px; }
.ask li a:hover { text-decoration-color:var(--gold); }
.ask li p { margin-top:8px; color:var(--text-2); }
.more { display:inline-block; margin-top:36px; font-size:20px; color:var(--bone); text-decoration:none; padding-bottom:4px; border-bottom:1px solid var(--gold); }
.more:hover { color:var(--gold); }

/* 4 the end: the logo, the button, the version */
.get { position:relative; overflow:hidden; padding:128px 0 144px; text-align:center; }
.get::before { content:""; position:absolute; left:50%; top:50%; width:760px; height:760px; transform:translate(-50%, -50%); pointer-events:none;
  background:url(img/compass.svg) center / 100% 100% no-repeat; opacity:.035; }
.get::after { content:""; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(520px 300px at 50% 46%, rgba(224,170,60,.16), transparent 70%); }
.get > * { position:relative; z-index:1; }
.get-logo { width:360px; height:128px; margin:0 auto 52px; }
.get .dlb { margin:0 auto; }
.get .sm { margin-top:20px; font-size:16px; color:var(--muted); }
.get .p-open { margin-bottom:20px; color:var(--text-2); }

/* ================= the Questions page ================= */
/* the title with the topics under it; each topic is two columns of questions; a picture sits under its answer,
   or beside it when it is wider than a column; every picture at the game's own size */
.q-head { padding:80px 0 8px; }
.q-head h1 { font-size:64px; line-height:1.05; }
.q-index { display:flex; flex-wrap:wrap; gap:4px 32px; margin-top:36px; }
.q-index a { font-family:var(--sc); font-size:18px; letter-spacing:.04em; line-height:1.3; padding:6px 0; color:var(--text-2); text-decoration:none;
  border-bottom:1px solid transparent; }
.q-index a:hover { color:var(--gold); border-bottom-color:var(--gold); }
.q-list { padding-bottom:56px; }
.q-grp { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); column-gap:56px; align-items:start; padding-top:88px; scroll-margin-top:0; }
.q-grp h2 { grid-column:1 / -1; font-size:36px; line-height:1.15; margin-bottom:24px; }
.q-item { padding:28px 0 32px; border-top:1px solid var(--line); scroll-margin-top:32px; }
.q-item .q { font-size:22px; line-height:1.35; color:var(--gold); }
.q-item .a { margin-top:8px; }
/* a plate is as wide as its picture's file (one file pixel to one page pixel); the tooltip's file is drawn larger */
.q-item .plate { width:fit-content; max-width:calc(100% - 20px); margin-top:30px; }
.q-item .plate img { width:auto; }
.q-item .plate.tip img { width:480px; }
.q-item.span { grid-column:1 / -1; display:grid; grid-template-columns:minmax(0, 1fr) auto; column-gap:56px; align-items:start; }
.q-item.span .plate { margin-top:10px; }
.q-item.wide { grid-column:1 / -1; }
.q-item:target .q { text-decoration:underline; text-decoration-color:var(--line-gold); text-underline-offset:5px; }
.get.q-get { border-top:1px solid var(--line); padding:112px 0 128px; }

/* ================= a middle width: 760 to 1099 ================= */
@media (max-width:1099px) {
  :root { --gut:48px; }
  .hero .in { padding:48px 0 72px; }
  .hero h1 { font-size:56px; }
  .spread { display:flex; flex-direction:column; }
  .spread .head { order:-1; padding:0 0 40px; }
  .spread .big { width:min(100%, var(--bw)); }
  .spread .small { width:min(100%, var(--sw)); align-self:flex-end; margin-top:48px; }
  .ask .in { display:block; }
  .ask h2 { margin-bottom:40px; }
  .q-grp { column-gap:40px; }
  .q-item.span { display:block; }
  .q-item.span .plate { margin-top:30px; }
}

/* ================= a phone: below 760 ================= */
@media (max-width:759px) {
  :root { --gut:20px; }
  body { font-size:17px; }
  .on-desk { display:none; }
  .on-phone, .dlb.on-phone { display:flex; }
  p.on-phone { display:block; }
  .top .in { height:64px; }
  .brand img { width:101px; height:36px; }
  .nav { gap:22px; }
  .nav a:not(.dlb) { font-size:16px; }
  .dlb { width:100%; }
  .hero .in { padding:40px 0 48px; }
  .hero-copy { display:block; margin-bottom:40px; }
  .hero h1 { font-size:44px; white-space:normal; }
  .hero h1 br { display:inline; }
  .hero .for { font-size:19px; margin:16px 0 28px; }
  .hero .p-open { margin-bottom:16px; }
  .hero .dlb { margin:0 0 0 3px; width:calc(100% - 6px); }
  .part { padding-top:88px; }
  .part h2, .ask h2 { font-size:36px; }
  .spread .head { padding-bottom:32px; }
  .spread .big, .spread .small { width:100%; }
  figcaption { font-size:20px; margin-top:22px; }
  .ask { margin-top:88px; padding:72px 0 80px; }
  .ask h2 { margin-bottom:24px; }
  .ask ul { display:block; }
  .ask li a { font-size:20px; }
  .get { padding:96px 0 104px; }
  .get::before { width:520px; height:520px; }
  .get-logo { width:248px; height:88px; margin-bottom:44px; }
  .get .dlb { width:calc(100% - 6px); }
  .q-head { padding:48px 0 0; }
  .q-head h1 { font-size:44px; }
  .q-index { gap:4px 22px; margin-top:24px; }
  .q-index a { font-size:17px; }
  .q-grp { display:block; padding-top:64px; }
  .q-grp h2 { font-size:30px; }
  .q-item .q { font-size:20px; }
  .q-item .plate { width:fit-content; }
  .get.q-get { padding:80px 0 88px; }
}
