/*  
Theme Name: Sip List London
Author: Arianna Kern
*/

/*—————————————————————————————————————————————————————————————————*/

/* ———————————————————————————— template notes ***********************
#wrap 					*all content

header 					h1, p
						blog title (h1), blog description (p)
			
nav						ul
						categories, pages
aside					ul [inc dynamicSidebars & widgets if in use]
						sidbar with search, links + additional 
						(postlists etc, see extra ids/classes)
			
#content				*all page content (+ classes assigned by WP)
						article > post on category page
						article h3 > post title (+ link) on category page
						article.pagepost > post on page
						article.pagepost h2 > post title on page
			
footer					ul

*** extras ***

form#searchform			searchbox
input#searchsubmit		submit button, searchbox

*********************** END template notes ———————————————————————————— */

/*—————————————————————————————————————————————————————————————————*/

/* ———————————————————————————— COLOURS ***********************
#000					text colour
#333					headers

*********************** END template notes ———————————————————————————— */

/*-—————————————————————————————————————————————————————————————————*/

/* thanks, Eric :-)
http://meyerweb.com/eric/tools/css/reset/ 
v2.0 | 20110126
License: none (public domain)
*/

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
	display: block;
}

body {
	font-size: 1em;
	line-height: 1.36;
	font-family: Vollkorn, Times, sans-serif;
	color: #000;
	background: #fff;
}

ol, ul {
	list-style: none;
}
li {
	display: block;
	margin:  0 0 .5em 0;
}
blockquote, q {
	quotes: none;
}

blockquote:before, blockquote:after, q:before, q:after {
	content: '';
	content: none;
}

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

* {
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
/*—————————————————————————————————————————————————————————————————
GENERAL 
—————————————————————————————————————————————————————————————————*/

a, a:link, a:visited {
	color: #666;
}

#content a,
main a {
	color: #000;
	font-weight: bold;
	font-size: 1.2em;
}

header h1 a,
header h1 a:link,
header h1 a:visited {
    font-family: 'Beth Ellen', cursive !important;
    color: #2F2920 !important;
}

input, textarea {
	padding: 2px;
	border: 1px solid #333;
}

.clear {
	clear: both;
}

/*————————————————————————————————————————————————————————————————— 
Typography
—————————————————————————————————————————————————————————————————*/
main{
	max-width: 70%;
	margin: 0 auto;
	position: center;
	line-height:1.6;
	z-index: 0;
	padding: 0;
}
p{
	margin:1em 0;
	font-size:18px;
}
/*————————————————————————————————————————————————————————————————— 
BODY
—————————————————————————————————————————————————————————————————*/
body{
    background: #FFFFFF;
    font-family:"Oranienbaum", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    width:100%;
    margin:0;
    padding:0;
    height: 100%;
    color:#231F15;
    position: relative;
}

/* Hide H2 in content on homepage only */
body.home #content h2,
body.home main h2 {
    display: none;
}

/* Add spacing below header on homepage */
body.home .header,
body.home .site-header,
body.home header {
    margin-bottom: 50px;
}

/* Make Cover blocks square on Neighbourhoods page */
.page-id-769 .wp-block-cover {
    aspect-ratio: 1 / 1;
    max-width: 400px;
    height: 0 auto;
}

.page-id-769 .wp-block-cover p,
.page-id-769 .wp-block-cover h1,
.page-id-769 .wp-block-cover h2,
.page-id-769 .wp-block-cover h3,
.page-id-769 .wp-block-cover a {
    color: #231F15 !important;
}

/*—————————————————————————————————————————————————————————————————
HEADINGS 
—————————————————————————————————————————————————————————————————*/
.site-title a {
    font-family: 'Beth Ellen', cursive;
    color: #231F15;
}
h1{
    margin:0;
    font-family: "Beth Ellen";
    font-weight: 400;
    font-style: normal;
    font-size: 30px;
    line-height: 50px;
    text-align: left;
    color:#231F15;
    padding-top: .5em;
}
h2{
   margin:0;
   font-family: "Oranienbaum", serif;
   font-weight: 400;
   font-style: normal;
   text-transform: uppercase;
   font-size: 50px;
   line-height: 50px;
   text-align: center;
   color:#231F15;
   padding-top: .5em;
}
h3{
	margin:0;
   font-family: "Oranienbaum", serif;
   font-weight: 400;
   font-style: normal;
   text-transform: uppercase;
   font-size: 30px;
   line-height: 40px;
   text-align: left;
   color:#231F15;
   padding-top: .5em;
}

/* ———————————————————————————— wrapper ———————————————————————————— */

#wrap {
	position: relative;
	margin: 0 3vw;
	max-width: 68em;
}
/*—————————————————————————————————————————————————————————————————
HEADER 
—————————————————————————————————————————————————————————————————*/
.header,
.site-header,
header {
	padding: 15px 10px;
	border-bottom: 2px solid #231F15;
	box-shadow: 0 2px 0 0 #231F15;
	margin: 0;
	position: relative;
	width: 100%;
	box-sizing: border-box;
}
.header h1 a,
.site-header h1 a,
header h1 a {
    text-decoration: none !important;
    border-bottom: none !important;
}
/* Hide menu toggle checkbox */
input[type="checkbox"],
.menu-toggle input,
header input[type="checkbox"] {
    display: none !important;
}
/*—————————————————————————————————————————————————————————————————
NAV 
—————————————————————————————————————————————————————————————————*/

.nav{
	display: flex;
	top: 0;
	width: 100%;
	font-family:"Oranienbaum", serif;
	color:#231F15;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	justify-content: right;
	align-items:center;
	z-index: 1000;
}
.menu{
	display:flex;
	gap: 40px;
	list-style: none;
	align-items:left;
}
.menu li a{
	text-decoration: none;
	color:#231F15;
	font-size: 1.1rem;
	padding:20px 0;
}

/* Desktop navigation */
nav ul,
nav .menu {
    display: flex;
    flex-direction: row;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: #231F15;
    font-size: 1.1rem;
    padding: 20px 0;
}

/* menu link styling */
nav ul li {
	margin: 0;
}

nav ul li a {
	font-size: 1.2em;
	display: block;
	padding: .2em 0;
	padding-left: 0;
	text-decoration: none;
	border: 0;
	color: #5E6E6D;
	-webkit-transition: all .3s ease-in-out;
	-moz-transition: all .3s ease-in-out;
	-o-transition: all .3s ease-in-out;
	transition: all .3s ease-in-out;
}

nav ul li a:link, nav ul li a:visited {
	background: none;
}

nav ul li a:hover, nav ul li a:active, nav ul li a:focus {
	background: #666;
	color: #D8D8C2;
}

/* current link highlight */
nav ul li.current-menu-item a:link, nav ul li.current-menu-item a:visited, 
nav ul li.current-menu-parent a:link, nav ul li.current-menu-parent a:visited {
	color: #000;
	text-decoration: underline;
}
nav.sitenav {
    position: absolute !important;
    right: 25px !important;
    top: 15px !important;
}
.menu-toggle {
  display: none;
}

/*—————————————————————————————————————————————————————————————————
PAGE CONTENT
—————————————————————————————————————————————————————————————————*/

#content {
	margin: 0 10vw;
}

article {
	margin: 0 0 3em 0;
}

img {
	display: block;
	width: 100%;
	height: auto;
	margin: 12px 0;
}
.category article h2:first-of-type {
	margin: 0 0 .36em 0;
}
.category article h2 + p {
	color: #999;
	font-size: .9em;
	line-height: 1.6;
	/*border-top: 1px solid #ccc;*/
}
.category article h2:first-of-type + p:before {
	content: '';
	display: block;
	width: 10em;
	height: 1px;
	background: #D8D8C2;
}
/* post meta */
.postmetadata {
	color: #999;
	font-size: .9em;
	line-height: 2;
	border-top: 1px solid #ccc;
}


/* ———————————————————————————— post links ———————————————————————————— */
nav.post-navigation {
	padding: 0;
	margin: 0 0 4ch 0;
	border: 0;
}
nav.post-navigation:before {
	content: '';
	display: block;
	margin: 0 auto 4ch auto;
	width: 66%;
	height: 2px;
	background: #D8D8C2;
}


nav.post-navigation h2 {
	text-align: left;
	font-weight: 400;
	font-size: 1.2em;
	/* screenreader text */
	display: none;
}
.nav-links {
    clear: both;
	padding: 16px 0;
	text-align: left;
}	
.nav-links div {
	margin: 0 0 1vw 0;
}
.nav-links div a:link, .nav-links div a:visited {
	display: block;
	text-decoration: none;
	font-size: 1em;
	/*color: #f1f1f1;*/
	padding-right: 2ch;
	border-bottom: 1px solid #D8D8C2;
}
.nav-links div a:hover, .nav-links div a:active, .nav-links div a:link:focus {
	border-bottom-color: #000;
}

.nav-links div a:link strong, .nav-links div a:visited strong {
	display: block;
	font-style: normal;
	/*font-size: .8em;*/
	/*color: rgba(171, 166, 188, 1)!important;*/
}

/*block covers*/
.wp-block-cover p,
.wp-block-cover h1,
.wp-block-cover h2,
.wp-block-cover h3,
.wp-block-cover a {
    color: white !important;
}

/*—————————————————————————————————————————————————————————————————
FOOTER 
—————————————————————————————————————————————————————————————————*/
/* Footer styling */
/* Force Site Title Styling - Add at bottom */
.site-header h1 a,
.site-header h1 a:link,
.site-header h1 a:visited,
.site-header h1 a:hover,
header h1 a,
header h1 a:link,
header h1 a:visited,
header h1 a:hover,
h1 a,
h1 a:link,
h1 a:visited {
    font-family: 'Beth Ellen', cursive !important;
    color: #231F15 !important;
    text-decoration: none !important;
	border-bottom: none !important;
}
/*—————————————————————————————————————————————————————————————————
MEDIA QUERIES 
—————————————————————————————————————————————————————————————————*/

/* Mobile and Tablet only */
@media (max-width: 1024px) {
  /* Fix wrapper margins */
  #wrap {
    margin: 0 3vw !important;
  }
  
  /* Header - NO FLEXBOX on mobile */
  header,
  .header,
  .site-header {
    display: block !important; /* Force block, not flex */
    margin: 0 !important;
    padding: 15px 10px !important;
  }
  
  /* H1 mobile sizing */
  header h1,
  .site-header h1,
  .header h1 {
    font-size: 24px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* Allow title to wrap if needed */
  header h1 a,
  .site-header h1 a,
  .header h1 a {
    white-space: normal !important;
  }
  
  /* Hide tagline on mobile */
  header p {
    display: none;
  }
  
  /* Show hamburger button */
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 20px;
    top: 5px;
    z-index: 1001;
  }
  
  .menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #231F15;
    margin: 5px 0;
    transition: 0.3s;
  }
  
  /* Hide desktop menu */
  nav.sitenav > div.menu-wrapper {
    display: none;
  }
  
  /* Mobile menu slide-in */
  nav.sitenav.active > div.menu-wrapper {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    height: 100vh;
    background: #F9EDD6;
    padding: 80px 20px 20px;
    box-shadow: -2px 0 5px rgba(0,0,0,0.3);
    z-index: 1000;
    overflow-y: auto;
  }
  
  /* Force menu to display as vertical list */
  nav.sitenav.active .menu-wrapper ul,
  nav.sitenav.active .menu-wrapper .menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 25px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  /* Menu items */
  nav.sitenav.active .menu-wrapper ul li {
    display: block !important;
    margin: 0 !important;
  }
  
  nav.sitenav.active .menu-wrapper ul li a {
    display: block !important;
    padding: 10px !important;
    color: #231F15 !important;
    text-decoration: none !important;
    font-size: 1.1rem !important;
  }
  
  /* Cover block mobile styles */
  .wp-block-cover {
    min-height: 400px !important;
    width: 100%;
    margin-top: 0;
  }
  
  .wp-block-cover img,
  .wp-block-cover .wp-block-cover__image-background {
    object-fit: cover !important;
    object-position: center;
    width: 100%;
    height: 100%;
  }
}

/* Desktop breakpoint - NOW introduce flexbox */
@media (min-width: 1025px) {
  header,
  .header,
  .site-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 25px 15px 0px !important;
  }
}