:root {
	--content-width: 1200px;
	--safety-padding: 1rem;
}

@font-face {
	font-family: 'Noto Sans';
	font-weight: 300;
	font-style: normal;
	font-display: swap;
	src: url('/fonts/noto-sans-300.woff2') format('woff2'),
		 url('/fonts/noto-sans-300.woff') format('woff');
}

@font-face {
	font-family: 'Noto Sans';
	font-weight: 300;
	font-style: italic;
	font-display: swap;
	src: url('/fonts/noto-sans-300-italic.woff2') format('woff2'),
		 url('/fonts/noto-sans-300-italic.woff') format('woff');
}

@font-face {
	font-family: 'Noto Sans';
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	src: url('/fonts/noto-sans-400.woff2') format('woff2'),
		 url('/fonts/noto-sans-400.woff') format('woff');
}

html {
	font-size: 16px;
}

body {
	margin: 0;
	font-family: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-weight: 300;
	background: #fff;
	color: #1e1e1f;
	line-height: 1.6;
}

img {
	width: 100%;
	height: auto;
	display: block;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 1s ease, transform 1s ease;
}

img.visible {
	opacity: 1;
	transform: translateY(0);
}

h1, h2, h3, h4, h5 {
	line-height: 1.4;
	margin-top: 1rem;
	margin-bottom: 0;
	font-weight: 400;
}

h1 {
	font-size: 2rem;
}

h2 {
	font-size: 1.75rem;
}

h3 {
	font-size: 1.5rem;
}

h4 {
	font-size: 1.25rem;
}

h5 {
	font-size: 1rem;
}

p {
	font-size: 1rem;
	margin: 0;
}

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

blockquote {
	font-weight: 300;
	font-style: italic;
	font-size: 1.5rem;
	line-height: 1.6;
	color: #1e1e1f;
	padding-left: 2rem;
	margin: 1rem 0;
}

blockquote p {
	margin: 0;
}

.wrapper {
	padding-inline: var(--safety-padding);
}

.container {
	width: var(--content-width);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	box-sizing: border-box;
}

header, footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 0;
}

footer {
	margin-top: auto;
}

footer p {
	font-size: 0.75rem;
}

main {
	display: grid;
	gap: 1rem;
}

.logo {
	font-size: 1.5rem;
	font-weight: 400;
}

.heading-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.footer-links {
	display: flex;
	gap: 0.5rem;
}

.footer-links a {
	text-decoration: none;
	color: inherit;
}

nav {
	margin-left: auto;
}

nav ul {
	list-style: none;
	display: flex;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	justify-content: flex-end;
}

nav a {
	text-decoration: none;
	color: inherit;
	font-weight: 300;
}
    
nav a.active {
	border-bottom: 1px solid #1e1e1f;
	padding-bottom: 3px;
}

.menu-toggle {
	display: none;
}

.burger {
	display: none;
	cursor: pointer;
	width: 28px;
	height: 20px;
	position: relative;
	z-index: 600;
}

.burger span,
.burger::before,
.burger::after {
	content: "";
	position: absolute;
	left: 0; right: 0;
	height: 2px;
	background: #1e1e1f;
	transition: transform .3s ease, top .3s ease, bottom .3s ease, opacity .3s ease;
}

.burger span { top: 9px; }
.burger::before { top: 0; }
.burger::after { bottom: 0; }
.menu-overlay { display: none; }

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	margin-top: 14px;
	margin-bottom: 1rem;
}

.gallery-link {
  display: inline-block;
}

.gallery-grid figure {
	margin: 0;
}

.gallery-grid figcaption {
	margin-top: 0.5rem;
	text-align: center;
	font-size: 1rem;
}

.gallery-grid img {
	width: 100%;
	height: auto;
	display: block;
	transform: none;
}

main.contact, .error {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	flex-grow: 1;
}

main.contact p, .error p {
	font-size: 1.5rem;
	margin-bottom: 3rem;
}

main.photos {
	gap: 2rem;
	margin-bottom: 1rem;
}

h2.modified {
	font-size: 1.5rem;
	font-weight: 300;
	margin-top: 0;
}

h2.extra-space-1 {
	margin-top: 1.5rem;
}

h2.extra-space-2 {
	margin-top: 2rem;
}

h3.modified {
	font-weight: 300;
	border-bottom: 1px solid #1e1e1f;
	padding-bottom: 5px;
	width: 100%;
}

p.modified {
	margin-bottom: 1rem;
}

a.modified {
	font-weight: 400;
}

@media (max-width:1280px) {
	.container {
		width: 100%;
		max-width: var(--content-width);
	}
}

@media (max-width:768px) {
	.gallery-grid {
		grid-template-columns: 1fr;
	}
	
	footer {
		flex-direction: column;
		align-items: center;
		gap: 0.5rem;
	}
	
	nav ul {
		display: none;
	}
	
	.burger {
		display: block;
	}
	
	.menu-overlay {
		display: flex;
		position: fixed;
		inset: 0;
		background: #fff;
		justify-content: center;
		align-items: center;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.3s ease, visibility 0.3s ease;
		z-index: 500;
		overflow-y: auto;
	}
	
	.menu-overlay ul {
		list-style: none;
		margin: 0;
		padding: 0;
		text-align: center;
	}
	
	.menu-overlay li {
		margin: 2rem 0;
		opacity: 0;
		transform: translateY(20px);
		transition: opacity 0.3s ease, transform 0.3s ease;
	}

	.menu-toggle:checked ~ .menu-overlay li:nth-child(1) {
		transition-delay: 0.1s; opacity:1; transform: translateY(0);
	}
	
	.menu-toggle:checked ~ .menu-overlay li:nth-child(2) {
		transition-delay: 0.2s; opacity:1; transform: translateY(0);
	}
	
	.menu-toggle:checked ~ .menu-overlay li:nth-child(3) {
		transition-delay: 0.3s; opacity:1; transform: translateY(0);
	}

	.menu-overlay a {
		font-size: 2rem;
		font-weight: 400;
		text-decoration: none;
		color: inherit;
	}

	.menu-toggle:checked ~ .menu-overlay {
		opacity: 1;
		visibility: visible;
	}

	.menu-toggle:checked + label .burger span { opacity: 0; }
	.menu-toggle:checked + label .burger::before {
		transform: rotate(45deg);
		top: 9px;
	}
	
	.menu-toggle:checked + label .burger::after {
		transform: rotate(-45deg);
		bottom: 9px;
	}
}