:root {
  color-scheme: dark;
  --bg: #191815;
  --paper: #f1e7d6;
  --muted: #c6b8a7;
  --accent: #ef9d80;
  --rule: #51483e;
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font: 100%/1.55 system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--paper); }
a { color: inherit; text-underline-offset: .3em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
p, h1, h2, h3, figure { margin: 0; }
.wrap { width: min(90%, 78rem); margin-inline: auto; }
.skip { position: absolute; top: -5rem; left: 1.25rem; padding: .6rem; background: var(--bg); z-index: 2; }
.skip:focus { top: .75rem; }
.bar { min-height: 5.4rem; border-bottom: 1px solid var(--rule); display: flex; gap: 1.25rem; align-items: center; justify-content: space-between; }
.wordmark { font: bold 1.55rem/1 var(--display); text-decoration: none; white-space: nowrap; }
.wordmark span { font-style: italic; font-weight: normal; }
nav { display: flex; gap: clamp(1rem, 4vw, 3rem); }
nav a {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 650;
  text-decoration: none;
}
nav a:hover { color: var(--paper); text-decoration: underline; }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 6rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 5.5rem); }
.eyebrow { color: var(--accent); font-size: .86rem; font-weight: 650; text-transform: uppercase; letter-spacing: .13em; }
.eyebrow span { display: inline-block; width: 1.5rem; margin-right: .5rem; border-top: 1px solid currentColor; vertical-align: middle; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; }
.intro { container-type: inline-size; }
h1 {
  font-size: min(7.25rem, 17cqi);
  line-height: .95;
  letter-spacing: -.07em;
  white-space: nowrap;
  margin: .22em 0 .25em;
}
h1 em { font-weight: 400; }
.intro-copy { color: var(--muted); max-width: 26ch; font-size: clamp(1.15rem, 2vw, 1.42rem); }
.actions { display: flex; flex-wrap: wrap; gap: 1.1rem 1.4rem; align-items: center; margin-top: 1.9rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3.25rem;
  padding: .8rem 1.1rem;
  border: 1px solid transparent;
  border-radius: .65rem;
  background: var(--accent);
  color: var(--bg);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.button:hover { background: #ffc2ab; }
.button:active { background: #e89478; }
.button:focus-visible { outline-color: var(--paper); }
.text-link {
  display: inline-block;
  width: fit-content;
  padding-bottom: .18rem;
  border-bottom: 1px solid currentColor;
  color: var(--muted);
  font-size: .94rem;
  font-weight: 650;
  text-decoration: none;
}
.text-link:hover { color: var(--paper); }
.hero-art { width: 100%; max-width: 38rem; justify-self: end; }
.hero-art a { display: block; }
.hero-art img { display: block; width: 100%; height: auto; }
.specialties { border-top: 1px solid var(--rule); padding-block: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2.65rem, 6vw, 5rem); line-height: .98; letter-spacing: -.05em; }
.styles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2rem; }
article { padding: 1.25rem 1.25rem 1.45rem; border: 1px solid var(--rule); }
.motif { display: grid; place-items: center; height: 5.5rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--rule); color: var(--accent); font-size: 2.55rem; }
.fine { font-size: 2.1rem; }
.script { font-family: var(--display); font-style: italic; }
h3 { font-size: clamp(1.5rem, 2.7vw, 2rem); line-height: 1.12; margin-bottom: .55rem; }
article p, .booking p:not(.eyebrow) { color: var(--muted); }
.portfolio { background: var(--paper); color: var(--bg); }
.portfolio-content, .about, .booking { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 5rem; align-items: center; padding-block: clamp(3rem, 7vw, 6rem); }
.portfolio .eyebrow { color: #8e412c; }
.portfolio h2, .booking h2 { margin-top: .55rem; }
.portfolio p:not(.eyebrow), .booking p:not(.eyebrow) { max-width: 47ch; margin-bottom: 1.15rem; }
.portfolio .text-link { color: #763820; }
.portfolio .text-link:hover { color: var(--bg); }
.profile-link { display: block; margin-top: 1.2rem; }
.footer a { text-decoration-thickness: 1px; }
.footer a:hover { color: var(--paper); text-decoration-thickness: 2px; }
.footer { border-top: 1px solid var(--rule); padding-block: 1.3rem; display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; justify-content: space-between; color: var(--muted); font-size: .88rem; }
@media (max-width: 760px) {
  .bar { flex-wrap: wrap; padding-block: .85rem; gap: .8rem 1rem; min-height: 0; }
  nav { order: 3; width: 100%; }
  .hero, .portfolio-content, .about, .booking { grid-template-columns: 1fr; }
  .styles-grid { grid-template-columns: 1fr; }
  .motif { height: 3.25rem; place-items: start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.dm-icon {
  display: inline-block;
  width: 1.05rem;
  height: .83rem;
  flex: 0 0 auto;
  border: 1.5px solid currentColor;
  border-radius: .28rem;
  position: relative;
}
.dm-icon::after {
  content: "";
  position: absolute;
  bottom: -.22rem;
  left: .17rem;
  width: .29rem;
  height: .29rem;
  border-bottom: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  background: var(--accent);
  transform: skewY(-34deg);
}
.button:hover .dm-icon::after { background: #ffc2ab; }
.button:active .dm-icon::after { background: #e89478; }
.header-contact {
  min-height: 2.75rem;
  font-size: .86rem;
  white-space: nowrap;
  background: transparent;
  color: var(--accent);
  border-color: var(--rule);
  border-radius: .45rem;
  padding: .45rem .7rem;
}
.header-contact:hover, .header-contact:active { background: #352820; }

.styles-grid > article { min-width: 0; display: flex; flex-direction: column; }
.styles-grid article p + p { margin-top: .7rem; }
.gallery { min-width: 0; margin-top: auto; padding-top: 1.1rem; }
.gallery-track {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border-radius: .45rem;
}
.gallery-track li { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.gallery-track a { display: block; }
.gallery-track a:focus-visible { outline-offset: -4px; }
.gallery-track img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #27231e;
}
.gallery-controls:not([hidden]) {
  display: grid;
  grid-template-columns: 2.75rem 1fr 2.75rem;
  align-items: center;
  gap: .65rem;
  margin-top: .5rem;
}
.gallery-controls button {
  height: 2.75rem;
  border: 1px solid var(--rule);
  border-radius: .4rem;
  color: var(--paper);
  background: transparent;
  font: 1.65rem/1 system-ui, sans-serif;
  cursor: pointer;
}
.gallery-controls button[aria-disabled="true"] { color: var(--muted); opacity: .55; cursor: default; }
.gallery-controls button:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
.gallery-position { color: var(--muted); text-align: center; font-size: .88rem; }
@media (max-width: 760px) {
  .actions { flex-direction: column; align-items: flex-start; gap: .85rem; }
  .actions .button, .booking .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-track { scroll-behavior: auto; }
}

.about { border-bottom: 1px solid var(--rule); }
.about-heading {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.5rem);
}
.artist-photo {
  display: block;
  flex: 0 0 auto;
  width: clamp(3.75rem, 11vw, 8rem);
  height: auto;
  border-radius: 50%;
  border: 1px solid var(--rule);
}
.about h2 { margin-top: .55rem; }
.studio-location { margin-top: 1.5rem; }
.studio-location h3 { margin-top: .35rem; }
.about p:not(.eyebrow) { color: var(--muted); margin-bottom: 1rem; }
@media (max-width: 760px) {
  .hero-art { justify-self: start; }
}

.portfolio-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem clamp(.375rem, 2vw, 1.4rem);
  margin-top: 1rem;
}
.portfolio-nav a { padding-block: .4rem; text-decoration: underline; white-space: nowrap; }
#portfolio, #more-work, .styles-grid h3 { scroll-margin-block-start: 1.5rem; }
.missing-page { max-width: 48rem; padding-block: clamp(4rem, 14vh, 9rem); }
.missing-page h1 { margin: .3em 0; font-size: clamp(2.8rem, 9vw, 5.5rem); white-space: normal; }

.more-work .portfolio-content {
  grid-template-columns: minmax(0, 1fr) minmax(0, 31rem);
  align-items: center;
}
.more-work h2 { margin: 0 0 1rem; }
.more-work .gallery { width: 100%; margin: 0; padding: 1rem; border: 1px solid #574b40; border-radius: .45rem; background: var(--bg); color: var(--paper); }
.more-work .archive-caption { color: var(--paper); font-size: 1rem; margin: .7rem 0 0; }
.archive-index { padding-block: clamp(2.5rem,6vw,5rem); }
.archive-index h1 { font-size: clamp(2.5rem,7vw,5rem); white-space: normal; margin-top: .45em; }
.archive-index > p, .archive-grid figcaption { color: var(--muted); }
.archive-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,14rem),1fr)); gap: 1.75rem 1rem; padding: 0; list-style: none; margin: 2rem 0; }
.archive-grid img { display: block; width: 100%; height: auto; aspect-ratio: 3/4; object-fit: contain; background: #27231e; border-radius: .35rem; }
.archive-grid figcaption { font-size: 1rem; margin-top: .5rem; }
.page-links { display: flex; align-items: center; justify-content: center; gap: clamp(1rem,4vw,3rem); }
.page-links a { text-decoration: underline; padding-block: .75rem; }
@media (max-width:760px) {
  .more-work .portfolio-content { grid-template-columns: 1fr; }
  .more-work .gallery { max-width: 31rem; margin-inline: auto; }
  .archive-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
