@font-face {
  font-family: Literata;
  src: url("/fonts/literata.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/ibm-plex-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --bg: #f1f1f1;
  --surface: #e8e8e6;
  --text: #181818;
  --secondary: #555959;
  --accent: #4a5f8a;
  --border: #cecfd1;
  --serif: Literata, Georgia, "Times New Roman", serif;
  --sans:
    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body.dialog-open {
  overflow: hidden;
}
h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.25;
}
h1 {
  font-size: clamp(30px, 3.6vw, 42px);
  letter-spacing: -0.035em;
}
h2 {
  font-size: 24px;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 19px;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid #000;
}
button {
  background: none;
  border: 0;
}
.hero-work > a,
.work-image,
.painting-enlarge,
.series-image {
  border: 1px solid #000;
}
.hero-work img,
.work-image img,
.painting-enlarge img,
.series-image img {
  border: 0;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
p {
  overflow-wrap: break-word;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
[hidden] {
  display: none !important;
}
.shell {
  max-width: 1040px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding: 0 40px;
}
main {
  flex: 1;
}
.site-header {
  display: flex;
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.wordmark {
  font: 500 22px/1.2 var(--serif);
  letter-spacing: -0.025em;
}
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.site-header nav a {
  font-size: 14px;
  padding: 10px 0;
  position: relative;
}
.site-header nav a[aria-current]::after {
  content: "";
  height: 1px;
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  background: var(--text);
}
.home-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  padding: 26px 0 24px;
}
.home-intro h1 {
  font-size: clamp(34px, 4.2vw, 48px);
}
.intro-line {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
  margin-top: 15px;
  color: var(--secondary);
}
.intro-bio {
  max-width: 270px;
  font-size: 15px;
  color: var(--secondary);
  padding-bottom: 4px;
}
.intro-bio p {
  margin-bottom: 18px;
}
.text-link {
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 8px 0;
  color: var(--accent);
}
.hero-work > a {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--surface);
  padding: 36px;
  min-height: 380px;
}
.hero-work img {
  max-height: 540px;
  width: auto;
  object-fit: contain;
}
.hero-work figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: var(--secondary);
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}
.hero-work figcaption a {
  white-space: nowrap;
  color: var(--text);
}
.caption-divider {
  margin: 0 12px;
  color: #999;
}
.selected-section {
  padding-top: 75px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 46px 32px;
}
.work {
  min-width: 0;
}
.work-image {
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  padding: 22px;
}
.work-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.work-caption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 15px;
}
.work-title {
  font: 500 16px/1.45 var(--serif);
}
.work-caption p {
  font-size: 12px;
  color: var(--secondary);
  margin-top: 5px;
}
.work-status {
  font-size: 11px;
  color: var(--secondary);
  white-space: nowrap;
  padding-top: 3px;
}
.home-closing {
  border-top: 1px solid var(--border);
  padding: 50px 0 15px;
  margin-top: 76px;
  max-width: 100%;
}
.home-closing p {
  max-width: 470px;
  font-size: 15px;
  color: var(--secondary);
  margin: 16px 0;
}
.page-heading {
  padding: 26px 0 24px;
}
.page-heading h1 {
  margin-bottom: 8px;
}
.page-heading > p:last-child,
.page-heading > div > p:last-child {
  font-size: 16px;
  color: var(--secondary);
  max-width: 560px;
}
.catalogue-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-block: 1px solid var(--border);
  padding: 10px 0;
}
.filter-links {
  display: flex;
  gap: 25px;
  align-items: center;
  flex-wrap: wrap;
}
.filter-links a {
  font-size: 14px;
  padding: 10px 0;
  color: var(--secondary);
}
.filter-links a[aria-current] {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 8px;
}
.availability-filter {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  white-space: nowrap;
}
.availability-filter label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.availability-filter input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}
.text-button {
  font-size: 13px;
  color: var(--accent);
  padding: 10px 0;
  min-height: 44px;
}
.result-count {
  font-size: 12px;
  color: var(--secondary);
  margin: 22px 0 30px;
}
.catalogue-grid .work-image {
  height: 350px;
}
.empty-state {
  padding: 65px 0 90px;
  max-width: 570px;
}
.empty-state p {
  color: var(--secondary);
  margin: 20px 0;
}
.empty-state a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.back-link {
  margin: 20px 0 12px;
}
.painting-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 66px;
  align-items: start;
}
.painting-enlarge {
  padding: 30px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 20px;
}
.painting-enlarge img {
  max-height: 680px;
  object-fit: contain;
  width: auto;
}
.painting-enlarge > span {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 12px;
  color: var(--secondary);
}
.painting-info {
  padding-top: 12px;
}
.painting-info > .text-link {
  display: block;
  margin-bottom: 8px;
}
.painting-info h1 {
  font-size: 34px;
  line-height: 1.25;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}
.painting-medium {
  color: var(--secondary);
  font-size: 14px;
}
.painting-description {
  margin: 32px 0;
  font-size: 15px;
}
.painting-description p + p {
  margin-top: 16px;
}
.painting-facts {
  border-block: 1px solid var(--border);
  padding: 15px 0;
  font-size: 13px;
}
.painting-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 6px 0;
}
.painting-facts dt {
  color: var(--secondary);
}
.painting-facts dd {
  text-align: right;
}
.painting-purchase {
  margin-top: 27px;
}
.painting-price {
  font: 500 25px/1.3 var(--serif);
  margin-bottom: 10px;
}
.secondary {
  font-size: 13px;
  color: var(--secondary);
}
.painting-purchase .button {
  margin-top: 24px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 13px 20px;
  min-height: 48px;
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  border-radius: 0;
  text-align: center;
}
.secondary-button {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.detail-photo {
  padding: 0;
  margin-top: 25px;
  width: 100%;
}
.detail-photo img {
  max-height: 500px;
  width: auto;
  margin: auto;
}
.related-works {
  margin-top: 85px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.related-works h2 {
  font-size: 23px;
}
.series-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 50px 40px;
}
.series-image {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px;
  background: var(--surface);
  height: 380px;
}
.series-image img {
  max-height: 100%;
  width: auto;
}
.series-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 10px;
}
.series-caption h2 {
  font-size: 23px;
}
.series-caption span {
  font-size: 12px;
  color: var(--secondary);
}
.series-grid article > p {
  font-size: 14px;
  color: var(--secondary);
  max-width: 450px;
}
.series-heading {
  padding: 0 0 20px;
}
.series-heading .result-count {
  display: block;
  margin: 8px 0 0;
}
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: start;
  gap: 40px;
}
.artist-portrait {
  width: 100%;
  height: auto;
}
.prose h2 {
  margin-bottom: 24px;
}
.prose p {
  font-size: 15px;
  margin-bottom: 20px;
  color: var(--secondary);
}
.prose .artist-note {
  font-size: 11px;
  margin-top: 26px;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 70px;
  border-top: 1px solid var(--border);
  padding: 40px 0 100px;
}
.contact-layout h2 {
  font-size: 24px;
  margin-bottom: 24px;
}
.contact-layout p {
  font-size: 14px;
  color: var(--secondary);
  max-width: 420px;
  margin-top: 18px;
}
.contact-layout a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.contact-email {
  font-size: clamp(16px, 2vw, 24px);
  overflow-wrap: anywhere;
}
.site-footer {
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  margin-top: 32px;
  padding: 10px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 16px;
  font-size: 12px;
  color: var(--secondary);
}
.site-footer > div {
  display: flex;
  gap: 16px;
  align-items: center;
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}
.preview-note {
  background: #e5e6e7;
  color: #4b5057;
  font-size: 11px;
  text-align: center;
  padding: 7px 16px;
}
.preview-note span {
  margin-left: 14px;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--text);
  color: white;
  padding: 12px 20px;
}
.skip-link:focus {
  top: 16px;
}
.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;
}
dialog {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  padding: 28px;
  max-width: calc(100% - 32px);
  max-height: 90dvh;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: rgb(15 15 15/0.75);
}
#image-viewer {
  width: calc(100% - 40px);
  height: calc(100dvh - 40px);
  max-width: none;
  max-height: none;
  padding: 20px;
  background: var(--bg);
}
.viewer-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 12px;
  color: var(--secondary);
}
.viewer-toolbar button {
  min-height: 44px;
  padding: 0 15px;
  white-space: nowrap;
}
#viewer-image {
  max-height: calc(100dvh - 145px);
  width: auto;
  margin: auto;
  object-fit: contain;
}
.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  color: var(--secondary);
  font-size: 13px;
}
.notice {
  padding: 16px 20px;
  border: 1px solid var(--border);
  font-size: 14px;
  margin-bottom: 25px;
  white-space: pre-line;
}
.notice.error {
  border-color: #8d4c42;
  color: #77372e;
}
.studio-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.studio-heading h1 {
  font-size: 36px;
}
.login-panel {
  max-width: 480px;
  padding-bottom: 40px;
}
.login-panel h2 {
  margin-bottom: 20px;
}
.login-panel p {
  color: var(--secondary);
  font-size: 15px;
  margin-bottom: 25px;
}
.login-panel .button {
  margin-top: 22px;
}
.studio-page label:not(.checkbox-label):not(.upload-zone):not(.search-label) {
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}
.studio-page input:not([type="checkbox"]):not([type="file"]),
.studio-page textarea,
.studio-page select {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: #f8f8f6;
  font-size: 16px;
}
.studio-page textarea {
  resize: vertical;
}
.studio-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.search-label {
  flex: 1;
  max-width: 570px;
}
.studio-tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.studio-tabs button {
  padding: 10px 0 15px;
  font-size: 14px;
  color: var(--secondary);
  border-bottom: 2px solid transparent;
  min-height: 48px;
}
.studio-tabs button[aria-pressed="true"] {
  border-bottom-color: var(--text);
  color: var(--text);
}
.inventory-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.inventory-row img {
  width: 70px;
  height: 80px;
  object-fit: contain;
  background: var(--surface);
}
.inventory-row .inventory-meta {
  flex: 1;
  min-width: 0;
}
.inventory-meta h3 {
  font-size: 18px;
  overflow-wrap: anywhere;
}
.inventory-meta p {
  font-size: 12px;
  color: var(--secondary);
  margin-top: 7px;
}
.inventory-row .row-state {
  font-size: 12px;
  color: var(--secondary);
  margin-left: auto;
}
.inventory-row .text-button {
  padding-inline: 15px;
}
.studio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 25px;
  align-items: center;
  margin-bottom: 25px;
  font-size: 13px;
}
.studio-actions a {
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin: 0 0 30px;
}
#editor-id {
  font-size: 12px;
  color: var(--secondary);
  margin-bottom: 10px;
}
.editor-state {
  font-size: 12px;
  color: var(--secondary);
}
.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 60px;
}
.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px dashed #a7aaab;
  padding: 35px 15px;
  text-align: center;
  min-height: 220px;
  cursor: pointer;
  background: var(--surface);
}
.upload-plus {
  font-size: 35px;
  font-weight: 300;
  line-height: 1;
}
.upload-zone small {
  font-size: 12px;
  color: var(--secondary);
  margin-top: 5px;
}
.editor-fields > input,
.editor-fields > textarea,
.editor-fields > select {
  margin-bottom: 22px;
}
.editor-fields > label {
  margin-top: 0;
}
.field-help {
  font-size: 12px;
  color: var(--secondary);
  margin: 10px 0 22px;
}
.editor-fields > textarea + .field-help {
  margin-top: -12px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}
.form-row > div {
  min-width: 0;
}
.dimensions {
  grid-template-columns: 1fr 1fr 1fr;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  padding: 10px 0;
}
.checkbox-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.editor-images {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}
.editor-image {
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
}
.editor-image img {
  max-height: 330px;
  width: auto;
  margin: 0 auto 15px;
}
.editor-image .image-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.editor-image input {
  font-size: 13px !important;
}
.image-actions button {
  font-size: 12px;
  color: var(--accent);
  padding: 10px 0;
  min-height: 44px;
}
.editor-actions {
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 22px 0;
  margin-top: 35px;
  background: var(--bg);
  position: sticky;
  bottom: 0;
  z-index: 2;
}
.editor-actions > p {
  font-size: 12px;
  color: var(--secondary);
  max-width: 210px;
}
.editor-actions > div {
  display: flex;
  gap: 12px;
}
.editor-actions .button {
  font-size: 13px;
  gap: 5px;
}
.preview-dialog {
  width: 850px;
}
.dialog-close {
  display: block;
  margin-left: auto;
  margin-bottom: 20px;
}
.preview-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
}
.preview-content-grid img {
  max-height: 550px;
  width: auto;
}
.preview-content-grid h2 {
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
.preview-content-grid p {
  margin-bottom: 20px;
  font-size: 14px;
  white-space: pre-line;
}
.preview-dialog .notice {
  margin-top: 30px;
}
.series-dialog {
  width: 520px;
}
.series-dialog h2 {
  margin-bottom: 20px;
}
.series-dialog form {
  margin-top: 25px;
}
.series-dialog input,
.series-dialog textarea {
  margin-bottom: 18px;
}
.series-list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.series-list-row button {
  min-height: 44px;
  color: var(--accent);
  font-size: 13px;
}
.painting-management {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.painting-management > a,
.painting-management > button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: 20px;
}
.danger-text {
  color: #8b4035;
}
.image-actions {
  flex-wrap: wrap;
}
.image-actions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.library-dialog {
  width: 850px;
}
.library-row {
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.library-row img {
  width: 65px;
  height: 75px;
  object-fit: contain;
}
.library-row > div {
  flex: 1;
  min-width: 0;
}
.library-row p {
  font-size: 14px;
}
@media (max-width: 700px) {
  .library-row {
    flex-wrap: wrap;
    gap: 12px;
  }
  .library-row > button {
    margin-left: 77px;
  }
}
@media (hover: hover) {
  a:hover {
    color: var(--accent);
  }
  .work-image:hover img {
    opacity: 0.94;
  }
  .button:hover {
    background: #303434;
    color: white;
  }
  .secondary-button:hover {
    background: var(--surface);
    color: var(--text);
  }
  .text-button:hover {
    text-decoration: underline;
  }
  .upload-zone:hover {
    border-color: var(--text);
  }
  .work-title:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}
@media (max-width: 1000px) {
  .shell {
    padding: 0 36px;
  }
  .works-grid {
    gap: 38px 24px;
  }
  .work-image,
  .catalogue-grid .work-image {
    height: 280px;
    padding: 18px;
  }
  .painting-detail {
    gap: 35px;
    grid-template-columns: 1.2fr 1fr;
  }
  .painting-info h1 {
    font-size: 32px;
  }
  .editor-grid {
    gap: 30px;
  }
  .editor-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
  .editor-actions > p {
    max-width: none;
  }
  .editor-actions > div {
    width: 100%;
  }
  .editor-actions > div > .button {
    flex: 1;
  }
}
@media (max-width: 700px) {
  .shell {
    padding: 0 22px;
  }
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 0;
  }
  .wordmark {
    font-size: 22px;
  }
  .site-header nav {
    gap: 18px;
  }
  .site-header nav a {
    font-size: 14px;
    padding: 10px 0;
    min-height: 44px;
  }
  .home-intro {
    padding: 24px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }
  .home-intro h1 {
    font-size: 34px;
  }
  .intro-line {
    font-size: 20px;
    margin-top: 12px;
  }
  .intro-bio {
    max-width: 350px;
    font-size: 14px;
  }
  .intro-bio p {
    margin-bottom: 4px;
  }
  .hero-work > a {
    padding: 20px;
    min-height: 0;
  }
  .hero-work img {
    max-height: 430px;
    width: auto;
  }
  .hero-work figcaption {
    font-size: 11px;
    gap: 15px;
    padding: 12px 0;
    align-items: flex-start;
  }
  .hero-work figcaption > span {
    max-width: 65%;
  }
  .hero-work figcaption a {
    font-size: 10px;
  }
  .caption-divider {
    margin: 0 5px;
  }
  .selected-section {
    padding-top: 43px;
  }
  .section-heading {
    margin-bottom: 24px;
    gap: 15px;
  }
  .section-heading h2 {
    font-size: 22px;
  }
  .section-heading .text-link {
    font-size: 12px;
    white-space: nowrap;
  }
  .works-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .work-image,
  .catalogue-grid .work-image {
    height: auto;
    min-height: 250px;
    max-height: none;
    padding: 25px;
  }
  .work-image img {
    max-height: 450px;
    max-width: 100%;
    object-fit: contain;
  }
  .work-caption {
    padding-top: 13px;
  }
  .work-title {
    font-size: 18px;
  }
  .work-status {
    font-size: 11px;
  }
  .home-closing {
    margin-top: 45px;
    padding-top: 33px;
  }
  .home-closing h2 {
    font-size: 23px;
    max-width: 320px;
  }
  .home-closing p {
    font-size: 14px;
  }
  .page-heading {
    padding: 24px 0;
  }
  .page-heading h1 {
    font-size: 32px;
    margin-bottom: 8px;
  }
  .page-heading > p:last-child,
  .page-heading > div > p:last-child {
    font-size: 14px;
  }
  .about-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .artist-portrait {
    max-width: 320px;
  }
  .catalogue-filters {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 5px 0;
  }
  .filter-links {
    gap: 22px;
  }
  .filter-links a {
    font-size: 13px;
    min-height: 44px;
  }
  .availability-filter {
    justify-content: space-between;
    width: 100%;
    border-top: 1px solid var(--border);
    padding-top: 5px;
  }
  .result-count {
    margin: 20px 0 23px;
  }
  .back-link {
    margin: 16px 0 8px;
    font-size: 13px;
  }
  .painting-detail {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .painting-enlarge {
    padding: 20px;
    gap: 15px;
  }
  .painting-enlarge img {
    max-height: 570px;
  }
  .painting-info {
    padding-top: 0;
  }
  .painting-info h1 {
    font-size: 34px;
  }
  .painting-description {
    margin: 24px 0;
  }
  .painting-purchase .button {
    width: 100%;
  }
  .related-works {
    margin-top: 50px;
    padding-top: 30px;
  }
  .series-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .series-image {
    height: 340px;
    padding: 23px;
  }
  .series-heading {
    padding: 0 0 20px;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 30px 0 40px;
  }
  .contact-layout h2 {
    font-size: 23px;
    margin-bottom: 15px;
  }
  .contact-email {
    font-size: 17px;
  }
  .site-footer {
    margin-top: 28px;
    padding: 6px 0;
    font-size: 11px;
  }
  .site-footer a {
    min-height: 44px;
  }
  .preview-note {
    font-size: 10px;
    padding: 6px 14px;
  }
  .preview-note span {
    display: block;
    margin-left: 0;
  }
  .viewer-toolbar > span {
    max-width: 65%;
    font-size: 11px;
  }
  #image-viewer {
    width: calc(100% - 16px);
    height: calc(100dvh - 16px);
    padding: 10px;
  }
  .studio-heading {
    align-items: flex-start;
    gap: 8px;
  }
  .studio-heading .text-link {
    font-size: 11px;
    white-space: nowrap;
    margin-top: 10px;
  }
  .studio-heading h1 {
    font-size: 32px;
  }
  .studio-toolbar {
    gap: 12px;
    flex-direction: column;
  }
  .studio-toolbar .button {
    align-self: flex-start;
  }
  .studio-tabs {
    gap: 20px;
  }
  .studio-tabs button {
    font-size: 12px;
  }
  .inventory-row {
    gap: 14px;
    padding: 16px 0;
    flex-wrap: wrap;
  }
  .inventory-row img {
    width: 55px;
    height: 70px;
  }
  .inventory-meta h3 {
    font-size: 16px;
  }
  .inventory-meta p {
    font-size: 11px;
  }
  .inventory-row .row-state {
    font-size: 11px;
  }
  .inventory-row .text-button {
    padding: 0;
    min-width: 44px;
  }
  .editor-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .editor-heading h2 {
    font-size: 26px;
  }
  .editor-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .editor-photos {
    min-width: 0;
  }
  .upload-zone {
    min-height: 170px;
    padding: 24px 15px;
  }
  .editor-images {
    grid-template-columns: 1fr;
  }
  .editor-actions {
    padding: 15px 0;
    margin-top: 15px;
  }
  .editor-actions > div {
    flex-wrap: wrap;
    gap: 10px;
  }
  .editor-actions .button {
    padding: 11px 12px;
    min-width: 0;
    font-size: 12px;
  }
  .editor-actions > div > .button:last-child {
    flex-basis: 100%;
  }
  .editor-actions p {
    font-size: 11px;
  }
  .preview-content-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .preview-content-grid img {
    max-height: 350px;
    margin: auto;
  }
  .preview-dialog,
  .series-dialog {
    padding: 20px;
  }
  .form-row {
    gap: 14px;
  }
  .notice {
    padding: 12px 14px;
    font-size: 13px;
  }
  .empty-state {
    padding: 40px 0 65px;
  }
  .empty-state h2 {
    font-size: 23px;
  }
}
@media (max-width: 420px) {
  .form-row:not(.dimensions) {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
