/*
Theme Name: Painting Portfolio
Theme URI: https://example.com
Author: Artist
Description: A clean portfolio theme to showcase painting projects.
Version: 1.0.0
Text Domain: testproject
*/

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #f7f4ef;
  --bg-card:     #ffffff;
  --text:        #2c2825;
  --text-muted:  #7a7268;
  --accent:      #c4714a;
  --accent-soft: #e8c4b0;
  --border:      #e5dfd6;
  --font-serif:  "Cormorant Garamond", Georgia, serif;
  --font-sans:   "DM Sans", system-ui, sans-serif;
  --radius:      4px;
  --shadow:      0 4px 24px rgba(44, 40, 37, 0.08);
  --max-width:   1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
}

/* ── Layout ───────────────────────────────────────────────── */
.container {
  width: min(var(--max-width), 92vw);
  margin-inline: auto;
}

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}

.site-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

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

.site-nav a {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--accent); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: 6rem 0 5rem;
  text-align: center;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-inline: auto;
  line-height: 1.7;
}

.hero-divider {
  width: 48px;
  height: 1px;
  background: var(--accent);
  margin: 2.5rem auto 0;
}

/* ── Section ──────────────────────────────────────────────── */
.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ── Gallery Grid ─────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

/* ── Painting Card ────────────────────────────────────────── */
.painting-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.painting-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(44, 40, 37, 0.12);
}

.painting-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
}

.painting-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder — replace with <img> when ready */
.painting-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.painting-placeholder svg {
  opacity: 0.5;
}

.painting-info {
  padding: 1.5rem;
}

.painting-info h3 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.painting-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.painting-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.painting-tag {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
}

/* Unique placeholder gradients per card */
.placeholder-1 { background: linear-gradient(145deg, #8b5e3c 0%, #c4714a 50%, #e8c4b0 100%); }
.placeholder-2 { background: linear-gradient(145deg, #3d5a4a 0%, #6b9080 50%, #a4c3b2 100%); }
.placeholder-3 { background: linear-gradient(145deg, #4a4e69 0%, #7b82a8 50%, #c9b1d4 100%); }
.placeholder-4 { background: linear-gradient(145deg, #6b2737 0%, #a0525a 50%, #d4a0a0 100%); }
.placeholder-5 { background: linear-gradient(145deg, #5c4b2a 0%, #9a7b4f 50%, #d4c4a0 100%); }
.placeholder-6 { background: linear-gradient(145deg, #2c3e50 0%, #4a6741 50%, #8fbc8f 100%); }

/* ── About Strip ──────────────────────────────────────────── */
.about-strip {
  background: var(--text);
  color: #f7f4ef;
  padding: 5rem 0;
  margin-top: 2rem;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-inner h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1.25rem;
}

.about-inner p {
  color: rgba(247, 244, 239, 0.75);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--accent-soft);
  display: block;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.5);
  margin-top: 0.25rem;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .site-nav { display: none; }

  .hero { padding: 4rem 0 3rem; }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
