/*
 Theme Name:   Yvette Artley
 Theme URI:    https://yvetteartley.com
 Description:  Child theme for BlankSlate
 Author:       Yvette Artley / Kelly Joynson
 Template:     blankslate
 Version:      1.0.0
 Text Domain:  blankslate-child
*/

/* ---------- Base / Variables ---------- */
:root {
  --maxw: 1100px; /* unified site width */
  --text: #777;
  --headings: #333;
  --link: #aaa;
  --link-hover: #222;

  /* Optional form vars */
  --form-border: #ddd;
  --form-border-focus: #222;
  --form-bg: #fff;
  --form-text: #777;
  --form-label: #333;
}

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

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Liberation Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.75;
}

/* Global rhythm */
p { margin: 0 0 1.2em; }

.entry-content > * + * { margin-top: 1.1em; }

/* Headings */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  color: var(--headings);
  line-height: 1.25;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
h1.entry-title,
h2.entry-title,
h3.entry-title {
  font-weight: 700;
  line-height: 1.3;
  margin: 1.2em 0 0.5em;
}

/* Links */
a {
  color: var(--link);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: var(--link-hover);
  outline: none;
}

/* In-body links */
p a { color: rgb(0, 73, 168); }

p a:hover,
p a:focus-visible { color: rgb(55, 135, 235); }

/* ---------- Layout / Containers ---------- */
/* Keep your normal content areas constrained */
.site,
.site-container,
.site-content,
.container,
.wrap,
#main {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

/* Main content wrapper */
#main { padding: clamp(1rem, 2vw, 2rem); }

/* Page header (hidden) */
.page-header { visibility: hidden; height: 0; }

.page-header h1 { margin-top: 0; }

/* Page titles */
.page .entry-title,
.single .entry-title {
  text-align: center;
  margin-top: 0.2em;
  margin-bottom: 0.6em;
}

/* Images */
.page-content img,
.entry-content img,
.entry-content figure,
.wp-block-image img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.2em auto;
  border: 0;
  box-shadow: none;
}

/* NOTE about `.div`: targets class="div" */
.div { padding: 0 17px 13px; }

/* ---------- Header ---------- */
/* Make header full-width, then center its inner parts to match the site */
.site-header {
  width: 100%;
  margin: 0;
  padding: 1rem 0;
  text-align: center;
}

/* Constrain header content to the same width as the rest of the site */
.site-header .header-image,
.site-header .hero,
.site-header .site-nav {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

.header-image {
  padding-top: clamp(0.5rem, 2vw, 1rem);
  text-align: center;
}

.header-image img {
  width: 100%;
  max-width: 560px;   /* desktop  */
  height: auto;
}

/*
.header-image {
  padding-top: clamp(0.5rem, 2vw, 1rem);
  text-align: center; 
}

.header-image img {
  display: inline-block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 0 auto;
}
*/

.site-title { margin: 0; }

.site-title a {
  font-size: 1.8rem;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}

/* Logos */
.site-branding img,
.custom-logo {
  max-width: 320px;
  height: auto;
  display: inline-block;
}

/* ---------- Taglines + Hero ---------- */
.site-description,
.header-tagline {
  display: block;
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 3px;
  line-height: 2.3;
  text-transform: uppercase;
  margin: 0 0 28px;
  padding: 15px 0 16px;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.hero {
  text-align: center;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 3px;
  line-height: 2.3;
  text-transform: uppercase;
  padding: 1rem 0 1.5rem;
  max-width: none; /* allow the hero row to span the header content width */
  margin: 0;
}

.hero h1 {
  display: block;
  /*max-width: 36rem;*/
  margin: 0 auto 0.5rem;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  text-align: center;
}

/* ---------- Navigation ---------- */
.site-nav {
  margin-top: 1rem;
  text-align: center;
}

.site-nav .menu {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav .menu a {
  font-family: "Liberation Sans", Cabin, Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 1.8;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
  font-size: clamp(14px, 1.1vw, 16px);
}

.site-nav .menu a:hover,
.site-nav .menu a:focus-visible { color: var(--link-hover); }

.site-nav .menu li.current-menu-item > a,
.site-nav .menu li.current_page_item > a,
.site-nav .menu li.current-menu-ancestor > a {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Optional support for other nav classnames */
.main-navigation,
.nav-primary,
nav[role="navigation"] {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 28px;
}

.main-navigation ul,
.nav-primary ul {
  display: inline-flex;
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
  flex-wrap: wrap;
}

.main-navigation a,
.nav-primary a {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  font-weight: 400;
  color: #222;
  opacity: 0.9;
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  font-size: 12px;
  color: #666;
  padding: 48px 0 64px;
  background: #fff;
  border: 0;
}

.site-footer p { margin: 0; }

/* ---------- Helpers ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 782px) {
  .main-navigation ul,
  .nav-primary ul {
    gap: 12px;
    flex-wrap: wrap;
  }

  .site-branding img,
  .custom-logo {
    max-width: 260px;
  }
}

@media (max-width: 640px) {

  .site-title a { font-size: 1.5rem; }

	  body {
    padding-left: 1rem;
    padding-right: 1rem;
  }
	
	  .hero {
    padding-bottom: 1rem;   /* was 2rem */
  }

  .site-nav {
    margin-top: 0.5rem;     /* was 1rem */
  }
}

/* --------------- New Custom css -------------- */
/* (space reserved for future additions) */
/* --- Header layout: center image, hero, and nav --- */
.site-header {
  text-align: center;
}

.site-header .header-image,
.site-header .hero,
.site-header .site-nav {
  margin-left: auto;
  margin-right: auto;
}

/* Keep the nav items centered even if a UL rule elsewhere breaks it */
.site-nav .menu {
  justify-content: center;
}

/* -----------------  Dropdown on mobile ---------------------- */

/* ---------- Mobile dropdown menu ---------- */

.menu-toggle {
  display: none; /* hidden on desktop */
  margin: 0.75rem auto 0;
  padding: 0.6rem 1rem;
  border: 1px solid #222;
  background: #fff;
  color: #222;
  text-transform: uppercase;
  letter-spacing: 2px;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 640px) {
  .menu-toggle { display: inline-block; }

  /* Hide the menu when [hidden] is present */
  .site-nav .menu[hidden] {
    display: none !important;
  }

  /* Show menu when not hidden */
  .site-nav .menu {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.75rem;
  }
}