/* Diane Tracy Lehman — site styles
   Clean, gallery-focused, easy on the eyes. */

:root {
  --bg: #fafaf7;
  --ink: #1a1a1a;
  --muted: #6c6c6c;
  --line: #e6e3dd;
  --accent: #4a3a30;
  --max: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; transition: opacity .15s; }
a:hover { opacity: .65; }

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

/* === Header / nav === */
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}
header.site .wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
header.site .brand {
  font-family: Georgia, serif;
  font-size: 1.4rem;
  font-weight: normal;
  letter-spacing: 0.02em;
  margin: 0;
}
header.site .brand a { color: var(--ink); }
header.site .brand small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}
header.site nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 1.75rem;
  font-size: 0.95rem;
}
header.site nav a {
  color: var(--ink);
  letter-spacing: 0.02em;
}
header.site nav a.active { font-weight: bold; }

/* === Layout containers === */
main { min-height: 70vh; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

section.hero {
  padding: 3rem 0 2rem;
}
section.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: normal;
  margin: 0 0 0.5rem;
  letter-spacing: 0.01em;
}
section.hero p.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 38em;
  margin: 0 0 2rem;
}

/* === Painting grid === */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding-bottom: 4rem;
}
.gallery .card {
  display: flex;
  flex-direction: column;
}
.gallery .card a.thumb {
  display: block;
  background: #ece9e3;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.gallery .card a.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery .card a.thumb:hover img { transform: scale(1.03); }
.gallery .card .meta {
  padding: 0.75rem 0;
}
.gallery .card .meta h2 {
  font-size: 1.05rem;
  font-weight: normal;
  margin: 0;
  font-style: italic;
}
.gallery .card .meta p {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* === Painting detail page === */
article.painting {
  padding: 3rem 0;
}
article.painting .image {
  margin-bottom: 2rem;
  background: #ece9e3;
}
article.painting .image img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  margin: 0 auto;
  background: #ece9e3;
}
article.painting h1 {
  font-size: 2rem;
  font-weight: normal;
  font-style: italic;
  margin: 0 0 0.5rem;
}
article.painting .meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
}
article.painting .description {
  max-width: 40em;
  font-size: 1.05rem;
}

/* === Bio page === */
article.about {
  padding: 3rem 0;
  max-width: 42em;
}
article.about h1 {
  font-size: 2rem;
  font-weight: normal;
  margin: 0 0 1.5rem;
}
article.about p { margin-bottom: 1.25rem; }

/* === Contact page === */
article.contact {
  padding: 3rem 0;
  max-width: 36em;
}
article.contact h1 {
  font-size: 2rem;
  font-weight: normal;
  margin: 0 0 1.5rem;
}
form.contact { display: grid; gap: 1rem; }
form.contact label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
form.contact input,
form.contact textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 2px;
}
form.contact textarea { min-height: 8rem; resize: vertical; }
form.contact button {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border: none;
  background: var(--ink);
  color: white;
  cursor: pointer;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  align-self: start;
  transition: opacity .15s;
}
form.contact button:hover { opacity: 0.85; }

/* === Footer === */
footer.site {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  margin-top: 4rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
footer.site p { margin: 0.25rem 0; }

/* === Mobile === */
@media (max-width: 600px) {
  header.site .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  header.site nav ul { gap: 1.25rem; flex-wrap: wrap; }
  .gallery { gap: 1.25rem; }
}
