*,
*::before,
*::after {
	box-sizing: inherit;
	margin: 0;
	padding: 0;
	border-radius: 0;
	-webkit-tap-highlight-color: transparent;
}

html {
	box-sizing: border-box;
	scroll-behavior: smooth;
}

:root {
	--bg: #0055ae;
	--fg: #ffffff;
}

body {
	background-color: var(--bg);
	color: var(--fg);
	font-family: sans-serif;
	font-weight: 400;
	display: grid;
	max-width: 49.62rem;
	padding: 1rem;
	margin-inline: auto;
	row-gap: 1rem;
	grid-template-columns: repeat(4, 1fr);

	& > img:first-child {
		height: 45%;
		grid-column: 1;
	}

	address {
		text-wrap: nowrap;
		grid-column-end: -1;
	}
}

::selection {
	background-color: var(--fg);
	color: var(--bg);
}

h1 {
	font-size: min(4rem, 15vw);
	line-height: 1;
}

h2 {
	font-size: inherit;
	font-weight: inherit;
	margin-top: 1em;
}

a {
	color: inherit;
	text-decoration: none;

	&:hover {
		text-decoration: underline;
	}
}

hgroup {
	grid-column: 1 / -1;
}

article {
	display: grid;
	border: 0.12em solid var(--fg);
	grid-template-columns: subgrid;
	grid-column: 1 / -1;
	gap: 0;

	& > * {
		padding: 1rem;
	}

	img {
		border-right: 0.12em solid var(--fg);
		align-self: stretch;
		grid-column: 1 / span 2;
		object-fit: contain;
		aspect-ratio: 8 / 3;
		width: 100%;
	}

	p {
		grid-column: 3 / -1;
	}

	a {
		line-height: 2;

		&:first-of-type {
			grid-column: 1 / span 2;
			border-top: 0.12em solid var(--fg);
			border-right: 0.12em solid var(--fg);
		}

		&:last-of-type {
			grid-column: 3 / span 2;
			border-top: 0.12em solid var(--fg);
		}
	}
}
