@font-face {
  font-family: 'TextFont';
  src: url('fonts/text.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* Unified color scheme */
:root {
  --dark: #000000;   /* pure black */
  --light: #f7f7f7;  /* off-white */
  color-scheme: light only;
}

/* Base font scaling */
html {
  font-family: 'TextFont', sans-serif;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-size: 1rem;
  font-weight: normal;
  color: var(--dark);
  background-color: var(--light);
  overflow: hidden;
}

/* Prevent horizontal shrink when About is open */
body.about-open {
  overflow: hidden;
  width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
}

/* Visually hidden for SEO */
.sr-only {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Mobile header */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0 16px 0;
  text-align: center;
  z-index: 100;
  background: transparent;
}

.mobile-name {
  font-size: 1rem;
  margin-bottom: 16px;
  display: inline-block;
  background-color: var(--dark);
  color: var(--light);
  padding: 2px 6px;
}

.mobile-menu {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 32px;
  margin-top: 24px;
  position: fixed;
  top: 50px;
  left: 0;
  width: 100%;
  z-index: 101;
}

.mobile-menu a {
  text-decoration: none;
  font-size: 1rem;
  display: inline-block;
  background-color: var(--dark);
  color: var(--light);
  padding: 2px 6px;
}

/* Sidebar menu (desktop) */
.sidebar {
  position: fixed;
  top: 28px;
  left: 28px;
  width: 160px;
  height: auto;
  background: transparent;
  display: flex;
  flex-direction: column;
  padding: 0;
  box-sizing: border-box;
  z-index: 10;
}

.sidebar-name {
  font-size: 1rem;
  margin-bottom: 14px;
  background-color: var(--dark);
  color: var(--light);
  padding: 2px 6px;
  display: inline-block;
  align-self: flex-start;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 8px;
}

.sidebar-links a {
  text-decoration: none;
  margin: 5px 0;
  font-size: 1rem;
  background-color: var(--dark);
  color: var(--light);
  padding: 2px 6px;
}

/* Image split layout */
.image-split {
  display: flex;
  height: 100vh;
  width: 100vw;
  box-sizing: border-box;
  background: var(--light);
  overflow: hidden;
  position: relative;
  padding: clamp(7px, 1.5vw, 20px);
}

.split {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.split.left { justify-content: flex-end; }
.split.right { justify-content: flex-start; }

.split .image-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: auto;
}

.split img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  opacity: 0;
  transition: opacity 1.5s ease-out, transform 0.5s ease;
  object-fit: contain;
}

/* Titles */
.title {
  white-space: nowrap;
  background-color: var(--dark);
  color: var(--light);
  padding: 2px 6px;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 1.5s ease-out;
  z-index: 10;
  display: inline-block;
}

/* Desktop titles */
.sculpture-title,
.vase-title {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
}

/* Mobile titles (regular + IG browser) */
.sculpture-title-fixed,
.vase-title-fixed {
  position: relative !important;
  margin-top: 10px !important;
  opacity: 1 !important;
  display: block !important;
  text-align: center;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  z-index: 100 !important;
  background-color: var(--dark);
  color: var(--light);
}

/* About and Contact content boxes */
.about-content, .contact-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: min(95vw, 500px);
  text-align: center;
  color: var(--light);
  line-height: 1.6;
  padding: 20px 18px;
  background-color: var(--dark);
  box-sizing: border-box;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  font-size: 1rem;
}

/* Make About overlay show pointer, Contact overlay default */
.about-content { cursor: pointer; }
.contact-content { cursor: default; }

/* Active states */
.about-content.active, .contact-content.active {
  opacity: 1;
  pointer-events: auto;
}

.about-content p { margin: 12px 0; }

/* Contact form fields */
.contact-content label, 
.contact-content input, 
.contact-content textarea, 
.contact-content button {
  font-family: 'TextFont', sans-serif;
  font-size: 1rem;
}

.contact-content input, .contact-content textarea {
  width: 100%;
  margin-top: 4px;
  padding: 8px;
  border: 1px solid #ccc;
  background-color: var(--light);
  color: var(--dark);
  box-sizing: border-box;
  cursor: text; /* typing cursor */
}

.contact-content button {
  background-color: var(--light);
  color: var(--dark);
  padding: 8px 12px;
  border: none;
  cursor: pointer; /* pointer for buttons */
  margin-top: 12px;
}

/* Overlay (for Contact & desktop About) */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 50;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile responsive */
@media (max-width: 768px) {
  html { font-size: 14px; }

  .sidebar { display: none; }
  .mobile-header { display: block; }

  .image-split { 
    height: 100vh; 
    padding: clamp(4px, 1vw, 14px); 
  }

  .split.right { display: none; }

  .split.left { 
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding-top: 100px !important;
    overflow: visible !important;
  }

  .split.left img { 
    max-width: 90vw; 
    max-height: 80vh; 
    width: auto; 
    height: auto; 
    object-fit: contain; 
    transform: translateY(-10px);
    transition: opacity 1.5s ease-out; 
    opacity: 1; 
    margin: 0 auto; 
    display: block;
  }

  .vase-title-fixed,
  .sculpture-title-fixed {
    position: relative !important;
    margin-top: 0 !important;
    transform: translateY(-35px) !important;
    opacity: 1 !important;
    display: block !important;
    text-align: center;
    left: auto !important;
    bottom: auto !important;
    z-index: 100 !important;
  }

  /* About content - vertically centered on mobile */
  .about-content.active {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    top: 0;
    left: 0;
    transform: none;
    padding: 30px 20px; 
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 9999;
    cursor: pointer;
    overflow: auto;          
  }

  .about-content.active::-webkit-scrollbar {
    display: none;             
  }

  .about-content p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .contact-content.active {
    width: 90vw;
    padding: 16px;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 200;
    overflow: auto;
  }
  .contact-content.active::-webkit-scrollbar {
    display: none;
  }

  body {
    overflow: auto;
  }
}

/* Instagram-specific overrides */
@supports (-webkit-touch-callout: none) {
  body.instagram-browser .split.left {
    padding-top: 120px !important;
  }

  body.instagram-browser .split.left img {
    transform: translateY(-5px) !important;
  }

  body.instagram-browser .vase-title-fixed,
  body.instagram-browser .sculpture-title-fixed {
    margin-top: 12px !important;
    transform: none !important;
    position: relative !important;
  }

  body.instagram-browser .about-content.active {
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    transform: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 40px;
    overflow: auto;
  }
  body.instagram-browser .about-content.active::-webkit-scrollbar {
    display: none;
  }
}

/* Desktop: cursor fixes for contact overlay */
@media (min-width: 769px) {
  .contact-content {
    cursor: default !important;
  }
  .contact-content input,
  .contact-content textarea {
    cursor: text !important;
  }
  .contact-content button {
    cursor: pointer !important;
  }
}
 