@import url('https://fonts.googleapis.com/css?family=DM+Sans:400,700|Cormorant+Garamond:400,500,700|Mrs+Saint+Delafield&display=block');

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

html {
  border: 0;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--light);
  font-family: var(--fnt-m);
}

form {
  margin: 0;
  padding: 0;
  border: 0;
}

img {
  border: none;
  -ms-interpolation-mode: bicubic;
  max-width: 100%;
}

/* Fonts */
:root {
	--fnt-m: "DM Sans", sans-serif;
	--fnt-t: "Cormorant Garamond", serif;
	--fnt-c: "Mrs Saint Delafield", cursive;
	
	--bdy-lh: 1.7;
	--bdy-w: 400;
	
	--kckr-s: 0.875rem;
	--kckr-f: var(--fnt-t);
	--kckr-w: 400;
	--kckr-lh: 1;
	--kckr-ls: 0.4em;
	--kckr-tt: uppercase;
	
	--h1-s: 3rem;
	--h1-f: var(--fnt-t);
	--h1-w: 500;
	--h1-lh: 0.85;
	
	--h1-big-s: 18.75svw;
	--h1-big-w: inherit;
	--h1-big-tt: uppercase;
	
	--h1-crsv-s: 1.667em;
	--h1-crsv-f: var(--fnt-c);
	--h1-crsv-w: 400;
	
	--h2-s: 2rem;
	--h2-f: var(--fnt-t);
	--h2-w: 500;
	--h2-lh: 1.3;
	
	--h3-s: 1.5rem;
	--h3-f: var(--fnt-t);
	--h3-w: 500;
	--h3-lh: 1.3;
	
	--h4-s: 1.25rem;
	--h4-f: var(--fnt-t);
	--h4-w: 500;
	--h4-lh: 1.3;
	
	--h5-s: 1.125rem;
	--h5-f: var(--fnt-t);
	--h5-w: 500;
	--h5-lh: 1.3;
	
	--h6-s: 1rem;
	--h6-f: var(--fnt-t);
	--h6-w: 500;
	--h6-lh: 1.3;
	
	--itm-ttl-s: 2.5rem;
	--itm-ttl-f: var(--fnt-t);
	--itm-ttl-w: 500;
	--itm-ttl-lh: 1.3;
	--itm-ttl-tt: uppercase;
	
	--qte-s: 1.25rem;
	--qte-f: var(--fnt-t);
	--qte-w: 500;
	--qte-lh: 1.3;
	
	--atr-s: 1rem;
	--atr-f: var(--fnt-m);
	--atr-w: inherit;
	--atr-lh: 1.1;
	
	/* Color Variables */
	--primary: #C79B31;
	--secondary: #5D4219;
	--light: #FFF9E6;
	--dark: #0E0E0F;
	--white: #FFFFFF;
	--black: #000000;
}

.fnt_t-k, 
section header > small {
	font-size: var(--kckr-s);
	font-family: var(--kckr-f);
	font-weight: var(--kckr-w);
	line-height: var(--kckr-lh);
	letter-spacing: var(--kckr-ls);
	text-transform: var(--kckr-tt);
	
	&:after {
		content: '';
		display: block;
		height: 1px;
		max-width: 4.25em;
		background-color: var(--primary);
		margin-block-start: var(--title-sp);
	}
	
}
	
.ta_ .fnt_t-k:after {
	margin-inline: auto;
}

h1, .fnt_t-1, 
section header:not( :has( > small) ) > :first-child:not([class*='fnt_'], p), 
section header > small + :not([class*='fnt_']) {
	position: relative;
	z-index: 1;
	font-size: var(--h1-s);
	font-family: var(--h1-f);
	font-weight: var(--h1-w);
	line-height: var(--h1-lh);
	
	&:has(em, i) ~ * {
		z-index: 1;
		position: relative;
	}
	
	:is(strong, b) {
		display: block;
		position: relative;
		white-space: nowrap;
		font-size: var(--h1-big-s);
		font-weight: var(--h1-big-w);
		text-transform: var(--h1-big-tt);
		margin-block-end: -0.2em;
		z-index: -1;
	}
	
	:is(em, i) {
		pointer-events: none;
		display: inline-block;
		font-style: inherit;
		position: relative;
		font-size: var(--h1-crsv-s);
		font-family: "Mrs Saint Delafield", cursive;
		font-weight: var(--h1-crsv-w);
		margin-block-end: -0.3em;
		z-index: -1;
		color: var(--primary);
		line-height: 1;
		display: block;
	}
	
}

h2, .fnt_t-2, 
section header:not( :has( > small) ) > :nth-child(2):not([class*='fnt_'], p), 
section header:has( > small) > :nth-child(3):not([class*='fnt_'], p) {
	font-style: inherit;
	font-size: var(--h2-s);
	font-family: var(--h2-f);
	font-weight: var(--h2-w);
	line-height: var(--h2-lh);
}

h3, .fnt_t-3 {
	font-size: var(--h3-s);
	font-family: var(--h3-f);
	font-weight: var(--h3-w);
	line-height: var(--h3-lh);
}

h4, .fnt_t-4 {
	font-size: var(--h4-s);
	font-family: var(--h4-f);
	font-weight: var(--h4-w);
	line-height: var(--h4-lh);
}

h5, .fnt_t-5 {
	font-size: var(--h5-s);
	font-family: var(--h5-f);
	font-weight: var(--h5-w);
	line-height: var(--h5-lh);
}

h6, .fnt_t-6 {
	font-size: var(--h6-s);
	font-family: var(--h6-f);
	font-weight: var(--h6-w);
	line-height: var(--h6-lh);
}

.fnt_t-itm {
	font-size: var(--itm-ttl-s);
	font-family: var(--itm-ttl-f);
	font-weight: var(--itm-ttl-w);
	line-height: var(--itm-ttl-lh);
	text-transform: var(--itm-ttl-tt);
}

blockquote {
	font-size: var(--qte-s);
	font-family: var(--qte-f);
	font-weight: var(--qte-w);
	line-height: var(--qte-lh);
	
	:is(em, i) {
		font-style: inherit;
	}
	
	address {
		font-size: var(--atr-s);
		font-family: var(--atr-f);
		font-weight: var(--atr-w);
		line-height: var(--atr-lh);
	}
	
}

.c7-product-collection .c7-h1 {
	text-align: center;
	font-size: 4rem;
	color: var(--secondary);
}

.c7-product-collection__products--featured .c7-product-collection__product-list {
	margin-top: 60px;
}

.c7-product-collection__products--featured .c7-product__image {
	margin-top: 0;
}

.c7-product__title a,
.c7-reservation-type .c7-h2{
	color: #5D4219;
}

.c7-product-collection .c7-product, 
.c7-product-allocation .c7-product, 
.c7-product-detail .c7-product,
.c7-reservation-type {
	border-radius: 4px;
	border: 1px solid #C79B31;
	background: rgba(255, 249, 230, 0.60);
	backdrop-filter: blur(5px);
	padding: 2rem;
}

.c7-reservation-type .c7-reservation__search {
	padding-top: 20px;
	border-top: 1px solid #C79B31;
}

/*section.c7-content:before {*/
/*	content: '';*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*    height: 100%;*/
/*    width: 100%;*/
/*    background-image: url(https://www.theoremvineyards.com/images/commerce-seven/our-wines-mainstage-bg.jpg.webp);*/
/*    mask-image: linear-gradient(180deg, transparent, #FFF9E6, transparent);*/
/*    opacity: 0.1;*/
/*    filter: sepia(100%);*/
/*    z-index: -1;*/
/*    background-repeat: no-repeat;*/
/*    background-size: cover;*/
/*}*/

section.c7-content:before,
.template-contact-us:before {
	content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-image: url(https://www.theoremvineyards.com/images/commerce-seven/commerce-7-bg.jpg.webp);
    z-index: -1;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top;
}

.c7-personalization[data-block-code="homepage"]:before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	z-index: -1;
	background-color: rgb(0,0,0,0.5);
}

.c7-personalization[data-block-code="homepage"] .bg {
	position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: -2;
    object-fit: cover;
}

.c7-personalization[data-block-code="homepage"] h1 + p {
	margin-top: 0;
}

.btn-con {
	display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.75rem;
    
    .btn + .btn {
		margin-left: 2rem;
	}
    
}

.btn {
	color: #FFFFFF;
	font-family: var(--fnt-t);
	font-size: 1em;
	font-weight: 700;
	text-transform: uppercase;
	padding: 1rem 1.1250rem;
	border: solid 1px var(--primary);
	text-decoration: none;
	line-height: 1;
	transition: background-color 0.3s ease;
}

.btn:is(:hover, :focus) {
	background-color: hsl(from var(--primary) h s l / 0.3);
}

.template-homepage,
.template-homepage header.storefront-header nav a,
.template-homepage .c7-user-nav__account > a, 
.template-homepage .c7-user-nav__cart > button,
.template-homepage footer.storefront-footer .footer__meta .footer__legal,
.template-homepage footer.storefront-footer .footer__nav ul li a {
	color: #FFFFFF;
}

.template-homepage header.storefront-header .c7-user-nav__cart__title svg,
.template-homepage header.storefront-header .nav-toggle-open svg, 
.template-homepage header.storefront-header .nav-toggle-close svg {
	stroke: #FFFFFF;
}

/* Width >= 700px */
@media screen and (width >= 700px) {
	
	:root {
		--kckr-s: 1.125rem;
		--h1-s: 6rem;
		--h1-crsv-s: 1.6em;
		--h2-s: 2.25rem;
		--h3-s: 1.75rem;
		--h5-s: 1.25rem;
		--h6-s: 1.125rem;
		--itm-ttl-s: 3rem;
		--qte-s: 2rem;
	}
	
	h1.c7-product__title {
		font-size: 4.375rem;
	}
	
}

/* Width < 768px */
@media screen and (width >= 768px) {
	
	header.storefront-header {
		margin-top: 0 !important;
	}
	
}


/* Width < 768px */
@media screen and (width < 768px) {
	
	.template-homepage header.storefront-header .c7-tools,
	.template-homepage header.storefront-header .navigation-wrapper{
		background-color: var(--secondary);
	}
	
	.c7-product-collection .c7-h1 {
		font-size: 3rem;
	}
	
}

/* Width < 1000px */
@media screen and (width < 1000px) {
	
	.c7-product-detail .c7-product,
	.c7-product-collection .c7-product, 
	.c7-product-allocation .c7-product, 
	.c7-product-detail .c7-product {
		display: block;
	}
	
	.c7-product-collection .c7-product__image,
	.c7-product-allocation .c7-product__image {
		margin-right: 0;
		margin-bottom: 20px;
	}
	
}

/* Width >= 1280px */
@media screen and (width >= 1000px) {
	
	h1.c7-product__title {
		font-size: 4.375rem;
		margin-top: 0;
	}
	
}

/* Width >= 1280px */
@media screen and (width >= 1280px) {
	
	:root {
		--h1-s: 7rem;
		--h2-s: 2.75rem;
		--h4-s: 1.5rem;
		--itm-ttl-s: 3.25rem;
		--qte-s: 2.5rem;
	}
	
	h1.c7-product__title {
		font-size: 5.375rem;
	}
	
	.c7-personalization[data-block-code="homepage"] h1 + p {
		margin-top: -8em;
	}
	
	.btn-con {
		margin-top: 3.75rem;
	}
	
}

/* Width >= 1500px */
@media screen and (width >= 1500px) {
	
	:root {
		--h1-s: 8.75rem;
		--h2-s: 3rem;
		--h3-s: 2rem;
		--itm-ttl-s: 3.5rem;
		--qte-s: 3rem;
	}
	
}

/* Width >= 1920px */
@media screen and (width >= 1920px) {
	
	:root {
		--h1-s: 9.375rem;
	}
	
}