@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=IBM+Plex+Mono:wght@400;500;600&family=Inter:wght@400;500;600&display=swap');

:root {
  --ink-900: #0E1B16;
  --ink-800: #15251E;
  --paper: #EFEAD6;
  --paper-line: #C9BFA0;
  --text-dark: #1B2A22;
  --text-muted: #5B6B60;
  --amber: #FFB000;
  --green: #2FBF71;
  --red: #E05A47;

  --font-display: 'Fraunces', Georgia, serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
  --font-body: 'Inter', -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text-dark);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.header {
  background: var(--ink-900);
  color: var(--paper);
  padding: 18px clamp(20px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.header__brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.header__mark {
  color: var(--green);
  font-size: 18px;
}

.header__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 22px);
  letter-spacing: 0.02em;
}

.header__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border: 1px solid rgba(239, 234, 214, 0.25);
  border-radius: 999px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  display: inline-block;
}

.dot.live {
  background: var(--green);
  animation: pulse 1.8s infinite;
}

.dot.stale { background: var(--red); }

@keyframes pulse {
  0%   { box-shadow:  0 0 0 0 rgba(47, 191, 113, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(47, 191, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 191, 113, 0); }
}

main { padding: clamp(24px, 5vw, 48px); max-width: 1080px; margin: 0 auto; }

.action-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #3A2A08, #2A1E08);
  border: 1px solid var(--amber);
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 28px;
  animation: banner-glow 2.4s ease-in-out infinite;
}

@keyframes banner-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 176, 0, 0.15); }
  50%      { box-shadow: 0 0 0 6px rgba(255, 176, 0, 0); }
}

.action-banner__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  color: var(--paper);
}

.action-banner__label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
}

.action-banner__button {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-900);
  background: var(--amber);
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
}

.action-banner__button:hover { background: #FFC733; }

.action-banner__button--secondary {
  background: transparent;
  border: 1px solid var(--amber);
  color: var(--amber);
  cursor: pointer;
}

.action-banner__button--secondary:hover { background: rgba(255, 176, 0, 0.12); }
.action-banner__button--secondary:disabled { opacity: 0.5; cursor: default; }

.gallery__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.nft-card {
  display: block;
  text-decoration: none;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nft-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.nft-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--ink-800);
  display: block;
}

.nft-card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: center;
  padding: 10px;
}

.nft-card__label {
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.nft-card__name {
  display: block;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nft-card__mint {
  display: block;
  color: var(--text-muted);
  font-size: 10.5px;
  margin-top: 2px;
}

.empty { text-align: center; color: var(--text-muted); padding: 32px 0; }

@media (prefers-reduced-motion: reduce) {
  .dot.live { animation: none; }
}
