/* The Pixel Cake — Fine Art Digital Photography Studio */
/* Dark editorial theme: deep blacks, warm golds, clean white space */

:root {
  --black: #0a0a0a;
  --dark: #111111;
  --dark-mid: #1a1a1a;
  --dark-surface: #222222;
  --mid: #333333;
  --text: #e8e8e8;
  --text-secondary: #9a9a9a;
  --text-muted: #666666;
  --gold: #c9a96e;
  --gold-light: #e0c48a;
  --gold-dark: #a0803d;
  --white: #ffffff;
  --off-white: #f5f5f0;
  --border: rgba(201, 169, 110, 0.2);
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--dark);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold-light);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--white);
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); margin-bottom: 1rem; margin-top: 2.5rem; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); margin-bottom: 0.75rem; margin-top: 1.5rem; }

p {
  margin-bottom: 1.25rem;
  color: var(--text);
  max-width: 68ch;
}

ul, ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
  color: var(--text);
}

li strong {
  color: var(--white);
}

em {
  font-style: italic;
  color: var(--gold-light);
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(10, 10, 10, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  color: var(--white);
  text-transform: uppercase;
  font-weight: 300;
}

.nav-brand:hover {
  color: var(--gold-light);
}

.nav-brand span {
  color: var(--gold);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  padding: 0;
  margin: 0;
}

.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text);
  margin: 6px 0;
  transition: all 0.3s ease;
}

/* ============================================================
   HERO SECTIONS
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.95) 0%,
    rgba(10, 10, 10, 0.6) 40%,
    rgba(10, 10, 10, 0.2) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 6rem 2rem 5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: block;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 1.5rem;
  max-width: 14ch;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 44ch;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */

.page-hero {
  padding-top: var(--header-height);
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.3) 60%, transparent 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 2rem 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.page-hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.06em;
}

.page-hero-content .page-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  margin-top: 0.5rem;
}

/* ============================================================
   ARTWORK HERO (single work pages)
   ============================================================ */

.artwork-hero {
  padding-top: var(--header-height);
  background: var(--black);
}

.artwork-image-container {
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
}

.artwork-image-container img {
  max-height: 90vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--dark-mid);
}

.section-dark {
  background: var(--black);
}

/* ============================================================
   CONTENT ARTICLE
   ============================================================ */

.article-content {
  max-width: 720px;
}

.article-content h2:first-of-type {
  margin-top: 0;
}

/* ============================================================
   ARTWORK INFO PANELS
   ============================================================ */

.artwork-info {
  background: var(--dark-mid);
  border: 1px solid var(--border);
  padding: 2.5rem;
  margin: 3rem 0;
}

.artwork-info h3 {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  margin-top: 0;
}

.artwork-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.artwork-info ul li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  gap: 1rem;
}

.artwork-info ul li:last-child {
  border-bottom: none;
}

.artwork-info ul li strong {
  color: var(--text);
  min-width: 120px;
  display: inline-block;
}

/* ============================================================
   HOMEPAGE GRID
   ============================================================ */

.works-intro {
  padding: 4rem 0;
}

.works-intro p {
  font-size: 1.1rem;
  max-width: 56ch;
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  margin: 3rem 0;
}

.series-card {
  background: var(--dark-mid);
  padding: 3rem;
  transition: background 0.3s ease;
}

.series-card:hover {
  background: var(--dark-surface);
}

.series-card .series-label {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}

.series-card h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.series-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 38ch;
  margin-bottom: 1.5rem;
}

.series-card a.link-arrow {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.series-card a.link-arrow::after {
  content: '→';
}

/* ============================================================
   GALLERY GRID
   ============================================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--dark-mid);
  border: 1px solid var(--border);
  transition: border-color 0.3s ease;
}

.gallery-item:hover {
  border-color: var(--gold);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gallery-caption {
  padding: 1rem 1.25rem;
}

.gallery-caption h3 {
  font-size: 1rem;
  font-family: var(--font-heading);
  margin: 0 0 0.25rem;
  letter-spacing: 0.06em;
}

.gallery-caption .gallery-tag {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--black);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--black);
}

/* ============================================================
   CONTACT FORM
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-panel h2 {
  margin-top: 0;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.contact-info-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact-info-list li:first-child {
  border-top: 1px solid var(--border);
}

.contact-info-list li strong {
  display: block;
  color: var(--text);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.contact-form {
  background: var(--dark-mid);
  border: 1px solid var(--border);
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--dark-surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
}

.form-group select option {
  background: var(--dark-surface);
  color: var(--text);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.btn-submit {
  background: var(--gold);
  color: var(--black);
  padding: 1rem 2.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s ease;
  width: 100%;
}

.btn-submit:hover {
  background: var(--gold-light);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */

.breadcrumb {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.breadcrumb a, .breadcrumb span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb .sep {
  margin: 0 0.5rem;
  color: var(--text-muted);
}

.breadcrumb .current {
  color: var(--text-secondary);
}

/* ============================================================
   DIVIDER
   ============================================================ */

.gold-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 2rem 0;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  margin-top: 6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--white);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-brand span {
  color: var(--gold);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 30ch;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  margin-top: 0;
  font-family: var(--font-body);
  font-weight: 500;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================================
   404 PAGE
   ============================================================ */

.page-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: var(--black);
}

.page-404 .error-code {
  font-family: var(--font-heading);
  font-size: 10rem;
  font-weight: 300;
  color: var(--dark-surface);
  line-height: 1;
  display: block;
  letter-spacing: 0.1em;
}

.page-404 h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.page-404 p {
  color: var(--text-secondary);
  max-width: 36ch;
  margin: 0 auto 2rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }

  .series-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .artwork-image-container {
    max-height: 60vh;
  }
}

@media (max-width: 480px) {
  .site-nav {
    padding: 0 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 3rem 0;
  }
}
