body { margin: 0; padding: 0; font-family: 'Quicksand', sans-serif; font-size: 1.125rem; color: var(--blog-black); line-height: 1.6; } :root { --blog-black: #231F20; --blog-grey: #E6E8E6; --blog-green: #004d00; --blog-pink: #fc60a8; --blog-light-pink: #fe86bc; } .container-flex { width: 90%; max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; } img { border-radius: 2px; } /* typography */ h1, h2 { font-weight: 700; } h1 { font-size: 2.5rem; margin-bottom: 0; } h2 { font-size: 1.75rem; } .site-subtitle { font-size: 1.5rem; margin-top: 0; } .article-link { color: var(--blog-black); text-decoration: none; } .article-link:hover, .article-link:focus { color: var(--blog-green); cursor: pointer; } .continue-reading, .footer-link { text-decoration: none; color: var(--blog-light-pink); font-size: 1rem; } .continue-reading { font-weight: 700; text-transform: uppercase; } .continue-reading:hover, .continue-reading:focus { text-decoration: underline; color: var(--blog-green); } .footer-link { font-weight: 700; } .footer-link:hover, .footer-link:focus { text-decoration: underline; color: #fff; } /* header */ .title-container { padding: 1em; } header { display: flex; flex-direction: column; background: var(--blog-green); color: white; text-align: center; padding: 1em; margin-bottom: 1em; } .nav-list { display: flex; flex-direction: column; list-style-type: none; justify-content: space-around; } .nav-item { padding: 1em; } nav a { color: white; text-decoration: none } nav a:hover, nav a:focus { color: var(--blog-pink); cursor: pointer; } .current-page { text-decoration: underline; } /* article layout */ .articles { max-width: 700px; margin: 0 auto; } .article { display: flex; flex-direction: column; margin: 1em; } .article-primary { order: 1; } .article-secondary { order: 0; /* background: red; */ } .article-img, .widget-img, .about-me-img { width: 100%; max-width: 100%; display: block; object-fit: cover; } .article-img { max-height: 300px; } footer { background-color: var(--blog-green); width: 100%; margin: 0; padding: 3em 0; color: var(--blog-grey); text-align: center; } /* widget */ .sidebar { margin: 1em; } .sidebar-widget { border: 20px solid var(--blog-grey); padding: 0 1em; } .about-me { margin-bottom: 1em; } .widget-recent-post { padding-bottom: 0.5em; border-bottom: 1px solid var(--blog-green); display: flex; flex-direction: column; margin-bottom: 1em; } .widget-recent-post:last-child { margin-bottom: 0; border: none; } .widget-title { margin-top: 0.5em; text-transform: uppercase; font-size: 1.25rem; } .widget-recent-post-title { font-size: 1.125rem; order: 0; line-height: 1.4; } .widget-img { order: -1; } .widget-img, .about-me-img { max-height: 200px; } /* about me page */ .about-me-article { margin: 1em; } .about-me-img { margin-bottom: 1em; object-position: top; } /* recent posts page */ .main-recent-posts { padding-top: 0.25em; } /* photo cred page */ .photo-cred-header { margin-bottom: 0; } .photo-cred-main { width: 100%; } .photo-cred-imgs { display: grid; grid-template-columns: 1fr; } .photo-cred-container { position: relative; min-height: 300px; background-position: center; background-size: cover; opacity: 0.7; } .photo-cred-text { position: absolute; margin: 0.25em auto auto 0.25em; top:0; color: white; font-weight: 700; z-index: 3; padding: 0.25em 0.5em; border-radius: 5px; opacity: 1; } .photo-cred-container:hover, .photo-cred-container:focus { opacity: 1; cursor: pointer; } .photo-cred-container:hover .photo-cred-text, .photo-cred-text:hover { color: white; background: black; } .photo-cred-hose { background-image: url("images/gardener.jpg"); } .photo-cred-bay { background-image: url("images/bay-tree.jpg"); } .photo-cred-garlic { background-image: url("images/garlic.jpg"); } .photo-cred-willow { background-image: url("images/willow.jpg"); background-position: bottom; } .position-top { object-position: top; } /* desktop styles */ @media only screen and (min-width: 650px) { header, .nav-list, .article { flex-direction: row; } header { align-items: center; justify-content: space-between; } .title-container { text-align: left; } main { width: 67%; } .main-recent-posts { width: 100%; } aside { width: 30%; } h2 { margin-top: 0 } .container-flex { flex-direction: row; } .article-primary{ padding-left: 1em; } .article-img { min-height: 300px; max-width: 150em; } .photo-cred-imgs { display: grid; grid-template-columns: 1fr 1fr; } .photo-cred-hose { background-position: top; } .photo-cred-willow { background-position: center; } }