/* === 16-gallery/styles.css ===
 * White cube art gallery — creative (bold-experimental)
 */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
a { text-decoration-skip-ink: auto; color: inherit; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* --- Fluid Scales --- */
:root {
  --step--2: clamp(0.69rem, 0.66rem + 0.18vw, 0.80rem);
  --step--1: clamp(0.83rem, 0.78rem + 0.25vw, 1.00rem);
  --step-0:  clamp(1.00rem, 0.93rem + 0.33vw, 1.13rem);
  --step-1:  clamp(1.20rem, 1.10rem + 0.45vw, 1.41rem);
  --step-2:  clamp(1.44rem, 1.30rem + 0.63vw, 1.76rem);
  --step-3:  clamp(1.73rem, 1.54rem + 0.88vw, 2.20rem);
  --step-4:  clamp(2.07rem, 1.81rem + 1.23vw, 2.75rem);
  --step-5:  clamp(2.49rem, 2.13rem + 1.69vw, 3.43rem);

  --space-3xs: clamp(0.25rem, 0.23rem + 0.11vw, 0.31rem);
  --space-2xs: clamp(0.50rem, 0.46rem + 0.22vw, 0.63rem);
  --space-xs:  clamp(0.75rem, 0.69rem + 0.33vw, 0.94rem);
  --space-s:   clamp(1.00rem, 0.93rem + 0.33vw, 1.13rem);
  --space-m:   clamp(1.50rem, 1.39rem + 0.54vw, 1.69rem);
  --space-l:   clamp(2.00rem, 1.85rem + 0.76vw, 2.25rem);
  --space-xl:  clamp(3.00rem, 2.78rem + 1.09vw, 3.38rem);
  --space-2xl: clamp(4.00rem, 3.70rem + 1.52vw, 4.50rem);
  --space-3xl: clamp(6.00rem, 5.57rem + 2.17vw, 6.75rem);
}

/* --- Motion --- */
:root {
  --motion-duration: 300ms;
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-hover: 160ms var(--motion-ease);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Creative Domain Tokens --- */
:root {
  --color-wall: oklch(0.985 0.003 90);
  --color-wall-alt: oklch(0.08 0.01 270);
  --color-text: oklch(0.15 0.01 50);
  --color-text-dim: oklch(0.50 0.008 50);
  --color-heading: oklch(0.08 0.01 270);
  --color-accent: oklch(0.65 0.27 30);
  --color-border: oklch(0.80 0.005 50);

  --font-heading: 'Bricolage Grotesque', 'Anton', sans-serif;
  --font-body: 'Satoshi', 'General Sans', system-ui, sans-serif;
  --font-mono: 'Recursive', 'Fira Code', monospace;
}

/* --- Page (vertical scroll on mobile, scroll-snap on desktop) --- */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-wall);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  position: relative;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('assets/grain-overlay.svg');
  background-size: 200px 200px;
  mix-blend-mode: overlay;
  opacity: 0.04;
  pointer-events: none;
  z-index: 100;
}

/* --- Room (Section) --- */
.room {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-l);
  position: relative;
  scroll-snap-align: start;
}

.room:nth-child(even) {
  background: var(--color-wall-alt);
  color: oklch(0.95 0.005 80);
}

.room:nth-child(even) .placard {
  background: oklch(0.14 0.01 270);
  border-color: oklch(0.25 0.01 270);
}

.room:nth-child(even) .placard-title {
  color: oklch(0.97 0.003 80);
}

.room:nth-child(even) .placard-body {
  color: oklch(0.65 0.005 60);
}

.room:nth-child(even) .placard-meta {
  color: oklch(0.50 0.005 60);
}

/* --- Artwork Display --- */
.artwork-container {
  max-width: 700px;
  width: 100%;
}

/* --- Placard --- */
.placard {
  background: var(--color-wall);
  border: 1px solid var(--color-border);
  padding: var(--space-m) var(--space-l);
  box-shadow: 4px 4px 0 oklch(0.2 0.01 50 / 0.08);
  position: relative;
}

.placard-number {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--color-accent);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.placard-title {
  font-family: var(--font-heading);
  font-size: var(--step-3);
  font-weight: 700;
  color: var(--color-heading);
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin-bottom: var(--space-s);
}

.placard-body {
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--color-text-dim);
  margin-bottom: var(--space-s);
}

.placard-meta {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--color-text-dim);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-xs);
}

/* --- Artist Statement (Hero) --- */
.artist-statement {
  text-align: left;
  max-width: 600px;
}

.artist-name {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--color-heading);
  margin-bottom: var(--space-m);
}

.artist-bio {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--color-text-dim);
  margin-bottom: var(--space-s);
}

.artist-status {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--color-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --- Exhibition History (Experience) --- */
.exhibition-list {
  max-width: 600px;
}

.exhibition-item {
  padding: var(--space-s) 0;
  border-bottom: 1px solid currentColor;
  opacity: 0.3;
}

.exhibition-item:first-child,
.exhibition-item:nth-child(2) {
  opacity: 1;
}

.exhibition-item:nth-child(3) {
  opacity: 0.7;
}

.exhibition-date {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  margin-bottom: var(--space-3xs);
}

.exhibition-title {
  font-family: var(--font-heading);
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.exhibition-detail {
  font-size: var(--step--1);
  margin-top: var(--space-3xs);
  opacity: 0.7;
}

/* --- Medium & Technique (Skills) --- */
.medium-list {
  max-width: 600px;
}

.medium-category {
  margin-bottom: var(--space-m);
}

.medium-label {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3xs);
}

.medium-items {
  font-size: var(--step-0);
  line-height: 1.8;
}

/* --- Gallery Info (Contact) --- */
.gallery-info {
  max-width: 400px;
  text-align: center;
}

.gallery-title {
  font-family: var(--font-heading);
  font-size: var(--step-2);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-m);
}

.gallery-links {
  list-style: none;
  padding: 0;
}

.gallery-links li {
  margin-bottom: var(--space-xs);
}

.gallery-links a {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--motion-hover);
  padding-bottom: 2px;
}

.gallery-links a:hover {
  border-bottom-color: var(--color-accent);
}

/* --- Room Nav Dots --- */
.room-nav {
  position: fixed;
  right: var(--space-s);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  z-index: 50;
}

.room-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  transition: background var(--motion-hover), transform var(--motion-hover);
}

.room-dot:hover,
.room-dot.active {
  background: var(--color-accent);
  transform: scale(1.3);
}

/* --- Mobile --- */
@media (max-width: 768px) {
  .room {
    min-height: auto;
    padding: var(--space-xl) var(--space-s);
  }
  .artist-name {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }
  .room-nav { display: none; }
}
