/* Doppi Guide pages. The HTML and glyphs.css are generated by Scripts/guide-web.py
   in the Doppi app repo; this file is written by hand. Look borrowed from /versions/. */

body {
	min-height: 100vh;
	background: linear-gradient(#fff, #efeff4);
	color: #454547;
}

main {
	display: block;
	width: 640px;
	max-width: 100%;
	margin: 0 auto;
	padding: 120px 0;
}

/* "Doppi Guide" on one line, as on the version history page. */
.intro {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 0.25em;
	margin-bottom: 60px;
}

.intro h1, .intro h2 {
	font-size: 36px;
	line-height: 52px;
	letter-spacing: -0.9px;
}

.intro h1 {
	padding-left: 64px;
	background-size: 52px 52px;
}

.intro a {
	color: inherit;
}

h2.section {
	margin-bottom: 12px;
	color: inherit;
}

/* The site's base styles make these flex columns. */
.topic, .group {
	display: block;
}

.topic {
	padding-top: 28px;
	scroll-margin-top: 12px;
}

h3 {
	font-size: 18px;
	line-height: 24px;
	letter-spacing: -0.4px;
	margin-bottom: 6px;
}

p, li {
	font-size: 16px;
	line-height: 24px;
	font-weight: 400;
}

.topic p, .topic ul {
	margin-bottom: 10px;
}

.topic ul, .group ul {
	padding-left: 22px;
}

/* The devices a wording is for. */
.topic .devices {
	font-size: 13px;
	line-height: 18px;
	font-weight: 600;
	color: #8E8E93;
	margin: 12px 0 2px;
}

.topic h3 + .devices {
	margin-top: 0;
}

strong {
	font-weight: 600;
}

kbd {
	font: inherit;
	font-size: .9em;
	white-space: nowrap;
	padding: 0 5px;
	border-radius: 5px;
	border: 1px solid rgba(0, 0, 0, .16);
	box-shadow: 0 1px 0 rgba(0, 0, 0, .16);
}

/* Inline icons: a mask filled with the text color. Sizes are in glyphs.css. */
.glyph {
	display: inline-block;
	background-color: currentColor;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
}

img.shot {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	margin: 16px 0;
}

/* Guide index: one group per section. */
.group {
	margin-bottom: 32px;
}

.group h3 a {
	color: inherit;
}

.group li, .sections li {
	list-style: none;
}

.group ul {
	padding-left: 0;
}

/* Links to every section, at the end of a section page. */
.sections {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
	margin-top: 60px;
	padding-top: 24px;
	border-top: 1px solid rgba(0, 0, 0, .1);
}

.sections a[aria-current] {
	color: inherit;
	font-weight: 600;
}

.more {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
	margin-top: 24px;
}

@media (max-width: 680px) {
	main {
		padding: 60px 20px;
	}

	.intro h1, .intro h2 {
		font-size: 28px;
		line-height: 44px;
		letter-spacing: -0.6px;
	}

	.intro h1 {
		padding-left: 54px;
		background-size: 44px 44px;
	}
}
