/* DravidianArt design preview
   Warm and rich, echoing Tanjore art: deep red and gold on a calm neutral ground,
   so the paintings stay the focus. */

:root {
  --bg: #f8f3ea;
  --surface: #fffdf8;
  --ink: #2b1b14;
  --muted: #6b5a4e;
  --red: #7b1e1e;
  --red-deep: #5a1414;
  --gold: #b68a2e;
  --gold-soft: #e8d6a8;
  --line: #e4d8c3;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-deep); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Preview banner: makes it obvious this is not the live site */
.preview-banner {
  background: var(--ink); color: var(--gold-soft);
  font-size: .85rem; text-align: center; padding: 6px 12px;
}

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo-placeholder {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  border: 2px dashed var(--gold); color: var(--gold);
  display: grid; place-items: center; font-size: .65rem; text-transform: uppercase; letter-spacing: .08em;
}
.brand-name { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--red); line-height: 1; }
.brand-sub { display: block; font-size: .8rem; color: var(--muted); letter-spacing: .04em; margin-top: 3px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 6px;
  padding: 8px 12px; font: inherit; color: var(--ink); cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; justify-content: flex-end; }
.site-nav a, .site-nav span { font-size: .95rem; text-decoration: none; color: var(--ink); padding: 4px 0; display: inline-block; }
.site-nav a[aria-current="page"] { color: var(--red); border-bottom: 2px solid var(--gold); }
.site-nav a:hover { color: var(--red); }
.site-nav .soon { color: #a89a8c; cursor: default; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px 20px 16px; gap: 0; }
  .site-nav a, .site-nav span { padding: 10px 0; width: 100%; border-bottom: 1px solid var(--line); }
}

/* Gold double rule, a nod to the borders of temple paintings */
.rule { border: 0; height: 7px; margin: 0; border-top: 2px solid var(--gold); border-bottom: 1px solid var(--gold); background: transparent; width: 100%; }
.rule.short { width: 84px; margin: 14px 0 22px; }
.center .rule.short { margin-left: auto; margin-right: auto; }

/* Hero */
.hero { background: var(--red-deep); color: #fbf3e2; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--gold-soft); }
.hero p { color: #f1e4cc; font-size: 1.15rem; }
.hero-art { border: 6px solid var(--gold); box-shadow: 0 0 0 1px var(--gold-soft), 0 20px 40px rgba(0,0,0,.35); }
.hero-art figcaption { background: var(--red-deep); color: var(--gold-soft); font-size: .85rem; padding: 6px 10px; }
@media (max-width: 800px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; padding-bottom: 40px; }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto; }
}

.eyebrow { font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; color: var(--gold); font-weight: 600; margin-bottom: .6em; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 3px; text-decoration: none;
  font-weight: 600; font-size: .95rem; letter-spacing: .02em; border: 2px solid var(--gold); cursor: pointer; font-family: var(--sans);
}
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #9c7524; color: #fff; }
.btn-line { background: transparent; color: inherit; }
.btn-line:hover { background: rgba(182,138,46,.12); color: inherit; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Sections */
.section { padding: 64px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.center { text-align: center; }
.center .section-head { margin-left: auto; margin-right: auto; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); padding: 26px 24px; }
.card h3 { color: var(--red); }
.card p:last-child { margin-bottom: 0; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.facts li { border-left: 3px solid var(--gold); padding: 4px 0 4px 14px; }
.facts strong { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--red); }

/* Placeholders: anything not yet supplied by the owner or Anu */
.ph {
  border: 2px dashed var(--gold); background: repeating-linear-gradient(-45deg, #fbf5e6, #fbf5e6 10px, #f7eed8 10px, #f7eed8 20px);
  color: var(--muted); padding: 16px 18px; font-size: .95rem;
}
.ph::before { content: "To be supplied: "; font-weight: 700; color: var(--red); }
.ph-inline {
  border-bottom: 2px dashed var(--gold); background: #fbf5e6; color: var(--muted); padding: 0 4px; font-style: italic; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.ph-image {
  aspect-ratio: 3 / 4; display: grid; place-items: center; text-align: center; padding: 16px;
  border: 2px dashed var(--gold); background: #f3ead6; color: var(--muted); font-size: .9rem;
}

/* Gallery grid */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.work { margin: 0; background: var(--surface); border: 1px solid var(--line); }
.work img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.work.wide img { aspect-ratio: 4 / 3; }
.work figcaption { padding: 14px 16px 16px; }
.work .title { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; display: block; line-height: 1.2; }
.work .meta { color: var(--muted); font-size: .9rem; display: block; margin-top: 4px; }

.group { margin-bottom: 64px; }
.group:last-child { margin-bottom: 0; }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.group-head h2 { margin: 0; }
.group-head p { margin: 0; color: var(--muted); max-width: 560px; }

.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; list-style: none; padding: 0; }
.jump a { display: inline-block; border: 1px solid var(--gold); padding: 6px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .9rem; }
.jump a:hover { background: var(--gold-soft); }

/* Available works */
.filters { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; background: var(--surface); border: 1px solid var(--line); padding: 18px 20px; margin-bottom: 32px; }
.filters label { display: flex; flex-direction: column; font-size: .85rem; color: var(--muted); gap: 4px; }
.filters select { font: inherit; color: var(--ink); padding: 8px 10px; border: 1px solid var(--line); background: #fff; border-radius: 3px; min-width: 160px; }
.filters .count { margin-left: auto; color: var(--muted); font-size: .9rem; }
.status { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 3px 8px; border-radius: 2px; }
.status.available { background: #e6f0e1; color: #2f5a22; }
.status.sold { background: #f2dede; color: var(--red-deep); }
.work .actions { margin-top: 12px; }
.work .price { font-weight: 600; display: block; margin-top: 8px; }
.sample-tag { display: inline-block; font-size: .75rem; background: var(--ink); color: var(--gold-soft); padding: 2px 8px; margin-bottom: 8px; }
.empty { text-align: center; color: var(--muted); padding: 32px; border: 1px dashed var(--line); display: none; }

.note { font-size: .95rem; color: var(--muted); border-left: 3px solid var(--gold); padding: 6px 0 6px 14px; margin: 24px 0 0; }

/* Footer */
.site-footer { background: var(--ink); color: #d9cbb5; padding: 48px 0 28px; margin-top: 0; font-size: .95rem; }
.site-footer a { color: var(--gold-soft); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.site-footer h3 { color: #fff; font-size: 1.25rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .ph-inline { background: transparent; color: var(--gold-soft); }
.footer-base { border-top: 1px solid #4a3a30; margin-top: 32px; padding-top: 18px; font-size: .85rem; color: #a8977f; }

/* Two-column text + image layout */
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.split .work img { aspect-ratio: auto; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--gold); }
.timeline li { padding: 0 0 18px 20px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--gold); }
.timeline .when { display: block; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* Forms (layout only until a form handling method is chosen) */
.form { background: var(--surface); border: 1px solid var(--line); padding: 24px; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.form .full { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; color: var(--muted); }
.form input, .form select, .form textarea {
  font: inherit; color: var(--ink); padding: 10px 12px; border: 1px solid var(--line); background: #fff; border-radius: 3px; width: 100%;
}
.form textarea { min-height: 130px; resize: vertical; }
.form fieldset[disabled] { opacity: .75; }
.form-note { margin-bottom: 18px; }
@media (max-width: 640px) { .form fieldset { grid-template-columns: 1fr; } }

/* Logo: Anu's lotus spiral */
.logo { height: 60px; width: auto; flex: none; }
@media (max-width: 480px) { .logo { height: 48px; } }

/* Map */
.map-frame { border: 1px solid var(--line); background: var(--surface); aspect-ratio: 4 / 3; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Ideas from leading artist websites ---------- */

/* Hero slideshow: rotating recent works */
.hero-slides { position: relative; display: grid; }
.hero-slides .slide { grid-area: 1 / 1; margin: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slides .slide.is-active { opacity: 1; }
.slide-dots { grid-area: 2 / 1; display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
.slide-dots button { width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--gold-soft); background: transparent; padding: 0; cursor: pointer; }
.slide-dots button[aria-current="true"] { background: var(--gold-soft); }
@media (prefers-reduced-motion: reduce) { .hero-slides .slide { transition: none; } }
@media (max-width: 800px) { .hero-slides { order: -1; max-width: 420px; margin: 0 auto; width: 100%; } }

/* Full-bleed process band */
.process-band { background: var(--ink); color: #eadfcb; }
.process-band h2 { color: #fff; }
.process-band .section-head p { color: #d9cbb5; }
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.process .work { background: #3a2a21; border-color: #4a3a30; }
.process .work .title { color: #fff; font-size: 1.15rem; }
.process .work .meta { color: #cdbca3; }
@media (max-width: 900px) {
  .process { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 70%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .process li { scroll-snap-align: start; }
}

/* Stories behind the work */
.story { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--line); }
.story:last-child { border-bottom: 0; }
.story img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid var(--line); }
.story p { max-width: 680px; margin: 0; }
@media (max-width: 640px) { .story { grid-template-columns: 1fr; } .story img { max-width: 260px; } }

/* Call to action and mailing list band */
.cta-band { background: var(--red-deep); color: #f1e4cc; padding: 56px 0; }
.cta-band .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.cta-band h2, .cta-band h3 { color: #fff; }
.cta-band .btn-line { color: #fff; }
.signup { background: rgba(0,0,0,.18); padding: 22px; border: 1px solid rgba(232,214,168,.35); }
.signup fieldset { border: 0; padding: 0; margin: 0 0 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.signup input { flex: 1 1 180px; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 3px; }
.signup fieldset[disabled] { opacity: .8; }
.signup .ph-inline { background: transparent; color: var(--gold-soft); font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 800px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* Lightbox: click any artwork to see it large */
.work img.zoomable { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(20,12,8,.94); display: none; align-items: center; justify-content: center; padding: 56px 16px 72px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.lightbox .lb-caption { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: #f1e4cc; padding: 0 60px; font-size: .95rem; margin: 0; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; width: 44px; height: 44px; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.lightbox button[hidden] { display: none; }
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* Drill-down sections (details/summary) */
.drill { margin: 20px 0 8px; border: 1px solid var(--line); background: var(--surface); }
.drill summary { cursor: pointer; padding: 14px 18px; font-weight: 600; color: var(--red); list-style: none; }
.drill summary::-webkit-details-marker { display: none; }
.drill summary::before { content: "+"; display: inline-block; width: 1.2em; color: var(--gold); font-weight: 700; }
.drill[open] summary::before { content: "−"; }
.drill-body { padding: 0 18px 18px; }
.drill .process { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-flow: row; overflow: visible; }
.drill .process .work { background: var(--surface); border-color: var(--line); }
.drill .process .work .title { color: var(--ink); }
.drill .process .work .meta { color: var(--muted); }

/* Full-screen hero: artwork as background, text on top */
.hero-cover { position: relative; min-height: min(88vh, 860px); min-height: min(88svh, 860px); display: flex; align-items: flex-end; overflow: hidden; background: var(--red-deep); color: #fff; isolation: isolate; }
.hero-cover picture, .hero-cover > picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-cover > picture img { object-fit: cover; object-position: center 35%; }
.hero-cover::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(90deg, rgba(38, 9, 7, .88) 0%, rgba(38, 9, 7, .62) 40%, rgba(38, 9, 7, .12) 72%, rgba(38, 9, 7, 0) 100%),
    linear-gradient(0deg, rgba(20, 8, 6, .55) 0%, rgba(20, 8, 6, 0) 45%);
}
.hero-cover--right::after {
  background:
    linear-gradient(270deg, rgba(38, 9, 7, .82) 0%, rgba(38, 9, 7, .55) 40%, rgba(38, 9, 7, .08) 72%, rgba(38, 9, 7, 0) 100%),
    linear-gradient(0deg, rgba(20, 8, 6, .5) 0%, rgba(20, 8, 6, 0) 45%);
}
.hero-cover__content { position: relative; z-index: 1; width: 100%; padding-top: 96px; padding-bottom: 80px; }
.hero-cover__text { max-width: 560px; }
.hero-cover--right .hero-cover__text { margin-left: auto; }
.hero-cover h1 { color: #fff; font-size: clamp(3rem, 7.5vw, 5.75rem); line-height: 1; margin-bottom: .2em; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.hero-cover .eyebrow { color: var(--gold-soft); }
.hero-cover p { color: #f3e7d1; font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.hero-cover .btn-line { color: #fff; border-color: var(--gold-soft); }
.hero-cover .btn-line:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.hero-cover__credit { position: absolute; z-index: 1; right: 16px; bottom: 12px; margin: 0; font-size: .78rem; color: rgba(255, 255, 255, .8); text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.hero-cover--right .hero-cover__credit { right: auto; left: 16px; }
.scroll-cue { position: absolute; z-index: 1; left: 50%; bottom: 14px; transform: translateX(-50%); color: var(--gold-soft); font-size: 1.4rem; text-decoration: none; animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue { animation: none; } }

@media (max-width: 700px) {
  .hero-cover { min-height: 86vh; min-height: 86svh; }
  .hero-cover > picture img { object-position: center top; }
  .hero-cover::after, .hero-cover--right::after {
    background: linear-gradient(0deg, rgba(34, 8, 6, .94) 0%, rgba(34, 8, 6, .72) 38%, rgba(34, 8, 6, .2) 68%, rgba(34, 8, 6, 0) 100%);
  }
  .hero-cover__content { padding-bottom: 76px; }
  .hero-cover__credit { font-size: .72rem; max-width: 70%; }
  .hero-cover--right .hero-cover__text { margin-left: 0; }
  .hero-cover__credit, .hero-cover--right .hero-cover__credit { left: 16px; right: auto; bottom: 10px; }
  .scroll-cue { display: none; }
}

/* Filter buttons (Available Works) */
.filter-bar { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); padding: 18px 20px; margin-bottom: 32px; }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-group .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); min-width: 64px; }
.chip { font: inherit; font-size: .9rem; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--gold); background: #fff; color: var(--ink); cursor: pointer; }
.chip:hover { background: #fbf5e6; }
.chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.filter-bar .count { color: var(--muted); font-size: .9rem; }
