/* Suman Ghosh Studio — watercolour paper, ochre and forest green */

:root {
  --paper: #f7f2e8;
  --paper-deep: #efe6d4;
  --ink: #2a2520;
  --ink-soft: #5d544a;
  --ochre: #b06a1c;
  --forest: #33483a;
  --line: #ddd2bd;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 5vw, 64px);
  --measure: 40rem;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1.1em; }

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

/* ---------- labels & buttons ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ochre);
  margin: 0 0 1.4rem;
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  transition: background 0.25s, color 0.25s;
}
.btn:hover, .btn:focus-visible { background: var(--ink); color: var(--paper); }

.btn--light { border-color: var(--paper); color: var(--paper); }
.btn--light:hover, .btn--light:focus-visible { background: var(--paper); color: var(--ink); }

/* ---------- announcement + header ---------- */

.notice {
  background: var(--forest);
  color: var(--paper);
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.7rem var(--gutter);
}
.notice a { text-decoration: none; }
.notice a:hover { text-decoration: underline; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 242, 232, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
  padding: 1.4rem var(--gutter);
}

.brand {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2rem; }
.nav a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ochre); }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 0.5rem; cursor: pointer; color: var(--ink);
}
.nav-toggle span {
  display: block; width: 24px; height: 1px; background: currentColor; margin: 6px 0;
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 900px) {
  .site-header { background: var(--paper); backdrop-filter: none; }
  .site-header__inner { padding-top: 1rem; padding-bottom: 1rem; }
  .brand { font-size: 1.25rem; letter-spacing: 0.14em; }

  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    width: 44px; height: 44px; margin-right: -10px;
  }
  .nav-toggle span { margin: 3px 0; }

  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    height: 100vh; height: 100dvh;
    overflow-y: auto;
    background: var(--paper);
    border-top: 1px solid var(--line);
    padding: 1rem var(--gutter) 6rem;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s, visibility 0s 0.25s;
  }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a {
    display: block;
    padding: 1.1rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--line);
  }
  .nav a:hover { border-bottom-color: var(--line); color: var(--ochre); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--ochre); }

  body.nav-open .nav {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity 0.25s, transform 0.25s;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- hero slider ---------- */

.hero {
  position: relative;
  width: 100%;
  height: clamp(24rem, 64vh, 42rem);
  overflow: hidden;
  background: var(--paper-deep);
}
/* soft shade so the title reads over any painting */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(20, 18, 16, 0.38), rgba(20, 18, 16, 0.12) 70%);
}
.hero__text {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 var(--gutter);
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}
/* sizes follow freyahorsley.com's hero (Squarespace h1 3.6 / h3 1.6 scale) */
.hero__text h1 {
  font-weight: 300;
  font-size: min(calc(3.12vw + 1rem), 3.8rem);
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: uppercase;
  max-width: 75rem;
  margin: 0 0 0.75em;
  color: inherit;
}
.hero__text .by {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: min(calc(0.72vw + 1rem), 1.65rem);
  line-height: 1.37;
  margin: 0;
}
@media (max-width: 767px) and (orientation: portrait) {
  .hero__text h1 { font-size: min(calc(0.0312 * min(100vh, 900px) + 1rem), 8vw); margin-bottom: 0.5em; }
  .hero__text .by { font-size: calc(0.0072 * min(100vh, 900px) + 1rem); }
}
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) {
  .hero { height: auto; aspect-ratio: 4 / 3; }
  .hero__slide img { object-position: 25% 50%; }
}

.hero__dots {
  z-index: 2;
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.6rem;
}
.hero__dots button {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid var(--paper); background: transparent; padding: 0; cursor: pointer;
}
.hero__dots button[aria-current="true"] { background: var(--paper); }

/* ---------- title block ---------- */

.masthead {
  text-align: center;
  padding: clamp(4rem, 9vw, 7rem) var(--gutter) clamp(2rem, 4vw, 3rem);
}
.masthead h1 {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  letter-spacing: 0.04em;
  margin-bottom: 0.3em;
}
.masthead .by {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: var(--ink-soft);
  margin: 0;
}

.page-title {
  text-align: center;
  padding: clamp(4rem, 9vw, 7rem) var(--gutter) clamp(2.5rem, 5vw, 4rem);
}
.page-title h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: 0.06em; text-transform: uppercase; }
.page-title .lede {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 44rem;
  margin: 1.2rem auto 0;
}

/* ---------- generic sections ---------- */

.section { padding: clamp(3.5rem, 8vw, 7rem) var(--gutter); }
.section--tint { background: var(--paper-deep); }
.section--dark { background: var(--forest); color: var(--paper); }
.section--dark .eyebrow { color: #e3b776; }

.prose { max-width: var(--measure); margin: 0 auto; }
.prose--center { text-align: center; }
.prose .big {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  line-height: 1.45;
  color: var(--ink);
}
.prose h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-top: 0.4em; }
.prose h2 + p, .prose .eyebrow + h2 { margin-top: 0; }
.prose .stand {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.35;
  margin: 2rem 0;
}

.stack > * + * { margin-top: 0; }
.divider {
  width: 48px; height: 1px; background: var(--ochre); border: 0;
  margin: clamp(3rem, 6vw, 5rem) auto;
}

/* ---------- split: image + text ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}
.split--reverse .split__media { order: 2; }
.split__media img { width: 100%; }
.split__body h2 { font-size: clamp(2rem, 4vw, 3rem); }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* ---------- category tiles ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  max-width: 1280px;
  margin: 0 auto;
}
.tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  text-decoration: none;
  color: var(--paper);
}
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s ease;
}
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30, 24, 18, 0.55), rgba(30, 24, 18, 0) 55%);
}
.tile:hover img { transform: scale(1.04); }
.tile span {
  position: absolute; left: 0; right: 0; bottom: 1.8rem; z-index: 1;
  text-align: center;
  font-size: 0.78rem; font-weight: 400;
  letter-spacing: 0.28em; text-transform: uppercase;
}

@media (max-width: 720px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 16 / 10; }
}

/* ---------- quote ---------- */

.quote {
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.7rem, 3.8vw, 2.8rem);
  line-height: 1.3;
}
.quote cite {
  display: block;
  margin-top: 1.6rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* ---------- gallery ---------- */

.gallery {
  columns: 3 320px;
  column-gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 1280px;
  margin: 0 auto;
}
.work {
  break-inside: avoid;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
}
.work a { display: block; position: relative; overflow: hidden; }
.work a::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(247, 242, 232, 0.62);
  opacity: 0; transition: opacity 0.45s ease;
}
.work__title {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; text-align: center;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1.2;
  color: var(--ink);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.work a:hover::after, .work a:focus-visible::after { opacity: 1; }
.work a:hover .work__title, .work a:focus-visible .work__title { opacity: 1; transform: none; }
.work img { width: 100%; transition: opacity 0.3s; }
.work figcaption { padding-top: 0.9rem; }
.work .title { font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; }
.work .meta {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft);
}

.gallery-empty {
  max-width: var(--measure);
  margin: 0 auto;
  text-align: center;
  padding: 3rem 1.5rem;
  border: 1px dashed var(--line);
  color: var(--ink-soft);
}

/* ---------- painting detail page ---------- */

.artwork { max-width: 1280px; margin: 0 auto; padding-top: clamp(2rem, 5vw, 4rem); }
.crumbs {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: clamp(1.5rem, 4vw, 3rem);
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ochre); }
.crumbs span { margin: 0 0.8em; opacity: 0.6; }

.artwork__grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.slider__slide > img { width: auto; max-width: 100%; max-height: 82vh; margin: 0 auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.slider__stage { position: relative; }
.slider__slide { display: none; }
.slider__slide.is-active { display: block; animation: slide-in 0.45s ease; }
@keyframes slide-in { from { opacity: 0; } to { opacity: 1; } }

.slider__thumbs { display: flex; justify-content: center; gap: 0.75rem; margin-top: 1.25rem; }
.slider__thumb {
  width: 64px; height: 64px; padding: 0; overflow: hidden; cursor: pointer;
  background: none; border: 1px solid transparent; opacity: 0.55;
  transition: opacity 0.25s, border-color 0.25s;
}
.slider__thumb:hover { opacity: 0.85; }
.slider__thumb[aria-current="true"] { opacity: 1; border-color: var(--ink); }
.slider__thumb > img { width: 100%; height: 100%; object-fit: cover; }
.slider__thumb .room { height: 100%; aspect-ratio: auto; }

/* "On the wall" view: the painting framed above the sideboard from the room photo */
.room {
  container-type: inline-size;
  position: relative; overflow: hidden;
  width: 100%; max-width: 640px; margin: 0 auto;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(118deg, rgba(255,255,255,0) 20%, rgba(255,250,240,0.18) 32%, rgba(255,255,255,0) 44%),
    linear-gradient(#c9b8a7, #d0c0b3);
}
.room__frame {
  position: absolute; left: 50%; top: 34%; transform: translate(-50%, -50%);
  width: calc(var(--w) * 1cqw);
  box-sizing: content-box;
  padding: 3.6cqw;
  background: #f3eee6;
  border: 1.3cqw solid #3a2a20;
  box-shadow: 0.8cqw 1.6cqw 3cqw rgba(40, 28, 18, 0.32);
}
.room__frame img { width: 100%; max-height: none; margin: 0; }
.room__furniture {
  position: absolute; left: 0; bottom: 0; width: 100%; max-height: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 12%);
}

.arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(247, 242, 232, 0.92);
  box-shadow: 0 2px 12px rgba(42, 37, 32, 0.15);
  color: var(--ink);
  transition: background 0.25s, color 0.25s;
}
.arrow:hover, .arrow:focus-visible { background: var(--ink); color: var(--paper); }
.arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.arrow--prev { left: 0.75rem; }
.arrow--next { right: 0.75rem; }
.artwork__info { position: sticky; top: 7rem; }
.artwork__info h1 { font-size: clamp(2rem, 4vw, 3rem); }

.specs {
  display: grid; grid-template-columns: auto 1fr; gap: 0.6rem 1.5rem;
  margin: 1.5rem 0 2.5rem; padding: 1.2rem 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.specs dt {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-soft); padding-top: 0.25rem;
}
.specs dd { margin: 0; }
.artwork__back { margin-top: 2rem; font-size: 0.9rem; }
.artwork__back a { text-decoration: none; border-bottom: 1px solid var(--line); }
.artwork__back a:hover { border-bottom-color: var(--ochre); }

.pager {
  display: flex; justify-content: space-between; gap: 2rem;
  margin-top: clamp(3rem, 7vw, 6rem); padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.pager a { text-decoration: none; font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; }
.pager a:hover { color: var(--ochre); }
.pager small {
  display: block; margin-bottom: 0.4rem;
  font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft);
}
.pager__next { text-align: right; }

@media (max-width: 820px) {
  .artwork__grid { grid-template-columns: 1fr; }
  .artwork__info { position: static; }
  .slider__slide > img { max-height: none; }
  .arrow { width: 44px; height: 44px; }
  .arrow--prev { left: 0.5rem; }
  .arrow--next { right: 0.5rem; }
  .pager a { font-size: 1.1rem; }
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(24, 20, 16, 0.94);
  display: none;
  align-items: center; justify-content: center;
  padding: 4rem var(--gutter);
}
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: 1200px; text-align: center; color: var(--paper); }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; }
.lightbox figcaption { margin-top: 1rem; font-family: var(--serif); font-size: 1.2rem; }
.lightbox figcaption small {
  display: block; font-family: var(--sans); font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.7; margin-top: 0.2rem;
}
.lightbox button {
  position: absolute; background: none; border: 0; color: var(--paper);
  font-size: 2rem; line-height: 1; cursor: pointer; padding: 0.8rem; opacity: 0.8;
}
.lightbox button:hover { opacity: 1; }
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: 0.5rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 0.5rem; top: 50%; transform: translateY(-50%); }

/* ---------- process steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 1100px;
  margin: 0 auto;
  counter-reset: step;
  list-style: none; padding: 0;
}
.steps li { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--ochre);
  margin-bottom: 0.5rem;
}
.steps h3 { font-size: 1.45rem; margin-bottom: 0.4rem; }
.steps p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 1100px;
  margin: 0 auto;
}
.contact-card { border-top: 1px solid var(--line); padding-top: 1.8rem; }
.contact-card h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }

/* ---------- instagram strip ---------- */

.insta { text-align: center; }
.insta h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.insta .handle { font-family: var(--serif); font-style: italic; font-size: 1.3rem; }
.insta-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem;
  max-width: 1280px; margin: 2.5rem auto 0;
}
.insta-strip a { display: block; aspect-ratio: 1; overflow: hidden; }
.insta-strip img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s; }
.insta-strip a:hover img { opacity: 0.85; }
@media (max-width: 600px) { .insta-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: #d9d0c1;
  text-align: center;
  padding: clamp(3.5rem, 7vw, 5rem) var(--gutter) 2rem;
}
.site-footer .brand { color: var(--paper); font-size: 1.4rem; }
.site-footer .place {
  font-size: 0.75rem; letter-spacing: 0.24em; text-transform: uppercase; margin: 0.6rem 0 2rem;
}
.site-footer nav ul {
  list-style: none; margin: 0 0 2.5rem; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.8rem;
}
.site-footer nav a {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none;
}
.site-footer nav a:hover { color: var(--paper); }
.site-footer small { font-size: 0.75rem; opacity: 0.7; }

/* ---------- reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s ease, transform 0.9s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero__slide, .tile img { transition: none; }
}
