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

body {
  font-family: Georgia, 'Times New Roman', serif;
  color: #1a1a1a;
  background: #fafaf8;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ── Header & Nav ── */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid #e0ddd8;
  background: #fff;
}

.site-title {
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}

nav {
  display: flex;
  gap: 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

nav a { border-bottom: 1px solid transparent; }
nav a:hover { border-bottom-color: currentColor; }

/* ── Main ── */

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* ── Hero ── */

.hero {
  text-align: center;
  padding: 5rem 0 4rem;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: normal;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 2rem;
  border: 1px solid #1a1a1a;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
}

.btn:hover { background: #1a1a1a; color: #fafaf8; }

/* ── Featured section ── */

.featured { margin-top: 1rem; }

.featured h2 {
  font-size: 1.1rem;
  font-weight: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  color: #555;
}

.view-all {
  margin-top: 2rem;
  font-size: 0.9rem;
}

.view-all a { border-bottom: 1px solid currentColor; }

/* ── Portfolio heading ── */

h1 {
  font-size: 1.75rem;
  font-weight: normal;
  margin-bottom: 2rem;
}

/* ── Painting grid ── */

.painting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 2rem;
}

.painting-card { display: block; }

.painting-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #ece9e4;
}

.painting-info { padding: 0.65rem 0 0; }

.painting-info h3 {
  font-size: 0.95rem;
  font-weight: normal;
  margin-bottom: 0.2rem;
}

.price {
  font-size: 0.9rem;
  color: #444;
}

.price.sold {
  color: #aaa;
  font-style: italic;
}

/* ── Painting detail ── */

.painting-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.painting-image img {
  width: 100%;
  display: block;
  background: #ece9e4;
}

.painting-meta h1 {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.painting-meta .price {
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

.details {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 2rem;
}

.details th,
.details td {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e0ddd8;
  font-size: 0.9rem;
  font-weight: normal;
  text-align: left;
}

.details th {
  color: #777;
  padding-right: 2rem;
  width: 38%;
}

.description {
  margin-bottom: 2rem;
  line-height: 1.85;
  color: #333;
}

.enquire {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.enquire a,
.back-link { border-bottom: 1px solid currentColor; }

.back-link {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: #666;
  display: inline-block;
  margin-top: 1rem;
}

/* ── Markdown pages (About, Contact, Commissions) ── */

.page-content {
  max-width: 660px;
}

.page-content h1 {
  font-size: 2rem;
  font-weight: normal;
  margin-bottom: 1.5rem;
}

.page-content h2 {
  font-size: 1.2rem;
  font-weight: normal;
  margin: 2.5rem 0 1rem;
  letter-spacing: 0.04em;
}

.page-content p { margin-bottom: 1.1rem; }

.page-content strong { font-weight: bold; }

.page-content a { border-bottom: 1px solid currentColor; }

.page-content ol,
.page-content ul {
  margin: 0 0 1.1rem 1.5rem;
}

.page-content li { margin-bottom: 0.4rem; }

/* ── Footer ── */

footer {
  border-top: 1px solid #e0ddd8;
  padding: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 5rem;
}

/* ── Responsive ── */

@media (max-width: 768px) {
  header { flex-direction: column; gap: 1rem; text-align: center; }
  nav { gap: 1.25rem; flex-wrap: wrap; justify-content: center; }
  .painting-detail { grid-template-columns: 1fr; gap: 2rem; }
  .hero h1 { font-size: 2rem; }
  main { padding: 2rem 1.25rem; }
}
