/* ARTSTUDIO — Grav theme styles (dark-only) */
:root {
  --navy: #001B3D;
  --navy-deep: #061427;
  --navy-soft: #0a2a52;
  --gold: #C9A227;
  --gold-soft: #d9b54a;
  --cream: #E8ECF2;
  --bg: oklch(0.16 0.03 264);
  --card: oklch(0.20 0.025 264);
  --muted: oklch(0.24 0.025 264);
  --fg: oklch(0.96 0.005 265);
  --fg-muted: oklch(0.72 0.01 265);
  --border: rgba(255,255,255,0.12);
  --radius: 0.25rem;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}
.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

h1, h2, h3, h4, .wordmark, .font-display {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.01em;
}
.font-serif-italic { font-family: 'Source Serif 4', serif; font-style: italic; font-weight: 400; }
.font-mono, .section-label {
  font-family: 'JetBrains Mono', monospace;
}
.section-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.25em;
  color: var(--fg-muted); display: inline-flex; align-items: center; gap: 0.6rem;
}
.section-label::before { content: ''; display: inline-block; width: 28px; height: 1px; background: currentColor; opacity: 0.5; }

.display-xl { font-size: clamp(2.75rem, 9vw, 8.5rem); line-height: 0.92; letter-spacing: -0.035em; font-weight: 600; }
.display-lg { font-size: clamp(2.25rem, 6vw, 5rem); line-height: 0.95; letter-spacing: -0.03em; font-weight: 600; }
.display-md { font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1; letter-spacing: -0.02em; font-weight: 600; }
.wordmark { font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream); }

/* Grain overlay */
.grain-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 200px; opacity: 0.1; mix-blend-mode: overlay;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22, 27, 45, 0.8); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.main-nav { display: none; gap: 0.25rem; }
@media (min-width: 1024px) { .main-nav { display: flex; } }
.main-nav a {
  padding: 0.5rem 0.75rem; font-size: 0.875rem; font-weight: 500; color: var(--fg-muted);
  text-decoration: none; transition: color 0.2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--fg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.625rem 1.25rem; font-size: 0.875rem; font-weight: 600;
  border-radius: var(--radius); border: 1px solid transparent; cursor: pointer;
  text-decoration: none; transition: all 0.2s;
}
.btn-primary { background: var(--cream); color: var(--navy); }
.btn-primary:hover { background: white; transform: translateY(-2px); }
.btn-light { background: white; color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-outline-light { background: transparent; color: white; border-color: rgba(255,255,255,0.4); }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); }
.btn-sm { padding: 0.375rem 0.875rem; font-size: 0.8125rem; }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 5rem 0; background: var(--navy-deep); color: white; }
.hero .display-xl { color: white; margin: 1.5rem 0; }
.hero-subtitle { max-width: 36rem; color: rgba(255,255,255,0.75); font-size: 1.125rem; margin-bottom: 2.5rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Catalog grid */
.catalog-grid { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .catalog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .catalog-grid { grid-template-columns: repeat(3, 1fr); } }
.catalog-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--card); text-decoration: none; color: inherit;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.catalog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.3); border-color: rgba(201,162,39,0.4); }
.card-image { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.catalog-card:hover .card-image img { transform: scale(1.1); }
.card-badge { position: absolute; top: 0.75rem; left: 0.75rem; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); color: white; font-size: 0.75rem; padding: 0.25rem 0.5rem; border-radius: 2px; }
.card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.125rem; margin-bottom: 0.375rem; }
.card-body p { font-size: 0.875rem; color: var(--fg-muted); margin-bottom: 1rem; }
.card-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; }
.card-price { font-weight: 600; color: var(--gold-soft); }

/* Detail page */
.detail-page { padding: 2.5rem 0; }
.breadcrumbs { font-size: 0.875rem; color: var(--fg-muted); margin-bottom: 1.5rem; }
.breadcrumbs a { color: var(--fg-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--fg); }
.detail-header { margin-bottom: 2.5rem; }
.detail-meta { margin-top: 0.75rem; color: var(--fg-muted); font-size: 0.875rem; }
.detail-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .detail-grid { grid-template-columns: 1fr 1fr; } }
.gallery img { width: 100%; border-radius: var(--radius); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin-top: 0.75rem; }
.thumb { border: 2px solid transparent; padding: 0; cursor: pointer; background: none; border-radius: 2px; overflow: hidden; }
.thumb.active, .thumb:hover { border-color: var(--gold); }
.thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.price-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; position: sticky; top: 80px; }
.price { font-size: 1.875rem; font-weight: 700; color: var(--gold-soft); margin-bottom: 1rem; }
.order-form { display: flex; flex-direction: column; gap: 0.5rem; }
.order-form input, .order-form textarea {
  width: 100%; padding: 0.625rem; background: var(--bg); border: 1px solid var(--border);
  border-radius: 2px; color: var(--fg); font-size: 0.875rem;
}
.order-form input:focus, .order-form textarea:focus { outline: none; border-color: var(--gold); }
.includes-card { margin-top: 1.5rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.includes-card h3 { font-size: 1rem; margin-bottom: 0.75rem; }
.includes-card ul { list-style: none; }
.includes-card li { padding: 0.25rem 0; color: var(--fg-muted); font-size: 0.875rem; }
.includes-card li::before { content: '✓ '; color: var(--gold); }

.detail-body { margin-top: 3.5rem; max-width: 48rem; }
.detail-body p { margin-bottom: 1rem; }

.program { margin-top: 3.5rem; }
.modules-grid { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .modules-grid { grid-template-columns: repeat(2, 1fr); } }
.module { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.module h3 { font-size: 1rem; margin-bottom: 0.75rem; }
.module ul { list-style: none; }
.module li { padding: 0.25rem 0; color: var(--fg-muted); font-size: 0.875rem; }
.module li::before { content: '• '; color: var(--gold); }

.faq { margin-top: 3.5rem; }
.faq-list { margin-top: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-item summary { padding: 1rem 1.25rem; font-weight: 500; cursor: pointer; }
.faq-item p { padding: 0 1.25rem 1rem; color: var(--fg-muted); font-size: 0.875rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 4rem; padding: 2.5rem 0; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-meta { font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.25em; color: var(--fg-muted); margin: 0.5rem 0; }
.site-footer h3 { font-size: 0.875rem; margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; }
.site-footer li { padding: 0.25rem 0; }
.site-footer a { color: var(--fg-muted); text-decoration: none; font-size: 0.875rem; }
.site-footer a:hover { color: var(--fg); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); text-align: center; color: var(--fg-muted); font-size: 0.75rem; }

/* Magnifier */
.magnifier { position: relative; overflow: hidden; cursor: zoom-in; }
.magnifier .lens {
  position: absolute; width: 170px; height: 170px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.8); box-shadow: 0 4px 24px rgba(0,0,0,0.35);
  pointer-events: none; opacity: 0; transition: opacity 0.15s;
  background-repeat: no-repeat;
}

/* Sticky cursor (desktop only) */
@media (hover: hover) and (pointer: fine) {
  .sticky-cursor-dot, .sticky-cursor-ring {
    position: fixed; top: 0; left: 0; pointer-events: none; z-index: 10000;
    mix-blend-mode: difference;
  }
  .sticky-cursor-dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; transform: translate(-50%,-50%); }
  .sticky-cursor-ring { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.7); transform: translate(-50%,-50%); transition: width 0.2s, height 0.2s; }
}
@media (hover: none), (pointer: coarse) { .sticky-cursor-dot, .sticky-cursor-ring { display: none; } }
