:root {
  --bg: #0e0e10;
  --bg-elevated: #161619;
  --border: #26262b;
  --text: #f2f2f0;
  --text-muted: #9a9a9e;
  --accent: #e5e2dc;
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --font-serif: "Georgia", "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  position: sticky;
  top: 0;
  background: rgba(14, 14, 16, 0.92);
  backdrop-filter: blur(10px);
  z-index: 50;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  padding: 96px 0 72px;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.2;
  max-width: 780px;
  margin-bottom: 20px;
}

.hero-sub {
  color: var(--text-muted);
  max-width: 600px;
  font-size: 1.05rem;
}

/* Gallery Grid */
.gallery-section {
  padding: 20px 0 110px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 56px 36px;
}

.art-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.art-frame {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  margin-bottom: 18px;
  transition: border-color 0.3s ease;
}

.art-card:hover .art-frame {
  border-color: #4a4a52;
}

.art-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
  transition: transform 0.45s ease;
}

.art-card:hover .art-frame img {
  transform: scale(1.025);
}

.art-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 4px;
}

.art-edition {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 11px 22px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
  align-self: flex-start;
}

.art-card:hover .btn-outline,
.btn-outline:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
  font-weight: 600;
  text-align: center;
}

.btn-primary:hover {
  background: #ffffff;
}

/* Info & About Sections */
.info-section,
.about-section {
  border-top: 1px solid var(--border);
  padding: 80px 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
}

.info-section h2,
.about-section h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.info-section p,
.about-section p {
  color: var(--text-muted);
  max-width: 540px;
}

.about-section .btn {
  margin-top: 24px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 8, 0.9);
  backdrop-filter: blur(6px);
}

.lightbox-dialog {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  max-width: 1040px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 2;
  padding: 36px;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  color: var(--text);
}

.lightbox-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.lightbox-image-wrap {
  background: #09090b;
  padding: 24px;
  border: 1px solid var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-image-wrap img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
}

.lightbox-details h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.lb-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.lb-story {
  color: #d0d0d4;
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.format-selector {
  margin-bottom: 24px;
}

.format-selector label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.format-selector select {
  width: 100%;
  padding: 12px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 0.92rem;
}

.lb-actions .btn {
  width: 100%;
}

.lb-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: center;
}

@media (max-width: 820px) {
  .lightbox-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .lightbox-dialog {
    padding: 24px;
  }
  .nav {
    display: none;
  }
}