/* filipegoncalves.me/apps
   Layout alinhado com o site principal (Dimension by HTML5 UP).
   Escala mais compacta do que a do site: são páginas de leitura, não capa. */

@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300italic,600italic,300,600");

* { box-sizing: border-box; }

html {
	font-size: 13pt;
	background-color: #1b1f22;
	background-image:
		linear-gradient(to top, rgba(19, 21, 25, 0.65), rgba(19, 21, 25, 0.65)),
		url('/images/overlay.png'),
		url('/images/bg.jpg');
	background-size: auto, 256px 256px, cover;
	background-position: center, center, center;
	background-repeat: no-repeat, repeat, no-repeat;
	background-attachment: fixed, fixed, fixed;
}

@media screen and (max-width: 1680px) {
	html { font-size: 10.5pt; }
}

@media screen and (max-width: 736px) {
	html { font-size: 10pt; }
}

body {
	margin: 0;
	padding: 2.5rem 1.25rem;
	min-height: 100vh;
	background: transparent;
	color: #ffffff;
	font-family: 'Source Sans Pro', Helvetica, sans-serif;
	font-weight: 300;
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.panel {
	position: relative;
	width: 62rem;
	max-width: 100%;
	margin: 0 auto;
	padding: 2.5rem 3rem 2rem 3rem;
	background-color: rgba(27, 31, 34, 0.85);
	border-radius: 4px;
}

@media screen and (max-width: 736px) {
	.panel { padding: 1.75rem 1.25rem; }
}

/* Type */

h1, h2, h3 {
	color: #ffffff;
	font-weight: 600;
	line-height: 1.5;
	margin: 0 0 0.85rem 0;
	text-transform: uppercase;
	letter-spacing: 0.2rem;
}

h1 {
	font-size: 1.35rem;
	line-height: 1.4;
	letter-spacing: 0.4rem;
	margin-bottom: 0.2rem;
}

h2 {
	font-size: 1.1rem;
	letter-spacing: 0.4rem;
	border-bottom: solid 1px #ffffff;
	width: max-content;
	max-width: 100%;
	padding-bottom: 0.4rem;
	margin: 2.5rem 0 1.25rem 0;
}

h3 {
	font-size: 0.9rem;
	margin-bottom: 0.5rem;
}

p, ul {
	margin: 0 0 1.25rem 0;
}

ul {
	padding-left: 1.15rem;
}

li {
	padding-left: 0.25rem;
	margin-bottom: 0.4rem;
}

strong, b {
	font-weight: 600;
}

a {
	color: inherit;
	text-decoration: none;
	border-bottom: dotted 1px rgba(255, 255, 255, 0.5);
	transition: border-bottom-color 0.2s ease-in-out;
}

a:hover {
	border-bottom-color: transparent;
}

code {
	font-family: 'Courier New', monospace;
	font-size: 0.9em;
	background-color: rgba(255, 255, 255, 0.075);
	border-radius: 3px;
	padding: 0.1rem 0.35rem;
}

hr {
	border: 0;
	border-top: solid 1px rgba(255, 255, 255, 0.175);
	margin: 2.5rem 0;
}

.subtitle {
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.9rem;
	margin: 0 0 0.6rem 0;
}

.meta {
	display: block;
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.65rem;
	letter-spacing: 0.18rem;
	text-transform: uppercase;
	margin: 0 0 1.75rem 0;
}

.updated {
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.75rem;
	margin-top: -0.6rem;
}

.crosslink {
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.85rem;
	margin: 0;
}

/* Header do artigo */

.app-header {
	display: flex;
	align-items: center;
	margin: 0 0 1rem 0;
}

.app-header .app-icon {
	display: block;
	flex: 0 0 auto;
	width: 4rem;
	margin: 0 1.15rem 0 0;
	border: 0;
	border-radius: 0.9rem;
	overflow: hidden;
	box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.4);
}

.app-header .app-icon img {
	display: block;
	width: 100%;
	height: auto;
}

.app-header .app-titles {
	min-width: 0;
}

.app-header .meta {
	margin-bottom: 0;
}

@media screen and (max-width: 736px) {

	.app-header {
		display: block;
	}

	.app-header .app-icon {
		width: 3.5rem;
		margin: 0 0 0.85rem 0;
	}

}

/* Botões */

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	list-style: none;
	padding: 0;
	margin: 0 0 1.25rem 0;
}

.actions li {
	padding: 0;
	margin: 0;
}

.button {
	display: inline-block;
	height: 2.35rem;
	line-height: 2.35rem;
	padding: 0 1rem 0 1.1rem;
	background-color: transparent;
	box-shadow: inset 0 0 0 1px #ffffff;
	border: 0;
	border-radius: 4px;
	color: #ffffff;
	font-size: 0.7rem;
	font-weight: 300;
	letter-spacing: 0.18rem;
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background-color 0.2s ease-in-out;
}

.button:hover {
	background-color: rgba(255, 255, 255, 0.075);
}

.button:active {
	background-color: rgba(255, 255, 255, 0.175);
}

@media screen and (max-width: 480px) {

	.actions {
		display: block;
	}

	.actions li {
		margin-bottom: 0.6rem;
	}

	.button {
		display: block;
		width: 100%;
	}

}

/* Cartões (índice) */

.card {
	display: flex;
	align-items: center;
	padding: 1.15rem;
	margin: 0 0 1rem 0;
	border: solid 1px rgba(255, 255, 255, 0.175);
	border-radius: 4px;
	transition: background-color 0.2s ease-in-out;
}

.card:hover {
	background-color: rgba(255, 255, 255, 0.075);
	border-color: rgba(255, 255, 255, 0.175);
}

.card img {
	flex: 0 0 auto;
	width: 3rem;
	height: auto;
	margin: 0 1rem 0 0;
	border-radius: 0.7rem;
	box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.4);
}

.card h3 {
	margin: 0 0 0.1rem 0;
}

.card p {
	margin: 0;
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.75rem;
}

/* Footer */

footer {
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	border-top: solid 1px rgba(255, 255, 255, 0.175);
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.75rem;
}

footer p {
	margin: 0;
}
