/* === 12-catalog/styles.css ===
 * Luxury product catalog — ecommerce (editorial-cinematic)
 */

/* --- 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%; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
a { text-decoration-skip-ink: auto; color: inherit; }
html:focus-within { scroll-behavior: smooth; }
:focus-visible { outline: 2px solid var(--color-accent-secondary); 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);
  --space-s-m: clamp(1.00rem, 0.76rem + 1.20vw, 1.69rem);
  --space-m-l: clamp(1.50rem, 1.15rem + 1.74vw, 2.25rem);
  --space-l-xl: clamp(2.00rem, 1.46rem + 2.72vw, 3.38rem);
}

/* --- Motion --- */
:root {
  --motion-duration-fast: 160ms;
  --motion-duration-base: 240ms;
  --motion-duration-slow: 360ms;
  --motion-ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-hover: var(--motion-duration-fast) var(--motion-ease-standard);
}

@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;
  }
  html:focus-within { scroll-behavior: auto; }
}

/* --- Ecommerce Domain Tokens --- */
:root {
  --color-bg: oklch(0.10 0.008 50);
  --color-bg-alt: oklch(0.15 0.008 50);
  --color-bg-elevated: oklch(0.20 0.01 50);
  --color-text: oklch(0.90 0.005 70);
  --color-text-dim: oklch(0.62 0.008 60);
  --color-heading: oklch(0.93 0.003 70);
  --color-accent: oklch(0.65 0.12 50);
  --color-border: oklch(0.28 0.008 50);

  --font-heading: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Lato', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

/* --- Page --- */
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}

/* --- Hero / Opening --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-2xl) var(--space-l);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/grain-overlay.svg');
  background-size: 200px 200px;
  mix-blend-mode: overlay;
  opacity: 0.06;
  pointer-events: none;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--color-heading);
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--color-text-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: var(--space-m);
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: var(--color-accent);
  margin-top: var(--space-l);
}

/* --- Product Sections (Projects) --- */
.product-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: var(--space-3xl) var(--space-l);
  border-top: 1px solid var(--color-border);
  position: relative;
}

.product-section:nth-child(even) {
  background: var(--color-bg-alt);
}

.product-inner {
  max-width: 900px;
  width: 100%;
}

.product-number {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--color-text-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-s);
}

.product-title {
  font-family: var(--font-heading);
  font-size: var(--step-4);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--color-heading);
  margin-bottom: var(--space-m);
}

.product-desc {
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--color-text);
  max-width: 600px;
  margin-bottom: var(--space-m);
}

.product-meta {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--color-text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --- Provenance (Experience) --- */
.provenance {
  padding: var(--space-3xl) var(--space-l);
  border-top: 1px solid var(--color-border);
}

.provenance-header {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--color-text-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-xl);
}

.provenance-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-m);
  padding: var(--space-m) 0;
  border-bottom: 1px solid var(--color-border);
}

.provenance-date {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--color-text-dim);
  padding-top: 0.3em;
}

.provenance-title {
  font-family: var(--font-heading);
  font-size: var(--step-2);
  font-weight: 400;
  color: var(--color-heading);
  margin-bottom: var(--space-2xs);
}

.provenance-detail {
  color: var(--color-text);
  font-size: var(--step--1);
  line-height: 1.6;
}

/* --- Specifications (Skills) --- */
.specs {
  padding: var(--space-3xl) var(--space-l);
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

.specs-header {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--color-text-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-xl);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-l);
}

.spec-category {
  padding-bottom: var(--space-m);
}

.spec-category-name {
  font-family: var(--font-heading);
  font-size: var(--step-1);
  color: var(--color-heading);
  margin-bottom: var(--space-xs);
  font-weight: 400;
}

.spec-list {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--color-text-dim);
  line-height: 1.8;
}

/* --- Contact Footer --- */
.contact {
  padding: var(--space-3xl) var(--space-l);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.contact-heading {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--color-text-dim);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: var(--space-l);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.contact-link {
  font-family: var(--font-heading);
  font-size: var(--step-1);
  color: var(--color-heading);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--motion-hover);
  padding-bottom: 2px;
}

.contact-link:hover {
  border-bottom-color: var(--color-accent);
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--motion-duration-slow) var(--motion-ease-standard),
              transform var(--motion-duration-slow) var(--motion-ease-standard);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --- Mobile --- */
@media (max-width: 640px) {
  .hero {
    padding: var(--space-xl) var(--space-s);
    min-height: 70vh;
  }
  .product-section {
    padding: var(--space-xl) var(--space-s);
    min-height: auto;
  }
  .provenance-item {
    grid-template-columns: 1fr;
    gap: var(--space-2xs);
  }
  .contact-links {
    flex-direction: column;
    align-items: center;
    gap: var(--space-m);
  }
}
