/* ==========================================================
   Tamanna K. — art portfolio
   Palette carried over from the Wix draft (plum + rose),
   with a light "gallery wall" so artwork colors read true.
   ========================================================== */

:root {
  --plum-900: #2b1a29;   /* dark ground: header, hero, footer */
  --plum-700: #4a2a44;
  --rose-300: #e3a3bd;   /* rose on dark backgrounds */
  --rose-600: #9e3f66;   /* rose on light backgrounds (links, buttons) */
  --wall:     #f6f0f2;   /* gallery wall */
  --paper:    #ffffff;
  --ink:      #2b1a29;
  --muted:    #6e5a68;
  --line:     #e2d5db;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Source Serif 4", Georgia, serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  --radius: 4px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

a { color: var(--rose-600); text-underline-offset: 3px; }
a:hover { color: var(--plum-700); }

:focus-visible {
  outline: 3px solid var(--rose-300);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 7vw, 4.75rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; max-width: 68ch; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--paper);
  padding: 8px 12px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */

.site-header {
  background: var(--plum-900);
  color: var(--wall);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--rose-300);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--paper); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}
.site-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--wall);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--rose-300); }
.site-nav a[aria-current="page"] {
  color: var(--rose-300);
  border-bottom-color: var(--rose-300);
}

/* ---------- Dark page intro (used on every page) ---------- */

.intro {
  background: var(--plum-900);
  color: var(--wall);
  padding: clamp(40px, 8vw, 96px) 0 clamp(48px, 8vw, 88px);
}
.intro h1 { color: var(--rose-300); }
.intro p { font-size: 1.15rem; color: #e9dde3; }

/* Home hero: name + featured piece side by side */
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero-art {
  margin: 0;
  background: var(--paper);
  padding: clamp(10px, 1.6vw, 18px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transform: rotate(1.2deg);
}
.hero-art img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-art figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  padding-top: 10px;
}

.button {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  background: var(--rose-300);
  color: var(--plum-900);
  text-decoration: none;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  font-size: 1rem;
}
.button:hover { background: var(--paper); color: var(--plum-900); }
.button.on-light { background: var(--rose-600); color: var(--paper); }
.button.on-light:hover { background: var(--plum-700); color: var(--paper); }

/* ---------- Sections on the light wall ---------- */

.section { padding: clamp(48px, 8vw, 88px) 0; }
.section + .section { padding-top: 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 28px;
}
.section-head h2 { margin: 0; }

/* ---------- Gallery ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.filters button {
  font-family: var(--font-display);
  font-size: 0.95rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
  cursor: pointer;
}
.filters button:hover { border-color: var(--rose-600); }
.filters button[aria-pressed="true"] {
  background: var(--plum-900);
  border-color: var(--plum-900);
  color: var(--wall);
}

.gallery {
  columns: 3 280px;
  column-gap: 24px;
}
.art-card {
  break-inside: avoid;
  margin: 0 0 24px;
}
.art-card button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--paper);
  cursor: zoom-in;
}
.art-card img {
  width: 100%;
  height: auto;
  transition: opacity 0.2s;
}
.art-card button:hover img { opacity: 0.88; }
.art-card figcaption { padding: 10px 2px 0; }
.art-title {
  font-family: var(--font-display);
  font-weight: 600;
  display: block;
}
.art-meta { font-size: 0.92rem; color: var(--muted); }

.empty-note {
  padding: 24px;
  border: 1px dashed var(--line);
  color: var(--muted);
}

/* Lightbox */
.lightbox {
  border: 0;
  padding: 0;
  max-width: min(94vw, 1100px);
  max-height: 94vh;
  background: transparent;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(28, 16, 26, 0.92); }
.lightbox figure { margin: 0; }
.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  margin: 0 auto;
  background: var(--paper);
}
.lightbox figcaption {
  color: var(--wall);
  text-align: center;
  padding-top: 12px;
}
.lightbox figcaption .art-meta { color: #cdbcc5; }
.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: transparent;
  color: var(--wall);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  font-family: var(--font-display);
  padding: 6px 12px;
  cursor: pointer;
}

/* ---------- Crafting Connections ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  margin: 32px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.facts div { padding: 18px 20px 0 0; }
.facts dt {
  font-size: 0.95rem;
  color: #cdbcc5;
}
.facts dd {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  color: var(--rose-300);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.lesson-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.lesson-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.lesson-list strong {
  font-family: var(--font-display);
  display: block;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.photo-strip figure { margin: 0; }
.photo-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper);
}
.photo-strip figcaption {
  font-size: 0.92rem;
  color: var(--muted);
  padding-top: 6px;
}

.note {
  margin-top: 20px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- About ---------- */

.portrait {
  margin: 0;
  background: var(--paper);
  padding: 12px;
}
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- Contact ---------- */

.contact-form {
  display: grid;
  gap: 18px;
  max-width: 560px;
}
.contact-form label {
  font-family: var(--font-display);
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--rose-600);
  outline-offset: 1px;
  border-color: var(--rose-600);
}
.contact-form textarea { min-height: 160px; resize: vertical; }
.form-status { min-height: 1.5em; color: var(--rose-600); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--plum-900);
  color: #cdbcc5;
  font-size: 0.92rem;
  padding: 28px 0;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.site-footer a { color: var(--rose-300); }
.site-footer p { margin: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .hero .wrap,
  .two-col { grid-template-columns: 1fr; }
  .hero-art { transform: none; max-width: 420px; }
  .site-nav ul { gap: 4px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

.group-title { margin: 32px 0 14px; }
.group-title:first-child { margin-top: 0; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.video-grid figure { margin: 0; }
.video-grid video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--plum-900);
  display: block;
}
.video-grid figcaption { font-size: 0.92rem; color: var(--muted); padding-top: 6px; }
