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

:root {
  --bg: #0a0812;
  --surface: #14111f;
  --surface-2: #1c1830;
  --line: rgba(232, 185, 92, 0.14);
  --gold: #e8b95c;
  --gold-soft: rgba(232, 185, 92, 0.55);
  --text: #f4f0e8;
  --text-dim: #9a91ab;
  --mythic: #ff5c5c;
  --divine: #cfa8ff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(232, 185, 92, 0.08), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 20%, rgba(120, 80, 200, 0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: 'Fraunces', serif; font-weight: 600; margin: 0; }

.mono {
  font-family: 'JetBrains Mono', monospace;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---------- Nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
}
.nav-mark { color: var(--gold); font-size: 18px; }
.nav-links { display: flex; gap: 22px; font-size: 14px; }
.nav-links a { color: var(--text-dim); }
.nav-links a:hover { color: var(--gold); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 56px;
  text-align: center;
}
.hero-mark {
  width: 56px; height: 56px;
  margin: 0 auto 28px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 30px rgba(232, 185, 92, 0.25);
}
.hero-mark span { transform: rotate(-45deg); color: var(--gold); font-size: 20px; }
.hero h1 { font-size: 46px; letter-spacing: -0.01em; }
.hero p.tagline {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-dim);
  letter-spacing: 2px;
  font-size: 12px;
  text-transform: uppercase;
  margin-top: 14px;
}
.hero p.lede {
  max-width: 560px;
  margin: 24px auto 0;
  color: var(--text-dim);
  font-size: 16px;
}

/* ---------- Buttons ---------- */
.actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}
.btn {
  padding: 13px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, #f5d98b, #c9962f);
  color: #1a1206;
}
.btn-ghost {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
}

/* ---------- Sections ---------- */
.section { padding: 48px 0; border-top: 1px solid var(--line); }
.section h2 { font-size: 26px; margin-bottom: 16px; }
.section p { color: var(--text-dim); font-size: 15.5px; max-width: 640px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.card h3 { font-size: 16px; margin-bottom: 8px; }
.card p { font-size: 14px; margin: 0; color: var(--text-dim); }

/* ---------- Provenance list ---------- */
.artifact {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.artifact:first-of-type { border-top: none; }
.artifact img {
  width: 96px; height: 96px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.artifact-name { font-size: 19px; margin-bottom: 4px; }
.artifact-tags {
  display: flex; gap: 8px; margin: 8px 0 12px; flex-wrap: wrap;
}
.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-dim);
}
.artifact-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--text-dim);
  margin-top: 10px;
}
.artifact-meta b { color: var(--text); font-weight: 500; }
.artifact-links { margin-top: 12px; display: flex; gap: 16px; font-size: 13px; }
@media (max-width: 520px) {
  .artifact { grid-template-columns: 64px 1fr; }
  .artifact img { width: 64px; height: 64px; }
  .artifact-meta { grid-template-columns: 1fr; }
}

/* ---------- Verify box ---------- */
.verify-box {
  background: var(--surface);
  border: 1px solid var(--gold-soft);
  border-radius: 14px;
  padding: 24px 26px;
  margin-top: 8px;
}
.verify-box .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  flex-wrap: wrap;
}
.verify-box .row:first-child { border-top: none; padding-top: 0; }
.verify-box .row span:first-child { color: var(--text-dim); }
.verify-box .row span:last-child { font-family: 'JetBrains Mono', monospace; word-break: break-all; text-align: right; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  color: var(--text-dim);
  font-size: 13px;
  text-align: center;
}
footer a { color: var(--text-dim); }
footer a:hover { color: var(--gold); }