@font-face {
  font-family: "Playfair Display";
  src: url("assets/playfair.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("assets/playfair-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f9f2e8;
  --ink: #202b37;
  --forest: #273b51;
  --forest-dark: #181f2b;
  --muted: #514d49;
  --rule: #d7d3c6;
  --clay: #9d4e34;
  --peach: #e6a98f;
  --heading: "Playfair Display", Georgia, serif;
  --body: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
html:has(body.admin-body) { scrollbar-width: none; }
html:has(body.admin-body)::-webkit-scrollbar { display: none; }
html:has(body.landing) { scrollbar-width: none; scroll-padding-top: var(--site-header-height, 78px); }
html:has(body.landing)::-webkit-scrollbar { display: none; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--body); }
body.landing::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(#f9f2eb80, #f9f2eb80),
    linear-gradient(rgb(31 28 39 / var(--background-darkness, .32)), rgb(31 28 39 / var(--background-darkness, .32))),
    var(--site-image, url("assets/winter-background.webp")) 48% center / cover no-repeat,
    #9e786b;
}
@media (pointer: coarse) {
  body.landing::before {
    /* Keep the background crop stable as mobile browser controls move. */
    bottom: auto;
    height: 100vh;
    height: 100lvh;
  }
}
body.landing { isolation: isolate; }
body:has(dialog[open]) { overflow: hidden; padding-inline-end: var(--dialog-scrollbar, 0px); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--heading); font-weight: 500; }
img { display: block; width: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
section[id] { scroll-margin-top: 12px; }
#home { scroll-margin-top: 0; }

:focus-visible { outline: 2px solid var(--clay); outline-offset: 4px; }

.shell {
  width: min(100% - clamp(36px, 9vw, 144px), 1320px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  inset: 10px auto auto 10px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--paper);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
.section-nav {
  position: fixed;
  z-index: 4;
  inset: 50% max(8px, env(safe-area-inset-right)) auto auto;
  transform: translateY(-50%);
  display: grid;
  gap: 2px;
}
.section-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--paper);
}
.section-dot {
  width: 8px;
  height: 8px;
  border: 1px solid #fff8;
  border-radius: 50%;
  background: #232c3ab3;
  box-shadow: 0 1px 4px #13182180;
  transition: transform .28s ease, background-color .28s ease;
}
.section-link[aria-current="location"] .section-dot {
  transform: scale(1.55);
  background: #f9f2eb;
  border-color: #273b51;
}
.section-label {
  position: absolute;
  inset: 50% 100% auto auto;
  padding: 4px 10px;
  color: var(--paper);
  background: #181f2bed;
  border-radius: 20px;
  font-size: .78rem;
  white-space: nowrap;
  opacity: 0;
  transform: translate(8px,-50%);
  pointer-events: none;
  transition: opacity .26s ease, transform .26s ease;
}
.section-link:is(.is-announcing, :focus-visible) .section-label {
  opacity: 1;
  transform: translate(0,-50%);
}
@media (hover: hover) {
  .section-link:not(.is-clicked):hover .section-label { opacity: 1; transform: translate(0,-50%); }
}
.section-nav.is-navigating .section-label { opacity: 0; transition-duration: 0s; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #181f2be6;
  color: var(--paper);
  backdrop-filter: blur(12px);
}
.site-header-inner, .site-footer-inner { display: flex; align-items: center; justify-content: space-between; }
.site-header-inner { min-height: 78px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; font: 600 28px/1 var(--heading); letter-spacing: -.055em; }
.signature { width: clamp(128px, 24vw, 210px); height: auto; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 36px; font-size: .87rem; font-weight: 600; }
.site-nav a:hover, .footer-top:hover { color: var(--peach); }
.nav-contact { border: 1px solid #c8c7ba; padding: 9px 15px; }
.nav-contact .arrow, .text-link .arrow, .footer-top .arrow { margin-left: 5px; }
.menu-toggle { display: none; padding: 6px 12px; border: 1px solid var(--rule); background: transparent; }

.hero {
  --hero-description-lines: 2;
  background: #181f2bd9;
  color: var(--paper);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr);
  align-items: stretch;
  gap: clamp(24px, 3.5vw, 60px);
  padding-block: clamp(42px, 4.25vw, 70px) clamp(34px, 3.2vw, 57px);
}
.hero-copy { align-self: center; container-type: inline-size; }
.eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.hero-eyebrow { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; color: var(--peach); }
.hero-eyebrow::before { content: ""; height: 1px; width: 25px; background: currentColor; }
.hero h1 { font-size: min(clamp(3rem, 6.25vw, 6.4rem), 18.1cqi); letter-spacing: -.062em; line-height: 1.01; }
.hero h1 :is(em, .hero-accent) { color: var(--peach); font-weight: inherit; }
.hero-description { margin-top: 26px; max-width: 390px; color: #d3d5cb; font-size: clamp(.96rem, 1.35vw, 1.13rem); line-height: 1.65; text-wrap: pretty; }
/* Reserve the final lines of the static intro while its fonts load. */
.hero-fonts-pending .hero :is(.hero-copy, figcaption) { visibility: hidden; }
.hero-fonts-pending .hero h1 { block-size: 2lh; }
.hero-fonts-pending .hero-description { block-size: calc(var(--hero-description-lines) * 1lh); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: .87rem;
  line-height: 1.4;
  transition: color .18s, background-color .18s, border-color .18s;
}
.button span { font-size: 1.1rem; }
.button-light { margin-top: 28px; background: var(--paper); color: var(--ink); }
.button-light:hover { background: #f0c6b5; }
.button-dark { background: var(--forest); color: var(--paper); }
.button-dark:hover { background: #3b5672; }
.hero-figure {
  position: relative;
  isolation: isolate;
  align-self: center;
  width: 100%;
  min-inline-size: 0;
  min-block-size: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #242d39;
}
.hero-figure::after {
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(transparent, #10151ccc);
  pointer-events: none;
  content: "";
}
.hero-slides, .hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slides { display: block; border: 0; padding: 0; background: transparent; cursor: default; touch-action: pan-y pinch-zoom; user-select: none; }
.hero-slides:disabled { opacity: 1; }
.hero-slides:focus-visible { outline-color: white; outline-offset: -5px; }
.hero-slide { pointer-events: none; opacity: 0; transition: opacity .8s cubic-bezier(.32, 0, .25, 1); }
.hero-slide.is-active { opacity: 1; }
.hero-figure figcaption {
  position: absolute;
  z-index: 1;
  inset: auto auto 14px 16px;
  max-width: calc(50% - 80px);
  pointer-events: none;
  color: var(--paper);
  font: italic 500 .93rem var(--heading);
}
.slide-dots {
  position: absolute;
  z-index: 1;
  inset: auto auto 7px 50%;
  transform: translateX(-50%);
  display: flex;
}
.slide-dot {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: white;
}
.slide-dot-indicator {
  width: 12px;
  height: 12px;
  border: 1px solid #ffffff40;
  border-radius: 50%;
  background: #ffffff0d;
  transition: background-color .25s, transform .25s;
}
.slide-dot:is(:hover, :focus-visible) .slide-dot-indicator { transform: scale(1.2); border-color: #fffc; background: #fff6; }
.slide-dot[aria-current="true"] .slide-dot-indicator { background: #ffffff4d; }
.slide-dot:focus-visible { outline-color: #fff; outline-offset: -4px; }

.panel {
  margin-block: clamp(20px, 4vw, 65px);
  padding-inline: clamp(22px, 4.5vw, 74px);
  border: 1px solid #69574894;
  background: #f9f2e8ee;
  box-shadow: 0 2px 5px #271c192e, 0 14px 32px #271c1940;
}
.welcome-panel { max-width: 1130px; margin-block: 35px 43px; padding: 36px 54px 27px; overflow-wrap: anywhere; }
.welcome-prose { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 52px; }
.welcome-prose > div { display: grid; align-content: start; gap: 16px; }
.welcome-prose p { color: #454743; line-height: 1.65; text-wrap: pretty; }
.welcome-panel blockquote {
  margin: 27px 0 0;
  padding-top: 20px;
  border-top: 1px solid #9c755361;
  color: #6d4637;
  text-align: center;
  text-wrap: balance;
  font: italic 500 clamp(1.6rem, 2.15vw, 2.2rem)/1.27 var(--heading);
}
.welcome-closing { margin-top: 13px; color: #575048; text-align: center; font-size: .92rem; }
.gallery { padding-block: clamp(54px, 4.9vw, 80px) clamp(56px, 6vw, 92px); }
.welcome-panel + .gallery { margin-top: 0; padding-block-start: 28px; }
.gallery-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
h2 { font-size: clamp(2.5rem, 4.4vw, 4.6rem); letter-spacing: -.065em; line-height: 1.08; }
.section-description { margin-top: 9px; color: var(--muted); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 18px; }
#pagination-bottom { margin-block: 18px 0; }
/* Size the initial layout like the first gallery page while its data and fonts load. */
.studio-content-pending #gallery .work-card:nth-child(n + 10) { display: none; }
.studio-content-pending #gallery .pagination[hidden] { display: flex !important; }
:is(.studio-content-pending, .page-fonts-pending) :is(.landing .panel, .landing .site-footer) { visibility: hidden; }
.pagination-pages { display: grid; grid-template-columns: repeat(3, 44px); }
.pagination-number:disabled { visibility: hidden; }
.pagination button {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
}
.pagination .pagination-arrow { border-color: #273b5144; transition: border-color .2s, background-color .2s; }
.pagination-arrow span {
  width: 8px;
  height: 8px;
  border-block-start: 1.5px solid;
  border-inline-end: 1.5px solid;
  transform: rotate(45deg);
  translate: -2px 0;
  transition: translate .2s ease;
}
.pagination-arrow:first-child span { transform: rotate(-135deg); translate: 2px 0; }
.pagination-arrow[aria-disabled="false"]:is(:hover, :focus-visible) { background: #273b510d; border-color: #273b51; }
.pagination-arrow:not(:first-child)[aria-disabled="false"]:hover span { translate: 1px 0; }
.pagination-arrow:first-child[aria-disabled="false"]:hover span { translate: -1px 0; }
.pagination-number span {
  line-height: 1;
  font-weight: 600;
  opacity: .68;
  font-variant-numeric: tabular-nums;
  transition: transform .34s cubic-bezier(.22,.7,.25,1), opacity .3s ease;
}
.pagination-number:is(:hover, :focus-visible) span { opacity: .88; }
.pagination-number[aria-current="page"] span { transform: scale(1.38); opacity: 1; }
.commission-reference button {
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid currentColor;
  background: transparent;
}
button:disabled, .pagination button[aria-disabled="true"] { opacity: .45; cursor: default; }
.gallery-viewport { position: relative; overflow-anchor: none; touch-action: pan-y pinch-zoom; }
.gallery-viewport.is-sliding { overflow: clip; }
.work-grid.is-leaving { position: absolute; inset: 0 0 auto; pointer-events: none; }
.work-grid.is-leaving-bottom { inset-block: auto 0; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.work-card { border-bottom: 1px solid var(--rule); padding-bottom: 17px; }
.work-image {
  --mat: clamp(10px, 1.3vw, 20px);
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #e8e0d5;
}
.work-image img {
  position: absolute;
  inset: var(--mat);
  width: calc(100% - 2 * var(--mat));
  height: calc(100% - 2 * var(--mat));
  object-fit: contain;
  transition: transform .28s ease;
}
@media (hover: hover) { .work-image:hover img { transform: scale(1.035); } }
.work-details { padding-top: 13px; }
.work-details h3 { font-size: clamp(1.35rem, 2.05vw, 2rem); letter-spacing: -.035em; line-height: 1.14; }
.work-details p { margin-top: 5px; color: var(--muted); font-size: .78rem; }

.artist { background: #f1e7ddef; }
.artist-inner { display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: clamp(28px, 8vw, 140px); padding-block: clamp(34px, 5vw, 80px); }
.artist-portrait img { height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.artist-copy p, .contact-copy p { max-width: 41ch; margin: 17px 0 20px; color: var(--muted); }
#studio-email { overflow-wrap: anywhere; }
.artist-copy p { text-align: justify; hyphens: auto; overflow-wrap: anywhere; }
.text-link { display: inline-block; padding-bottom: 2px; border-bottom: 1px solid var(--clay); font-weight: 700; }
.text-link:hover { color: var(--clay); }

.contact { display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(28px, 7vw, 120px); padding-block: clamp(51px, 7vw, 110px); }
.contact-form, .contact-form label { display: grid; gap: 6px; }
.contact-form { gap: 14px; }
.contact-form label { min-width: 0; font-weight: 700; font-size: .87rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #c7c5b9; border-radius: 0; background: #fffbf4; color: var(--ink); font-weight: 400; }
.contact-form textarea { resize: vertical; }
.form-message { font-size: .82rem; color: var(--muted); }
.contact-form .button { justify-self: start; }
.site-footer { background: #181f2beb; color: var(--paper); }
.social-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.social-link {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #273b5155;
  border-radius: 50%;
  color: var(--forest);
  transition: background-color .22s, color .22s, border-color .22s;
}
.social-link svg { width: 21px; height: 21px; }
.social-link:is(:hover, :focus-visible) { border-color: var(--forest); background: var(--forest); color: var(--paper); }
.commission-form { scroll-margin-top: 24px; }
.commission-form h3 { font-size: clamp(1.65rem, 3vw, 2.4rem); }
.commission-reference { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.commission-reference img { width: 86px; height: 60px; }
.commission-reference button { margin-left: auto; }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.site-footer-inner { min-height: 95px; gap: 18px; }
.footer-actions { text-align: end; }
.footer-credit { margin: 4px 0 0; color: #c4cdd7; font-size: .75rem; }
.footer-credit a { color: #79d9ba; font-weight: 700; white-space: nowrap; }
.footer-credit a:hover { color: #a5f2d5; }
.footer-top { font-size: .82rem; font-weight: 700; }

.artwork-dialog {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 18px;
  overflow: auto;
  background: transparent;
  color: var(--ink);
}
.artwork-dialog[open] { display: grid; place-items: safe center; }
.artwork-dialog::backdrop { background-color: transparent; transition: background-color .24s ease; }
.artwork-dialog[data-visible]::backdrop { background-color: #111924e0; }
/* On touch devices using the desktop layout, keep the native top layer stable. */
.artwork-dialog[data-touch-desktop]::backdrop { background-color: transparent; transition: none; }
.artwork-dialog[data-touch-desktop]::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  opacity: 0;
  background: #111924e0;
  transition: opacity .24s ease;
  will-change: opacity;
}
.artwork-dialog[data-touch-desktop][data-visible]::before { opacity: 1; }
.artwork-dialog[data-touch-desktop] .dialog-inner { z-index: 1; will-change: opacity; }
.artwork-dialog[data-touch-desktop] #dialog-image { will-change: transform; }
.dialog-inner {
  --dialog-image-height: 75vh;
  --dialog-image-width: calc(var(--dialog-image-height) * var(--dialog-image-ratio, 1.5));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  width: min(960px, 100%, max(300px, var(--dialog-image-width)));
  position: relative;
  pointer-events: none;
}
.dialog-inner > * { pointer-events: auto; }
.dialog-image-frame {
  position: relative;
  width: min(100%, var(--dialog-image-width));
  touch-action: pan-y pinch-zoom;
}
.dialog-image-frame > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  max-height: var(--dialog-image-height);
  aspect-ratio: var(--dialog-image-ratio, auto 1.5);
  object-fit: contain;
  transform-origin: top left;
}
.dialog-image-navigation {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  transition: opacity .16s ease;
}
.artwork-dialog:is([data-opening], :not([data-visible])) .dialog-image-navigation {
  visibility: hidden;
  opacity: 0;
}
.dialog-image-arrow {
  display: flex;
  align-items: center;
  width: min(45%, clamp(56px, 15%, 112px));
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffffe0;
  pointer-events: auto;
}
#next-artwork { justify-content: flex-end; }
.dialog-image-arrow-icon {
  display: grid;
  place-items: center;
  width: min(44px, 80%);
  aspect-ratio: 1;
  border: 1px solid #fff2;
  border-radius: 50%;
  background: #11192442;
  margin-inline-start: min(12px, 20%);
  pointer-events: none;
}
#next-artwork .dialog-image-arrow-icon { margin-inline: 0 min(12px, 20%); }
.dialog-image-arrow-icon::before {
  width: 9px;
  height: 9px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translateX(-2px) rotate(45deg);
  content: "";
  filter: drop-shadow(0 1px 2px #111924);
}
#previous-artwork .dialog-image-arrow-icon::before { transform: translateX(2px) rotate(225deg); }
.dialog-image-arrow:disabled { visibility: hidden; }
.dialog-image-arrow:focus-visible { outline: none; }
.artwork-dialog:not([data-direct-navigation]) .dialog-image-arrow:focus-visible .dialog-image-arrow-icon {
  outline: 2px solid white;
  outline-offset: 2px;
}
.dialog-close {
  position: absolute;
  inset: 9px 9px auto auto;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #f9f2e865;
  border-radius: 50%;
  background: var(--forest-dark);
  color: var(--paper);
  font-size: 1.5rem;
  line-height: 1;
}
.dialog-close:hover { background: var(--forest); }
.dialog-copy {
  width: 100%;
  padding: 22px 27px 24px;
  background: var(--paper);
  box-shadow: 0 18px 48px #11192444;
}
.dialog-copy h2 { font-size: clamp(2rem, 3.9vw, 3.75rem); margin-bottom: 5px; }
#dialog-meta { font-size: .85rem; color: var(--muted); }
#dialog-description { margin-top: 12px; color: var(--muted); }
#dialog-inquire { margin-top: 14px; }

@media (max-width: 850px) {
  .work-grid { gap: 14px; }
  .hero-inner { grid-template-columns: .86fr 1fr; gap: 24px; }
  .hero h1 { font-size: min(clamp(2.55rem, 6.35vw, 3.7rem), 18.1cqi); }
  .site-nav { gap: 25px; }
}

@media (max-width: 760px) {
  .welcome-panel { padding: 26px 24px; }
  .welcome-prose { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 640px) {
  html:has(body.landing) { scroll-padding-top: var(--site-header-height, 64px); }
  .site-header-inner { min-height: 64px; }
  .section-nav { right: env(safe-area-inset-right, 0px); gap: 1px; }
  .section-link { width: 28px; height: 35px; }
  .section-dot { width: 6px; height: 6px; }
  .wordmark { font-size: 25px; }
  .menu-toggle { display: block; font-size: .85rem; font-weight: 700; }
  .site-nav { display: none; position: absolute; inset: 100% 0 auto; align-items: stretch; gap: 0; background: var(--forest-dark); padding: 4px 18px 14px; border-top: 1px solid var(--rule); box-shadow: 0 10px 20px #19242022; }
  .site-nav.is-open { display: grid; }
  .site-nav a, .nav-contact { border: 0; border-bottom: 1px solid var(--rule); padding: 11px 4px; }
  body.landing::before { background-position: center, center, 44% center, center; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 41px 24px; }
  .hero-figure { aspect-ratio: 1.52; }
  .hero-figure figcaption { inset: auto 13px 43px; max-width: none; }
  .hero h1 { font-size: min(clamp(2.65rem, 10vw, 4.4rem), 18.1cqi); }
  .hero-eyebrow { margin-bottom: 13px; }
  .hero-description { margin-top: 18px; }
  .button-light { margin-top: 19px; }
  .gallery-heading { margin-bottom: 20px; gap: 16px; }
  .work-grid { grid-template-columns: 1fr; gap: 25px; }
  .artist-inner, .contact { grid-template-columns: 1fr; }
  .dialog-inner { --dialog-image-height: 52vh; }
  @supports (height: 1svh) { .dialog-inner { --dialog-image-height: 52svh; } }
  .dialog-copy { padding: 18px; }
}

@media (640px < width < 771px), (width < 350px) {
  .hero { --hero-description-lines: 3; }
}

@media (width < 263px) {
  .hero { --hero-description-lines: 4; }
}

@media (max-width: 370px) {
  .form-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

.arrow {
  display: inline-block;
  position: relative;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  vertical-align: -.07em;
}

.arrow::before, .arrow::after {
  position: absolute;
  right: 1px;
  top: 50%;
  content: "";
}

.arrow::before {
  left: 1px;
  border-top: 1px solid currentColor;
}

.arrow::after {
  width: 5px;
  height: 5px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(calc(-50% + .5px)) rotate(45deg);
}

.arrow-northeast { transform: rotate(-45deg); }
.arrow-southeast { transform: rotate(45deg); }
.arrow-up { transform: rotate(-90deg); }

.admin-shell { margin-block: 36px; }
.admin-header, .admin-section-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.admin-header { margin-bottom: 16px; }
.admin-header h1 { font-size: clamp(2rem, 5vw, 3.3rem); margin-right: auto; }
.admin-shell button:not(.button, .admin-card-trigger, .pagination button) {
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid var(--rule);
  background: #fffbf4;
}
.admin-shell form { margin-block: 20px; }
.admin-shell :is(#sign-in, #new-password) { max-width: 420px; }
.admin-section, .admin-image-picker, .admin-entry-fields { display: grid; gap: 12px; }
.admin-section { padding-block: 16px; border-top: 1px solid var(--rule); }
.admin-section h2 { font-size: 1.75rem; letter-spacing: -.02em; }
.admin-images, .admin-slides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.admin-image-picker { align-content: start; min-width: 0; }
.admin-image-preview { display: grid; height: clamp(104px, 13vw, 156px); background: #273b51; }
.admin-image-preview img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.admin-image-picker button { justify-self: start; }
.admin-image-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px; }
.admin-image-controls label { grid-column: 1 / -1; }
.admin-file-control { display: flex; align-items: center; min-width: 0; gap: 6px; }
.admin-file-control > input { width: 1px; padding: 0; border: 0; }
.admin-file-control > button { min-width: 0; }
.admin-shell .admin-image-controls button { height: 44px; padding-inline: clamp(4px, .7vw, 10px); font-size: .82rem; }
.admin-file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .78rem; }
.admin-title-field { display: grid; gap: 4px; }
.admin-field-hint { color: var(--muted); font-size: .82rem; }
.admin-file-error { color: #874532; font-size: .82rem; }
.admin-biography-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.admin-biography-fields, .admin-biography-preview { display: grid; align-content: start; gap: 12px; min-width: 0; }
.admin-biography-field { display: grid; gap: 6px; }
.admin-biography-modes { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-biography-paper { max-block-size: 460px; overflow: auto; padding-inline: 14px; border: 1px solid var(--rule); background: #f1e7dd; }
.admin-biography-paper .artist-copy { width: var(--biography-width, auto); }
.admin-biography-fields [aria-invalid="true"], .admin-biography-fields [data-error] { border-color: var(--clay); color: #874532; }
.admin-biography-measure { position: fixed; inset: 0 auto auto -10000px; height: 1px; border: 0; visibility: hidden; }
.admin-darkness { max-width: 420px; }
.admin-contact-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-section .pagination { margin-block: 4px 6px; }
.admin-shell .work-card { display: flex; flex-direction: column; min-width: 0; }
.admin-card-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: start;
}
.admin-card-details { display: block; min-width: 0; }
.admin-card-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-details .admin-card-title {
  font: 500 clamp(1.35rem, 2.05vw, 2rem) / 1.14 var(--heading);
  letter-spacing: -.035em;
}
.admin-card-meta { display: block; min-height: 1.6em; margin-top: 5px; color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.admin-slide-card { min-width: 0; }
.admin-slide-media { position: relative; }
.admin-slide-image { display: grid; aspect-ratio: 3 / 2; overflow: hidden; background: #e8e0d5; }
.admin-slide-image img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.admin-slide-card .admin-card-title { margin-top: 6px; font-size: clamp(.8rem, 1.8vw, 1rem); font-weight: 600; }
.admin-image-placeholder { display: grid; place-items: center; height: 100%; padding-inline: 4px; color: var(--muted); font-size: .75rem; text-align: center; }
.admin-entry-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-shell .admin-biography-modes button[aria-pressed="true"] { border-color: var(--forest); background: var(--forest); color: var(--paper); }
.admin-work-actions { display: flex; gap: 6px; margin-top: auto; padding-top: 10px; }
.admin-shell .admin-work-actions .admin-work-icon {
  display: grid;
  place-items: center;
  width: 40px;
  padding: 0;
  background: transparent;
}
.admin-work-icon svg { width: 18px; height: 18px; }
.admin-slide-actions {
  position: absolute;
  inset: auto 5px 5px auto;
  gap: 3px;
  margin: 0;
  padding: 0;
}
.admin-shell .admin-slide-actions .admin-work-icon {
  width: clamp(24px, 6.7vw, 38px);
  min-height: clamp(25px, 7vw, 38px);
  border-color: #f9f2e8;
  background: #fffbf4;
}
.admin-slide-actions .admin-work-icon svg { width: clamp(13px, 4vw, 18px); height: auto; }
.admin-shell .admin-work-actions .admin-work-icon:is(:hover, :focus-visible) { border-color: currentColor; }
.admin-work-remove { color: #874532; }
.admin-work-move { touch-action: none; cursor: grab; }
:is(.work-grid .work-card, .admin-slide-card).is-reordering { background: #ece1d4; outline: 2px solid var(--clay); outline-offset: 3px; }
:is(.gallery-viewport, .admin-slides).is-reordering, :is(.gallery-viewport, .admin-slides).is-reordering button { cursor: grabbing; user-select: none; }
.admin-work-dialog {
  width: min(calc(100% - 12px), 780px);
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: clamp(14px, 3vw, 24px);
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
}
.admin-work-dialog::backdrop { background: #192431a8; }
.admin-work-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-work-dialog-header h3 { font-size: clamp(1.3rem, 3vw, 2rem); overflow-wrap: anywhere; }
#close-work, .admin-shell .admin-work-dialog .admin-dialog-close { flex: 0 0 38px; width: 38px; padding: 0; font-size: 1.5rem; line-height: 1; }
.admin-work-dialog img { width: 100%; height: min(55dvh, 520px); margin-top: 14px; object-fit: contain; }
.admin-work-dialog:has(#work-editor-fields:not([hidden])) img { height: min(32dvh, 300px); }
.admin-work-dialog p { margin-top: 8px; color: var(--muted); }
.admin-work-dialog .admin-entry-actions { margin-top: 14px; }
.admin-shell .admin-slide-dialog form, .admin-shell .admin-password-dialog form { margin-block: 14px 0; }
.admin-slide-frame {
  display: grid;
  position: relative;
  place-items: center;
  width: min(100%, 560px, 72dvh);
  margin-inline: auto;
  aspect-ratio: 3 / 2;
  background: var(--forest);
}
.admin-slide-crop { position: absolute; inset: 0; overflow: hidden; cursor: grab; touch-action: none; }
.admin-slide-crop:active { cursor: grabbing; }
.admin-slide-dialog .admin-slide-crop img { width: 100%; height: 100%; margin: 0; object-fit: cover; pointer-events: none; }
.admin-slide-frame:has(.admin-slide-crop:not([hidden])) button { position: absolute; inset: auto 8px 8px auto; }
.admin-slide-dialog [data-crop-help], .admin-slide-dialog [data-slide-status] { margin: 0; }
.admin-slide-dialog [data-slide-status] { font-size: .82rem; }
.admin-slide-dialog [data-slide-status].admin-file-error { color: #874532; }
.admin-password-dialog { width: min(calc(100% - 24px), 460px); }
@media (max-width: 640px) {
  .admin-slide-frame { aspect-ratio: 1.52; }
}
.admin-remove-dialog { width: min(calc(100% - 24px), 420px); }
.admin-remove-dialog h3 { font-size: 1.65rem; }
.admin-remove-dialog strong { overflow-wrap: anywhere; }
.admin-remove-button { min-height: 38px; padding: 6px 12px; background: #874532; color: #fff; }
.admin-remove-button:hover { background: #713727; }
.admin-work-fields { display: grid; gap: 12px; margin-top: 14px; }
.admin-work-fields .admin-image-preview { display: none; }
@media (max-width: 650px) {
  .admin-images, .admin-contact-fields, .admin-biography-editor { grid-template-columns: minmax(0, 1fr); }
  .admin-slides { gap: 8px; }
  .admin-slide-actions { right: 3px; bottom: 3px; gap: 2px; }
}
