/* ============================================================
   Anju Artworks — gallery stylesheet
   Static site, no build step. Deploy as-is to Cloudflare Pages.
   ============================================================ */

:root {
  --bg: #faf6ef;            /* ivory */
  --bg-warm: #f2e9da;       /* sand */
  --card: #fffdf9;
  --ink: #2b241c;           /* warm charcoal */
  --muted: #71644f;
  --accent: #a9612c;        /* bronze / terracotta */
  --accent-dark: #7e471e;
  --line: #e4d7c1;
  --gold: #c9a227;
  --radius: 10px;
  --maxw: 1120px;
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 0.9rem 1.5rem;
}
.brand {
  font-family: var(--serif); font-size: 1.7rem; font-weight: 600;
  letter-spacing: 0.04em; color: var(--ink);
}
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 1.75rem; list-style: none; }
.nav-links a {
  color: var(--ink); font-size: 0.95rem; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 500;
  padding-bottom: 2px; border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent-dark); border-bottom-color: var(--accent);
}
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 6px; padding: 0.45rem 0.7rem; font-size: 1.15rem;
  cursor: pointer; color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
  padding: 5rem 0 4rem; text-align: center;
}
.hero-eyebrow {
  text-transform: uppercase; letter-spacing: 0.28em; font-size: 0.8rem;
  color: var(--accent); font-weight: 600; margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.08; margin-bottom: 1rem;
}
.hero .tagline {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem); color: var(--muted); margin-bottom: 0.6rem;
}
.hero .subline { max-width: 620px; margin: 0 auto 2rem; color: var(--muted); }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 0.85rem 1.9rem; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.06em;
  border: 1px solid var(--accent); cursor: pointer; transition: all 0.2s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--accent-dark); }
.btn-ghost:hover { background: var(--bg-warm); color: var(--accent-dark); }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-warm); }
.section-title {
  font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 600; text-align: center; margin-bottom: 0.6rem;
}
.section-lede {
  text-align: center; color: var(--muted); max-width: 680px;
  margin: 0 auto 3rem; font-size: 1.05rem;
}
.rule {
  width: 64px; height: 3px; background: var(--gold);
  margin: 0 auto 2.5rem; border-radius: 2px;
}

/* ---------- Featured / split rows ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem;
  align-items: center; margin-bottom: 4rem;
}
.split:last-child { margin-bottom: 0; }
.split.reverse > .split-text { order: 2; }
.split.reverse > .split-media { order: 1; }
.split-media img {
  border-radius: var(--radius); box-shadow: 0 18px 45px rgba(60, 42, 20, 0.14);
}
.split-media .caption {
  font-size: 0.85rem; color: var(--muted); margin-top: 0.7rem; font-style: italic;
}
.split-text h2, .split-text h3 {
  font-family: var(--serif); font-size: 2rem; font-weight: 600; margin-bottom: 1rem;
}
.split-text p { margin-bottom: 1.1rem; color: #443b2e; }

/* ---------- Gallery grid ---------- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem;
}
.art-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: zoom-in;
}
.art-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(60,42,20,0.13); }
.art-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.art-card .art-meta { padding: 1rem 1.2rem 1.25rem; }
.art-card .art-title { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.art-card .art-medium { font-size: 0.85rem; color: var(--muted); }
.badge-real {
  display: inline-block; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--bg-warm); color: var(--accent-dark); border: 1px solid var(--line);
  padding: 0.15rem 0.6rem; border-radius: 999px; margin-left: 0.5rem; vertical-align: middle;
}
.badge-sold {
  display: inline-block; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  background: #5c2e2e; color: #f7ead9;
  padding: 0.15rem 0.6rem; border-radius: 999px; margin-left: 0.5rem; vertical-align: middle;
}
.badge-prints {
  display: inline-block; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  background: transparent; color: var(--accent-dark); border: 1px solid var(--accent);
  padding: 0.15rem 0.6rem; border-radius: 999px; margin-left: 0.5rem; vertical-align: middle;
}

/* ---------- Blog ---------- */
.blog-intro { max-width: 46rem; color: var(--muted); font-size: 1.05rem; line-height: 1.7; margin: 0 0 2.5rem; }
.post-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
.post-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(60,42,20,0.13); }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-body { padding: 1.25rem 1.4rem 1.5rem; }
.post-date { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 0.5rem; }
.post-body h2 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin: 0 0 0.6rem; line-height: 1.3; }
.post-body h2 a { color: inherit; text-decoration: none; }
.post-body h2 a:hover { color: var(--accent-dark); }
.post-excerpt { color: var(--muted); line-height: 1.65; margin: 0 0 1rem; }
.read-more { font-weight: 600; color: var(--accent-dark); text-decoration: none; }
.read-more:hover { text-decoration: underline; }
.post-article { max-width: 46rem; margin: 0 auto; }
.post-article h1 { font-family: var(--serif); font-size: 2.3rem; font-weight: 600; line-height: 1.25; margin: 0.5rem 0 1.25rem; }
.post-article figure { margin: 1.75rem 0; }
.post-article figure img { width: 100%; border-radius: var(--radius); }
.post-article p { line-height: 1.8; margin: 0 0 1.15rem; }
.back-link { display: inline-block; margin-top: 2.5rem; font-weight: 600; color: var(--accent-dark); text-decoration: none; }
.back-link:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .post-list { grid-template-columns: 1fr; }
}

/* ---------- Shop ---------- */
.shop-section-title {
  font-family: var(--serif); font-size: 1.8rem; font-weight: 600;
  margin: 0 0 1.75rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line);
}
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; margin-bottom: 4rem; }
.shop-grid:last-child { margin-bottom: 0; }
.shop-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
}
.shop-card.featured { grid-column: span 3; display: grid; grid-template-columns: 1.1fr 1fr; }
.shop-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.shop-card.featured img { aspect-ratio: auto; height: 100%; min-height: 320px; }
.shop-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.shop-body h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }
.shop-medium { font-size: 0.88rem; color: var(--muted); }
.shop-desc { font-size: 0.95rem; color: #443b2e; flex: 1; }
.shop-price { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--accent-dark); }
.shop-note { font-size: 0.82rem; color: var(--muted); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--line);
  border-radius: 8px; font: inherit; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.contact-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem;
}
.contact-card h3 { font-family: var(--serif); font-size: 1.4rem; margin-bottom: 1rem; }
.contact-line { margin-bottom: 0.9rem; color: #443b2e; }
.contact-line strong { display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }

/* Mailing list */
.mailing {
  background: var(--ink); color: #f4ecdd; border-radius: var(--radius);
  padding: 3rem 2rem; text-align: center; margin-top: 4rem;
}
.mailing h2 { font-family: var(--serif); font-size: 1.9rem; margin-bottom: 0.5rem; }
.mailing p { color: #cbbfa8; margin-bottom: 1.5rem; }
.mailing form { display: flex; gap: 0.6rem; max-width: 480px; margin: 0 auto; }
.mailing input {
  flex: 1; padding: 0.8rem 1rem; border-radius: 999px; border: 1px solid #4a4136;
  background: #38301f; color: #f4ecdd; font: inherit;
}
.mailing input::placeholder { color: #9a8d74; }
.mailing .btn-primary { white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: #cbbfa8; padding: 3.5rem 0 2rem; margin-top: 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem;
}
.footer-brand { font-family: var(--serif); font-size: 1.5rem; color: #f4ecdd; margin-bottom: 0.6rem; }
.site-footer h4 {
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: #8f8268; margin-bottom: 1rem;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.55rem; font-size: 0.95rem; }
.site-footer a { color: #cbbfa8; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #4a4136; padding-top: 1.5rem; text-align: center;
  font-size: 0.85rem; color: #8f8268;
}
.social-row { display: flex; gap: 0.8rem; margin-top: 1rem; }
.social-row a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid #4a4136; border-radius: 50%;
  font-size: 0.85rem; letter-spacing: 0; font-weight: 600;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(30, 24, 16, 0.92); align-items: center; justify-content: center;
  padding: 2rem; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(90vw, 1000px); max-height: 82vh; border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.lightbox .lb-caption {
  position: absolute; bottom: 1.4rem; left: 0; right: 0; text-align: center;
  color: #f4ecdd; font-family: var(--serif); font-size: 1.2rem; font-style: italic;
}
.lightbox .lb-close {
  position: absolute; top: 1.2rem; right: 1.6rem; color: #f4ecdd;
  font-size: 2rem; background: none; border: none; cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .gallery-grid, .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-card.featured { grid-column: span 2; grid-template-columns: 1fr; }
  .split, .form-grid { grid-template-columns: 1fr; gap: 2rem; }
  .split.reverse > .split-text { order: 1; }
  .split.reverse > .split-media { order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--line); padding: 0.5rem 1.5rem 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 0.55rem 0; border-top: 1px solid var(--line); }
  .nav-links a { border: none; }
  .gallery-grid, .shop-grid { grid-template-columns: 1fr; }
  .shop-card.featured { grid-column: span 1; }
  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 3rem 0; }
  .mailing form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Share + subscribe ---------- */
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.share-row .share-label { font-size: 0.85rem; color: var(--muted); margin-right: 0.25rem; }
.share-btn { font-size: 0.82rem; font-weight: 600; padding: 0.45rem 0.95rem; border: 1px solid var(--line); border-radius: 999px; color: var(--accent-dark); background: var(--card); text-decoration: none; cursor: pointer; font-family: inherit; }
.share-btn:hover { border-color: var(--accent); }
.subscribe-box { background: var(--bg-warm); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.25rem 2rem; margin-top: 3rem; text-align: center; }
.subscribe-box h2 { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; margin: 0 0 0.5rem; }
.subscribe-box p { color: var(--muted); margin: 0 0 1.25rem; }
.subscribe-box form { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
.subscribe-box input[type="email"] { padding: 0.65rem 1rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.95rem; min-width: 240px; font-family: inherit; }

/* ---------- Shop prints dropdown ---------- */
.print-label { display: block; font-weight: 600; font-size: 0.9rem; margin: 1.1rem 0 0.4rem; }
.print-select { width: 100%; max-width: 340px; padding: 0.65rem 1rem; border: 1px solid var(--line); border-radius: 0.6rem; font-size: 1rem; font-family: inherit; color: var(--ink); background: var(--card); margin-bottom: 1.1rem; }
