/*
 * css/md_site.css - THE FRONT SITE (core/Site/Site.php is the map): the front page, the game guide, the
 * primordials, the news. Loaded after css.public.css, only by pages that call md_site_head() or draw
 * md_site_bar(). Nothing in the game window loads it.
 *
 * THE LOOK: the realm's sketchbook. The page is the game's own paper; a long text sits on a lighter sheet
 * laid on it; a drawing is shown as a drawing (no frame, no box, the paper showing through it) with a
 * pencilled caption under it. Ink for words, one wax red for links, gilt only on the door into the game.
 * Georgia carries the words, Caveat the pencilled notes, Jost the small interface words. The one thing that
 * moves by itself is a primordial's portrait. No boxes inside boxes; rules and space make the order.
 *
 * Mobile first. Breakpoints: 640px (two columns begin), 900px (the bar on one line, the guide's side list).
 */

:root {
	--site-ink: #24180c;
	--site-ink-soft: #5d4a31;
	--site-ink-faint: #806c4b;
	--site-sheet: #f1e8d2;
	--site-sheet-edge: #cdbd95;
	--site-wax: #8b1a0e;
	--site-gilt: #f0bd45;
	--site-bark: #170c05;
	--site-rule: rgba(70, 51, 32, .3);
	--site-serif: Georgia, 'Times New Roman', serif;
	--site-hand: 'Caveat', 'Patrick Hand', cursive;
}
.pub-site { color: var(--site-ink); }
.pub-site .pub-head { display: none; } /* the bar replaces the plain strip of the signup page */

/* ------------------------------------------------------------------ the bar */
.site-bar {
	background: var(--site-bark) url('/img/homepage/nbg_footer.jpg') repeat;
	border-bottom: 3px solid #3a2410;
	position: relative;
	z-index: 5;
}
.site-bar-in {
	max-width: 1120px;
	margin: 0 auto;
	padding: 8px 16px 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 18px;
}
.pub .site-brand {
	font-family: var(--site-serif);
	font-style: italic;
	font-size: 25px;
	line-height: 40px;
	color: #f6e7bd;
	letter-spacing: .01em;
}
.pub .site-brand:hover { color: #fff; text-decoration: none; }
.site-doors { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.pub .site-login { color: #d9c9a2; font-size: 15px; }
.pub .site-login:hover { color: #fff; }
.pub .site-join {
	display: inline-block;
	padding: 6px 16px;
	border-radius: 4px;
	font-weight: 600;
	font-size: 15px;
	color: #2a1606;
	background: linear-gradient(#ffe27a, var(--site-gilt));
	border: 1px solid #a8741a;
}
.pub .site-join:hover { color: #000; text-decoration: none; background: linear-gradient(#fff0a8, #ffcb55); }
.site-nav {
	order: 3;
	flex: 1 0 100%;
	display: flex;
	gap: 4px 22px;
	overflow-x: auto;
	white-space: nowrap;
	padding: 2px 0 9px;
	scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.pub .site-nav a { color: #d9c9a2; font-size: 16px; padding: 3px 0; border-bottom: 2px solid transparent; }
.pub .site-nav a:hover { color: #fff; text-decoration: none; border-bottom-color: #6b5230; }
.pub .site-nav a.on { color: #fff; border-bottom-color: var(--site-gilt); }
.site-bar a:focus-visible, .site-foot-nav a:focus-visible { outline: 2px solid var(--site-gilt); outline-offset: 3px; }
@media (min-width: 900px) {
	.site-bar-in { flex-wrap: nowrap; padding: 8px 20px; }
	.site-nav { order: 0; flex: 1 1 auto; padding: 0 0 0 14px; overflow: visible; }
}

/* ------------------------------------------------------------------ the foot */
.site-foot-nav {
	max-width: 1000px;
	margin: 0 auto 26px;
	padding: 0 16px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px 24px;
	text-align: left;
}
/* on the login page the foot lies on the pale bark: ink there, light words only on the dark foot */
.pub .site-foot-nav h2 { font-family: var(--site-serif); font-size: 17px; font-style: italic; color: #3d2a17; margin: 0 0 6px; }
.site-foot-nav ul { list-style: none; margin: 0; padding: 0; }
.site-foot-nav li { padding: 3px 0; }
.pub .site-foot-nav a { color: #6b1a10; font-size: 15px; }
.pub .site-foot-nav a:hover { color: #000; }
.pub .pub-foot.dark .site-foot-nav h2 { color: #f1dfb1; }
.pub .pub-foot.dark .site-foot-nav a { color: #cdbb93; }
.pub .pub-foot.dark .site-foot-nav a:hover { color: #fff; }
@media (min-width: 640px) { .site-foot-nav { grid-template-columns: repeat(4, 1fr); } }

/* ------------------------------------------------------------------ a page */
.site-page { width: 100%; max-width: 1120px; margin: 0 auto; padding: 18px 16px 56px; }
.site-page.narrow { max-width: 860px; }
@media (min-width: 640px) { .site-page { padding: 26px 24px 72px; } }

.site-crumbs { font-size: 14px; color: var(--site-ink-soft); margin: 0 0 14px; }
.site-crumbs span[aria-hidden] { margin: 0 3px; color: var(--site-ink-faint); }

.pub-site h1.site-title { font-size: 32px; line-height: 1.12; margin: 0 0 10px; color: #1b0f05; }
.site-lead { font-family: var(--site-serif); font-size: 18px; line-height: 1.55; color: #3d2a17; margin: 0 0 18px; max-width: 46em; }
@media (min-width: 640px) { .pub-site h1.site-title { font-size: 42px; } .site-lead { font-size: 20px; } }

/* a long text lies on a lighter sheet of paper */
.site-sheet {
	background: var(--site-sheet);
	border: 1px solid var(--site-sheet-edge);
	box-shadow: 0 2px 0 rgba(60, 40, 15, .18), 0 14px 30px -18px rgba(40, 25, 5, .55);
	padding: 22px 18px 28px;
}
@media (min-width: 640px) { .site-sheet { padding: 34px 40px 44px; } }

.site-prose { font-family: var(--site-serif); font-size: 17px; line-height: 1.68; color: #2a1d0f; }
.site-prose p { margin: 0 0 1em; max-width: 40em; }
.pub-site .site-prose h2 { font-size: 25px; margin: 1.7em 0 .45em; color: #1b0f05; scroll-margin-top: 16px; }
.pub-site .site-prose h2:first-child { margin-top: 0; }
.pub-site .site-prose h3 { font-size: 19px; margin: 1.3em 0 .35em; }
.site-prose a { text-decoration: underline; text-decoration-color: rgba(139, 26, 14, .4); text-underline-offset: 2px; }

/* a drawing: no frame, the paper shows through it, a pencilled line under it */
.site-fig { margin: 0; }
.site-fig img, .site-fig video { display: block; width: 100%; height: auto; }
.site-fig.ink img { mix-blend-mode: multiply; }
.site-fig figcaption, .site-note {
	font-family: var(--site-hand);
	font-size: 20px;
	line-height: 1.2;
	color: var(--site-ink-soft);
}
.site-fig figcaption { margin-top: 6px; text-align: center; }

/* the door into the game, repeated at the end of a page */
.site-cta {
	margin: 38px 0 0;
	padding: 22px 0 0;
	border-top: 2px solid var(--site-rule);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 22px;
}
.site-cta p { margin: 0; font-family: var(--site-serif); font-size: 18px; color: #3d2a17; flex: 1 1 280px; }
.pub .site-cta .site-join { font-size: 17px; padding: 9px 22px; }

/* a plain list of links with what each holds */
.site-list { list-style: none; margin: 0; padding: 0; }
.site-list li { padding: 9px 0; border-bottom: 1px solid var(--site-rule); font-family: var(--site-serif); font-size: 17px; }
.site-list li span { display: block; font-size: 15px; color: var(--site-ink-soft); }

.site-two { display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 900px) { .site-two { grid-template-columns: 1fr 1fr; gap: 44px; } }

/* ------------------------------------------------------------------ the guide: its front */
.guide-group { margin: 40px 0 0; }
.pub-site .guide-group > h2 { font-size: 26px; margin: 0 0 4px; }
.guide-group > p { font-family: var(--site-serif); color: var(--site-ink-soft); margin: 0 0 16px; font-size: 17px; }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 20px; }
@media (min-width: 640px) { .guide-grid { grid-template-columns: repeat(3, 1fr); gap: 34px 28px; } }
@media (min-width: 1000px) { .guide-grid { grid-template-columns: repeat(4, 1fr); } }
.pub a.guide-card { display: block; color: var(--site-ink); }
.pub a.guide-card:hover { text-decoration: none; }
.guide-card .pic { aspect-ratio: 4 / 3; overflow: hidden; }
.guide-card img { display: block; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .22s cubic-bezier(.22, 1, .36, 1); }
.pub a.guide-card:hover img { transform: scale(1.04); }
.guide-card b { display: block; font-family: var(--site-serif); font-weight: normal; font-size: 20px; line-height: 1.2; margin: 8px 0 3px; color: var(--site-wax); }
.guide-card span { display: block; font-size: 15px; line-height: 1.4; color: #4a3722; }
@media (prefers-reduced-motion: reduce) { .guide-card img { transition: none; } .pub a.guide-card:hover img { transform: none; } }

/* the guide: a chapter */
.guide-top { display: grid; grid-template-columns: 1fr; gap: 14px 40px; align-items: center; margin-bottom: 22px; }
.guide-top .site-fig { max-width: 460px; }
@media (min-width: 900px) { .guide-top { grid-template-columns: 1fr 440px; } .guide-top .site-fig { justify-self: end; } }
.guide-body { display: grid; grid-template-columns: 1fr; gap: 20px 44px; }
.guide-toc { font-size: 15px; }
.guide-toc b { display: block; font-family: var(--site-hand); font-weight: normal; font-size: 22px; color: var(--site-ink-soft); margin-bottom: 4px; }
.guide-toc ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 20px; }
.guide-toc li { padding: 3px 0; break-inside: avoid; }
@media (min-width: 900px) {
	.guide-body { grid-template-columns: 210px minmax(0, 1fr); }
	.guide-toc { position: sticky; top: 14px; align-self: start; max-height: calc(100vh - 28px); overflow-y: auto; padding-right: 6px; }
	.guide-toc ol { columns: 1; }
}
.guide-live {
	margin: 2.2em 0 0;
	padding: 14px 18px 6px;
	border: 1.5px dashed var(--site-ink-faint);
	max-width: 40em;
}
.guide-live > b { font-family: var(--site-hand); font-weight: normal; font-size: 23px; color: #3d2a17; }
.guide-live dl { margin: 8px 0 0; font-size: 16px; line-height: 1.5; }
.guide-live dt { font-weight: bold; margin-top: 8px; }
.guide-live dd { margin: 0 0 8px; }
.guide-also { margin-top: 2.2em; max-width: 40em; }
.pub-site .guide-also h2 { font-size: 22px; }
.guide-also ul { margin: 0; padding-left: 20px; }
.guide-also li { padding: 3px 0; }
.guide-turn { display: flex; justify-content: space-between; gap: 20px; margin-top: 30px; font-family: var(--site-serif); font-size: 17px; }
.guide-turn span { display: block; font-family: var(--site-hand); font-size: 19px; color: var(--site-ink-soft); }
.guide-turn .next { text-align: right; margin-left: auto; }
.guide-pic2 { margin: 1.6em 0; max-width: 620px; }

/* the questions */
.faq-jump { columns: 1; margin: 0 0 26px; padding: 0; list-style: none; font-size: 15.5px; }
.faq-jump li { padding: 3px 0; break-inside: avoid; }
@media (min-width: 640px) { .faq-jump { columns: 2; column-gap: 32px; } }
.pub-site .site-prose .faq-q { font-size: 21px; margin: 1.5em 0 .3em; }
.faq-groups { display: grid; grid-template-columns: 1fr; gap: 6px 36px; }
@media (min-width: 640px) { .faq-groups { grid-template-columns: 1fr 1fr; } }
.faq-groups section { padding: 14px 0 6px; border-top: 1px solid var(--site-rule); }
.pub-site .faq-groups h2 { font-size: 22px; margin: 0 0 2px; }
.faq-groups p { margin: 0 0 8px; color: var(--site-ink-soft); font-size: 15px; }
.faq-groups ul { margin: 0; padding-left: 18px; font-size: 15.5px; }
.faq-groups li { padding: 2px 0; }

/* ------------------------------------------------------------------ the primordials */
.prim-wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 16px; margin: 26px 0 0; }
@media (min-width: 640px) { .prim-wall { grid-template-columns: repeat(3, 1fr); gap: 34px 26px; } }
@media (min-width: 1000px) { .prim-wall { grid-template-columns: repeat(4, 1fr); } }
.pub a.prim-card { display: block; color: var(--site-ink); text-align: center; }
.pub a.prim-card:hover { text-decoration: none; }
.prim-card .plate, .prim-plate {
	position: relative;
	aspect-ratio: 1 / 1;
	background: #1a120b;
	border: 6px solid #f4ecd8;
	outline: 1px solid var(--site-sheet-edge);
	box-shadow: 0 10px 22px -14px rgba(30, 18, 4, .8);
	overflow: hidden;
}
.prim-card img, .prim-card video, .prim-plate img, .prim-plate video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prim-card video, .prim-plate video { opacity: 0; transition: opacity .25s; }
.prim-card video.on, .prim-plate video.on { opacity: 1; }
.prim-card b { display: block; font-family: var(--site-hand); font-weight: normal; font-size: 25px; line-height: 1.05; margin: 9px 0 1px; color: #2a1d0f; }
.prim-card span { display: block; font-size: 14px; color: var(--site-ink-soft); }
.pub a.prim-card:hover b { color: var(--site-wax); }

.prim-head { display: grid; grid-template-columns: 1fr; gap: 20px 44px; align-items: start; }
@media (min-width: 900px) { .prim-head { grid-template-columns: minmax(0, 1fr) 420px; } }
.prim-facts { margin: 16px 0 0; padding: 0; list-style: none; font-family: var(--site-serif); font-size: 17px; }
.prim-facts li { padding: 7px 0; border-top: 1px solid var(--site-rule); }
.prim-facts li b { font-weight: normal; color: var(--site-ink-soft); margin-right: 6px; }
.prim-forms { margin: 34px 0 0; }
.pub-site .prim-forms > h2 { font-size: 27px; margin: 0 0 4px; }
.prim-forms > p { font-family: var(--site-serif); color: var(--site-ink-soft); margin: 0 0 18px; font-size: 17px; }
.prim-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 16px; }
@media (min-width: 640px) { .prim-steps { grid-template-columns: repeat(3, 1fr); gap: 34px 26px; } }
.prim-step figcaption { text-align: left; font-size: 21px; margin-top: 8px; }
.prim-step figcaption small { display: block; font-family: 'Jost', sans-serif; font-size: 13.5px; color: var(--site-ink-soft); }
.prim-play {
	position: absolute; right: 8px; bottom: 8px; z-index: 2;
	font: 500 13px/1 'Jost', sans-serif; color: #2a1606;
	background: rgba(246, 231, 189, .92); border: 0; border-radius: 3px; padding: 6px 9px; cursor: pointer;
}
.prim-play:hover { background: #fff; }
.prim-play:focus-visible { outline: 2px solid var(--site-gilt); outline-offset: 2px; }

/* ------------------------------------------------------------------ the front page */
.home-band { margin: 64px auto 0; max-width: 1040px; }
.pub-site .home-band h2 { font-size: 30px; margin: 0 0 8px; line-height: 1.15; }
.home-band > .site-lead { margin-bottom: 20px; }
.home-more { margin: 16px 0 0; font-family: var(--site-serif); font-size: 17px; }
.home-about { display: grid; grid-template-columns: 1fr; gap: 20px 44px; align-items: center; }
@media (min-width: 900px) { .home-about { grid-template-columns: minmax(0, 1fr) 440px; } }
.home-about p { font-family: var(--site-serif); font-size: 18px; line-height: 1.65; margin: 0 0 14px; color: #2a1d0f; }
.home-ways { display: grid; grid-template-columns: 1fr; gap: 0 36px; margin-top: 8px; }
@media (min-width: 640px) { .home-ways { grid-template-columns: 1fr 1fr; } }
.home-ways div { padding: 12px 0; border-top: 1px solid var(--site-rule); }
.pub-site .home-ways h3 { font-size: 20px; margin: 0 0 3px; }
.home-ways p { margin: 0; font-size: 16px; line-height: 1.5; color: #3d2a17; }
.home-shelf { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 16px; align-items: end; padding-bottom: 12px; border-bottom: 2px solid #5b4a2a; }
@media (min-width: 640px) { .home-shelf { grid-template-columns: repeat(4, 1fr); gap: 20px 22px; } }
.pub a.home-book { display: block; color: var(--site-ink); }
.home-book img { display: block; width: 100%; height: auto; box-shadow: 0 8px 16px -8px rgba(20, 10, 0, .7); transition: transform .2s cubic-bezier(.22, 1, .36, 1); }
.pub a.home-book:hover { text-decoration: none; }
.pub a.home-book:hover img { transform: translateY(-4px); }
.home-book b { display: block; font-family: var(--site-serif); font-weight: normal; font-size: 16px; line-height: 1.25; margin-top: 9px; }
.home-book span { font-size: 13.5px; color: var(--site-ink-soft); }
@media (prefers-reduced-motion: reduce) { .home-book img { transition: none; } .pub a.home-book:hover img { transform: none; } }
.home-news { list-style: none; margin: 0; padding: 0; }
.home-news li { padding: 9px 0; border-bottom: 1px solid var(--site-rule); font-family: var(--site-serif); font-size: 17.5px; display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: baseline; }
.home-news time { font-family: 'Jost', sans-serif; font-size: 13.5px; color: var(--site-ink-soft); white-space: nowrap; }
.pub-site .pub-rating.low { margin-top: 70px; }
.pub-site .pub-reg { max-width: 1120px; }
.pub-site .pub-reg > .pub-reg-title, .pub-site .pub-reg > .pub-reg-lead, .pub-site .pub-reg > .pub-step { max-width: 900px; margin-left: auto; margin-right: auto; }

/* ------------------------------------------------------------------ the /page/ pages (news, adventure log) in the site's look */
body.site-feed { margin: 0; background: #0e0000; font-family: Georgia, 'Times New Roman', serif; }
.site-feed .site-bar { font-family: 'Jost', 'Segoe UI', Arial, sans-serif; }
.site-feed .site-bar a { text-decoration: none; }
.site-feed .site-brand { font-family: Georgia, serif; font-style: italic; font-size: 25px; line-height: 40px; color: #f6e7bd; }
.site-feed .site-login { color: #d9c9a2; font-size: 15px; }
.site-feed .site-join { display: inline-block; padding: 6px 16px; border-radius: 4px; font-weight: 600; font-size: 15px; color: #2a1606; background: linear-gradient(#ffe27a, #f0bd45); border: 1px solid #a8741a; }
.site-feed .site-nav a { color: #d9c9a2; font-size: 16px; padding: 3px 0; border-bottom: 2px solid transparent; }
.site-feed .site-nav a.on { color: #fff; border-bottom-color: #f0bd45; }
.site-feed .site-feed-main { background: #baab81 url('/img/homepage/nbg_pagbg.jpg') repeat; padding: 22px 12px 60px; }
.site-feed .container_page {
	max-width: 780px; margin: 0 auto; padding: 24px 20px 34px; border-radius: 0;
	background: #f1e8d2; border: 1px solid #cdbd95;
	box-shadow: 0 2px 0 rgba(60, 40, 15, .18), 0 14px 30px -18px rgba(40, 25, 5, .55);
	font-family: Georgia, 'Times New Roman', serif; font-size: 17px; line-height: 1.62; color: #2a1d0f;
}
@media (min-width: 640px) { .site-feed .container_page { padding: 34px 44px 44px; } }
.site-feed h1.header_title { font-size: 31px; font-weight: normal; line-height: 1.15; margin: 0 0 12px; color: #1b0f05; }
.site-feed .feed_item h2 { font-size: 21px; font-weight: normal; }
.site-feed .feed_meta, .site-feed .feed_lead { font-family: 'Jost', 'Segoe UI', Arial, sans-serif; font-size: 14.5px; }
.site-feed .feed_neighbours { border-top-color: rgba(70, 51, 32, .3); }
.site-feed .feed_pager { font-family: 'Jost', 'Segoe UI', Arial, sans-serif; }
.site-feed-foot { background: #0e0000 url('/img/homepage/nbg_footer.jpg') repeat; padding: 40px 0 46px; font-family: 'Jost', 'Segoe UI', Arial, sans-serif; text-align: center; color: #8f7f68; font-size: 13px; }
.site-feed-foot .site-foot-nav h2 { font-family: Georgia, serif; font-size: 17px; font-style: italic; font-weight: normal; color: #f1dfb1; margin: 0 0 6px; }
.site-feed-foot .site-foot-nav a { color: #cdbb93; font-size: 15px; text-decoration: none; }
.site-feed-foot .site-foot-nav a:hover { color: #fff; }
