/* Updated 2025 02 13 */

/* RESET */
* { position: relative; box-sizing: border-box;	background-clip: padding-box; max-width: 100%; line-height: calc(1em + 0.5rem); hyphens: auto; }
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; overscroll-behavior: contain; }


:root {
	line-sizing: normal; 
	text-spacing: trim-start allow-end trim-adjacent ideograph-alpha ideograph-numeric;

	/* FONTS */
	--handwriting:		'Lavishly Yours', sans-serif;
	--body:				Trykker;
	
	/* GREEN */
	--light-sage: 		hsl(93, 38%, 70%);
	--sage: 			hsl(93, 33%, 53%);
	--forest-green: 	hsl(93, 35%, 41%);
	--deep-forest: 		hsl(93, 48%, 30%);
	--dark-forest: 		hsl(93, 66%, 20%);

	/* PEACH */
	--light-peach: 		hsl(14, 56%, 79%);
	--peach: 			hsl(14, 36%, 59%);
	--terracotta: 		hsl(14, 35%, 45%);
	--rust: 			hsl(14, 49%, 34%);
	--dark-rust: 		hsl(14, 66%, 22%);

	/* PURPLE */	
	--light-lavender: 	hsl(298, 17%, 51%);
	--lavender: 		hsl(298, 26%, 39%);
	--plum: 			hsl(298, 35%, 30%);
	--deep-plum: 		hsl(298, 48%, 22%);
	--dark-plum: 		hsl(298, 67%, 14%);

	--hover:			all .4s ease-in-out;
	--scale:			scale(1.1);
}

html {
	-moz-text-size-adjust: none;
	-webkit-text-size-adjust: none;
	text-size-adjust: none;
	/* font adjust is now available */
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { min-height: 100px; background: #6896CC; border-radius: 10px; }


body { 
	margin: unset;
	font: normal 1rem/1.56 var(--body);
	color: #222;
	hanging-punctuation: first last;
	text-rendering: optimizeSpeed;
	overflow-x: hidden;
	overflow-y: scroll;
	scroll-behavior: smooth;
}


/* TYPOGRAPHY */
	
:is(h1, h2, h3) + * {
	margin-bottom: 0.5em;
}

:is(h2, h3, h4):target, [id] {
  scroll-margin-top: var(--header-height);
  scroll-margin-top: 2rem;
}

h2:not(.story h2) {
	display: flex; 
	justify-content: center; 
	align-items: center;
	overflow: visible;
}

h2:not(.story h2)::before,
h2:not(.story h2)::after {
	content: '';
	display: inline-block;
	margin: 0 1rem 0 0;
	width: 30px;
	aspect-ratio: 16 / 9;
	background-image: url(/wp-content/uploads/ding-left.svg);
	background-size: cover;
}

h2:not(.story h2)::after {
	margin: 0 0 0 1rem;
	background-image: url(/wp-content/uploads/ding-right.svg);
}

p, dl, ol, ul, address {
	margin: 0 0 24px;
	text-wrap: pretty;
	overflow-wrap: break-word;
}

article > * + * {
	margin-top: 2em;
}

dd, li { 
	margin: 0 0 8px 32px; 
}

/* Links without a class get default styling. */
a:not([class]) { 
	text-decoration: none; 
	cursor: pointer; 
}

caption, figcaption {
    text-wrap: balance;
}

iframe[src*="youtube"],
iframe[src*="vimeo"] {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

pre { white-space: pre-wrap; }
hr { border: .5px solid; }
blockquote { quotes: none; }
blockquote:before, blockquote:after { content: none; }


/* Layout */

.flex { 				display: flex; gap: 1rem; }
.flex-row, .fr { 		flex-direction: row; }
.flex-column, .fc { 	flex-direction: column; }
.justify-center, .jc { 	justify-content: center; }
.justify-around, .ja { 	justify-content: space-around; }
.justify-between, .jb { justify-content: space-between; }
.justify-end, .je { 	justify-content: flex-end; }
.align-center, .ac { 	align-items: center; }
.align-start, .as { 	align-items: flex-start; }
.flex-wrap, .fw { 		flex-wrap: wrap; }
.gap1 { gap: 1rem; }
.gap2 { gap: 2rem; }

header {
	padding: 4rem 2rem;
	background-color: #fff;
}

h1 {
	margin: 0;
	padding: 2rem;
	font: normal 5rem/1 var(--handwriting);
	color: #444;
	text-align: center; 
}

header img {
	height: 100px;
	width: auto;
}

main {
	margin-inline: auto; 
}

.inner {
	margin-inline: auto;
	width: min(1200px, 100% - 4rem);
}

nav { 
	display: flex;
	justify-content: center; 
	align-items: center; 
	flex-wrap: wrap;
	gap: 0 2rem;
	margin-bottom: 2rem;
}

nav a {
	padding: 12px 24px;
	color: #444;
	text-decoration: none;
	transition: var(--hover);
	border-bottom: 1px solid #ccc;
}

nav a:hover {
	background-color: #eee;
	border-radius: 3px 3px 0 0;
}

.story {
	justify-content: center; 
	padding: 3rem;
	background-color: #fcfcfc;
	background-image: url(/wp-content/uploads/river-1.jpg);
	background-position: 0 -250px;
	background-size: cover;
}

.story-page {
	padding: 2rem;
	max-width: 400px;
	background-color: #fff;
	border-radius: 3px;
}

.story-page h2 {
	margin-bottom: 1rem; 
	text-align: left;
}

.story-pic {
	flex-basis: unset !important;
	flex-grow: unset !important;
}

.story-pic figure {
	margin: 0;
}

.story-pic img {
	border-radius: 3px;
}

/* GOWNS */

#gowns {
	margin-bottom: 2rem;
}

h2 {
	margin: 0 0 1rem;
	font-size: 3rem;
	text-align: center;
}

.gown-grid > div {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
}


/* FLOWERS */

#flowers {
	margin-bottom: 2rem; 
	padding: 2rem 0;
	background-color: aliceblue;
}

.flower-grid > div {
	columns: 7;
	margin-bottom: 3rem;
	padding: 0 20%; 
}

/* DECOR */

.decor-grid > div {
	columns: 7;
	margin-bottom: 3rem;
	padding: 0 20%; 
}

/* ALTERATIONS / ABOUT */

#about {
	margin-bottom: 2rem;
	padding: 2rem;
	background-color: aliceblue;
}

#about div:not(.alterations, .about) {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0 2rem;
}

.alterations, .about {
	width: 500px;
}

.fb {
	display: inline-block;
}

.form {
	margin: 0 auto;
	width: 400px;
}

/* MIRRORS */

#mirrors {
	margin-bottom: 2rem; 
	padding: 2rem 0;
	background-color: aliceblue;
}

.mirror-grid > div {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 3rem;
	padding: 0 20%;
}

.mirror-grid figure, .mirror-grid img {
	height: auto; 
	max-width: 200px;
	gap: 1rem;
}

.top {
	position: fixed; right: 40px; bottom: 120px;
	display: none; 
	justify-content: center;
	align-items: center; 
	height: 40px; 
	width: 40px; 
	background-color: #4199FD;
	border-radius: 100%;
}

.top.show { 
	display: flex; 
}

.top img {
	width: 22px;
}


footer { 
	background: #666; 
}

.copy {
		margin: 0;
		padding: 24px;
		font-size: 12px;
		color: #fff;
		text-align: center;
		text-transform: uppercase; 
}

.center {
	text-align: center; 
}

/* ANCHOR LINKS */

a {
	scroll-margin-top: 3rem;
}

a:target { 
  color: red;
  background-color: yellow; 
}

:has(:target) {
  border-color: red;
}

/* Tables */

table {
	border-collapse: collapse;
	border-spacing: 0; }

		
:focus-visible {
	outline: 2px solid red;
  	outline-offset: 2px; 
}

:focus:not(:focus-visible) {
  outline: none;
}


/* Forms */

label:has(required)::after {
	content: "(Required)";
	color: #ccc;
}

label:has(>textarea) { display:block; }

button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: inherit;
  word-spacing: inherit;
}

input,
textarea,
button {
  border: 1px solid gray;
}

textarea {
	min-height: 100px;
}

button {
	-webkit-appearance: none;
	padding: 0;
	min-width: 100px;	
	background: none;
	border: none;
	border-radius: 0;
	text-align: inherit;
	box-shadow: none;
	cursor: pointer;
}


/* Utility Classes */

.red { color: #f00; }
.alignleft { float: left; margin: 0 24px 24px 0; }
.alignright { float: right; margin: 0 0 24px 24px; }
b, strong { font-weight: bold; }
i, em { font-style: italic; }



[hidden], 
[type="hidden"], 
.visually-hidden,
[aria-hidden="true"] {
	border: 0;
	clip: rect(0 0 0 0); 
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap; 
	width: 1px;
}



@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


@media (prefers-reduced-motion: no-preference) {
	:has(:target) {
		scroll-behavior: smooth;
		scroll-padding-top: 3rem;
	}
}

@media (prefers-reduced-transparency: reduce) {
    * { opacity: 1; }
  }

@media (max-width: 800px) {
	.story { padding: 1rem; background-position: 0 0; }
	.story-pic img { display: block; margin: 0 auto; }
	.gown-grid figure { max-width: 300px; }
	.flower-grid > div { columns: 3; }
	.decor-grid > div { columns: 3; }
	.mirror-grid > div { columns: 3; }
}

@media (max-width: 500px) {
	.flower-grid > div, .decor-grid > div { columns: 2; }
}

@media (max-width: 475px) {
	h2:not(.story h2) { font-size: 2rem; }
} 



