/* ==========================================================================
   Blissful Strokes — Shabari Khaire
   Gallery-quality, quiet design. The artwork supplies the colour.
   ========================================================================== */

:root {
  --cream: #faf8f4;
  --cream-deep: #f2eee7;
  --ink: #1c1a17;
  --ink-soft: #4a463f;
  --ink-faint: #8a847a;
  --rule: #e2dcd2;
  --accent: #8a7358;

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --section-y: clamp(4.5rem, 10vw, 9rem);
  --maxw: 1360px;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
}

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

/* --- Typography ---------------------------------------------------------- */

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin: 0;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1.25rem;
}

.lede { font-size: 1.0625rem; color: var(--ink-soft); max-width: 60ch; }

/* --- Layout -------------------------------------------------------------- */

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--rule { border-top: 1px solid var(--rule); }
.section--deep { background: var(--cream-deep); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }

.site-header__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 1.15rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand { text-decoration: none; display: block; }
.brand__name {
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  line-height: 1;
}
.brand__sub {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.4rem;
}

.nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.5rem); }
.nav a {
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 0 0 auto;
    top: var(--header-h, 72px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--rule);
    padding: 0.5rem var(--gutter) 1.75rem;
    transform: translateY(-120%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { width: 100%; padding-block: 0.9rem; font-size: 0.95rem; letter-spacing: 0.1em; }
}

/* --- Hero ---------------------------------------------------------------- */

.hero { padding-top: clamp(3rem, 7vw, 6rem); }

.hero__text { text-align: center; max-width: 54rem; margin: 0 auto clamp(2.75rem, 6vw, 4.5rem); }
.hero__title {
  font-size: clamp(3rem, 9vw, 6.5rem);
  letter-spacing: 0.015em;
  margin-bottom: 1.15rem;
}
.hero__name {
  font-size: 0.8rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1.75rem;
}
.hero__tagline {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.1vw, 1.5rem);
  font-style: italic;
  color: var(--ink-soft);
  max-width: 44ch;
  margin-inline: auto;
}

.hero__figure { margin: 0; }
.hero__media {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--cream-deep);
}
@media (max-width: 700px) { .hero__media { aspect-ratio: 4 / 3; } }

.hero__caption,
figcaption.caption {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 1rem;
  text-align: center;
}

/* --- Series jump nav (paintings page) ------------------------------------ */

.series-nav {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: var(--header-h, 72px);
  z-index: 20;
  background: color-mix(in srgb, var(--cream) 94%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
}
.series-nav .wrap {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2.25rem);
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 0.9rem;
}
.series-nav .wrap::-webkit-scrollbar { display: none; }
.series-nav a {
  flex: none;
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
  transition: color 0.2s ease;
}
.series-nav a:hover { color: var(--ink); }

/* Section anchors must clear both sticky bars. */
.section[id] { scroll-margin-top: calc(var(--header-h, 72px) + 3.5rem); }

/* --- Galleries ----------------------------------------------------------- */

.grid { display: grid; gap: clamp(1.5rem, 3.4vw, 3.25rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
}

.piece { margin: 0; }
.piece__link {
  display: block;
  text-decoration: none;
  overflow: hidden;
  background: var(--cream-deep);
  cursor: zoom-in;
}
/* No forced aspect-ratio and no object-fit: each painting keeps its own
   proportions, so nothing is ever cropped. The width/height attributes on the
   <img> reserve the right space before it loads, so the layout doesn't jump.
   Rows end up uneven by design — the work decides its shape, not the grid. */
.piece__img {
  width: 100%;
  height: auto;
  transition: transform 0.7s cubic-bezier(0.2, 0, 0.2, 1), opacity 0.4s ease;
}
.piece__link:hover .piece__img { transform: scale(1.035); }

.piece__meta { margin-top: 0.9rem; }
.piece__title { font-family: var(--serif); font-size: 1.2rem; }
.piece__detail {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin: 0.25rem 0 0;
}

/* Availability marker, e.g. Sold. Quiet by design — it is a fact about the
   work, not a sales badge. */
.piece__status {
  display: inline-block;
  margin: 0.55rem 0 0;
  padding: 0.18rem 0.5rem;
  border: 1px solid var(--rule);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* --- Story --------------------------------------------------------------- */

.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; } }

/* Landscape slot, matching the portrait photo's own ratio so the artwork beside
   her stays in frame. Also used for the side image on the contact page. */
.story__portrait {
  width: 100%;
  height: auto;
  aspect-ratio: 491 / 424;
  object-fit: cover;
  object-position: center center;
  background: var(--cream-deep);
}
.story__body p { max-width: 58ch; color: var(--ink-soft); }
.story__body p:first-of-type {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.3vw, 1.6rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
}

/* --- Buttons ------------------------------------------------------------- */

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.25rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--cream); }
.btn--solid { background: var(--ink); color: var(--cream); }
.btn--solid:hover { background: transparent; color: var(--ink); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 0.76rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.3rem;
  transition: border-color 0.25s ease, gap 0.25s ease;
}
.link-arrow:hover { border-bottom-color: var(--ink); gap: 0.85rem; }

/* --- Galleries CTA / professional panel ---------------------------------- */

.panel { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
@media (max-width: 900px) { .panel { grid-template-columns: 1fr; } }
.panel__media { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; background: var(--cream); }

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

.form { display: grid; gap: 1.5rem; max-width: 36rem; }
.field { display: grid; gap: 0.55rem; }
.field label {
  font-size: 0.7rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.field input, .field textarea, .field select {
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 0.65rem 0;
  border-radius: 0;
  transition: border-color 0.2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.field textarea { resize: vertical; min-height: 8rem; }

.form-note { font-size: 0.82rem; color: var(--ink-faint); }

.form-status {
  font-size: 0.9rem;
  margin: 0.5rem 0 0;
  padding: 0.85rem 1rem;
  border-left: 2px solid var(--accent);
  background: var(--cream-deep);
}
.form-status--ok { border-left-color: #4f6f52; }
.form-status--err { border-left-color: #9c4a3c; }

.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  max-width: 48ch;
}
.plain-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 5px;
  height: 1px;
  background: var(--accent);
}

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

.site-footer { border-top: 1px solid var(--rule); padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem; }
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.site-footer h3 {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
/* Footer links carry a quiet underline so they read as links, not as labels. */
.site-footer a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  text-decoration-color: var(--ink-faint);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.site-footer a:hover { color: var(--ink); text-decoration-color: currentColor; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--ink-faint);
  border-top: 1px solid var(--rule);
  padding-top: 2rem;
}

/* --- Lightbox ------------------------------------------------------------ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  background: rgba(20, 18, 16, 0.94);
  padding: clamp(1rem, 4vw, 3.5rem);
}
.lightbox[open], .lightbox.is-open { display: grid; }
.lightbox__img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  margin-inline: auto;
}
.lightbox__cap {
  color: #d9d4cb;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin-top: 1.1rem;
}
.lightbox__btn {
  position: absolute;
  background: none;
  border: 0;
  color: #e8e3da;
  font-size: 2rem;
  line-height: 1;
  padding: 0.75rem 1rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.lightbox__btn:hover { opacity: 1; }
.lightbox__btn--close { top: 0.5rem; right: 0.75rem; font-size: 1.6rem; }
.lightbox__btn--prev { left: 0.25rem; top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: 0.25rem; top: 50%; transform: translateY(-50%); }

/* --- Motion -------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0, 0.2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* --- Utilities ----------------------------------------------------------- */

.center { text-align: center; }
.mt-lg { margin-top: clamp(2.5rem, 5vw, 4rem); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 0.5rem; top: -3rem; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 0.6rem 1rem;
  font-size: 0.8rem; text-decoration: none; transition: top 0.2s ease;
}
.skip-link:focus { top: 0.5rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Placeholder styling for image slots not yet filled */
.is-missing {
  background:
    repeating-linear-gradient(45deg, #ece6dc 0 12px, #f4efe6 12px 24px);
  position: relative;
}
.is-missing::after {
  content: attr(data-slot);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
  padding: 1rem;
}
