@font-face {
  font-family: Raleway;
  src: url("/assets/fonts/raleway-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --navy: #265396;
  --line: #dbe3f0;
  --paper: #fff;
  --heading-size: clamp(1.5rem, 2.64vw, 2.52rem);
  --title-size: clamp(1rem, 1.5vw, 1.25rem);
  --media-ratio: 1312 / 1199;
  --layout-gap: clamp(1.5rem, 4vw, 4rem);
  --section-space: clamp(3.5rem, 6vw, 6rem);
  --font: "Champagne & Limousines", "Champagne and Limousines", Raleway, "Avenir Next", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--navy); font-family: var(--font); font-size: 1rem; font-weight: 400; line-height: 1.7; min-height: 100svh; display: flex; flex-direction: column; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
button, summary { cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { color: var(--navy); background: #e2eaf5; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 5px; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: clamp(1.375rem, 4vw, 4rem); }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header-inner { min-height: 6.25rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; gap: .65rem; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.25; letter-spacing: .025em; text-decoration: none; font-weight: 400; }
.brand-mark { display: block; width: 1.8rem; height: 2.8rem; background: currentColor; -webkit-mask: url("/assets/kami-butterfly-mark.png") center / contain no-repeat; mask: url("/assets/kami-butterfly-mark.png") center / contain no-repeat; }
.main-nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .25rem clamp(1.25rem, 3vw, 3rem); }
.nav-group { position: relative; display: flex; align-items: center; gap: .25rem; }
.nav-link { font-size: .875rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; white-space: nowrap; padding-block: .6rem; }
.nav-link:hover, .nav-link[aria-current="page"] { text-decoration: underline; text-underline-offset: .45em; }
.nav-menu summary { display: grid; place-items: center; width: 1.75rem; min-height: 2.75rem; list-style: none; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::after { content: ""; width: .4rem; height: .4rem; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-.12rem) rotate(45deg); }
.nav-menu[open] summary::after { transform: translateY(.12rem) rotate(225deg); }
.dropdown { position: absolute; top: calc(100% + .7rem); right: 0; width: max-content; min-width: 17.5rem; max-width: calc(100vw - 2.75rem); padding: .7rem 0; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 10px 24px rgba(38,83,150,.05); }
.dropdown a { display: block; padding: .8rem 1.4rem; font-size: .9375rem; line-height: 1.45; text-decoration: none; letter-spacing: .02em; }
.dropdown a:hover, .dropdown a:focus-visible, .dropdown a[aria-current="page"] { background: #f4f7fc; }
.skip-link { position: absolute; left: 1rem; top: -5rem; padding: .7rem 1rem; background: var(--paper); z-index: 50; }
.skip-link:focus { top: .7rem; }
main { flex: 1; }
.page-heading { padding-block: clamp(2.5rem, 4.5vw, 4rem) clamp(2rem, 3.5vw, 3rem); }
.home-intro { margin: -1.25rem 0 2.75rem; }
.home-collage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 0; isolation: isolate; width: min(100%, 68rem); margin: 1rem auto var(--section-space); padding: 1.5% 2%; }
.collage-photo { position: relative; display: block; width: 105%; margin-left: -2%; padding: clamp(3px, .5vw, 7px); background: var(--paper); cursor: zoom-in; transform: rotate(var(--tilt, -2deg)); box-shadow: 0 2px 9px rgba(0,0,0,.08); }
.collage-photo:nth-child(3n+2) { --tilt: 2deg; margin-top: 8%; z-index: 2; }
.collage-photo:nth-child(3n) { --tilt: -1deg; z-index: 3; }
.collage-photo:nth-child(n+4) { margin-top: -9%; }
.collage-photo:nth-child(3n+5) { margin-top: -2%; }
.collage-photo:hover, .collage-photo:focus-visible { z-index: 10; }
.collage-photo img { width: 100%; height: auto; }
.photo-lightbox { width: 100%; height: 100dvh; max-width: none; max-height: none; inset: 0; margin: 0; padding: clamp(.75rem, 2vw, 2rem); border: 0; color: var(--navy); background: var(--paper); }
.photo-lightbox::backdrop { background: rgba(255, 255, 255, .98); }
.photo-lightbox-inner { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100%; min-height: 0; gap: .75rem; }
.lightbox-toolbar { display: flex; justify-content: flex-end; }
.lightbox-close { min-width: 2.75rem; min-height: 2.75rem; border: 1px solid var(--line); background: var(--paper); }
.lightbox-close { display: inline-flex; align-items: center; gap: .6rem; padding: .25rem .85rem; font-size: .875rem; }
.lightbox-close span { font-size: 1.75rem; line-height: 1; }
.lightbox-close:hover { background: #eff3f8; }
.lightbox-stage { display: grid; place-items: center; min-height: 0; min-width: 0; }
.lightbox-stage img { width: auto; height: auto; max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; }
body.photo-viewer-open { overflow: hidden; }
.eyebrow { font-size: .875rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 500; margin: 0 0 1rem; }
h1, h2, h3 { font-family: var(--font); font-weight: 400; line-height: 1.25; letter-spacing: .015em; overflow-wrap: break-word; }
h1 { font-size: var(--heading-size); margin: 0; }
.paintings-return { display: inline-block; text-decoration: none; }
.paintings-return:hover { text-decoration: underline; text-underline-offset: .35em; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.75rem var(--layout-gap); align-items: start; padding-bottom: var(--section-space); }
.gallery-card { min-width: 0; display: block; text-decoration: none; }
.gallery-media { width: 100%; aspect-ratio: var(--media-ratio); overflow: hidden; background: var(--paper); display: grid; place-items: center; }
.gallery-media img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.media-raw { background: #f3efe5; padding: 13%; }
.media-raw img { width: 100%; height: auto; max-height: 100%; object-fit: contain; box-shadow: 0 .35rem .8rem rgba(53,43,26,.14); }
.card-title { margin: 1rem 0 0; font-size: var(--title-size); line-height: 1.5; text-align: center; letter-spacing: .015em; }
.gallery-card:hover .card-title { text-decoration: underline; text-underline-offset: .3em; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; padding-block: clamp(2.5rem, 4.5vw, 4rem) 2rem; font-size: .875rem; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; text-underline-offset: .3em; }
.detail-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--layout-gap); align-items: start; padding-bottom: var(--section-space); }
.detail-media img { object-fit: contain; }
.detail-information { min-width: 0; }
.detail-information h1 { margin: 0 0 1.5rem; }
.detail-information > p { margin: 0 0 1.75rem; }
.detail-information h2 { font-size: 1.125rem; margin: 2rem 0 1.25rem; }
.artwork-price { font-size: 1.25rem; font-variant-numeric: lining-nums tabular-nums; }
.artwork-facts { margin: 0 0 2.5rem; font-size: 1rem; }
.artwork-facts div { display: grid; grid-template-columns: 6.25rem minmax(0, 1fr); gap: .75rem; margin-bottom: .8rem; }
.artwork-facts dt { font-weight: 500; }
.artwork-facts dd { margin: 0; }
.artwork-inquiry { display: block; text-decoration: none; text-align: center; margin-top: 2rem; }
.purchase-options { margin-top: 2rem; }
.purchase-options > summary { display: block; text-align: center; cursor: pointer; list-style: none; }
.purchase-options > summary::-webkit-details-marker { display: none; }
.purchase-options[open] > summary { background: #f4f7fc; }
.purchase-panel { border: 1px solid var(--line); border-top: 0; padding: 1.25rem; }
.purchase-quantity { display: flex; justify-content: space-between; margin: 0; font-size: 1rem; }
.purchase-quantity strong { font-weight: 500; }
.purchase-action { display: block; text-align: center; text-decoration: none; margin-top: 1.25rem; }
.painting-question { display: inline-block; margin-top: 1.25rem; font-size: .9375rem; }
.sold-label { font-size: 1.125rem; }
.artwork-notices { margin-top: 2rem; font-size: .9375rem; line-height: 1.7; }
.artwork-notices p { margin: 0 0 1.25rem; }
.collection-footer { padding-bottom: var(--section-space); }
.text-link { text-decoration-thickness: 1px; text-underline-offset: .35em; }
.text-link:hover { text-decoration-thickness: 2px; }
.empty-collection { padding-bottom: var(--section-space); }
.about-content { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr); gap: var(--layout-gap); align-items: start; padding-bottom: var(--section-space); }
.artist-portrait { margin: 0; }
.artist-portrait img { width: 100%; height: auto; }
.about-copy { min-width: 0; font-size: 1rem; }
.about-copy p { margin: 0 0 1.5rem; }
.about-copy strong { font-weight: 600; }
.projects-intro { max-width: 48rem; margin: -1rem 0 3.5rem; }
.projects-list { padding-bottom: var(--section-space); }
.project-entry { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--layout-gap); align-items: start; }
.project-entry + .project-entry { margin-top: var(--section-space); padding-top: var(--section-space); border-top: 1px solid var(--line); }
.project-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; min-width: 0; }
.project-media figure { margin: 0; min-width: 0; }
.project-media a { display: block; }
.project-media img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: contain; }
.project-media figcaption { margin-top: .75rem; font-size: .875rem; line-height: 1.5; }
.project-media-single { grid-template-columns: 1fr; }
.project-media-single img { aspect-ratio: auto; }
.project-copy { min-width: 0; }
.project-copy h2 { font-size: clamp(1.5rem, 2.3vw, 2rem); margin: 0 0 1.5rem; }
.project-copy > p { margin: 0 0 1.5rem; }
.project-copy > .eyebrow { margin-bottom: 1rem; }
.project-copy > .project-location { margin-top: 2rem; }
.image-carousel { width: 100%; min-width: 0; }
.carousel-stage { position: relative; }
.carousel-slide { margin: 0; }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.96); display: grid; place-items: center; box-shadow: 0 2px 10px rgba(38,83,150,.08); }
.carousel-arrow:hover { background: #edf3fc; }
.carousel-arrow.previous { left: .5rem; }
.carousel-arrow.next { right: .5rem; }
.carousel-arrow span { width: .7rem; height: .7rem; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: translateX(-.15rem) rotate(45deg); }
.carousel-arrow.previous span { transform: translateX(.15rem) rotate(225deg); }
.carousel-thumbnails { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.carousel-thumb { width: 5.5rem; max-width: calc(33.333% - .5rem); padding: .25rem; border: 1px solid transparent; background: var(--paper); }
.carousel-thumb[aria-pressed="true"] { border-color: var(--navy); }
.carousel-thumb:hover { background: #f2f6fc; }
.carousel-thumb img { width: 100%; aspect-ratio: var(--media-ratio); object-fit: contain; }
.contact-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--layout-gap); padding-bottom: var(--section-space); }
.contact-portrait { margin: 0; }
.contact-portrait img { width: 100%; height: auto; }
.contact-intro { margin-bottom: 2.5rem; }
.contact-intro p { max-width: 28rem; margin: 0; font-size: 1rem; }
.contact-email { display: inline-block; margin-top: 1.25rem; }
.inquiry-form { max-width: 37rem; }
.inquiry-form label { display: block; font-size: .875rem; letter-spacing: .05em; margin-bottom: 1.5rem; }
.inquiry-form input, .inquiry-form textarea { display: block; width: 100%; background: var(--paper); border: 0; border-bottom: 1px solid #849bbd; padding: .8rem 0; margin-top: .25rem; font-size: 1rem; border-radius: 0; }
.inquiry-form input::placeholder, .inquiry-form textarea::placeholder { color: var(--navy); opacity: .7; }
.inquiry-form textarea { min-height: 7rem; resize: vertical; }
.button { padding: .85rem 1.35rem; background: var(--paper); color: var(--navy); border: 1px solid var(--navy); font-size: .875rem; letter-spacing: .08em; text-transform: uppercase; }
.button:hover { background: #eff3f8; }
.note { font-size: .8125rem; line-height: 1.6; max-width: 36rem; }
.status { font-size: .875rem; min-height: 1.5em; font-weight: 600; }
.site-footer { border-top: 1px solid var(--line); padding-block: 1.7rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; font-size: .8125rem; }
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; padding-block: 1.25rem; gap: .75rem 2rem; }
  .main-nav { margin-left: auto; }
  .about-content { grid-template-columns: 1fr; }
  .artist-portrait { width: 100%; }
  .about-copy { max-width: 45rem; }
  .project-entry { grid-template-columns: 1fr; }
  .project-media { max-width: 42rem; }
}
@media (max-width: 760px) {
  .detail-layout, .contact-layout { grid-template-columns: 1fr; }
  .detail-information { padding-top: .25rem; }
  .home-collage { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.5rem; }
  .collage-photo:nth-child(n) { margin-top: 0; }
  .collage-photo:nth-child(n+3) { margin-top: -7%; }
  .collage-photo:nth-child(even) { --tilt: 2deg; }

}
@media (max-width: 600px) {
  .header-inner { display: block; }
  .brand { font-size: 1.625rem; }
  .main-nav { justify-content: flex-end; flex-wrap: wrap; column-gap: .85rem; row-gap: .2rem; margin-top: 1rem; position: relative; }
  .nav-link { letter-spacing: .06em; }
  .nav-group { position: static; gap: .1rem; }
  .dropdown { right: 0; }
  .gallery-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .footer-inner { flex-direction: column; gap: .4rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
