:root {
  --bg: #f3ede2;
  --surface: #eeece8;
  --surface-strong: #e5e3df;
  --border: rgba(28, 25, 23, 0.1);
  --text: #210f03;
  --muted: #908781;
}

[x-cloak] {
  display: none !important;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
p {
  margin: 0;
  color: rgba(28, 25, 23, 0.78);
}
ul,
ol {
  margin: 0;
  padding-left: 1.25rem;
  color: rgba(28, 25, 23, 0.78);
}
li {
  margin-bottom: 0.35rem;
}

.container,
.wide {
  width: min(calc(100% - 3rem), 80rem);
  margin: 0 auto;
}
.wide {
  max-width: 92rem;
}

.section {
  padding: 8rem 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-weight: 600;
}

h1,
h2,
h3,
.wordmark {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--text);
  margin: 0;
}

h1 {
  font-size: clamp(3.7rem, 8vw, 7rem);
  line-height: 1.02;
}
h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.05;
}
h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.15;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(243, 237, 226, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    opacity 800ms ease,
    transform 800ms cubic-bezier(0.23, 1, 0.32, 1);
  view-transition-name: Navigation;
}

.page-blur {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(243, 237, 226, 0.05);
  backdrop-filter: blur(2rem);
  -webkit-backdrop-filter: blur(2rem);
  opacity: 0;
  pointer-events: none;
}
.page-blur.is-active {
  opacity: 1;
}

.site-header.home {
  opacity: 0;
  transform: translateY(-5rem);
}

.header-inner,
.footer-inner {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  height: 1.5rem;
  width: auto;
  display: block;
  view-transition-name: wordmark;
}

.wordmark-link {
  position: relative;
  display: inline-flex;
}

.tooltip {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--text);
  color: var(--bg);
  padding: 0.35rem 0.75rem;
  border-radius: 0.35rem;
  font-size: 0.8rem;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 200ms ease,
    transform 200ms ease;
}

.wordmark-link:hover .tooltip,
.wordmark-link:focus .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.desktop-nav {
  display: flex;
  align-items: center;
}
.desktop-nav a,
.mobile-nav a {
  color: var(--text);
  padding: 0.35rem 0;
  margin-left: 1.5rem;
  font-size: 0.9rem;
  position: relative;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text);
}
.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--text);
}
.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
}
.mobile-panel {
  display: none;
}
.hidden {
  display: none !important;
}

.button,
.button-secondary,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0;
  transition: 200ms ease;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  font-weight: 600;
}

.button {
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
  padding: 0.85rem 1.5rem;
  border-radius: 0.5rem;
}
.button:hover {
  background: #5c3a1e;
  border-color: #5c3a1e;
  box-shadow: 0 16px 40px rgba(28, 25, 23, 0.18);
}

.button-secondary {
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--text);
  background: rgba(243, 237, 226, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: inherit;
  border-radius: 0.5rem;
}
.button-secondary:hover {
  border-color: var(--text);
  box-shadow: 0 16px 40px rgba(28, 25, 23, 0.12);
}

.text-link {
  color: var(--text);
  font-weight: 500;
  position: relative;
}
.text-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0.3;
  transition: opacity 200ms ease;
}
.text-link:hover::after {
  opacity: 1;
}

.grid {
  display: grid;
  gap: 3rem;
}

.art-grid {
  display: block;
  position: relative;
}

.art-card {
  display: block;
  position: absolute;
  transition: box-shadow 600ms cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
  border-radius: 0.5rem;
}

.art-card:hover {
  box-shadow: 0 28px 60px rgba(28, 25, 23, 0.5);
}
.art-card-image-wrap {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-radius: 0.5rem;
  transition:
    box-shadow 600ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 600ms cubic-bezier(0.23, 1, 0.32, 1);
}

.art-card:hover .art-card-image-wrap {
  transform: scale(1.06);
}
.art-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.art-grid:not(.print-grid) .art-card-image {
  height: auto;
}
.art-card-body {
  display: grid;
  gap: 0.25rem;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 2rem 1.5rem;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(243, 237, 226, 0.88) 35%,
    rgba(243, 237, 226, 0.98) 100%
  );
  opacity: 0;
  transition: opacity 300ms ease;
  z-index: 2;
}
.art-card-image-wrap:hover .art-card-body {
  opacity: 1;
}

@media (hover: none) {
  .art-card-body {
    opacity: 1;
  }
}
.art-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.print-meta span::after {
  content: none;
}
.art-card-tag {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.meta span:not(:last-child)::after {
  margin-left: 0.75rem;
  color: rgba(28, 25, 23, 0.25);
}

.richtext {
  display: grid;
  gap: 1.25rem;
}
.richtext a {
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.15em;
  transition: all 200ms ease;
}
.richtext a:hover {
  border-color: var(--muted);
  color: var(--muted);
}
.richtext table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.richtext th,
.richtext td {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
}
.richtext th {
  color: var(--text);
  background: color-mix(in srgb, var(--muted) 30%, transparent);
  font-weight: 500;
}
.richtext tr:nth-child(even) td {
  background: rgba(28, 25, 23, 0.02);
}

.hero {
  width: 100%;
}
.hero-wrap {
  position: relative;
  height: 100vh;
  min-height: 32rem;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
  border-radius: 0.5rem;
}
.hero-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(243, 237, 226, 0.3) 0%,
    rgba(243, 237, 226, 0.65) 30%,
    rgba(243, 237, 226, 0.92) 55%,
    var(--bg) 100%
  );
  pointer-events: none;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 3rem 0 4.5rem;
  opacity: 0;
  transform: translateY(9rem);
  transition:
    opacity 800ms ease,
    transform 800ms cubic-bezier(0.23, 1, 0.32, 1);
}
.hero-text.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
.hero-text h1 {
  max-width: 14ch;
  margin-top: 0.5rem;
}
.hero-logo {
  height: 1em;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.1em;
}
.hero-text p {
  margin-top: 1.25rem;
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3.5rem;
}
.section-intro,
.supporting-copy {
  max-width: 40rem;
  margin-top: 1rem;
}

.split-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split-copy {
  display: grid;
  align-content: center;
  gap: 1.25rem;
  padding: 0;
}
.split-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 40rem;
  border-radius: 0.5rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  gap: 4rem;
  align-items: start;
}
.gallery-col,
.info-col,
.thumb-grid,
.detail-list,
.about-copy,
.about-images {
  display: grid;
  gap: 1.25rem;
}
.thumb-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.thumb-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.lead-image,
.portrait {
  width: 100%;
  background: var(--surface);
  border-radius: 0.5rem;
}
.thumb {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  background: var(--surface);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.selector,
.detail-list,
.inquiry {
  padding: 1.5rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0;
}
.inquiry p {
  margin: 0 0 0.75rem;
}
.inquiry p:last-of-type {
  margin-bottom: 0;
}
.inquiry .muted-text a {
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.15em;
  transition: all 200ms ease;
}
.inquiry .muted-text a:hover {
  border-color: var(--muted);
  color: var(--muted);
}
.size-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.size-buttons button {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  padding: 0.65rem 1.1rem;
  border-radius: 0.5rem;
  font: inherit;
  cursor: pointer;
  transition: 150ms ease;
  font-size: 0.85rem;
}
.size-buttons button.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}
.price-stack {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}
.price-stack > .price-block {
  grid-area: 1 / 1;
}
.price-hidden {
  opacity: 0;
}
.price-shown {
  opacity: 1;
}
.price-in {
  transition: opacity 0.25s ease 0.25s;
}
.price-out {
  transition: opacity 0.25s ease;
}
.price {
  color: var(--text);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1;
}

.print-grid .art-card-image-wrap {
  aspect-ratio: 1 / 1.414;
}

.print-detail .lead-image {
  aspect-ratio: 1 / 1.414;
}

.about-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 1fr);
  gap: 4rem;
  align-items: start;
}
.contact-layout {
  align-items: center;
}
.contact-copy {
  display: grid;
  align-content: center;
  gap: 1.25rem;
  padding: 0;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.contact-tabs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.contact-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: none;
  color: var(--text);
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 200ms ease;
  text-decoration: none;
}
.contact-tab:hover,
.contact-tab.active {
  opacity: 1;
}
.contact-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--muted);
}
.contact-form textarea {
  resize: vertical;
  min-height: 6rem;
}

.gallery-col { cursor: zoom-in; }
.inquiry-label { color: var(--text); font-weight: 600; }
.inquiry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.print-sizes {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.875rem;
}
.price-block {
  opacity: 0;
  grid-area: 1 / 1;
  transition: opacity 0.25s ease;
}
.price-block.price-shown { opacity: 1; }
.contact-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 40rem;
  border-radius: 0.5rem;
}
.standfirst {
  color: var(--text);
  font-size: 1.1rem;
  max-width: 44ch;
  line-height: 1.6;
}
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.site-footer {
  padding: 2rem 0 3rem;
  margin-top: 6rem;
}
.footer-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.footer-nav a {
  color: var(--text);
  padding: 0.35rem 0;
  font-size: 1rem;
  transition: 150ms ease;
  position: relative;
}
.footer-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width 250ms ease;
}
.footer-nav a:hover {
  color: var(--text);
}
.footer-nav a:hover::after {
  width: 100%;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.footer-contact a {
  color: var(--muted);
  transition: color 150ms ease;
}
.footer-contact a:hover {
  color: var(--text);
}
.footer-contact svg {
  width: 1.25rem;
  height: 1.25rem;
}

.page-intro {
  display: grid;
  gap: 1rem;
  max-width: 70rem;
  margin: 0.75rem 0 3.5rem;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.inquiry-label {
  color: var(--text);
  font-weight: 600;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(33, 15, 3, 0.75);
  backdrop-filter: blur(2rem);
  -webkit-backdrop-filter: blur(2rem);
  cursor: zoom-out;
}
.lightbox img {
  height: 90vh;
  width: auto;
  max-width: 90vw;
  object-fit: contain;
  border-radius: 0.5rem;
}
.lightbox-hidden {
  opacity: 0;
  pointer-events: none;
}
.lightbox-shown {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-enter {
  transition: opacity 0.5s ease;
}
.lightbox-leave {
  transition: opacity 0.5s ease;
}

.notify-dialog {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.notify-dialog .dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(33, 15, 3, 0.6);
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
}
.notify-dialog .dialog-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  max-width: 28rem;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}
.notify-dialog .dialog-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}
.notify-dialog .dialog-card > p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.notify-form input[type="email"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 1rem;
}
.notify-form input[type="email"]::placeholder {
  color: var(--muted);
}
.notify-form input[type="email"]:focus {
  outline: none;
  border-color: var(--muted);
}
.dialog-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.notify-success {
  text-align: center;
  color: var(--text);
  padding: 1rem 0;
}
.dialog-hidden {
  opacity: 0;
  pointer-events: none;
}
.dialog-shown {
  opacity: 1;
  pointer-events: auto;
}
.dialog-enter {
  transition: opacity 0.3s ease;
}
.dialog-leave {
  transition: opacity 0.3s ease;
}

@media (max-width: 1024px) {
  /* MiniMasonry handles responsive columns automatically via baseWidth */
}

@media (max-width: 900px) {
  .detail-layout,
  .about-layout,
  .contact-layout,
  .split-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .contact-image {
    min-height: 20rem;
    order: -1;
  }
  .split-image {
    min-height: 20rem;
    order: -1;
  }
}

::view-transition-group(root),
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 1s;
}

@media (max-width: 720px) {
  .section {
    padding: 4rem 0;
  }
  .desktop-nav {
    display: none;
  }
  .mobile-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: none;
    background: transparent;
    color: var(--text);
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    padding: 0;
  }
  .hamburger-line {
    display: block;
    width: 1.5rem;
    height: 2px;
    background: currentColor;
    transition: transform 0.3s ease;
  }
  .mobile-toggle.is-open .hamburger-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
  }
  .mobile-toggle.is-open .hamburger-line:nth-child(2) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .mobile-panel {
    position: fixed;
    inset: 4.5rem 0 0;
    z-index: 40;
    background: var(--bg);
    display: grid;
    gap: 0.5rem;
    padding: 2rem 1.5rem;
    margin-top: 0;
    width: 100%;
    max-width: none;
    align-content: start;
    overflow-y: auto;
    height: calc(100vh - 4.5rem);
    background: rgba(243, 237, 226, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition:
      opacity 800ms ease,
      transform 800ms cubic-bezier(0.23, 1, 0.32, 1);
  }
  .mobile-nav {
    display: grid;
    gap: 0.35rem;
  }
  .mobile-nav a {
    margin-left: 0;
    padding: 0.5rem 0;
    font-size: 1.5rem;
  }
  .hero-wrap {
    height: 100svh;
    min-height: 24rem;
  }
  .hero-text {
    padding: 2.5rem 0 3.5rem;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .button,
  .hero-actions .button-secondary {
    width: 100%;
    justify-content: center;
  }
  .button,
  .button-secondary {
    font-size: 1.1rem;
  }
  .split-card,
  .support-grid,
  .thumb-grid,
  .thumb-grid.two {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .gallery-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .gallery-col .thumb-grid,
  .gallery-col .thumb-grid.two {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
  .gallery-col .thumb {
    flex: 0 0 5rem;
    width: 5rem;
    height: 5rem;
    aspect-ratio: 1;
  }
  .section-head,
  .footer-inner {
    align-items: start;
    flex-direction: column;
    gap: 0.75rem;
  }
  .footer-nav {
    justify-content: space-between;
    width: 100%;
  }
  .footer-nav a {
    font-size: 1.25rem;
  }
  .footer-contact {
    justify-content: center;
    width: 100%;
  }
  .footer-contact svg {
    width: 1.5rem;
    height: 1.5rem;
  }
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }
  .section-head {
    margin-bottom: 2rem;
  }
}
