@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap");

/* =====================================================
   Minimal White — clean, airy, typographic
   ===================================================== */

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

:root {
  --bg: #ffffff;
  --surface: #f8f8f8;
  --text: #111111;
  --text-light: #666666;
  --accent: #111111;
  --border: #e0e0e0;
  --font-sans: "Inter", system-ui, sans-serif;
  --max-w: min(80vw, 1400px);
  --gap: 1.5rem;
}

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

a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
img {
  display: block;
  max-width: 100%;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
}

.site-name {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.site-nav ul a {
  font-size: 0.875rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-nav ul a:hover {
  color: var(--text);
  text-decoration: none;
}

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

main h1 {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

main h2 {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 2.5rem 0 1rem;
}

/* Hero */
.hero {
  padding: 3rem 0 2rem;
}

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

.bio {
  color: var(--text-light);
  font-size: 1.05rem;
  white-space: pre-line;
}

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

/* Painting grid */
.painting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(max(13rem, 15vw), 1fr));
  gap: var(--gap);
  margin-top: 1rem;
}

.painting-card {
  display: block;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s;
}

.painting-card:hover {
  border-color: var(--text);
  text-decoration: none;
}
.painting-card--view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 10rem;
  border-style: dashed;
  opacity: 0.6;
  text-decoration: none;
}

.painting-card--view-all:hover {
  opacity: 1;
  text-decoration: none;
}

.view-all-label {
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--text, currentColor);
}

.painting-card img {
  width: 100%;
  height: auto;
}

.card-caption {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.card-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.card-meta,
.card-year {
  font-size: 0.8rem;
  color: var(--text-light);
}

.card-avail.available {
  font-size: 0.75rem;
  color: #2a7a2a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Collection grid */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
  margin-top: 1rem;
}

.collection-card {
  display: block;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s;
}

.collection-card:hover {
  border-color: var(--text);
  text-decoration: none;
}

.collection-card img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}

.card-desc {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Collection header */
.collection-header {
  margin-bottom: 2rem;
}

.collection-desc {
  color: var(--text-light);
  margin-top: 0.5rem;
}

/* Painting detail */
.painting-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.painting-detail .breadcrumb {
  grid-column: 1 / -1;
}
@media (max-width: 700px) {
  .painting-detail {
    grid-template-columns: 1fr;
  }
}

.painting-image img {
  width: 100%;
}

.painting-info h1 {
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.painting-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 1.5rem;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.painting-meta dt {
  color: var(--text-light);
  font-weight: 400;
}

.painting-meta div {
  display: contents;
}

.avail-available {
  color: #2a7a2a;
}
.avail-sold {
  color: var(--text-light);
}
.avail-on_loan {
  color: #5555aa;
}

.painting-description h2 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

/* About / Contact */
.about-page,
.contact-page {
  max-width: var(--max-w);
}

.about-page h1,
.contact-page h1 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.about-page h2,
.contact-page h2 {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.about-page h3,
.contact-page h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin: 2rem 0 0.5rem;
}

.about-page ul,
.contact-page ul {
  list-style: none;
}

.about-page li,
.contact-page li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.breadcrumb a {
  color: var(--text-light);
}
.breadcrumb a:hover {
  color: var(--text);
}

/* Collection list (on index) */
.collection-list {
  list-style: none;
}

.collection-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.collection-list a {
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-footer ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.site-footer a {
  color: var(--text-light);
}
.site-footer a:hover {
  color: var(--text);
}

/* Responsive */
@media (max-width: 600px) {
  .site-nav {
    flex-direction: column;
    gap: 1rem;
  }
  .site-nav ul {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  main {
    padding: 2rem 1rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
}

/* === Inquiry Form === */
.enquire h3 {
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
}
.inquiry-form {
  margin-top: 1rem;
}
.inquiry-form input,
.inquiry-form textarea {
  display: block;
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  border-radius: 2px;
  outline: none;
}
.inquiry-form input:focus,
.inquiry-form textarea:focus {
  border-color: var(--accent);
}
.inquiry-form textarea {
  height: 80px;
  resize: vertical;
}
.inquiry-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.03em;
}
.inquiry-form button:hover {
  opacity: 0.85;
}
.inquiry-form button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.inquiry-success {
  color: #16a34a;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}
.inquiry-error {
  color: #dc2626;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

/* === Availability Filter === */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-light);
  padding: 0.3rem 0.85rem;
  font-size: 0.7rem;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.filter-btn:hover:not(.active) {
  border-color: var(--accent);
  color: var(--accent);
}

/* === Lightbox === */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  cursor: pointer;
}
.lightbox-overlay.open {
  display: flex;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
}
.lightbox-close:hover {
  opacity: 1;
}
.lightbox-img {
  max-height: 82vh;
  max-width: 90vw;
  object-fit: contain;
  cursor: default;
}
.lightbox-caption {
  color: #ddd;
  font-size: 0.85rem;
  margin-top: 0.75rem;
  text-align: center;
  cursor: default;
}
.lightbox-link {
  display: inline-block;
  margin-top: 0.3rem;
  color: #555;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.painting-image img {
  cursor: zoom-in;
}

.lang-switcher {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.75rem;
  padding: 0.2rem 0.4rem;
  border-radius: 2px;
  cursor: pointer;
  font-family: var(--font-sans);
}

.lang-switcher:hover {
  border-color: var(--accent);
  color: var(--text);
}

.lang-switcher option {
  background: var(--bg);
  color: var(--text);
}

/* Blog comments */
.comments {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--accent);
}
.comments h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.comment {
  padding: 0.8rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 0.4rem;
}
.comment-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.3rem;
}
.comment-author {
  font-weight: 600;
}
.comment-date {
  opacity: 0.6;
  font-size: 0.82rem;
}
.comment-body {
  white-space: pre-wrap;
  line-height: 1.5;
}
.comment-empty {
  opacity: 0.7;
  font-style: italic;
  margin-bottom: 2rem;
}
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 40rem;
}
.comment-form h3 {
  font-size: 1.05rem;
  margin: 0;
}
.comment-note {
  opacity: 0.7;
  font-size: 0.85rem;
  margin: 0;
}
.comment-form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
}
.comment-form input,
.comment-form textarea {
  font: inherit;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--accent);
  border-radius: 0.3rem;
  width: 100%;
  box-sizing: border-box;
  background: var(--bg);
  color: var(--text);
}
/* Honeypot — kept out of sight and out of the tab order */
.comment-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.comment-form button {
  align-self: flex-start;
  padding: 0.55rem 1.2rem;
  cursor: pointer;
  font-family: var(--font-sans);
}
.comment-status {
  font-size: 0.9rem;
  margin: 0;
}
.comment-status.ok {
  color: #2a7d2a;
}
.comment-status.err {
  color: #b3261e;
}
