/* ---------------------------------------------   */
/* flex-styles.css	               						     */
/* version 1.1       														   */
/* Sunday, February 11, 2024											 */
/* Change to body size so wallpaper fills the page */
/* ---------------------------------------------   */


/* Custom Properties---------------------------- */

:root {
		/* colours */
		--clr-dark: 34, 31%, 23%;
		--clr-accent: 36, 39%, 39%;
		--clr-light: 46, 60%, 95%;
		--bg-light: 97, 21%, 89%;

		/* font-sizes */
		--fs-800: 2rem;
		--fs-700: 1.875rem;
		--fs-600: 1.625rem;
		--fs-500: 1.25rem;
		--fs-400: 1.15rem;
		--fs-300: 1rem;
		--fs-200: 0.875rem;
		--fs-100: 0.75rem;

		/* font-weights */
		--fw-bold: 700;
		--fw-semi: 500;
		--fw-reg: 400;

		/* font-families */
		--ff-serif: "Georgia", serif;
		--ff-sans: "OpenSans", sans-serif;

		/* spacing & gaps */
		--gap: 1.5rem;

		/* line & rule weight */
		--line: 1px;

		/* border default  */
		--thin-border: solid calc(var(--line) /2) hsl(var(--clr-dark));
		--border: solid var(--line) hsl(var(--clr-dark));

		/* drop-shadow */
		--drop: drop-shadow(1rem 1rem 1rem rgba(0, 0, 0, 0.4));
		--drop-sm: drop-shadow(.25rem .25rem .25rem rgba(0, 0, 0, 0.25));
}


/* Reset --------------------------------------- */

/* Box sizing */
*,
*::before,
*::after {
		box-sizing: border-box;
}

/* Reset margins */
body,
h1,
h2,
h3,
h4,
h5,
p,
ul,
figure,
picture {
		margin: 0;
}

/* make images easier to work with */
img,
picture {
	max-width: 100%;
	display: block;
}

/* make form elements easier to work with */
input,
button,
textarea,
select {
		font: inherit;
}

/* remove animations for people who've turned them off */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		-webkit-animation-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		-webkit-animation-iteration-count: 1 !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}


/* Utility Classes ------------------- */

/* general */

.flex {
		display: flex;
		flex-direction: column;
		gap: var(--gap);
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
/* 	clip: rect(0, 0, 0, 0); */
	white-space: nowrap; /* added line */
	border: 0;
}

/* Page styling ------------------- */
body {
	line-height: 1.5;
	font-family: var(--ff-serif);
	color: hsl(var(--clr-dark));
}

.container {
	min-height: 100vh;
	background: url(../images/acorn-bg-fade.jpg) repeat;
	margin-bottom: 0;
}

.wrapper {
	display: flex;
	flex-direction: column;
	justify-content: center;
	max-width: calc(100% - 2rem);
	margin: 0 auto;
	padding: var(--gap);
	background-color: hsl(var(--clr-light));
	border: solid 3px hsla(var(--clr-dark), .04)
}

a, a:visited {
	color: hsl(var(--clr-dark));

}

blockquote:before,
blockquote:after {
	content: ""
}

blockquote,
q {
	quotes: """"
}

article > * + * {
	margin-bottom: var(--gap);
}



article dt {
	font-size: var(--fs-400);
}

article dd {
	margin-bottom: 1rem;
}

img.photo_frame {
	padding: 3px;
	border: var(--border);
}

/* header --------------- */

header .top_bar {
	gap: 0;
}

header .logo img {
	height: auto;
	margin: 0 auto;
	max-width: 24rem;
}

header .brand_photo img {
	margin: 0 auto;
	height: auto;
	max-width: 24rem;
}

header nav {
	margin: var(--gap) auto;
	width: 100%;
	font-weight: bold;
	text-align: center;
	font-size: 1rem;
	line-height: 1.4;
	border-top: var(--thin-border);
	border-bottom: var(--thin-border);
	padding: .5rem 0;
}

header nav a {
	display: block;
	text-decoration: none;
	color: hsl(var(--clr-dark));
	background-color: transparent;
	padding: 5px 0;
}

header nav a:hover {
	color: hsl(var(--clr-light));
	background-color: hsl(var(--clr-dark));
}

header nav a.current::before,
header nav a.current::after {
	content:' - ';
}

header nav.flex {
	gap: 0;
	margin-top: 0;
}


/* home-content --------------- */

#home-content > *,
#content {
	display: flex;
	flex-direction: column;
	gap: var(--gap);
}

#home-content blockquote,
#content blockquote {
	margin-left: calc(var(--gap)*2);
	font-style: italic;
	font-size: var(--fs-200);
}

#home-content .quoted span {
	white-space: nowrap;
}

#home-content blockquote {
	margin-bottom: 0;
}

.home-postcard img,
.postcard img {
	height: auto;
	margin: 0 auto;
	width: 100%;
	max-width: 24rem;
	box-shadow: var(--drop-sm);

}

/* footer --------------- */
footer {
	margin-top: var(--gap);
	text-align: center;
	font-size: .9em;
	font-style: italic;
	line-height: 1.4;
}


@media (min-width: 768px) {
	.flex {
		flex-direction: row;
	}

	.container {
		padding: var(--gap);
	}

	.wrapper {
		max-width: 60rem;
		margin: 0 auto;
	}

	header.flex {
		flex-direction: column;
		gap: 0;
	}

	header .top_bar {
		flex-direction: row;
		justify-content: space-between;
		margin-bottom: var(--gap);
		padding-bottom: 0;
	}

	header .top_bar > * {
		width: 50%;
	}

	header nav {
		justify-content: center;
		text-decoration: none;
		margin: var(--gap) auto;
	}


	header nav a {
		display: inline;
		padding: .4rem 0 0 0;
		margin: 0 1.5%;
		border-bottom: 5px solid transparent;
	}

	header nav a:hover {
		color: hsl(var(--clr-dark));
		background-color: hsl(var(--clr-light));
		border-bottom-color: hsl(var(--clr-dark));
	}

	header nav a.current {
		color: hsl(var(--clr-accent));
	}

	#content {
		flex-direction: row;
		gap: calc(var(--gap)* 2);
	}

  #content > * {
		flex-basis: 50%;
	}

	#content > aside {
		flex-basis: 45%
	}

	#home-content blockquote,
	#content blockquote {
		font-size: var(--fs-300);
	}

	#home-content p.quoted,
	#content p.quoted {
		text-align: right;
	}

	.postcard img {
		max-width: 24rem;
		box-shadow: 0;
	}

	footer {
		margin-top: auto;
	}

	footer .wrapper {
		max-width: 60rem;
		margin: calc(var(--gap)/2) auto;
	}
}

