[hidden] {
  display:none!important;
}

@font-face {
  font-family:Studio;
  src:local("Helvetica Neue");
  font-display:swap;
}

:root {
  color-scheme:dark;
  --bg:#1b1d1a;
  --panel:#242621;
  --ink:#f3f1e9;
  --muted:#a7aaa0;
  --line:#ffffff20;
  --accent:#d6ed83;
  --paper:#f4f1e9;
  font-family:Studio,Arial,sans-serif;
  font-size:14px;
}

* {
  box-sizing:border-box;
  -webkit-user-select:none;
  user-select:none;
}

input,textarea,code {
  -webkit-user-select:text;
  user-select:text;
}

body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
}

a {
  color:inherit;
  text-decoration:none;
}

button,input,textarea {
  font:inherit;
}

button,a,input,textarea {
  -webkit-tap-highlight-color:transparent;
}

button {
  cursor:pointer;
}

button:disabled {
  cursor:default;
}

button,a {
  touch-action:manipulation;
}

a:hover {
  color:var(--accent);
}

button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:5px;
}

button {
  color:inherit;
}

h1,h2,h3,p {
  margin-top:0;
}

h1,h2 {
  font-weight:500;
}

h1 {
  letter-spacing:-1.8px;
  line-height:1.06;
}

p {
  line-height:1.65;
}

svg {
  display:block;
}

img {
  max-width:100%;
  height:auto;
}

::selection {
  background:var(--accent);
  color:var(--bg);
}

.site-header,.site-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:0 4vw;
}

.site-header {
  height:100px;
  border-bottom:1px solid var(--line);
  gap:24px;
}

.brand {
  display:flex;
  gap:12px;
  align-items:center;
  font-size:22px;
  font-weight:650;
  letter-spacing:-1px;
}

.brand-star {
  width:34px;
  height:34px;
  color:var(--accent);
}

.brand sup {
  font-size:11px;
  align-self:flex-start;
  margin-top:7px;
  margin-left:-6px;
}

.header-note {
  font-size:11px;
  color:var(--muted);
  line-height:1.5;
  margin-left:auto;
  margin-right:8vw;
}

.site-header nav {
  font-size:12px;
}

.site-header nav span {
  margin-left:16px;
  color:var(--accent);
}

.site-footer {
  min-height:78px;
  border-top:1px solid var(--line);
  font-size:11px;
  color:var(--muted);
}

.site-footer nav {
  display:flex;
  gap:25px;
  align-items:center;
}

.footer-mark {
  font-size:27px;
  color:var(--accent);
}

.skip-link {
  position:fixed;
  left:16px;
  top:-80px;
  z-index:999;
  background:var(--accent);
  color:var(--bg);
  padding:15px;
}

.skip-link:focus {
  top:16px;
}

.eyebrow,.micro {
  text-transform:uppercase;
  font-size:10px;
  letter-spacing:1.4px;
  font-weight:500;
}

.eyebrow {
  color:var(--muted);
  margin-bottom:18px;
}

.eyebrow span:not(.live-dot) {
  color:var(--ink);
}

.live-dot {
  display:inline-block;
  width:6px;
  height:6px;
  background:var(--accent);
  border-radius:50%;
  margin-right:8px;
  vertical-align:1px;
}

.muted,.fine-print {
  color:var(--muted);
}

.accent {
  color:var(--accent);
}

.gallery-intro {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  margin:35px 4vw 21px;
}

.gallery-intro h1 {
  font-size:clamp(27px,3.15vw,48px);
  margin-bottom:0;
}

.gallery-intro em {
  font-family:Georgia,serif;
  font-weight:400;
  color:var(--accent);
  letter-spacing:-1.6px;
}

.intro-aside {
  font-size:12px;
  color:var(--muted);
  margin-bottom:5px;
  line-height:1.55;
}

.gallery-toolbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:0 4vw;
  position:relative;
  z-index:2;
}

.gallery-toolbar>.micro {
  color:var(--muted);
  font-size:9px;
}

.view-switch {
  display:flex;
  gap:4px;
  border:1px solid var(--line);
  border-radius:30px;
  padding:4px;
}

.view-switch button {
  background:transparent;
  border:0;
  border-radius:24px;
  padding:8px 13px;
  color:var(--muted);
  font-size:11px;
}

.view-switch button[aria-pressed=true] {
  background:#f3f1e9;
  color:#252820;
}

.art-gallery {
  position:relative;
  margin:0 auto;
  width:100%;
  outline-offset:-5px!important;
}

.art-gallery.is-globe {
  height:clamp(430px,61vh,760px);
  overflow:hidden;
  cursor:grab;
  touch-action:none;
}

.art-gallery, .art-gallery *, .detail-paper, .detail-paper * {
  -webkit-touch-callout:none;
}

.art-gallery img, .detail-paper img {
  -webkit-user-drag:none;
}

.art-gallery.is-dragging {
  cursor:grabbing;
}

.art-card {
  display:block;
  min-width:0;
  position:relative;
}

.is-globe .art-card {
  position:absolute;
  left:50%;
  top:50%;
  width:clamp(80px,7.1vw,125px);
  will-change:transform;
  transform-origin:center;
}

.paper {
  background:var(--paper);
  box-shadow:0 5px 14px #0002;
  transition:box-shadow .2s,outline-color .2s;
  outline:1px solid transparent;
}

.paper img {
  width:100%;
  display:block;
  pointer-events:none;
}

.art-card:hover .paper,.art-card:focus-visible .paper {
  outline:2px solid var(--accent);
  box-shadow:0 8px 35px #0004;
}

.card-caption {
  font-size:11px;
  line-height:1.4;
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:12px;
}

.card-caption>span:last-child {
  white-space:nowrap;
  color:var(--muted);
}

.is-globe .card-caption {
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  width:max-content;
  max-width:250px;
  background:var(--bg);
  border:1px solid var(--line);
  padding:9px 12px;
  border-radius:3px;
  opacity:0;
  pointer-events:none;
  color:var(--ink);
  margin-top:7px;
}

.is-globe .art-card:hover .card-caption,.is-globe .art-card:focus-visible .card-caption {
  opacity:1;
}

.orbit-centre {
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:7px;
  pointer-events:none;
  color:var(--muted);
  opacity:.28;
  z-index:0;
}

.orbit-centre>span:first-child {
  font-family:Georgia,serif;
  font-style:italic;
  font-size:30px;
}

.orbit-centre>span:last-child {
  text-align:center;
  font-size:9px;
  line-height:1.4;
  letter-spacing:.7px;
}

.is-grid {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:42px 32px;
  padding:35px 4vw 45px;
  align-items:start;
}

.is-grid .art-card:nth-child(3n+2) {
  margin-top:38px;
}

.is-grid .orbit-centre {
  display:none;
}

.gallery-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:0 4vw 25px;
  gap:20px;
  color:var(--muted);
}

.interaction-hint {
  font-size:11px;
}

.interaction-hint>span {
  color:var(--accent);
  font-size:19px;
  margin-right:10px;
}

.gallery-bottom>.micro {
  font-size:9px;
}

.gallery-bottom>.micro .accent {
  font-size:20px;
  margin-left:9px;
  vertical-align:-2px;
}

.text-button {
  background:none;
  border:0;
  padding:10px 0;
  font-size:12px;
  color:var(--muted);
}

.text-button:hover {
  color:var(--accent);
}

.text-button span {
  margin-left:8px;
}

.collection-note {
  font-size:10px;
  color:var(--muted);
  text-align:center;
  letter-spacing:.4px;
  margin:15px 4vw 25px;
}

.empty-state {
  text-align:center;
  padding:100px 20px;
}

.empty-state>.accent {
  display:block;
  font-size:80px;
  margin-bottom:30px;
}

dialog {
  background:var(--bg);
  color:var(--ink);
  border:1px solid #55584b;
  padding:0;
  width:min(1050px,94vw);
  max-height:90dvh;
  overflow:auto;
}

dialog::backdrop {
  background:#10120fe0;
  backdrop-filter:blur(8px);
}

.dialog-close {
  position:sticky;
  float:right;
  right:16px;
  top:16px;
  z-index:10;
  background:var(--bg);
  width:38px;
  height:38px;
  border:1px solid var(--line);
  border-radius:50%;
  margin:16px 16px -54px 0;
}

.dialog-close:hover {
  background:var(--accent);
  color:var(--bg);
}

.art-detail {
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:60px;
  align-items:center;
  padding:55px;
}

.detail-paper {
  background:var(--paper);
  text-align:center;
}

.detail-paper img {
  display:block;
  width:100%;
  max-height:65vh;
  object-fit:contain;
}

.detail-copy h1,.detail-copy h2 {
  font-size:clamp(32px,4vw,53px);
  max-width:400px;
  margin-bottom:23px;
}

.art-description {
  color:var(--muted);
  font-size:14px;
}

.purchase-price {
  font-size:28px;
  margin:30px 0 22px;
}

.purchase-price span {
  font-size:11px;
  display:inline-block;
  color:var(--muted);
  margin-left:10px;
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:25px;
  background:transparent;
  border:1px solid var(--line);
  padding:16px 20px;
  min-height:49px;
  font-size:13px;
  color:var(--ink);
}

.button:hover {
  border-color:var(--accent);
  color:var(--accent);
}

.button.primary {
  background:var(--accent);
  color:#22261b;
  border-color:var(--accent);
}

.button.primary:hover {
  background:#e3f6ad;
}

.button:disabled {
  background:#414737!important;
  border-color:#414737!important;
  color:#d1d9c0!important;
}

.detail-copy>.button {
  width:100%;
}

.fine-print {
  font-size:11px;
  line-height:1.7;
  margin-top:15px;
}

.fine-print a {
  text-decoration:underline;
  text-underline-offset:3px;
}

.purchase-notes {
  list-style:none;
  padding:22px 0 0;
  margin:23px 0;
  border-top:1px solid var(--line);
  font-size:12px;
  line-height:2;
  color:#c5c8bd;
}

.purchase-notes li:before {
  content:'↗';
  color:var(--accent);
  margin-right:10px;
}

.detail-page {
  max-width:1200px;
  margin:40px auto 60px;
  padding:0 4vw;
}

.detail-page .art-detail {
  padding:40px 0;
}

.back-link {
  font-size:12px;
  color:var(--muted);
}

.narrow-page {
  width:min(500px,90vw);
  margin:80px auto 100px;
  min-height:45vh;
}

.narrow-page h1,.admin-page h1 {
  font-size:52px;
}

.narrow-page>p:not(.eyebrow) {
  color:var(--muted);
}

.narrow-page>.button {
  width:100%;
  margin-top:15px;
}

.stack {
  display:flex;
  flex-direction:column;
  gap:20px;
  margin:28px 0;
}

.stack>.button {
  width:100%;
}

label {
  display:flex;
  flex-direction:column;
  gap:9px;
  font-size:12px;
  color:#d2d5ca;
}

input,textarea {
  display:block;
  width:100%;
  min-width:0;
  background:#ffffff06;
  border:1px solid #ffffff28;
  color:var(--ink);
  padding:13px 14px;
  border-radius:0;
}

textarea {
  resize:vertical;
}

input::placeholder,textarea::placeholder {
  color:#81867a;
}

label>span {
  font-size:11px;
  color:var(--muted);
  line-height:1.5;
}

.checkbox {
  flex-direction:row;
  align-items:center;
}

.checkbox input {
  width:16px;
  height:16px;
  accent-color:var(--accent);
}

.generated-code {
  font-family:monospace;
  font-size:17px;
  color:var(--accent);
}

.success {
  color:var(--accent)!important;
}

.notices {
  margin:15px 4vw;
}

.notice {
  padding:12px 18px;
  border:1px solid #d6ed8355;
  font-size:12px;
  background:#d6ed8310;
}

.notice.error {
  border-color:#f5a890;
  color:#f5a890;
}

.admin-page {
  max-width:1120px;
  padding:0 4vw;
  margin:55px auto 90px;
}

.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:25px;
  margin-bottom:25px;
}

.section-heading h1,.section-heading h2,.section-heading p {
  margin-bottom:0;
}

.section-heading .eyebrow {
  margin-bottom:10px;
}

.admin-panel {
  padding:30px;
  background:var(--panel);
  border:1px solid var(--line);
  margin-bottom:35px;
}

.admin-panel>p,.admin-panel .section-heading p {
  color:var(--muted);
  font-size:12px;
  max-width:600px;
}

.upload-form {
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:22px;
  margin-top:30px;
}

.full-width,.file-input {
  grid-column:1/-1;
}

.file-input input {
  border:1px dashed #d6ed8355;
  padding:30px 20px;
  background:#d6ed8305;
}

.file-input input::file-selector-button {
  background:var(--accent);
  color:var(--bg);
  border:0;
  padding:9px 15px;
  margin-right:15px;
  font:inherit;
}

.code-row {
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-top:1px solid var(--line);
  padding:14px 0;
  font-size:12px;
}

.code-row small,.admin-work small {
  display:block;
  color:var(--muted);
  font-size:11px;
  margin-top:8px;
}

.admin-work {
  border-top:1px solid var(--line);
}

.admin-work:last-child {
  border-bottom:1px solid var(--line);
}

.admin-work summary {
  display:flex;
  align-items:center;
  gap:20px;
  cursor:pointer;
  list-style:none;
  padding:18px 0;
}

.admin-work summary::-webkit-details-marker {
  display:none;
}

.admin-work summary img {
  width:55px;
  height:70px;
  object-fit:contain;
  background:var(--paper);
}

.admin-work summary>span:last-child {
  margin-left:auto;
  font-size:11px;
  color:var(--muted);
  white-space:nowrap;
}

.admin-work form {
  padding:0 0 20px 75px;
}

.legal-page {
  max-width:760px;
  padding:0 5vw;
  margin:65px auto 90px;
}

.legal-page h1 {
  font-size:45px;
}

.legal-page h2 {
  font-size:21px;
  margin-top:35px;
}

.legal-page p,.legal-page li {
  font-size:14px;
  line-height:1.8;
  color:#bfc3b7;
}

.legal-page a {
  text-decoration:underline;
}

.draft-banner {
  padding:18px;
  border:1px solid #d6ed8355;
  background:#d6ed8308;
  color:var(--accent)!important;
  font-size:12px!important;
}

.legal-page ul {
  padding-left:20px;
}

@media(min-width:1700px) {
  .is-grid {
    grid-template-columns:repeat(6,minmax(0,1fr));
  }
}

@media(max-width:900px) {
  .header-note {
    margin-right:3vw;
  }
  .is-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:30px 22px;
  }
  .art-detail {
    gap:30px;
    padding:40px 30px;
  }
  .gallery-bottom>.micro {
    display:none;
  }
  .is-globe .art-card {
    width:90px;
  }
  .intro-aside {
    font-size:11px;
  }
  .art-gallery.is-globe {
    height:550px;
  }
  .detail-copy h1,.detail-copy h2 {
    font-size:36px;
  }
  .purchase-price span {
    display:block;
    margin:8px 0 0;
  }
}

@media(max-width:600px) {
  .site-header {
    height:80px;
    margin:0 6vw;
    gap:10px;
  }
  .brand {
    font-size:19px;
    gap:8px;
  }
  .brand-star {
    width:25px;
    height:25px;
  }
  .brand sup {
    font-size:9px;
    margin-left:-3px;
  }
  .header-note {
    display:none;
  }
  .site-header nav {
    font-size:10px;
  }
  .site-header nav span {
    margin-left:3px;
  }
  .gallery-intro {
    margin:27px 6vw 24px;
  }
  .gallery-intro .eyebrow {
    font-size:8px;
    letter-spacing:1px;
    margin-bottom:16px;
  }
  .gallery-intro h1 {
    font-size:30px;
    letter-spacing:-1px;
  }
  .gallery-intro em {
    letter-spacing:-1px;
  }
  .intro-aside {
    display:none;
  }
  .gallery-toolbar {
    margin:0 6vw;
  }
  .gallery-toolbar>.micro {
    font-size:8px;
    max-width:70px;
    line-height:1.5;
  }
  .view-switch button {
    font-size:10px;
    padding:7px 10px;
  }
  .art-gallery.is-globe {
    height:470px;
    max-height:65svh;
    min-height:380px;
  }
  .is-globe .art-card {
    width:68px;
  }
  .gallery-bottom {
    margin:0 6vw 18px;
    gap:10px;
  }
  .interaction-hint {
    font-size:10px;
  }
  .interaction-hint>span {
    margin-right:4px;
  }
  .gallery-bottom button {
    font-size:10px;
  }
  .collection-note {
    font-size:8px;
    margin-bottom:22px;
  }
  .site-footer {
    margin:0 6vw;
    font-size:9px;
    min-height:70px;
  }
  .site-footer nav {
    gap:16px;
  }
  .footer-mark {
    font-size:21px;
  }
  .is-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:30px 18px;
    padding:30px 6vw;
  }
  .is-grid .art-card:nth-child(3n+2) {
    margin-top:0;
  }
  .is-grid .art-card:nth-child(even) {
    margin-top:28px;
  }
  .card-caption {
    font-size:10px;
    gap:8px;
    flex-direction:column;
    margin-top:9px;
  }
  .is-globe .card-caption {
    flex-direction:row;
  }
  .art-detail {
    grid-template-columns:1fr;
    gap:28px;
    padding:45px 24px 30px;
  }
  .detail-paper {
    max-width:270px;
    width:100%;
    margin:auto;
  }
  .detail-paper img {
    max-height:37dvh;
  }
  .detail-copy h1,.detail-copy h2 {
    font-size:35px;
    max-width:none;
  }
  .detail-copy .eyebrow {
    margin-bottom:12px;
  }
  .purchase-price {
    margin-top:22px;
  }
  .purchase-price span {
    display:inline-block;
    margin-left:8px;
  }
  .art-description {
    font-size:13px;
  }
  .detail-page {
    padding:0 6vw;
  }
  .detail-page .detail-paper {
    max-width:330px;
  }
  .detail-page .detail-paper img {
    max-height:none;
  }
  .narrow-page {
    margin-top:55px;
    padding:0 3vw;
  }
  .narrow-page h1,.admin-page h1 {
    font-size:43px;
  }
  .admin-page {
    padding:0 6vw;
  }
  .admin-panel {
    padding:20px;
  }
  .upload-form {
    grid-template-columns:1fr;
  }
  .section-heading {
    align-items:flex-start;
  }
  .admin-panel .section-heading {
    flex-direction:column;
  }
  .admin-work form {
    padding-left:0;
  }
  .admin-work summary {
    gap:12px;
  }
  .admin-work summary>span:nth-child(2) {
    font-size:12px;
  }
  .admin-work small {
    line-height:1.5;
  }
  .admin-work summary>span:last-child {
    font-size:10px;
  }
  .legal-page {
    padding:0 7vw;
  }
  .legal-page h1 {
    font-size:38px;
  }
}

.drawing-comparison {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));
  gap:24px;
  margin:24px 0;
}
.drawing-comparison figure { margin:0; min-width:0; }
.drawing-comparison figcaption { margin-bottom:12px; }
.drawing-comparison img { width:100%; height:440px; object-fit:contain; background:white; }
.upload-form fieldset { border:1px solid var(--line); padding:16px; }
.cleanup-panel { margin-top:30px; }
.cleanup-panel h2 { font-size:25px; }
.cleanup-tools { display:flex; align-items:end; gap:20px; margin:24px 0 16px; }
.cleanup-tools label { flex:1; max-width:360px; }
.cleanup-tools input { padding:0; accent-color:var(--accent); }
.cleanup-canvas-wrap { overflow:auto; max-height:650px; background:var(--paper); margin-bottom:18px; }
#cleanup-canvas { display:block; width:100%; height:auto; cursor:crosshair; touch-action:none; }
#cleanup-form .button { margin-top:4px; }

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