/*reset*/
*,*::before,*::after{box-sizing:border-box}*{margin:0}@media (prefers-reduced-motion:no-preference){html{interpolate-size:allow-keywords}}body{line-height:1.5;-webkit-font-smoothing:antialiased}img,picture,video,canvas,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit}p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word}p{text-wrap:pretty}h1,h2,h3,h4,h5,h6{text-wrap:balance}#root,#__next{isolation:isolate}

input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

:root {
/*brand colors*/
	--black:#1A1F24;
	--dark:#252C34;
	--light:#B69F75;
	--accent:#8E764A;
	--white:#F7F2E8;
	--scrim:rgba(37,44,52,.8);
/*structural sizing*/	
	--size-m: 1rem;
	--size-s: .75rem;
/*utility*/	
	--border-radius:0.278rem;

	--icon-lightbulb: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWxpZ2h0YnVsYi1pY29uIGx1Y2lkZS1saWdodGJ1bGIiPjxwYXRoIGQ9Ik0xNSAxNGMuMi0xIC43LTEuNyAxLjUtMi41IDEtLjkgMS41LTIuMiAxLjUtMy41QTYgNiAwIDAgMCA2IDhjMCAxIC4yIDIuMiAxLjUgMy41LjcuNyAxLjMgMS41IDEuNSAyLjUiLz48cGF0aCBkPSJNOSAxOGg2Ii8+PHBhdGggZD0iTTEwIDIyaDQiLz48L3N2Zz4=");
}

html{
	font-size:18px; /* base font size */
	color: var(--white);
}

body, input{
	font-size: 1rem; /* 18px */
	line-height: 1.333rem; /* 24px */
	font-family: "Crimson Pro", serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;	
}

body{
	background-color: var(--dark);
	max-width: 30rem;
	margin: 0 auto;
}

/*typography*/


h1{
	font-size: 1.333rem; /* 24px */
	line-height: 1.778rem; /* 32 px*/
	border-bottom: 2px solid var(--accent);
    padding-bottom: .4rem;
    margin-bottom: 1rem;
    position: relative;
}

h1:after{
	content: '';
	display: block;
	width: 0.667rem;
	height: 0.667rem;
	border: 2px solid var(--accent);
	background-color: var(--dark);
	position: absolute;
	right: 0;
	bottom: -0.333rem;
	border-radius: 50%;
}

h2{
	font-size: 1.167rem; /* 21px */
	line-height: 1.667rem; /* 30 px*/
}

.text-title, h1, h2{
	font-family: "Playfair Display", serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;	
}

.text-title{
	font-size: 2rem; /* 36px */
	line-height: 2.667rem; /* 48px */
}

.text-secondary, small{
	font-size: 0.833rem; /* 15px */
	line-height: 1.167rem; /* 21px */
}

h1, h2, p, ol, li, dl{
	margin: 1rem 0;
}

h1:first-child{
	margin-top: 0;
}

dt{
	font-weight: 800;
	margin-top: 1rem;
}

/*links*/

a, .icon-light{
	text-decoration: underline;
	color: var(--light);
	transition: color .2s ease;
}

a:hover, a:active, #nav-menu .icon-light:hover, a:hover *{
	color: var(--white);
}

/*FORMS*/

label{
	font-weight: 800;
	display: block;
	color: var(--light);
	margin: 0.333rem 0;
}

input,
select,
textarea{
	background-color: var(--white);
	border-radius: var(--border-radius);
	border:1px solid var(--accent);
	padding: .5rem .833rem;
	display: block;
	color: var(--black);
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea{
	width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus{
	outline: 3px solid var(--light);
}

input[type="checkbox"],input[type="radio"]{
	background-color: var(--white);
	border:1px solid var(--accent);
	width: 1.333rem;
	height: 1.333rem;
	padding: 0;
	position: relative;
	transition: background-color .2s ease;
}

input[type="checkbox"]:checked,input[type="radio"]:checked{
	background-color: var(--accent);
}

input[type="checkbox"]:checked::after{
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1rem;
	height: 1rem;
    background-color: var(--white);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20,6 9,17 4,12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20,6 9,17 4,12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
    -webkit-mask-size: contain;
}

input[type="checkbox"] + label{
	margin: 0;
}

textarea{
	height: 9rem;
}

fieldset{
	border: 0;
	margin:1rem 0;
	padding: 0;
}

fieldset legend{
	font-weight: 800;
}

.btn{
	font-weight: 800;
	text-transform: uppercase;
	text-align: center;
	background-color: var(--accent);
	background: linear-gradient(to right, #B69F75, #DFCDAD, #B69F75);
	border:1px solid var(--accent);
	color: var(--black);
	border-radius: var(--border-radius);
	position: relative;
	padding: .5rem .833rem;
	display: block;
	width:100%;
	font-size: 1rem; /* 18px */
	line-height: 1.333rem; /* 24px */
	transition: background-color .2s ease, transform .2s ease;
	box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
	margin:1rem 0;
	text-decoration: none;
}

.btn:before, .btn:after{
	content: '';
	display: block;
	width: .833rem;
	height: 1rem;
	position: absolute;
	top: calc(50% - .5rem);
	left: .833rem;
	background-color: var(--accent);
	mask: url("../img/btn-decoration.svg") no-repeat center;
    mask-size: contain;
    -webkit-mask: url("../img/btn-decoration.svg") no-repeat center;
    -webkit-mask-size: contain;
}

.btn:after{
	left: auto;
	right: .833rem;
}

.btn:hover, .btn:active{
	background: linear-gradient(to right, #B69F75, var(--white), #B69F75);
	box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.5);
	transform: translateY(2px);
	color: var(--black);
}

.no-btn{
	border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.btn-tab{
	font-weight: 800;
	text-transform: uppercase;
	text-align: center;		
	color: var(--light);
	padding: .5rem .833rem;
	font-size: 1rem; /* 18px */
	line-height: 1.333rem; /* 24px */
	text-decoration: none;
	background: none;
    border: .056rem solid var(--light);
    margin-bottom: -1px;
}

.btn-tab.active{
	border-bottom:1px solid var(--dark);
	color: var(--white);
}

.tab-nav{
	border-bottom:1px solid var(--light);
}


/*icons*/

.icon{
	display: block;
	min-width: 1.333rem;
	min-height: 1.333rem;
}

.icon-l{
	min-width: 3rem;
	min-height: 3rem;
}

.icon-light{
	color: var(--light);
}


/*alerts*/
.alert-overlay{
	position: absolute;
	top:0;
	right: 0;
	bottom: 0;
	left:0;
	background: var(--scrim);
	z-index: 1000;
}

.alert-box{
	margin: 2rem;
	background-color: var(--white);
	color: var(--black);
	padding: 1.111rem;
	border-radius: var(--border-radius);
	border:1px solid var(--accent);
}

.alert-icon .icon{
	margin:0 auto;
	min-width: 2rem;
	min-height: 2rem;
}

/*///////////*/
.alert-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
}

.alert-box {
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}


/*tips*/

.tip{
	display: flex;
	gap:.667rem;
	margin: 1rem 0;
}

/*layout*/

.container{
	padding: 1.111rem;
	transition: opacity .2s ease;
}

.checkbox-label{
	display: flex;
	gap:.5rem;
	margin: .5rem 0;
}

.nav-links{
	display: flex;
    justify-content: space-between;
    margin:1rem 0;
}

.form-group{
	margin:1rem 0;
}

.ingredients-grid{
	display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.ingredients-grid .checkbox-label{
	margin:1rem 0;
}

.fixed-bottom{
	position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--black);
    padding-left:1rem;
    padding-right: 1rem;
}


/*header nav*/

.nav-header{
	background: var(--black);
	position: relative;
}

.nav-header-links{
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style-type: none;
    margin: 0;
    padding:0;
    z-index: 600;
    position: relative;
    background: var(--black);
    height: 3rem;
}

.nav-header-links li{
	margin:0;
}

.nav-header-links .flex-grow a{
	position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.nav-header-menu{
	list-style: none;
    padding: 0 1rem;
    margin: 0;
    position: absolute;
    top: 100%;
    background-color: var(--black);
    width: 100%;
    left: 0;
    right: 0;
    z-index: 500;
    border-bottom: 1px solid var(--light);
    transform: translateY(calc(1px - 100%));
    transition: transform .2s ease;
}

.open .nav-header-menu{
	transform: translateY(0);
}

.open + .container{
	opacity: .2;
	pointer-events: none;
}

.open .nav-header-menu {
    pointer-events: auto;
}

.nav-header.open .flex-grow a{
	pointer-events: none;
}

.nav-header-menu .menu-item{
	display: flex;
    gap: 0.5rem;
    text-decoration: none;
}

.nav-header-menu .menu-item .icon{
	color: inherit;
}

.spinner.make-cocktail .spinner-container{
    height: 100vh;
}

/*ensure 48px touch target area*/
#nav-menu,
#nav-credits{
	padding: 0.833rem;
	display: block;
}

#nav-credits{
	text-decoration: none;
	display: flex; 
}

#credit-count{
	font-size: 1.333rem;
	color: var(--white);
	margin-left: .333rem;
}

/*stepper*/

.step-by-step dt{
	display: flex;
    align-items: center;
    gap: 1rem;
}

.step-text{
	margin-left: 5rem;
}

.step-section{
	margin-bottom: 3rem;
}

.step{
	background-color: var(--light);
	display: block;
	min-width: 4rem;
	min-height: 4rem;
	border-radius: 100%;
	display: inline-flex;
    justify-content: center;
    align-items: flex-start;
    color: var(--black);
    padding-top: .27rem;
}

.step-one{
	position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap:2rem;
}

.step-one .inventory-item{
	width: 100%;
}

.stepper{
	display: flex;
    flex-direction: row;
    list-style-type: none;
    padding: 0;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.stepper li{
	position: relative;
	padding-top: 1.167rem;
}

.stepper li:before{
	content: '';
	display: block;
	width: .833rem;
	height: .833rem;
	rotate: 45deg;
	background-color: var(--white);
	border:1px solid var(--light);
	position: absolute;
	top:0;
	left: calc(50% - .416rem);
	z-index: 10;
}

.stepper .stepper-here:before,
.stepper .stepper-complete:before{
	background-color: var(--light);
}

.stepper .stepper-complete{
	color: var(--light);
}

.stepper:after{
	content: '';
	display: block;
	width: 100%;
	height: 1px;
	position: absolute;
	right: 0;
	left: 0;
	top: 1.333rem;
    border-bottom: 2px dotted var(--accent);
    z-index: 1;
}

.stepper li:nth-child(1):after,
.stepper li:nth-child(3):after{
	position: absolute;
    content: '';
    display: block;
    width: 100%;
    left: -50%;
    right: auto;
    height: 1rem;
    background: var(--dark);
    z-index: 5;
    top: 0;
}

.stepper li:nth-child(3):after{
    right: 0;
    left: auto;
    width: 50%;
}



/*photo preview*/

.photo-preview-area img{
	margin: 1rem auto;
	max-height: 50vh;
    border-radius: var(--border-radius);
    border:1px solid var(--light);
    background-color: var(--black);
}

/*cards*/

.card, .item-info{
	margin: 1rem auto;
    border-radius: var(--border-radius);
    border:1px solid var(--light);
    padding: 0 1rem;
}

.item-info{
	padding:0 1rem;
	background: var(--black);
}

.item dt{
	font-size: 0.833rem; /* 15px */
	line-height: 1.167rem; /* 21px */
	color: var(--light);
}

.item-name{
	font-size: 1.167rem; /* 21px */
	line-height: 1.667rem; /* 30 px*/
	font-weight: 800;

}

/*compnents*/

.spinner{
	position: relative;
}

.spinner-container{
	display: none;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: var(--scrim);    
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.spinner .spinner-container{
	display: flex;
}

.loader{
    animation: spin 1s linear infinite;
    width: 3rem;
    height: 3rem;
    color:var(--light);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


.complexity-slider {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin:1rem 0;
}

.slider-container {
    position: relative;
    width: 100%;
}

.complexity-range {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: .5rem;
    background: var(--accent);
    outline: none;
    border-radius: var(--border-radius);
    padding:0;
}

.complexity-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.333rem;
    height: 1.333rem;
    background: var(--light);
    cursor: pointer;
    border-radius: 50%;
}

.complexity-range::-moz-range-thumb {
    width: 1.333rem;
    height: 1.333rem;
    background: var(--light);
    cursor: pointer;
    border-radius: 50%;
    border: none;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.slider-value {
    text-align: center;
    font-weight: 800;
    margin-top: 0.5rem;
}

.mini-phone{
	border-radius: 10px;
	border:5px solid #000;
	border-bottom-width:30px;
	position: relative;
	margin-left: 1rem;
}

.focus-circle{
	width: 10rem;
	height: 10rem;
	border-radius: 100%;	
	position: absolute;
	top:2rem;
	left: 0;
	animation: spin 60s linear infinite;
	border: 5px dashed var(--light);	
}

/*utility*/

body.fixed{
	overflow: hidden;	
}

.flex-grow{
	flex-grow: 1;
}

.color-light{
	color: var(--light);
}

.color-white{
	color: var(--white);
}

.stock-ingredients{
	display: flex;
    gap: 1rem;
    flex-direction: column;
    align-items: center;
}

.step-two{
	display: flex;
	gap:1rem;
	justify-content: center;
	flex-wrap: wrap;
}

.featured-image{
	position: relative;
}

.featured-image img{
	border-radius: 100%;
	border:1px solid var(--light);
	display: block;
	margin:0 auto;
}

.featured-image:after{
	content: '';
    width: 7rem;
    position: absolute;
    top: 0;
    right: 100%;
    bottom: 0;
    left: -.5rem;
    background-image: url(../img/featured-border.svg);
    background-size: contain;
    background-repeat: no-repeat;
}

.feature{
	margin-bottom: 2rem;
}

.home-img img{
	border-radius: calc(2 * var(--border-radius) );
	border:1px solid var(--light);
}


/*home page stuff*/

.homepage .container{
	display: flex;
	flex-direction: column;
	height: 100%;
}

.logo-full{
	background-image: url("../img/logo-full.svg");
	background-repeat: no-repeat;
    background-size: cover;
    height: 0;
    padding-bottom: 49%;
    background-position: 50% 0;
    font-size: 0;
    text-indent: -99rem;
    border: none;
}

.logo-full:after{
	display: none;
}

.logo-header{
	margin: 0.833rem auto;
}

.tagline{
	text-align: center;
	padding: 1rem;
	flex-grow: 1;
	align-items: center;
	display: flex;
}

.decoration-top{
	background-image: url("../img/decoration-top.svg");
    background-repeat: no-repeat;
    background-size: contain;
    height: 0;
    padding-bottom: 16%;
    background-position: 50% 0;
    margin: 0 auto;
}

.decoration-bottom{
	background-image: url("../img/decoration-top.svg");
    background-repeat: no-repeat;
    background-size: contain;
    height: 0;
    padding-bottom: 16%;
    background-position: 50% 0;
    margin: 0 auto;
    rotate:180deg;
}

.site-footer{
	text-align: center;
	background-color: var(--black);
	color: var(--white);
	padding: 1rem;
	font-size: var(--size-s);
	margin:0 -1rem;
}












