:root {
  --bg: #000;
  --panel: #0b0b0d;
  --border: rgba(255, 255, 255, 0.1);
  --text: #f3f3ef;
  --muted: rgba(243, 243, 239, 0.62);
  --muted-2: rgba(243, 243, 239, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

img {
  display: block;
  max-width: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

button,
input {
  font: inherit;
}

.mono-label,
.field-label,
.showcase-card-kicker {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
}

.age-gate.is-hidden {
  display: none;
}

.age-gate-panel {
  width: min(560px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: #050505;
  text-align: center;
}

.age-gate-copy {
  margin: 16px auto 0;
  max-width: 48ch;
  color: rgba(243, 243, 239, 0.66);
  line-height: 1.65;
}

.age-gate-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.age-gate-button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  cursor: pointer;
}

.age-gate-enter {
  background: #fff;
  color: #000;
}

.age-gate-leave {
  background: transparent;
  color: var(--text);
}

.showcase-page {
  width: min(1440px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.showcase-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 38px;
}

.site-logo {
  width: 60px;
  height: auto;
  object-fit: contain;
}

.back-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.back-link:hover {
  color: var(--text);
}

.hero-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.showcase-copy {
  padding: 64px 0 12px;
}

.mono-label {
  margin: 0 0 10px;
  font-size: 11px;
  color: var(--muted);
}

.showcase-copy h1,
.lightbox-title {
  margin: 0;
  letter-spacing: -0.04em;
}

.showcase-copy h1 {
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.94;
  max-width: 9ch;
}

.showcase-summary {
  margin: 22px 0 0;
  max-width: 58ch;
  color: rgba(243, 243, 239, 0.72);
  line-height: 1.65;
  font-size: 1.05rem;
}

.showcase-meta {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.showcase-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 18px 0 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 10px;
  color: var(--muted-2);
}

.field-input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  outline: none;
}

.field-input:focus {
  border-color: rgba(255, 255, 255, 0.3);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.category-tab {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.category-tab.is-active {
  background: #fff;
  color: #000;
  border-color: transparent;
}

.showcase-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.showcase-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.showcase-card-media {
  aspect-ratio: 0.78;
  background: rgba(255, 255, 255, 0.03);
}

.showcase-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.showcase-card-media img.is-loaded {
  opacity: 1;
}

.showcase-card-body {
  padding: 16px;
}

.showcase-card-kicker {
  margin: 0;
  color: var(--muted-2);
  font-size: 10px;
}

.showcase-card h2 {
  margin: 12px 0 0;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.showcase-card-caption,
.showcase-card-date {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.showcase-card-date {
  color: var(--muted-2);
}

.scroll-sentinel {
  height: 1px;
}

.lightbox {
  width: min(1180px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  border: none;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.88);
}

.lightbox-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.lightbox-media,
.lightbox-details {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #050505;
}

.lightbox-media {
  overflow: hidden;
}

.lightbox-media img {
  width: 100%;
  height: auto;
}

.lightbox-details {
  padding: 22px;
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 24px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  cursor: pointer;
}

.lightbox-meta,
.lightbox-caption,
.lightbox-source {
  color: var(--muted);
}

.lightbox-caption {
  margin: 14px 0 0;
}

.lightbox-source {
  margin: 18px 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  word-break: break-word;
}

.prompt-block {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.prompt-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.prompt-block-header h3 {
  margin: 0;
  font-size: 0.95rem;
}

.prompt-block pre {
  margin: 14px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  font: inherit;
  color: var(--muted);
}

.copy-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.76);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1120px) {
  .showcase-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lightbox-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .showcase-page {
    width: min(100vw - 28px, 1440px);
  }

  .showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-topline {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }
}
