﻿@font-face {
	font-display: swap;
	font-family: 'PT Sans';
	font-style: normal;
	font-weight: 400;
	src: url('../fonts/pt-sans-v18-latin-regular.eot');
	src: url('../fonts/pt-sans-v18-latin-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/pt-sans-v18-latin-regular.woff2') format('woff2'), url('../fonts/pt-sans-v18-latin-regular.woff') format('woff'), url('../fonts/pt-sans-v18-latin-regular.ttf') format('truetype'), url('../fonts/pt-sans-v18-latin-regular.svg#PTSans') format('svg');
}

@font-face {
	font-display: swap;
	font-family: 'PT Sans';
	font-style: normal;
	font-weight: 700;
	src: url('../fonts/pt-sans-v18-latin-700.eot');
	src: url('../fonts/pt-sans-v18-latin-700.eot?#iefix') format('embedded-opentype'), url('../fonts/pt-sans-v18-latin-700.woff2') format('woff2'), url('../fonts/pt-sans-v18-latin-700.woff') format('woff'), url('../fonts/pt-sans-v18-latin-700.ttf') format('truetype'), url('../fonts/pt-sans-v18-latin-700.svg#PTSans') format('svg');
}

:root {
	font-size: 16px;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	min-height: 100%;
}

body {
	font-family: 'PT Sans', Arial, sans-serif;
	font-size: 16px;
	line-height: 20px;
	color: #fff;
	font-weight: 400;
}

#wrapper {
	max-width: 780px;
	margin: 1rem auto;
	border: solid thin #242021;
	overflow: hidden;
	position: relative;
	height: 529px;
	background: url('../images/background.jpg') no-repeat;
}

strong {
	font-weight: 700;
}

header {
	display: none;
}

article {
	padding: 16px 0 0 394px;
	position: relative;
}

article p small {
	display: block;
	position: absolute;
	bottom: 42px;
	right: -105px;
	-ms-transform: rotate(-90deg);
	-webkit-transform: rotate(-90deg);
	transform: rotate(-90deg);
	font-size: 8px;
}

article p {
	padding-left: 20px;
}

footer {
	position: absolute;
	bottom: 23px;
	right: 16px;
}

section {
	padding: 16px 0 24px 6px;
}

h1 {
	font-size: 28px;
	margin: 10px 0 10px 20px;
	line-height: 1;
	font-weight: 700;
}

h2 {
	font-size: 36px;
	margin: 16px 0;
	line-height: 1;
	font-weight: 700;
}

img {
	max-width: 100%;
}

p:not(:last-child) {
	margin-bottom: 10px;
}

:is(a:link, a:visited, a:hover, a:active) {
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
}

@media screen and (max-width:778px) {
	#wrapper {
		border: none;
		margin: 0;
		background: #FCB877;
		height: auto;
	}

	:is(p, h1) {
		hyphens: auto;
		text-wrap: pretty;
	}

	h1 {
		text-align: center;
	}

	header {
		display: flex;
		justify-content: center;
	}

	article {
		padding: 16px;
	}

	section {
		background: #434243;
		padding: 16px;
		margin-bottom: 16px;
	}

	section p {
		background: url('../images/heart.jpg') left 0 no-repeat;
		padding-left: 35px;
	}

	footer {
		position: static;
		display: flex;
		justify-content: center;
		align-items: flex-end;
		padding: 0 16px 16px;
	}

	br:not(.inline) {
		display: none;
	}
}