/* Kymlun: the DarkFantasy look of forum.kymlun.com (website/nwn-forum), its images, at any width */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { background: #0b1e29; }

body {
	background: #0b1e29 url("/images/bg.jpg") top center repeat-x;
	color: #0f1415;
	font: 15px/1.55 Verdana, Arial, sans-serif;
	/* the frame starts below the band of bg.jpg: padding, since a margin would collapse through body */
	padding: 88px 12px 10px;
	min-height: 100vh;
}

a:link, a:visited { color: #114057; text-decoration: none; }
a:hover, a:focus-visible { color: #172f3b; text-decoration: underline; }

/* the frame: silver edges down both sides */
#wrapper {
	position: relative;
	max-width: 916px;
	margin: 0 auto;
	background: url("/images/wrapper.jpg") top center / 100% auto repeat-y;
}

#header {
	position: absolute;
	top: -88px;
	left: 5%;
	height: 106px;
	z-index: 1;
}
#header img { display: block; max-width: 100%; height: auto; }

/* the torn parchment: middle, top (with the winged figure) and bottom */
#parchment {
	display: block;
	margin: 0 2.1%;
	background: url("/images/content.jpg") top center / 100% auto repeat-y;
}
#parchment .top { background: url("/images/content_top.jpg") top center / 100% auto no-repeat; }
#parchment .bottom {
	background: url("/images/content_bottom.jpg") bottom center / 100% auto no-repeat;
	padding: 56px 13% 76px;
	min-height: 360px;
	text-align: center;
}

h1 {
	font: normal 3.4em/1.1 "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
	letter-spacing: .12em;
	color: #172f3b;
	text-shadow: 0 1px 0 rgba(255, 255, 255, .45);
}

.tagline {
	margin-top: .4em;
	font: italic 1.15em/1.4 "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
	color: #2a3a42;
}

/* a thin rule with a diamond in the middle */
.rule {
	position: relative;
	height: 14px;
	margin: 22px auto 24px;
	max-width: 320px;
}
.rule::before {
	content: "";
	position: absolute;
	left: 0; right: 0; top: 6px;
	border-top: 1px solid #5d6f78;
	border-bottom: 1px solid rgba(255, 255, 255, .5);
}
.rule span {
	position: absolute;
	left: 50%; top: 1px;
	width: 12px; height: 12px;
	margin-left: -6px;
	background: #172f3b;
	border: 1px solid #b8c6cc;
	transform: rotate(45deg);
}

p { margin: 0 auto 1em; max-width: 34em; }

/* the call to arms: dark steel with a silver edge, like the forum's frame */
.join { margin: 1.6em auto .6em; }
a.button {
	display: inline-block;
	padding: .8em 2.2em;
	font: bold 1.15em/1.2 "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #e3ecef;
	background: linear-gradient(#24495c, #12303f 55%, #0b1e29);
	border: 1px solid #0b1e29;
	border-radius: 4px;
	box-shadow: inset 0 0 0 1px #8fa6b1, inset 0 2px 0 rgba(255, 255, 255, .18), 0 3px 8px rgba(11, 30, 41, .55);
	text-shadow: 0 1px 2px #000;
	transition: background .15s, box-shadow .15s, transform .15s;
}
a.button:hover, a.button:focus-visible {
	color: #fff;
	text-decoration: none;
	background: linear-gradient(#2f5d74, #17394b 55%, #0e2532);
	box-shadow: inset 0 0 0 1px #c9d6dc, inset 0 2px 0 rgba(255, 255, 255, .25), 0 4px 12px rgba(11, 30, 41, .7);
	transform: translateY(-1px);
}
a.button:active { transform: translateY(1px); }
a.button:focus-visible { outline: 2px solid #114057; outline-offset: 3px; }

.invite { font-size: .9em; }
.server { margin-top: 1.8em; font-size: .85em; color: #3d4b52; }

#footer {
	/* footer.gif is 960 px to the frame's 916: as on the forum, it overhangs, so its edges meet the frame's */
	background: url("/images/footer.gif") bottom center / 104.8% 100% no-repeat;
	padding: 24px 0 46px;
	text-align: center;
	font-size: .8em;
}
#footer a:link, #footer a:visited { color: #8a9aa2; }
#footer a:hover { color: #c3d0d6; }

@media (max-width: 640px) {
	body { font-size: 14px; padding: 88px 6px 10px; }
	#header { top: -80px; left: 4%; height: auto; }
	#header img { width: 110px; }
	#parchment .bottom { padding: 48px 9% 60px; min-height: 0; }
	h1 { font-size: 2.6em; }
	a.button { padding: .8em 1.4em; }
}

@media (prefers-reduced-motion: reduce) {
	a.button { transition: none; }
}
