/* ── Julia Rooney – Artist Portfolio ── */

:root {
  --color-bg: #ababab;          /* main content background */
  --color-header: #cccccc;      /* header background */
  --color-text: #ffffff;        /* all text white */
  --color-muted: #ffffff;       /* lighter white for secondary text */
  --color-accent: #8b7355;
  --color-border: #dddddd;
  --color-frame: #dddddd;       /* 5px border around images */
  --color-card-bg: #ffffff;
  --color-active: #4a2d6e;      /* dark purple - active nav */
  --color-hover: #1a5c5a;       /* dark teal - nav hover */
  --font-display: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  --font-body: 'Segoe UI', Optima, Candara, sans-serif;
  --max-width: 1200px;
  --gap: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
header {
  background: var(--color-header);
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 2rem;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}
.site-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: normal;
  color: var(--color-text);
  text-decoration: none;
}
.site-tagline {
  font-size: 0.85rem;
  color: var(--color-text);
  margin: 0.25rem 0 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
nav {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}
nav a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  transition: color 0.2s;
}
nav a:hover {
  color: var(--color-hover);
}
nav a.active {
  color: var(--color-active);
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 4px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
}

/* ── Main ── */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
  flex: 1;
}

/* ── Home hero ── */
.hero {
  text-align: center;
  padding: 2rem 0 3rem;
}
.hero h2 {
  font-family: var(--font-display);
  font-weight: normal;
  font-size: 1.5rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
  border-bottom: none;
  padding-bottom: 0;
}
.hero p {
  color: var(--color-muted);
  font-size: 1rem;
}

/* ── Gallery grid ── */
h2 {
  font-family: var(--font-display);
  font-weight: normal;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
  margin-bottom: 3rem;
}
.painting-card {
  background: transparent;
  overflow: hidden;
  text-align: center;
}
.painting-card:hover img {
  opacity: 0.85;
}
.painting-card img {
  display: block;
  max-width: 100%;
  max-height: 300px;
  margin: 0 auto;
  cursor: pointer;
  border: 3px solid var(--color-frame);
  border-radius: 3px;
  transition: opacity 0.2s;
}
.painting-card figcaption {
  padding: 0.5rem 0.2rem;
}
.painting-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: normal;
  margin-bottom: 0.25rem;
  color: var(--color-text);
}
.painting-meta {
  font-size: 0.8rem;
  color: var(--color-muted);
  white-space: pre-line;
}

/* ── Lightbox ── */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.92);
  z-index: 1000;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}
.lightbox-overlay.active {
  display: flex;
}
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.lightbox-caption {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.75);
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-align: center;
  pointer-events: none;
}

/* ── About page ── */
.about-wrapper {
  max-width: 700px;
  margin: 0 auto;
}
.about-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1rem;
  align-items: start;
}
.about-photo img {
  width: 65%;
  border: 3px solid var(--color-frame);
  border-radius: 3px;
}
.about-text p {
  margin-bottom: 1rem;
  max-width: 700px;
}

/* ── Contact form ── */
.contact-wrapper {
  max-width: 500px;
  margin: 0 auto;
}
.contact-wrapper > p {
  text-align: center;
  margin-bottom: 0.5rem;
}
.contact-wrapper > p:last-of-type {
  margin-bottom: 1.5rem;
}
.contact-form {
  max-width: 500px;
}
.contact-form label {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
  margin-top: 1.2rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-card-bg);
  color: #2c2c2c;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
.contact-form button {
  display: block;
  margin: 1.5rem auto 0;
  padding: 0.6rem 2rem;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-form button:hover { background: #76624a; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-muted);
}
footer a { color: var(--color-text); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .menu-toggle { display: flex; margin: 0 auto; }
  nav {
    display: none;
    flex-direction: column;
    margin-top: 1rem;
  }
  nav.open { display: flex; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .about-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .about-photo { max-width: 300px; }
  main { padding: 1.5rem; }
}
