/* The Velum gallery on the web: Studio's own look, from Studio Dark's tokens
   (Studio Light's when the system is light). No scripts, no fonts or
   pictures from anywhere else. */

:root {
  --window: #0C0D0F;
  --surface: #121316;
  --raised: #1A1B1F;
  --sunken: #0A0A0C;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.13);
  --text: #EDEDF0;
  --text-2: #A0A0A8;
  --text-3: #8A8A93;
  --accent: #0A84FF;
  --accent-hover: #2E95FF;
  --accent-text: #FFFFFF;
  --focus: rgba(10, 132, 255, 0.6);
  --radius: 10px;
  --radius-card: 16px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --window: #E8E8EB;
    --surface: #F3F3F5;
    --raised: #FFFFFF;
    --sunken: #E0E0E4;
    --border: rgba(0, 0, 0, 0.09);
    --border-strong: rgba(0, 0, 0, 0.17);
    --text: #1D1D1F;
    --text-2: #5C5C64;
    --text-3: #6E6E76;
    --accent: #007AFF;
    --accent-hover: #1A88FF;
    --accent-text: #FFFFFF;
    --focus: rgba(0, 122, 255, 0.6);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08);
    color-scheme: light;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--window);
  color: var(--text);
  font: 15px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, .card:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--radius); }
img { display: block; max-width: 100%; height: auto; }
.icon, .check { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.18em; }
.check { color: var(--accent); margin-right: 6px; }

.bar {
  position: sticky; top: 0; z-index: 2;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 12px max(16px, calc((100vw - 1200px) / 2));
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.brand span { color: var(--text-2); font-weight: 400; }
.brand:hover { text-decoration: none; }

.page { max-width: 1200px; margin: 0 auto; padding: 32px 16px 48px; }
@media (min-width: 720px) { .page { padding: 40px 32px 64px; } }

section { margin-bottom: 44px; }
h1 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 650; }
h2 { font-size: 20px; letter-spacing: -0.01em; font-weight: 620; margin-bottom: 4px; }
h3 { font-size: 17px; font-weight: 620; }
.muted { color: var(--text-2); }
.caption { color: var(--text-3); font-size: 13px; }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 620; margin-bottom: 8px; }
.lede { color: var(--text-2); font-size: 18px; margin-top: 12px; }

.button {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--raised); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 9px 18px; font-weight: 560; white-space: nowrap;
}
.button:hover { text-decoration: none; border-color: var(--text-3); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.actions { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }

.hero {
  display: grid; gap: 32px; align-items: center;
  background: linear-gradient(135deg, var(--raised), var(--sunken));
  border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 24px;
}
@media (min-width: 900px) { .hero { grid-template-columns: 1fr 1.25fr; padding: 40px; } }
.hero-art img, .detail-art img { border-radius: var(--radius); border: 1px solid var(--border-strong); box-shadow: var(--shadow); }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: 16px; }
.card {
  display: block; color: inherit;
  background: var(--raised); border: 1px solid var(--border); border-radius: var(--radius-card);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--border-strong); }
.card .art { position: relative; aspect-ratio: 16 / 10; background: var(--sunken); border-bottom: 1px solid var(--border); }
.card .art img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.pill {
  position: absolute; top: 12px; right: 12px;
  background: color-mix(in srgb, var(--surface) 94%, transparent); color: var(--text);
  border: 1px solid var(--border); border-radius: 99px; padding: 2px 10px; font-size: 12px; font-weight: 600;
}
.card .words { padding: 14px 16px 16px; }
.card .by { color: var(--text-2); font-size: 13px; margin: 2px 0 6px; display: flex; align-items: center; }
.card .sum { color: var(--text-2); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.empty p { color: var(--text-2); border: 1px dashed var(--border-strong); border-radius: var(--radius-card); padding: 18px 20px; }

.submit {
  display: grid; gap: 16px; align-items: center; grid-template-columns: auto 1fr;
  background: var(--raised); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 22px 24px;
}
.submit > .icon { width: 28px; height: 28px; color: var(--accent); align-self: start; }
.submit .button { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 720px) { .submit { grid-template-columns: auto 1fr auto; } .submit .button { grid-column: auto; } }

.back { margin-bottom: 20px; }
.back a { color: var(--text-2); display: inline-flex; gap: 6px; align-items: center; }
.detail { display: grid; gap: 32px; }
@media (min-width: 960px) { .detail { grid-template-columns: 1.35fr 1fr; align-items: start; } }
.detail .by { color: var(--text-2); margin-top: 8px; display: flex; align-items: center; }
.detail .caption { margin-top: 8px; }
.detail .credit { color: var(--text-2); font-size: 14px; margin-top: 4px; }

/* A third-party creator above their item, as Studio's gallery draws them:
   a wide banner (a quarter as tall as it's wide, 120 to 300 px) and a
   rounded-square logo beside their name. */
.creator { margin-bottom: 28px; }
.creator-banner { aspect-ratio: 4 / 1; min-height: 120px; max-height: 300px; overflow: hidden; border-radius: calc(var(--radius) + 4px); background: var(--sunken); border: 1px solid var(--border); }
.creator-banner img { width: 100%; height: 100%; object-fit: cover; }
.creator-head { display: flex; gap: 18px; align-items: center; margin-top: 20px; padding-left: 4px; }
.creator-logo { flex: none; width: 96px; height: 96px; border-radius: 22%; object-fit: cover; border: 1px solid var(--border-strong); background: var(--raised); }
.creator-logo.initials { display: grid; place-items: center; font-size: 34px; font-weight: 600; color: var(--text-2); }
.creator-name { font-size: 22px; font-weight: 600; }
.creator .by { color: var(--text-2); margin-top: 2px; display: flex; align-items: center; flex-wrap: wrap; }
.creator .by .sep { margin: 0 6px; }
.creator-about { color: var(--text-2); max-width: 760px; margin-top: 6px; }
@media (max-width: 600px) { .creator-logo { width: 64px; height: 64px; } .creator-name { font-size: 18px; } }
.signed { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px !important; }
.signed .icon { margin-top: 2px; }

.shots { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-top: 12px; }
.shots img { border-radius: var(--radius); border: 1px solid var(--border-strong); }
.shots figcaption { color: var(--text-3); font-size: 13px; margin-top: 6px; }

.columns { display: grid; gap: 32px; }
@media (min-width: 960px) { .columns { grid-template-columns: 3fr 2fr; } }
.columns p + p { margin-top: 10px; }
.columns h2 { margin-bottom: 12px; }
.panel { background: var(--raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.perm { display: flex; gap: 12px; }
.perm .icon { color: var(--accent); width: 22px; height: 22px; }
.ver + .ver { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 12px; }
.ver p:first-child { display: flex; justify-content: space-between; gap: 12px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; }
.facts dt { color: var(--text-3); font-size: 13px; padding-top: 2px; }
.facts dd { overflow-wrap: anywhere; }

.prose { max-width: 820px; }
.prose h1 { margin-bottom: 12px; }
.prose h2 { margin: 36px 0 10px; }
.prose p, .prose li { color: var(--text-2); }
.prose p + p { margin-top: 10px; }
.prose ol, .prose ul { padding-left: 22px; margin-top: 8px; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--text); }
.prose code { font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--sunken); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; color: var(--text); }
.prose pre { background: var(--sunken); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; overflow-x: auto; margin-top: 10px; }
.prose pre code { border: 0; padding: 0; background: none; }
.prose table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; }
.prose td { color: var(--text-2); }
.note { background: var(--raised); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 14px 16px; margin-top: 16px; }

.foot { max-width: 1200px; margin: 0 auto; padding: 24px 16px 40px; color: var(--text-3); font-size: 13px; border-top: 1px solid var(--border); }

@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }
