/* ===============================================
   From My Art & Soul — Channa Chanin
   Gallery-style portfolio. Neutral canvas so the
   paintings supply the color.
   =============================================== */

:root {
  --ivory:      #faf7f1;
  --ivory-deep: #f2ece0;
  --ink:        #2b2723;
  --ink-soft:   #5a534a;
  --gold:       #b08847;
  --gold-deep:  #8f6b30;
  --line:       #e4dccd;
  --white:      #ffffff;
  --shadow:     0 18px 40px -22px rgba(43, 39, 35, 0.45);
  --shadow-sm:  0 8px 22px -16px rgba(43, 39, 35, 0.4);
  --maxw:       1180px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand b {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
  letter-spacing: 0.01em;
}
.brand span {
  font-size: 0.62rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold-deep); margin-top: 6px;
}
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a {
  font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-soft); transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span {
  display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0;
  transition: 0.3s;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans);
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 15px 32px; border: 1px solid var(--ink); color: var(--ink);
  background: transparent; cursor: pointer; transition: all 0.25s;
}
.btn:hover { background: var(--ink); color: var(--ivory); }
.btn-gold { border-color: var(--gold-deep); color: var(--gold-deep); }
.btn-gold:hover { background: var(--gold-deep); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  min-height: calc(100vh - 76px); align-items: center; gap: 60px;
}
.hero-text { padding: 40px 0; }
.hero-text h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); margin: 18px 0 22px; }
.hero-text h1 em { font-style: italic; color: var(--gold-deep); }
.hero-text p { font-size: 1.12rem; color: var(--ink-soft); max-width: 34ch; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-art { display: flex; flex-direction: column; gap: 16px; }
.hero-art .frame {
  overflow: visible; background: transparent;
  height: 64vh; max-height: 600px;
  display: flex; align-items: center; justify-content: center;
}
/* show the whole painting, never cropped; empty space blends into the page,
   and the soft shadow hugs the painting itself rather than a box */
.hero-art .frame img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; box-shadow: var(--shadow); }
.hero-art .caption { padding-left: 2px; }
.hero-art .caption b { font-family: var(--serif); font-size: 1.5rem; display: block; }
.hero-art .caption span { font-size: 0.78rem; color: var(--ink-soft); letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- Section heading ---------- */
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin: 14px 0; }
.section-head p { color: var(--ink-soft); }

/* ---------- Gallery grid ---------- */
.filters {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 48px;
}
.filters button {
  font-family: var(--sans); font-size: 0.76rem; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 9px 20px; border: 1px solid var(--line);
  background: transparent; color: var(--ink-soft); cursor: pointer; transition: 0.2s;
  border-radius: 40px;
}
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button.active { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 30px;
}
.grid.home { grid-template-columns: repeat(3, 1fr); }
.card { cursor: pointer; }
.card-media {
  position: relative; overflow: hidden; background: var(--ivory-deep);
  aspect-ratio: 4 / 5; box-shadow: var(--shadow-sm);
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 18px 4px 0; }
.card-body h3 { font-size: 1.35rem; }
.card-body .meta { font-size: 0.8rem; color: var(--gold-deep); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }

/* ---------- About strip ---------- */
.about-strip {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center;
  background: var(--ivory-deep); padding: 80px 0;
}
.about-strip .inner { display: contents; }
.about-portrait { aspect-ratio: 4/5; overflow: hidden; box-shadow: var(--shadow); background: var(--ivory); }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-copy h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); margin: 14px 0 20px; }
.about-copy p { color: var(--ink-soft); margin-bottom: 18px; }

/* ---------- Painting detail ---------- */
.detail { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; padding: 60px 0 96px; align-items: start; }
.detail-media { box-shadow: var(--shadow); background: var(--ivory-deep); position: sticky; top: 100px; }
.detail-info .eyebrow { display: block; margin-bottom: 12px; }
.detail-info h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin-bottom: 8px; }
.detail-info .sub { color: var(--ink-soft); font-style: italic; font-family: var(--serif); font-size: 1.25rem; margin-bottom: 28px; }
.detail-story { border-top: 1px solid var(--line); padding-top: 28px; }
.detail-story h4 { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 14px; }
.detail-story p { color: var(--ink-soft); margin-bottom: 16px; font-size: 1.05rem; }
.detail-specs { display: flex; gap: 30px; margin: 30px 0; flex-wrap: wrap; }
.detail-specs div span { display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.detail-specs div b { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.back-link { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); display: inline-block; margin-bottom: 30px; }
.back-link:hover { color: var(--ink); }

/* ---------- Contact / forms ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); background: var(--white);
  font-family: var(--sans); font-size: 0.95rem; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold-deep); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d9d1c4; padding: 66px 0 34px; margin-top: 20px; }
.site-footer .cols { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.site-footer h4 { font-family: var(--serif); color: var(--white); font-size: 1.7rem; margin-bottom: 10px; }
.site-footer a { color: #d9d1c4; }
.site-footer a:hover { color: var(--white); }
.site-footer .links { display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; font-size: 0.8rem; color: #a79f92; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 30px; padding-top: 20px; }
  .hero-art { order: -1; }
  .hero-art .frame { height: 52vh; max-height: 460px; }
  .about-strip { grid-template-columns: 1fr; gap: 34px; }
  .detail { grid-template-columns: 1fr; gap: 34px; }
  .detail-media { position: static; }
  .grid, .grid.home { grid-template-columns: repeat(2, 1fr); gap: 24px 18px; }
  .contact { grid-template-columns: 1fr; gap: 34px; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0; background: var(--ivory);
    flex-direction: column; gap: 0; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height 0.3s;
  }
  .nav-links.open { max-height: 340px; }
  .nav-links a { padding: 16px 24px; width: 100%; border-top: 1px solid var(--line); }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .grid, .grid.home { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero-actions { flex-direction: column; }
  .btn { text-align: center; }
}
