/* Crew Ships' website (12D): the game's warm parchment colours (Game/client/ui/ui_kit.gd: INK, OUTLINE, SOFT_INK,
   MESSAGE_INK, CHOSEN_COLOR, KNOB_PAPER), system fonts only, readable from 320 px wide. */

:root {
	--paper: #f1dfb8;
	--card: #fbf1dc;
	--ink: #3a2414;
	--soft: #6b5440;
	--outline: #462a1c;
	--accent: #9a3a1c;
	--gold: #f2b33d;
	--sea: #2b7fc6;
	--note: #fff3c4;
	--rule: #d9c39a;
}

@media (prefers-color-scheme: dark) {
	:root {
		--paper: #1f1912;
		--card: #2b231a;
		--ink: #f1e6d2;
		--soft: #c7b39a;
		--outline: #b07a40;
		--accent: #f0a46a;
		--gold: #f2b33d;
		--sea: #4d9be0;
		--note: #3d3220;
		--rule: #4a3b2a;
	}
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

header.top {
	background: var(--sea);
	border-bottom: 4px solid var(--outline);
	padding: .6rem 1rem;
}

header.top .bar {
	max-width: 46rem;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .4rem 1.2rem;
}

a.brand {
	display: flex;
	align-items: center;
	gap: .55rem;
	color: #fffaf0;
	font-weight: 800;
	font-size: 1.35rem;
	letter-spacing: .04em;
	text-decoration: none;
}

a.brand img { width: 40px; height: 40px; border-radius: 9px; border: 2px solid var(--outline); }

nav { display: flex; flex-wrap: wrap; gap: .2rem 1rem; }
nav a { color: #fffaf0; font-weight: 600; }

main {
	max-width: 46rem;
	margin: 1.25rem auto 1rem;
	padding: 1.25rem 1.1rem 1.5rem;
	background: var(--card);
	border: 3px solid var(--outline);
	border-radius: 14px;
	margin-left: max(.75rem, calc((100% - 46rem) / 2));
	margin-right: max(.75rem, calc((100% - 46rem) / 2));
}

h1 { font-size: 1.7rem; line-height: 1.2; margin: .2rem 0 .8rem; }
h2 { font-size: 1.25rem; margin: 1.8rem 0 .5rem; padding-top: .9rem; border-top: 2px dashed var(--rule); }
h3 { font-size: 1.05rem; margin: 1.2rem 0 .3rem; }
p, ul, ol { margin: .5rem 0 .8rem; }
li { margin: .25rem 0; }
ul, ol { padding-left: 1.3rem; }
strong { color: var(--ink); }
code { font-size: .92em; overflow-wrap: anywhere; }

p.lead { font-size: 1.12rem; }
p.small, small { color: var(--soft); font-size: .92rem; }

.box {
	background: var(--paper);
	border: 2px solid var(--rule);
	border-radius: 10px;
	padding: .4rem .9rem;
}

a.button {
	display: inline-block;
	margin: .3rem .5rem .3rem 0;
	padding: .65rem 1.2rem;
	border: 2px solid var(--outline);
	border-radius: 10px;
	background: var(--gold);
	color: #3a2414;
	font-weight: 700;
	text-decoration: none;
}

a.button:hover { filter: brightness(1.06); }

.hero { text-align: center; }
.hero img { width: 128px; height: 128px; border-radius: 26px; border: 3px solid var(--outline); }

footer {
	max-width: 46rem;
	margin: 0 auto 2rem;
	padding: 0 1rem;
	color: var(--soft);
	font-size: .92rem;
	text-align: center;
}

footer a { color: var(--soft); }
