
:root {
  color-scheme: dark;
  --ink: #f8f3ea;
  --ink-muted: #c8bda8;
  --night: #0d0b0c;
  --surface: #171315;
  --surface-elevated: #211b1e;
  --gold: #d6b168;
  --gold-bright: #f0cf88;
  --gold-soft: rgba(214, 177, 104, 0.14);
  --line: rgba(248, 243, 234, 0.14);
  --line-strong: rgba(214, 177, 104, 0.38);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  scroll-behavior: smooth;
  font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at 80% 0%, rgba(214, 177, 104, 0.12), transparent 45%),
              radial-gradient(circle at 10% 35%, rgba(168, 88, 59, 0.08), transparent 40%),
              var(--night);
  color: var(--ink);
  line-height: 1.75;
  overflow-x: hidden;
}

.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(600px circle at 85% 12%, rgba(214, 177, 104, 0.08), transparent 70%);
  z-index: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(13, 11, 12, 0.84);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  width: min(1320px, 92vw);
  margin: 0 auto;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.05rem;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 14px var(--gold);
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar-links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.topbar-links a:hover {
  color: var(--gold-bright);
}

main {
  position: relative;
  z-index: 1;
  width: min(1320px, 92vw);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 72px) 0 clamp(64px, 8vw, 120px);
}

h1, h2, h3, p {
  margin: 0;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.intro {
  padding-bottom: clamp(44px, 7vw, 88px);
  border-bottom: 1px solid var(--line-strong);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 22px;
}

.intro h1 {
  font-family: "Amiri", Georgia, "Noto Naskh Arabic", serif;
  font-size: clamp(2.8rem, 6.5vw, 5.4rem);
  line-height: 1.08;
  color: var(--ink);
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.description {
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
  line-height: 1.9;
  color: var(--ink-muted);
  max-width: 64ch;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 6px;
}

.stat-card {
  background: linear-gradient(145deg, var(--surface-elevated), var(--surface));
  border: 1px solid var(--line);
  border-right: 3px solid var(--gold);
  border-radius: 14px;
  padding: 14px 16px;
  display: grid;
  gap: 4px;
}

.stat-card strong {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  color: var(--gold-bright);
  font-family: Georgia, serif;
}

.stat-card span {
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #15110c;
  box-shadow: 0 12px 28px rgba(214, 177, 104, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(214, 177, 104, 0.36);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-secondary:hover {
  border-color: var(--gold-bright);
  transform: translateY(-2px);
}

.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-links a {
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.social-links a:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.hero-visual {
  position: relative;
  display: grid;
  gap: 16px;
}

.hero-portrait-frame {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow);
  position: relative;
}

.hero-portrait-frame img {
  display: block;
  width: 100%;
  height: clamp(360px, 46vw, 520px);
  object-fit: cover;
  object-position: top center;
}

.hero-portrait-frame figcaption {
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(23, 19, 21, 0.92), #120f10);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
}

.hero-portrait-frame figcaption span {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.hero-secondary-frame {
  margin: 0;
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 14px;
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow);
}

.hero-secondary-frame img {
  width: 110px;
  height: 78px;
  object-fit: cover;
  border-radius: 10px;
}

.hero-secondary-frame figcaption {
  font-size: 0.9rem;
  color: var(--ink-muted);
  padding-left: 8px;
}

.hero-emblem {
  min-height: 380px;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background: radial-gradient(circle at 50% 35%, rgba(214, 177, 104, 0.2), rgba(23, 19, 21, 0.95) 70%);
  display: grid;
  place-items: center;
  padding: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.emblem-ring {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px dashed rgba(214, 177, 104, 0.35);
}

.emblem-inner {
  position: relative;
  display: grid;
  gap: 12px;
}

.emblem-kicker {
  color: var(--gold);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
}

.emblem-inner strong {
  font-family: Georgia, "Noto Naskh Arabic", serif;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  color: var(--ink);
}

.artist-statement, .collection, .images, .references-section, footer {
  margin-top: clamp(56px, 8vw, 104px);
}

.artist-statement {
  background: linear-gradient(145deg, var(--surface-elevated), var(--surface));
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: clamp(24px, 4.5vw, 48px);
  box-shadow: var(--shadow);
}

.statement-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 24px;
}

.statement-header h2, .section-head h2 {
  font-family: Georgia, "Noto Naskh Arabic", serif;
  font-size: clamp(1.75rem, 3.6vw, 2.8rem);
  line-height: 1.25;
  margin-top: 6px;
}

.statement-body {
  display: grid;
  gap: 18px;
}

.statement-body p {
  font-size: clamp(1.08rem, 1.7vw, 1.26rem);
  line-height: 1.95;
  color: var(--ink);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.section-count {
  background: var(--gold-soft);
  color: var(--gold-bright);
  border: 1px solid var(--line-strong);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.fact-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 20px;
}

.fact {
  background: linear-gradient(160deg, var(--surface-elevated), var(--surface));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  display: grid;
  align-content: start;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.fact:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}

.fact-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.fact-index {
  font-family: Georgia, serif;
  font-size: 0.88rem;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(214, 177, 104, 0.3);
  padding: 3px 10px;
  border-radius: 999px;
}

.price {
  color: var(--gold-bright);
  font-size: 0.84rem;
  font-weight: 700;
  background: rgba(214, 177, 104, 0.1);
  padding: 4px 12px;
  border-radius: 999px;
}

.fact h3 {
  font-size: clamp(1.2rem, 2vw, 1.48rem);
  line-height: 1.45;
  color: var(--ink);
}

.fact p:not(.price) {
  color: var(--ink-muted);
  font-size: 0.98rem;
  line-height: 1.85;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}

.gallery-item {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.gallery-img-wrap {
  overflow: hidden;
  background: #090808;
}

.gallery img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item figcaption {
  padding: 14px 18px;
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line);
}

.frame-no {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.gallery-item figcaption strong {
  font-size: 0.98rem;
  color: var(--ink);
}

.references-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(22px, 4vw, 36px);
}

footer {
  border-top: 1px solid var(--line-strong);
  padding-top: 32px;
  color: var(--ink-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-inner strong {
  color: var(--gold-bright);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 4px;
}

main[data-template="canvas"] {
  --ink: #241d16;
  --ink-muted: #5b4d3e;
  --night: #f5efe4;
  --surface: #efe6d5;
  --surface-elevated: #fbf7f0;
  --gold: #8c6a32;
  --gold-bright: #6e501f;
  --line: rgba(36, 29, 22, 0.14);
  --line-strong: rgba(140, 106, 50, 0.35);
  color: var(--ink);
  background: var(--night);
  padding-inline: 4vw;
  border-radius: 24px;
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

@media (max-width: 640px) {
  .topbar-links {
    gap: 12px;
    font-size: 0.84rem;
  }
  .gallery img {
    height: 300px;
  }
}
