:root { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--text-dark); background: var(--bg-main); }
* { box-sizing: border-box; }
body { margin: 0; position: relative; isolation: isolate; min-height: 100vh; overflow-x: hidden; background: var(--bg-main); }
.page-header, main, footer { position: relative; z-index: 1; }
.cursor-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 2; }
a { color: var(--color-teal); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, .viewer:focus-visible { outline: 3px solid #8c3a80; outline-offset: 4px; }
.page-header, main, footer { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 24px; border-bottom: 1px solid #d3e3e2; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; letter-spacing: .08em; color: var(--text-dark); }
.back-link { font-size: 13px; font-weight: 600; }
.intro { text-align: center; padding: 30px 12px 24px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .2em; color: var(--color-teal); }
h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(38px, 5vw, 60px); font-weight: 600; margin: 8px 0 10px; }
h1 em { color: var(--color-plum); font-weight: 500; }
.intro > p:last-child { font-size: 14px; line-height: 1.7; margin: 0; color: var(--text-muted); }
.artwork-card { overflow: hidden; background: #fff; color: #1f2937; border: 1px solid #d3e3e2; border-radius: 20px; box-shadow: 0 16px 40px #0f8b8d12; }
.toolbar { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 12px; border-bottom: 1px solid #e5ecec; background: #ffffffed; }
button { min-width: 44px; height: 44px; border: 1px solid #bfd6d5; border-radius: 12px; background: #f7fbfa; color: #175f61; font: 600 24px 'Plus Jakarta Sans', sans-serif; cursor: pointer; }
button:hover:enabled { background: #e4f1ee; }
button:disabled { opacity: .4; cursor: default; }
.fit-button { padding-inline: 16px; margin-left: 8px; font-size: 12px; }
output { width: 66px; text-align: center; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.viewer { position: relative; overflow: hidden; height: min(68vh, 760px); height: min(68svh, 760px); min-height: 280px; background: #fff; touch-action: none; cursor: grab; }
.viewer.dragging { cursor: grabbing; }
.viewer img { position: absolute; inset: 0 auto auto 0; max-width: none; width: auto; height: auto; user-select: none; transform-origin: 0 0; }
.viewer[aria-busy="true"] img { visibility: hidden; }
.image-status { position: absolute; inset: 40% 20px auto; text-align: center; font-size: 14px; color: #4b5563; line-height: 1.7; }
.viewer-help { margin: 0; padding: 14px 20px; text-align: center; font-size: 11px; line-height: 1.8; color: #58616e; border-top: 1px solid #e5ecec; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 24px; font-size: 11px; color: var(--text-muted); }
footer a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
@media (max-width: 520px) {
  .page-header, main, footer { width: calc(100% - 24px); }
  .page-header { flex-wrap: wrap; gap: 12px; padding-block: 18px; }
  .intro { padding: 24px 4px 20px; }
  .intro > p:last-child { font-size: 12px; }
  .viewer { height: 56vh; height: 56svh; min-height: 260px; }
  .viewer-help { padding-inline: 14px; }
  footer { font-size: 10px; }
}
