/* SECTION: Global design tokens, resets, and shared layout */
:root {
  --ink:#fff4c4;
  --muted:#b8c9c0;
  --line:#365344;
  --soft:#0b1712;
  --blue:#00b4d8;
  --navy:#040907;
  --gold:#f4c07b;
  --surface:#0f2118;
  --surface-strong:#132b20;
  --danger:#e87955;
  --shadow:0 18px 60px #00000066;
  --editorial-width:320px;
  --catalog-gap:28px;
}

/* SECTION: Hosted-payment return pages and provider choices */
.payment-actions { display: grid; gap: .55rem; }
.checkout-result { width: min(680px, calc(100% - 2rem)); margin: 12vh auto; padding: clamp(1.5rem, 5vw, 4rem); background: var(--panel, #101713); border: 1px solid var(--line, #31443a); border-radius: 1rem; }
.checkout-result h1 { margin-top: .4rem; }
.checkout-result .buy-button { display: inline-block; text-decoration: none; }
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--navy);
  font: 16px/1.5 Georgia, serif;
}
a {
  text-decoration: none;
  color: inherit;
}
button,
input,
select {
  font: inherit;
}
.shell {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
/* SECTION: Storefront header, search, and genre navigation */
.site-header {
  background: #07110d;
}
.header-main {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 800;
}
.brand b {
  color: var(--gold);
}
.brand-logo {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
  mix-blend-mode: screen;
}
.search {
  flex: 1;
}
.search input {
  width: 100%;
  max-width: 580px;
  border: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 13px 16px;
  border-radius: 11px;
}
.buy-button {
  background: var(--blue);
  color: var(--navy);
  padding: 11px 15px;
  border-radius: 9px;
  font-weight: 800;
}
.category-nav {
  display: flex;
  gap: 24px;
  overflow: auto;
  background: var(--surface);
  border-block: 1px solid var(--line);
  padding: 14px max(20px, calc((100vw - 1180px)/2));
  font-weight: 700;
}
.category-nav button,
.category-nav a {
  border: 0;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  color: var(--muted);
}
.category-nav button.active,
.category-nav a:hover,
.category-nav a:focus-visible {
  color: var(--blue);
}
/* SECTION: Storefront hero presentation */
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: stretch;
  gap: 28px;
  margin-top: 24px;
}
.hero {
  width: 100%;
  height: 420px;
  aspect-ratio: 16 / 9;
  margin-top: 0;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  color: var(--ink);
}
.hero-layout .article-section {
  position: static;
  top: auto;
  width: 100%;
  height: 420px;
  max-height: 420px;
  margin: 0;
  overflow-y: auto;
}
.hero > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      #040907f2,
      #0b241a99 42%,
      transparent 75%);
}
.hero-copy {
  position: absolute;
  left: 54px;
  top: 50%;
  transform: translateY(-50%);
}
.hero-copy > span,
.section-heading span,
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--gold);
}
.hero-copy h1 {
  font-size: 64px;
  line-height: .98;
  letter-spacing: -.06em;
  margin: 10px 0 18px;
}
.hero-copy p {
  max-width: 390px;
  color: #d8e6de;
}
/* SECTION: Artwork catalog cards, previews, watermarks, and checkout */
.gallery-section {
  padding: 38px 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 18px;
}
.section-heading span,
.eyebrow {
  color: var(--blue);
}
.section-heading h2 {
  font-size: 31px;
  margin: 4px 0 0;
}
.section-heading p {
  color: var(--muted);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.catalog-skeleton,
.article-skeleton {
  min-height: 342px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(110deg, var(--surface) 30%, var(--surface-strong) 45%, var(--surface) 60%);
  background-size: 200% 100%;
  animation: catalog-pulse 1.4s ease-in-out infinite;
}
.article-skeleton {
  min-height: 180px;
}
@keyframes catalog-pulse {
  to { background-position-x: -200%; }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-skeleton,
  .article-skeleton { animation: none; }
}
.art-card {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 10px;
  background: var(--surface);
}
.art-preview {
  height: 250px;
  width: 100%;
  margin: auto;
  border-radius: 10px;
  background: var(--soft);
  overflow: hidden;
  position: relative;
  user-select: none;
  contain: layout paint;
}
button.art-preview {
  display: block;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  color: inherit;
}
.art-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}
.watermark {
  position: absolute;
  inset: -45%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  transform: rotate(-27deg);
  pointer-events: none;
}
.watermark span {
  color: #ffffffe0;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .1em;
  text-shadow: 0 1px 5px #000;
  white-space: nowrap;
}
.card-info {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 13px 4px;
}
.card-info p {
  font-size: 12px;
  color: var(--blue);
  font-weight: 800;
  margin: 0;
}
.card-info h3 {
  font-size: 18px;
  margin: 2px 0;
}
.card-info span {
  font-size: 13px;
  color: var(--muted);
}
.card-info > strong {
  font-size: 20px;
}
.buy-button {
  display: block;
  text-align: center;
  border: 0;
  width: 100%;
  cursor: pointer;
}
.trust-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 32px;
}
.trust-strip > div {
  display: flex;
  gap: 11px;
  padding: 21px;
  border-right: 1px solid var(--line);
}
.trust-strip > div:last-child {
  border-right: 0;
}
.trust-strip b {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  background: #133529;
  color: var(--gold);
  border-radius: 9px;
}
.trust-strip span {
  font-size: 13px;
  color: var(--muted);
}
.trust-strip strong {
  display: block;
  color: var(--ink);
}
.trust-strip .stripe-logo {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 9px 3px;
  border-radius: 5px;
  background: #635bff;
  color: #fff;
  font: 800 15px/1.2 Arial, sans-serif;
  letter-spacing: -.04em;
  text-transform: lowercase;
}
.trust-strip .verification-button {
  display: inline-block;
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 7px;
  background: var(--blue);
  color: var(--navy);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}
.trust-strip .verification-button:hover,
.trust-strip .verification-button:focus-visible {
  background: var(--gold);
}
.trust-strip .verification-button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}
footer {
  background: var(--navy);
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding: 38px 0;
}
.footer-grid {
  grid-template-columns: minmax(240px,1.3fr) minmax(110px,.55fr) minmax(210px,.85fr) minmax(300px,1.2fr);
  align-items: start;
  gap: clamp(24px,3vw,48px);
}
footer p {
  color: var(--muted);
}
.footer-brand {
  color: var(--ink);
}
.empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px;
  background: var(--soft);
  border-radius: 15px;
}
/* SECTION: Discreet page-end owner-access logo */
.owner-access-row {
  display: flex;
  justify-content: flex-end;
  padding: 18px;
  background: var(--navy);
}
.owner-access {
  display: block;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: transparent;
  opacity: 0.42;
  transition: opacity 160ms ease, transform 160ms ease;
}
.owner-access:hover,
.owner-access:focus-visible {
  opacity: 1;
  transform: translateY(-2px);
}
.owner-access:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.owner-access img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
  pointer-events: none;
}
/* SECTION: Storefront customer contact form */
.footer-message-panel { min-width: min(100%,320px); }
.footer-message-panel h3 { margin-top: 0; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-form label { display: grid; gap: 5px; font-size: 12px; font-style: normal; }
.contact-form label:nth-of-type(3),
.contact-form label:nth-of-type(4),
.contact-form button,
.contact-message { grid-column: 1 / -1; }
.contact-form input,
.contact-form textarea { width: 100%; box-sizing: border-box; padding: 10px 11px; border: 1px solid rgba(255,255,255,.24); border-radius: 7px; background: rgba(255,255,255,.08); color: inherit; font: inherit; }
.contact-form textarea { resize: vertical; }
.contact-form button { width: fit-content; border: 0; border-radius: 8px; padding: 10px 15px; background: var(--blue); color: var(--navy); font-weight: 800; cursor: pointer; }
.contact-message { min-height: 1.2em; margin: 0; font-size: 12px; }
.contact-message.success { color: #5ed6ae; }
.contact-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
/* SECTION: Administrator authentication and management surfaces */
.admin-page {
  background: var(--navy);
  min-height: 100vh;
}
.admin-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
  padding-bottom: 50px;
}
.admin-top {
  height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-top > a:last-child {
  font-weight: 700;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 18px;
}
.panel > p {
  color: var(--muted);
}
.dashboard-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 15px 0 22px;
}
.dashboard-heading h1 {
  font-size: 38px;
  margin: 4px 0 0;
}
.catalog-form-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.catalog-form-heading h2 {
  margin-block: 8px;
}
.admin-actions {
  display: flex;
  gap: 8px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  background: var(--soft);
  padding: 18px;
  border-radius: 12px;
}
.form-grid.single {
  grid-template-columns: 1fr;
  max-width: 520px;
}
.form-grid label {
  font-size: 13px;
  font-weight: 700;
}
.form-grid input,
.form-grid select {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--ink);
  border-radius: 8px;
  padding: 10px;
  margin-top: 6px;
}
.form-grid .wide {
  grid-column: span 2;
}
.form-grid button,
.secondary {
  border: 0;
  background: var(--blue);
  color: var(--navy);
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  align-self: end;
}
.secondary {
  background: var(--surface-strong);
  color: var(--ink);
  border: 1px solid var(--line);
}
.message {
  grid-column: 1/-1;
  margin: 0;
  color: var(--danger);
}
.field-status {
  display: block;
  margin-top: 5px;
  color: var(--danger);
  overflow-wrap: anywhere;
}
.field-status.valid {
  color: #70d6ff;
}
.admin-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.admin-item:first-child {
  border-top: 0;
}
.admin-thumb {
  width: 100px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--soft);
}
.admin-item small {
  display: block;
  color: var(--muted);
}
.item-actions {
  display: flex;
  gap: 8px;
}
.item-actions button {
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--ink);
  border-radius: 7px;
  padding: 8px 11px;
  cursor: pointer;
}
.form-grid input::placeholder,
.form-grid textarea::placeholder,
.search input::placeholder {
  color: #89a096;
}
.item-actions .archive {
  color: var(--danger);
}
.item-actions .delete {
  border-color: #8d3f35;
  background: #3b1916;
  color: #ffb6aa;
}
.item-actions .delete:hover,
.item-actions .delete:focus-visible {
  background: #5a211c;
  color: #fff;
}
dialog {
  border: 0;
  border-radius: 16px;
  box-shadow: var(--shadow);
  width: min(560px, calc(100% - 30px));
  color: var(--ink);
  background: var(--surface);
}
dialog::backdrop {
  background: #040907cc;
}
/* SECTION: Large protected artwork preview dialog */
.image-preview-dialog {
  width: min(1000px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 18px;
  overflow: auto;
}
.preview-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  margin-bottom: 14px;
}
.preview-dialog-header span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
}
.preview-dialog-header h2 {
  margin: 4px 0 0;
}
.preview-dialog-header button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 28px;
  cursor: pointer;
}
.large-art-preview {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  max-height: 72vh;
  overflow: hidden;
  border-radius: 12px;
  background: var(--navy);
  user-select: none;
}
.large-preview-frame {
  position: relative;
  display: grid;
  place-items: stretch;
  overflow: hidden;
  background: var(--navy);
}
.large-preview-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  -webkit-user-drag: none;
}
.large-watermark {
  inset: -20%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  transform: rotate(-28deg);
  overflow: hidden;
}
.large-watermark span {
  display: block;
  width: 145%;
  margin-left: -22.5%;
  text-align: center;
  font-size: clamp(12px, 1.6vw, 19px);
  line-height: 1.15;
  opacity: .84;
}
.large-watermark[hidden] {
  display: none;
}
#preview-dialog-serial {
  margin: 12px 0 0;
  color: var(--muted);
}
/* SECTION: Responsive tablet and mobile layouts */
@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }
  .hero-layout .article-section {
    height: min(440px,65vh);
    max-height: min(440px,65vh);
  }
}
@media (max-width: 1050px) and (min-width: 621px) {
  .footer-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media (max-width:650px) {
  .contact-form { grid-template-columns: 1fr; }
  .contact-form label { grid-column: 1 !important; }
}
@media (max-width: 620px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .shell {
    width: calc(100% - 24px);
  }
  .header-main {
    flex-wrap: wrap;
    padding: 14px 0;
    gap: 12px;
  }
  .search {
    order: 3;
    flex-basis: 100%;
  }
  .hero {
    height: 470px;
  }
  .hero-copy {
    left: 24px;
    right: 20px;
    top: auto;
    bottom: 30px;
    transform: none;
  }
  .hero-copy h1 {
    font-size: 48px;
  }
  .hero-shade {
    background:
      linear-gradient(
        0deg,
        #0c0f2af2,
        transparent);
  }
  .product-grid,
  .trust-strip,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .wide {
    grid-column: auto;
  }
  .admin-item {
    grid-template-columns: 80px 1fr;
  }
  .admin-thumb {
    width: 80px;
  }
  .item-actions {
    grid-column: 2;
  }
  .dashboard-heading {
    display: block;
  }
  .admin-actions {
    margin-top: 12px;
  }
  .section-heading {
    display: block;
  }
}
