<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width">
<title><?php wp_title(); ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>> 
    <header id="masthead" role="banner">
        <div id="branding">   
            <figure><img src="<?php header_image(); ?>" height="<?php echo get_custom_header()->height; ?>" width="<?php echo get_custom_header()->width; ?>" alt="" />
            </figure>
<?php // gets color of h1 to match h2 and h1 anchor
      $style = sprintf( ' style="color:#%s;"', get_header_textcolor() ); ?>
                <h1 class="site-title"><a<?php echo $style; ?> href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo() ); ?>" rel="home"><?php esc_attr( bloginfo() ); ?></a></h1>
                    <h2 class="site-description"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></h2>    
            <?php if (get_header_image() != '') 
            { ?>
            <?php 
            } else 
                { ?><div class="noimage"></div>
                <?php 
                } ?>
        </div><!-- ends branding -->
    </header><!-- ends masthead -->
        <div class="top-seam"></div>
            <nav id="nav" role="navigation">
                <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
            </nav><div class="clearfix"></div>
                <div class="top-seam"></div>
<div id="wrapper">
                 

