/* ==========================================================================
   Julie Hepenstal Art — Modern Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Lato:wght@300;400;700&display=swap');

:root {
  --navy:    #333366;
  --olive:   #666633;
  --text:    #333333;
  --muted:   #777777;
  --border:  #e0ddd8;
  --bg:      #ffffff;
  --bg-alt:  #f9f8f5;
  --max-w:   1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--olive); }

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--navy);
  font-weight: 400;
  line-height: 1.2;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Site Header & Navigation
   ========================================================================== */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-style: italic;
  color: var(--navy);
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-title:hover { color: var(--olive); }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0;
}

.site-nav a {
  display: block;
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--navy);
  transition: color 0.2s;
}
.site-nav a:hover,
.site-nav a.active { color: var(--olive); }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: all 0.3s;
}

@media (max-width: 800px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.5rem 1.25rem;
  }
  .site-nav.open { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-nav a {
    padding: 0.55rem 0;
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   Main & Page title
   ========================================================================== */

main {
  padding: 2.5rem 0 3.5rem;
  min-height: calc(100vh - 68px - 72px);
}

.page-heading {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

/* ==========================================================================
   Home Page
   ========================================================================== */

.home-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

.home-hero-text h1 {
  font-size: 3rem;
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.05;
}

.home-hero-text p {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.home-hero-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.home-hero-images img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--navy);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--navy);
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--navy); color: #fff; }

@media (max-width: 650px) {
  .home-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .home-hero-text h1 { font-size: 2.2rem; }
}

/* ==========================================================================
   Gallery (Paintings)
   ========================================================================== */

.gallery-instructions {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.9rem 1.2rem;
  margin-bottom: 2rem;
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.6;
}
.gallery-instructions strong { color: var(--navy); }
.gallery-instructions code {
  background: #e9e8e4;
  padding: 0.1em 0.4em;
  border-radius: 2px;
  font-size: 0.9em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.75rem 1.5rem;
}

.gallery-item a { display: block; overflow: hidden; }

.gallery-item-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.2s;
}
.gallery-item a:hover .gallery-item-thumb {
  transform: scale(1.04);
  opacity: 0.9;
}

.gallery-caption {
  padding: 0.55rem 0 0;
}
.gallery-caption .title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  color: var(--navy);
  display: block;
  margin-bottom: 0.1rem;
}
.gallery-caption .size {
  font-size: 0.75rem;
  color: var(--muted);
  display: block;
}
.gallery-caption .price {
  font-size: 0.78rem;
  font-weight: 700;
  display: block;
  margin-top: 0.15rem;
}
.gallery-caption .price.available { color: var(--olive); }
.gallery-caption .price.sold       { color: var(--muted); }

.gallery-footer-note {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}
.gallery-footer-note a { color: var(--olive); font-weight: 700; }

/* ==========================================================================
   Biography
   ========================================================================== */

.bio-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: start;
}
.bio-layout img { width: 100%; }

@media (max-width: 640px) {
  .bio-layout {
    grid-template-columns: 1fr;
  }
  .bio-layout img { max-width: 260px; }
}

/* ==========================================================================
   Classes
   ========================================================================== */

.classes-section { margin-bottom: 2rem; }
.classes-section p { color: var(--muted); }

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1.5rem;
  font-size: 0.9rem;
}
.schedule-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
}
.schedule-table td:first-child {
  color: var(--navy);
  font-weight: 700;
  width: 220px;
}

/* ==========================================================================
   Prints
   ========================================================================== */

.prints-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 1.75rem;
  font-size: 0.9rem;
}
.prints-table th,
.prints-table td {
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.prints-table th {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--navy);
  font-weight: 400;
  background: var(--bg-alt);
  letter-spacing: 0.03em;
}
.prints-table tr:hover td { background: var(--bg-alt); }

/* ==========================================================================
   Exhibitions
   ========================================================================== */

.exhibition-block { margin-bottom: 2.25rem; }
.exhibition-block p { color: var(--muted); }

.photo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.25rem 0;
}
.photo-row img {
  max-height: 220px;
  width: auto;
  object-fit: cover;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-email {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--navy);
  margin-top: 0.5rem;
}
.contact-email:hover { color: var(--olive); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 1.4rem 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted);
}
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--navy); }

@media (max-width: 550px) {
  .footer-inner {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
  }
}
