:root {
  --ink: #2b2b28;
  --paper: #faf8f4;
  --muted: #6f6a62;
  --accent: #a3714f;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Jost', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--accent);
}

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

/* ---------- Site header ---------- */

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 24px 20px;
  border-bottom: 1px solid rgba(43, 43, 40, 0.08);
}

.site-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
}

.site-nav a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a[aria-current='page'] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

@media (min-width: 760px) {
  .site-header {
    flex-direction: row;
    justify-content: space-between;
    padding: 26px 40px 24px;
  }

  .site-nav {
    gap: 26px;
  }

  .site-nav a {
    font-size: 0.78rem;
  }
}

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

.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(43, 43, 40, 0.08);
  padding: 28px 24px 36px;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(43, 43, 40, 0.2);
}

.site-footer a:hover {
  color: var(--ink);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-bottom: 14px;
}

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5vh 20px 7vh;
}

.hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4rem);
  letter-spacing: 0.02em;
  margin: 0 0 0.6rem;
  color: var(--ink);
}

.hero__bio {
  font-weight: 300;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 0 0 4vh;
  line-height: 1.6;
}

/* ---------- Carousel ---------- */

.carousel {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 56px;
}

.carousel__viewport {
  position: relative;
  height: min(62vh, 520px);
  min-height: 300px;
}

.carousel__track {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel__slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(72vw, 320px);
  height: 100%;
  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.5s ease;
}

.carousel__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
  filter: drop-shadow(0 12px 28px rgba(43, 43, 40, 0.18));
  background: #fff;
  user-select: none;
  -webkit-user-drag: none;
}

.carousel__slide[data-position='active'] {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  z-index: 3;
  pointer-events: auto;
}

/* Prev/next stay hidden on small screens; only the active slide shows */
.carousel__slide[data-position='prev'],
.carousel__slide[data-position='next'],
.carousel__slide[data-position='hidden'] {
  opacity: 0;
}

.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(43, 43, 40, 0.15);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(43, 43, 40, 0.1);
}

.carousel__arrow:hover {
  background: #fff;
  box-shadow: 0 6px 18px rgba(43, 43, 40, 0.16);
}

.carousel__arrow:active {
  transform: translateY(-50%) scale(0.94);
}

.carousel__arrow svg {
  width: 20px;
  height: 20px;
}

.carousel__arrow--prev {
  left: 0;
}

.carousel__arrow--next {
  right: 0;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(43, 43, 40, 0.2);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}

.carousel__dot[aria-selected='true'] {
  background: var(--accent);
  transform: scale(1.25);
}

/* ---------- Larger screens: show 3 slides, center one largest ---------- */

@media (min-width: 800px) {
  .carousel {
    padding: 0 90px;
  }

  .carousel__viewport {
    height: min(64vh, 560px);
  }

  .carousel__slide {
    width: min(30vw, 300px);
  }

  .carousel__slide[data-position='prev'] {
    opacity: 0.55;
    transform: translate(calc(-50% - 72%), -50%) scale(0.74);
    z-index: 2;
    pointer-events: auto;
  }

  .carousel__slide[data-position='next'] {
    opacity: 0.55;
    transform: translate(calc(-50% + 72%), -50%) scale(0.74);
    z-index: 2;
    pointer-events: auto;
  }

  .carousel__slide[data-position='prev']:hover,
  .carousel__slide[data-position='next']:hover {
    opacity: 0.8;
  }

  .carousel__arrow--prev {
    left: 12px;
  }

  .carousel__arrow--next {
    right: 12px;
  }
}

@media (min-width: 1100px) {
  .carousel__slide[data-position='prev'] {
    transform: translate(calc(-50% - 78%), -50%) scale(0.72);
  }

  .carousel__slide[data-position='next'] {
    transform: translate(calc(-50% + 78%), -50%) scale(0.72);
  }
}

/* ---------- Content pages ---------- */

.content {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

.page-head {
  text-align: center;
  padding: 52px 0 40px;
}

.page-head__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  letter-spacing: 0.02em;
  margin: 0;
}

.page-head__subtitle {
  font-weight: 300;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--muted);
  margin: 0.7rem auto 0;
  max-width: 44ch;
  line-height: 1.6;
}

.prose {
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.8;
  color: #3c3a35;
}

.prose p {
  margin: 0 0 1.25em;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  font-weight: 500;
  color: var(--ink);
}

.section {
  max-width: 68ch;
  margin: 0 auto 56px;
}

.section:last-child {
  margin-bottom: 0;
}

.section__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  letter-spacing: 0.01em;
  margin: 0 0 1rem;
}

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 2px;
  padding: 14px 30px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn:hover {
  background: #474640;
}

.text-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(163, 113, 79, 0.4);
  transition: border-color 0.2s ease;
}

.text-link:hover {
  border-bottom-color: var(--accent);
}

.center {
  text-align: center;
}

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

.split {
  display: grid;
  gap: 40px;
  align-items: start;
}

.split__figure {
  margin: 0;
}

.split__figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(43, 43, 40, 0.14);
}

@media (min-width: 880px) {
  .split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 64px;
  }

  .split__figure {
    position: sticky;
    top: 32px;
  }
}

/* ---------- Commission steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  padding: 0 0 30px;
  border-bottom: 1px solid rgba(43, 43, 40, 0.08);
  margin-bottom: 30px;
}

.step:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.step__label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.step__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.45rem;
  margin: 0 0 0.6rem;
}

.cta-row {
  text-align: center;
  padding: 16px 0 64px;
}

/* ---------- Price list ---------- */

.price-card {
  max-width: 640px;
  margin: 0 auto 36px;
  background: #fff;
  border: 1px solid rgba(43, 43, 40, 0.1);
  border-radius: 6px;
  padding: 34px clamp(22px, 4vw, 40px);
  box-shadow: 0 10px 30px rgba(43, 43, 40, 0.05);
}

.price-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.5rem;
  margin: 0 0 0.35rem;
}

.price-card__note {
  font-weight: 300;
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 1.4rem;
  line-height: 1.6;
}

.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.price-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(43, 43, 40, 0.08);
  font-weight: 300;
  line-height: 1.5;
}

.price-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.price-list__amount {
  font-weight: 400;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

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

.gallery-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 36px 28px;
}

.gallery-item figure {
  margin: 0;
}

.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 10px 26px rgba(43, 43, 40, 0.13);
}

.gallery-item figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.gallery-empty {
  text-align: center;
  font-weight: 300;
  color: var(--muted);
  padding: 40px 0;
}

/* ---------- Terms ---------- */

.terms-section {
  margin-top: 46px;
}

.terms-section__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}

.terms-list {
  margin: 0.7em 0 1.25em;
  padding-left: 1.2em;
  font-weight: 300;
  line-height: 1.8;
  color: #3c3a35;
}

.terms-list li {
  margin-bottom: 0.6em;
}

.terms-list li:last-child {
  margin-bottom: 0;
}

/* ---------- Enquiry form ---------- */

.enquiry {
  max-width: 560px;
  margin-bottom: 72px;
}

.enquiry__intro {
  margin: 0 0 2rem;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(43, 43, 40, 0.2);
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.6;
}

.form-field textarea {
  resize: vertical;
  min-height: 150px;
}

.form-field input:hover,
.form-field textarea:hover {
  border-color: rgba(43, 43, 40, 0.35);
}

/* ---------- Commissions page layout ---------- */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.comm-intro {
  display: grid;
  gap: 36px;
  max-width: 980px;
  margin: 0 auto 48px;
}

.comm-intro__figure {
  margin: 0;
  max-width: 420px;
  width: 100%;
  justify-self: center;
}

.comm-intro__figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(43, 43, 40, 0.14);
}

.comm-intro .section__title {
  margin-bottom: 22px;
}

.steps--compact .step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 0 0 18px;
  margin-bottom: 18px;
}

.steps--compact .step:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
}

.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(163, 113, 79, 0.45);
  border-radius: 50%;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--accent);
}

.steps--compact .step__title {
  font-size: 1.3rem;
  margin: 2px 0 0.25rem;
}

.steps--compact p {
  margin: 0;
  line-height: 1.65;
}

.step__link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(163, 113, 79, 0.5);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.step__link::after {
  content: ' \2193';
  font-size: 0.85em;
  color: var(--accent);
}

.step__link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.comm-contact {
  max-width: 640px;
  margin: 0 auto;
  padding-top: 48px;
  border-top: 1px solid rgba(43, 43, 40, 0.08);
}

.comm-contact .enquiry {
  max-width: none;
  margin: 0;
  scroll-margin-top: 24px;
}

.comm-contact .section__title,
.comm-contact .enquiry__intro {
  text-align: center;
}

.comm-contact .enquiry__intro {
  margin: 0 0 1.8rem;
}

.comm-contact form .btn {
  display: block;
  margin: 8px auto 0;
}

@media (min-width: 880px) {
  .comm-intro {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 64px;
    align-items: center;
  }

  .comm-intro__figure {
    max-width: none;
  }

  .comm-intro {
    margin-bottom: 80px;
  }

  .comm-contact {
    padding-top: 64px;
  }

}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.comm-contact .enquiry__intro {
  max-width: 54ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Button pair (gallery) ---------- */

.cta-row--pair {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  padding-top: 56px;
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- Wider pages: About and Gallery ---------- */

.content--wide {
  max-width: 1280px;
}

@media (min-width: 880px) {
  .split--about {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 72px;
    align-items: center;
  }

  .split--about .split__figure {
    position: static;
  }

  .split--about .prose {
    max-width: 58ch;
  }
}

.gallery-grid--large {
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 640px) {
  .gallery-grid--large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 32px;
  }
}

@media (min-width: 1000px) {
  .gallery-grid--large {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px 40px;
  }
}

.gallery-grid--large .gallery-item img {
  aspect-ratio: 1007 / 1200;
}

/* Let carousel paintings sit on the page background instead of a white box */
.carousel__slide img {
  background: transparent;
  border-radius: 0;
}

/* Size slides to the paintings' own proportions so they fill the carousel */
.carousel__viewport {
  height: min(86vw, 62vh, 460px);
  min-height: 0;
}

.carousel__slide {
  width: auto;
  aspect-ratio: 1007 / 1200;
}

@media (min-width: 800px) {
  .carousel__viewport {
    height: min(60vh, 500px);
  }

  .carousel__slide {
    width: auto;
  }

  .carousel__slide[data-position='prev'] {
    transform: translate(calc(-50% - 74%), -50%) scale(0.7);
  }

  .carousel__slide[data-position='next'] {
    transform: translate(calc(-50% + 74%), -50%) scale(0.7);
  }
}

/* ---------- Price guide: compact on desktop so it fits one screen ---------- */

@media (min-width: 880px) {
  .content--prices {
    padding-bottom: 40px;
  }

  .content--prices .page-head {
    padding: 30px 0 22px;
  }

  .content--prices .page-head__subtitle {
    margin-top: 0.35rem;
  }

  .content--prices .price-card {
    padding: 20px 36px 16px;
    margin-bottom: 14px;
  }

  .content--prices .price-card__title {
    font-size: 1.35rem;
    margin-bottom: 0.1rem;
  }

  .content--prices .price-card__note {
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 0.45rem;
  }

  .content--prices .price-list li {
    padding: 7px 0;
    line-height: 1.35;
  }

  .content--prices .price-list li:last-child {
    padding-bottom: 2px;
  }

  .content--prices .cta-row {
    padding: 10px 0 0;
  }
}

/* ---------- About: small circular profile photo ---------- */

.profile-photo {
  float: left;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  margin: 4px 16px 4px 0;
  box-shadow: 0 4px 14px rgba(43, 43, 40, 0.14);
}

@media (min-width: 880px) {
  .profile-photo {
    width: 96px;
    height: 96px;
    margin: 4px 22px 4px 0;
  }
}

.prose p:has(> .profile-photo) {
  display: flow-root;
}

/* ---------- Reviews ---------- */

.reviews {
  max-width: 980px;
  margin: 0 auto 56px;
}

.reviews .section__title {
  margin-bottom: 26px;
}

.reviews__grid {
  display: grid;
  gap: 18px;
}

.review {
  margin: 0;
  padding: 26px 28px 22px;
  background: #fff;
  border: 1px solid rgba(43, 43, 40, 0.08);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(43, 43, 40, 0.05);
  display: flex;
  flex-direction: column;
}

.review__stars {
  color: var(--accent);
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.review__quote {
  margin: 0 0 16px;
  flex: 1;
}

.review__quote p {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--ink);
}

.review__by {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.reviews__more {
  text-align: center;
  margin: 22px 0 0;
  font-weight: 300;
}

@media (min-width: 720px) {
  .reviews__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

.home-cta {
  padding: 22px 0 0;
}

/* ---------- Instagram links ---------- */

.ig-icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.site-footer__social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  border-bottom: none;
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer .site-footer__social {
  border-bottom: none;
  color: var(--ink);
}

.site-footer .site-footer__social:hover {
  color: var(--accent);
}

.about-follow {
  margin-top: 1.6em;
}

.about-follow__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border: 1px solid rgba(163, 113, 79, 0.45);
  border-radius: 999px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.about-follow__link:hover {
  background: var(--accent);
  color: #fff;
}
