/* ===========================================================================
   www.slimpinball.org - the stylesheet of the site on a phone

   The page links this file for a screen 800 pixels wide or narrower and
   desktop.css for anything wider, so a phone loads this file and never
   applies desktop.css. It is a whole stylesheet, not a list of changes to
   desktop.css.

   What is different from desktop.css:
     - The page is as wide as the screen, with a 16 pixel gutter.
     - The header is two rows: the name of the site, then the breadcrumb.

   A change to anything the two share has to be made in desktop.css as well.

   Font sizes are the five of desktop.css.

   Contents
     1. Colors
     2. The page, its header and footer
     3. The words and pictures of a page
   =========================================================================== */


/* 1. Colors ---------------------------------------------------------------- */

:root {
	--back: #101418;
	--panel: #181e24;
	--line: #2a333c;
	--text: #d8dee4;
	--quiet: #8a96a2;
	--accent: #3cc8dc;
	--accent-hover: #7ee0ee;
}


/* 2. The page, its header and footer --------------------------------------- */

html, body {
	margin: 0;
	padding: 0;
	background: var(--back);
	color: var(--text);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 15px;
	line-height: 1.6;
}

#page {
	padding: 0 16px;
}

#header {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 0 12px;
	border-bottom: 1px solid var(--line);
}

#logo {
	color: var(--accent);
	font-size: 20px;
	font-weight: bold;
	letter-spacing: 1px;
	text-decoration: none;
}

#breadcrumb {
	font-size: 13px;
	color: var(--quiet);
}

#breadcrumb a {
	color: var(--quiet);
	text-decoration: none;
}

#breadcrumb a + a::before {
	content: "/";
	margin: 0 8px;
	color: var(--line);
}

#content {
	padding: 16px 0 32px;
}

#footer {
	padding: 16px 0 24px;
	border-top: 1px solid var(--line);
	color: var(--quiet);
	font-size: 12px;
}


/* 3. The words and pictures of a page -------------------------------------- */

h1 {
	font-size: 26px;
	margin: 0 0 12px;
}

h2 {
	font-size: 20px;
	margin: 24px 0 8px;
}

p {
	margin: 0 0 16px;
}

a {
	color: var(--accent);
}

.lead {
	color: var(--quiet);
}

.picture {
	margin: 16px 0;
}

.picture img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--line);
	border-radius: 6px;
}
