/*
Theme Name: Harvey Sunshine Art
Theme URI: https://harveysunshine.com
Author: Harvey Sunshine
Description: A quiet portfolio theme for painters. Images in the media library can be sorted into Collections and Image Tags, and any combination of them can be turned into a gallery on a page, in a block, with a shortcode, or on an automatic collection page.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: harvey-sunshine
*/

body {
  margin: 0;
  font-family: 'Quicksand', sans-serif;
  background-color: #faf8f4;
  color: #333;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: #333;
}

a:hover {
  color: #007acc;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link:focus {
  clip: auto;
  clip-path: none;
  height: auto;
  width: auto;
  margin: 0;
  padding: 0.75rem 1rem;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1000;
  background: #fff;
}

/* Header */

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #f4f4f4;
  border-bottom: 1px solid #ccc;
}

.site-title {
  margin: 0;
  font-size: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-weight: normal;
}

.site-title a,
.site-title a:hover {
  text-decoration: none;
  color: #333;
}

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

.site-nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  color: #007acc;
}

.site-nav .sub-menu {
  display: none;
}

@media (max-width: 600px) {
  .site-header {
    padding: 1rem 1.25rem;
  }

  .site-nav ul {
    gap: 0.5rem 1rem;
  }
}

/* Layout */

main,
.site-main {
  max-width: 900px;
  margin: 2rem auto 3rem;
  padding: 0 1.5rem;
}

.site-main.is-wide {
  max-width: 1000px;
  padding: 0 1rem;
}

h2,
.page-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: normal;
  margin-bottom: 1rem;
}

.entry-content {
  line-height: 1.6;
}

.entry-content > * + * {
  margin-top: 1rem;
}

.entry-content .alignwide {
  max-width: 1000px;
}

.entry-content .alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
}

figure {
  margin: 0;
  text-align: center;
}

figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #555;
}

.page-figure {
  max-width: 500px;
  margin: 0 auto 2rem;
}

.page-figure img {
  display: block;
  width: 100%;
}

.term-description,
.archive-description {
  max-width: 650px;
  line-height: 1.6;
}

/* Homepage hero */

.hero {
  max-width: 1000px;
  margin: 2rem auto 3rem;
  padding: 0 1.5rem;
  text-align: center;
}

.hero-image {
  margin-bottom: 1.5rem;
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.hero-text {
  max-width: 650px;
  margin: 0 auto;
}

.hero-text p {
  margin: 0.5rem auto;
  line-height: 1.6;
}

/* Banner (writings) */

.page-banner {
  width: 100%;
  overflow: hidden;
}

.page-banner img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

/* Exhibitions */

.exhibition-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.exhibition {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e0ddd8;
}

.exhibition:last-child {
  border-bottom: none;
}

.exhibition-image {
  flex-shrink: 0;
  width: 140px;
  height: 90px;
  border-radius: 4px;
  background-color: #dddddd;
  overflow: hidden;
}

.exhibition-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exhibition-content {
  flex: 1;
}

.exhibition-title {
  margin: 0;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.exhibition-meta {
  font-size: 0.9rem;
  color: #777;
  margin: 0.25rem 0 0.75rem;
}

.exhibition-description {
  margin: 0;
  line-height: 1.6;
}

.exhibition-description p {
  margin: 0;
}

@media (max-width: 600px) {
  .exhibition {
    flex-direction: column;
  }

  .exhibition-image {
    width: 100%;
    height: 180px;
  }
}

/* Writings */

.writing {
  padding: 1.5rem 0;
  border-bottom: 1px solid #e0ddd8;
}

.writing:last-child {
  border-bottom: none;
}

.writing-title {
  margin: 0;
  font-weight: 700;
  font-size: 1.2rem;
}

.writing-title a {
  text-decoration: none;
}

.writing-meta {
  font-size: 0.9rem;
  color: #777;
  margin-top: 0.25rem;
}

.writing-excerpt {
  margin-top: 0.75rem;
  line-height: 1.7;
}

.pagination,
.posts-navigation {
  margin-top: 2rem;
}

.pagination .nav-links {
  display: flex;
  gap: 1rem;
}

/* Footer */

.site-footer {
  padding: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #777;
}
