* { box-sizing: border-box; }

body {
  margin: 0;
  background: #161618;
  color: #ddd9d1;
  font: 1rem/1.65 Verdana, Arial, sans-serif;
}

header, main {
  width: min(100% - 2rem, 58rem);
  margin: auto;
}

.signature { display: block; width: min(100%, 704px); margin: 0 auto; }
img { display: block; max-width: 100%; height: auto; }

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.4rem;
  justify-content: center;
  padding: .45rem 0;
  border-block: 1px solid #484644;
}

a, button { color: #f2eee5; text-underline-offset: .2em; }
nav a { padding: .45rem 0; text-decoration: none; }
a:hover, nav a[aria-current] { text-decoration: underline; }
:focus-visible { outline: 2px solid #efce8b; outline-offset: 3px; }
main { padding-block: clamp(2rem, 5vw, 4rem); }

h1, h2 { margin: 0; color: #faf7f1; font-family: Georgia, serif; font-weight: 400; }
h1 { font-size: clamp(2.25rem, 5vw, 3.8rem); line-height: 1.08; }
h2 { font-size: 1.55rem; line-height: 1.25; }
p { margin: 1rem 0; }
p, figcaption { overflow-wrap: break-word; }
.feature, .detail {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 5vw, 4rem);
  align-items: center;
}
.home-feature {
  grid-template-areas: "title photo" "copy photo";
  row-gap: 0;
}
.home-feature h1 { grid-area: title; align-self: end; }
.home-feature .slideshow { grid-area: photo; }
.home-copy { grid-area: copy; align-self: start; }
.slide-name { display: none; }
.home-menu-toggle { display: none; }

.collection-links { list-style: none; margin: 1rem 0 0; padding: 0; }
.collection-links a { display: inline-block; padding: .3rem 0; }
.slideshow { width: min(100%, 350px); justify-self: center; text-align: center; }
.slideshow object, .slides {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: var(--photo-ratio);
}
.slides { position: relative; }
.slides a { display: block; width: 100% !important; height: auto !important; }
.slides img { width: 100%; }
.slides a:not(:first-child) { display: none; }
button {
  border: 0;
  padding: .35rem 0;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.slide-control { font-size: .875rem; }
.studio-contact, .pieces, .more { border-top: 1px solid #484644; margin-top: 2.5rem; padding-top: 1.5rem; }
.studio-contact p { margin: .4rem 0; }
address { font-style: normal; }
.pieces {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 2rem 1.5rem;
}
figure { margin: 0; }
.pieces img { width: 100%; height: 12rem; object-fit: contain; background: #101012; }
figcaption { margin-top: .8rem; }
figcaption p { margin: .6rem 0 0; }
.detail { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); margin-top: 2rem; }
.detail figure img { margin: auto; }
.detail figcaption { text-align: center; font-size: .9rem; }
.detail p:first-child { margin-top: 0; }
dl { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1.2rem; }
dt { color: #bdb8ae; }
dd { margin: 0; }

@media (max-width: 42rem) {
  .feature, .detail { grid-template-columns: minmax(0, 1fr); }
  nav { gap: 0 1.1rem; }
  .pieces { grid-template-columns: 1fr; }

  .home-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0 1.25rem;
    padding-block: .5rem;
    border-bottom: 1px solid #484644;
  }
  .home-header .signature { width: min(100%, 15rem); margin: 0; }
  .home-header nav { grid-column: 1 / -1; border: 0; }
  .home-menu-toggle:not([hidden]) {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    min-height: 44px;
    padding-inline: .5rem;
    font-size: .9rem;
    text-decoration: none;
  }
  .home-menu-toggle::after {
    content: "";
    width: .45rem;
    height: .45rem;
    border: solid currentColor;
    border-width: 0 1px 1px 0;
    transform: translateY(-.12em) rotate(45deg);
  }
  .home-menu-toggle[aria-expanded="true"]::after { transform: rotate(225deg); }
  .home-menu-toggle:not([hidden])[aria-expanded="false"] + nav { display: none; }
  .home-main { padding-top: 1.25rem; }
  .home-feature {
    grid-template-areas: "title" "photo" "copy";
    gap: 1.25rem;
  }
  .home-feature h1 {
    text-align: center;
    text-wrap: balance;
    font-size: clamp(2rem, 7.6vw, 2.6rem);
  }
  .home-feature .slideshow {
    position: relative;
    width: min(100%, 350px);
    padding-bottom: 3.5rem;
    background: #202022;
    box-shadow: 0 0 0 1px #494749;
    text-align: left;
  }
  .home-feature .indexSlide { isolation: isolate; }
  .home-feature .slides { overflow: visible !important; }
  .home-feature .slide-name {
    display: flex;
    align-items: center;
    min-height: 3.5rem;
    padding: 0 .85rem;
    width: calc(100% - 6.25rem);
    font: 1.05rem/1.2 Georgia, serif;
  }
  .home-feature .slide-control {
    position: absolute;
    bottom: 0;
    right: .65rem;
    min-height: 3.5rem;
    font-size: .75rem;
  }
  .home-copy > p:first-child { margin-top: 0; }
  .home-copy .collection-links { margin-top: .5rem; }
  .home-copy .collection-links li { border-bottom: 1px solid #484644; }
  .home-copy .collection-links a { display: block; padding: .65rem 0; }
}

.home-feature > figure {
  grid-area: photo;
  justify-self: center;
  width: fit-content;
  max-width: 100%;
}
.home-feature > figure img { margin-inline: auto; }
.home-feature > figure figcaption { text-align: center; font-size: .9rem; }
.page-main .home-feature { align-items: start; }
.page-main .home-feature > figure, .page-main .slideshow { align-self: center; }
.page-main .reading { max-width: 44rem; margin-inline: auto; }
.page-main .reading h2, .art-notes h2 { margin-top: 1.5rem; }
.art-notes { max-width: 46rem; margin: 2rem auto 0; }
.art-notes > figure { margin: 1.5rem 0; }
.art-notes > img[src="SigE.GIF"] { width: min(100%, 20rem); filter: invert(1); }
.more-section { margin-top: 2.5rem; border-top: 1px solid #484644; padding-top: 1.5rem; }
.piece-facts { display: block; margin: 1.25rem 0; }
.piece-facts div { display: flex; flex-wrap: wrap; gap: .25rem 1rem; padding: .3rem 0; border-bottom: 1px solid #484644; }
.piece-facts dt { min-width: 6rem; }
.collection-list, .portion-list { display: grid; gap: 0 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.collection-list a { display: block; padding-block: .65rem; border-bottom: 1px solid #484644; }
.collection-list { list-style: none; padding: 0; }
.portion-list ul { padding: 0; list-style: none; }
.portion-list li { padding-block: .2rem; }
.page-main .pieces figcaption a { font: 1.25rem/1.35 Georgia, serif; }
.page-main .pieces:has(h2) figcaption a { font: inherit; }
.photo-study { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; margin-block: 2rem; }
.photo-study img { margin-inline: auto; }
.feature-video { grid-area: photo; width: 100%; border: 0; aspect-ratio: 640 / 518; }
.payment-marks { display: flex; gap: .75rem; align-items: center; margin-top: 1rem; }
.page-form { max-width: 38rem; }
.page-form label { display: block; margin: .85rem 0; }
.page-form fieldset { min-width: 0; border: 1px solid #484644; margin: 1rem 0; }
.page-form input, .page-form select, .page-form textarea { max-width: 100%; font: inherit; }
.page-form input[type="text"], .page-form select, .page-form textarea { display: block; width: 100%; padding: .4rem; }
.page-main blockquote { margin: 1.5rem 0; padding: 0 0 1rem; border-bottom: 1px solid #484644; }
.page-main .more { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: baseline; }
.page-main .more button { padding: 0; }
.page-main .slide-name { overflow-wrap: anywhere; }

@media (max-width: 42rem) {
  .page-main > h1, .page-main .reading > h1 {
    text-align: center;
    text-wrap: balance;
    font-size: clamp(2rem, 7.6vw, 2.6rem);
  }
  .home-feature > figure:has(figcaption) { background: #202022; box-shadow: 0 0 0 1px #494749; }
  .home-feature > figure figcaption { margin: 0; padding: .75rem; }
  .photo-study, .collection-list { grid-template-columns: minmax(0, 1fr); }
  .feature-video { margin: auto; }
}
