/* ==========================================================================
   CHRIS | Fine Art Photography Portfolio
   Aesthetic Architecture: Squarespace Wells (Direct Reference to Ruth Lauer Manenti)
   ========================================================================== */

:root {
  --bg-main: #ffffff;
  --text-main: #181818;
  --text-muted: #666666;
  --text-light: #999999;
  
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --sidebar-left: 70px;
  --sidebar-top: 70px;
  --sidebar-width: 220px;
  --canvas-gap: 70px;
  --canvas-margin-left: calc(var(--sidebar-left) + var(--sidebar-width) + var(--canvas-gap));

  --transition-gentle: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  font-size: 15px;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
}

body.artist-portfolio {
  min-height: 100vh;
  background-color: var(--bg-main);
  color: var(--text-main);
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-gentle);
}

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

/* ==========================================================================
   Mobile Header (<= 900px)
   ========================================================================== */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #f0f0f0;
  z-index: 100;
  padding: 0 24px;
  align-items: center;
  justify-content: space-between;
}

.mobile-brand a {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.mobile-menu-btn {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  cursor: pointer;
  text-transform: uppercase;
}

/* ==========================================================================
   Left Sidebar Navigation (Fixed, Wells Layout)
   ========================================================================== */
.sidebar {
  position: fixed;
  top: var(--sidebar-top);
  left: var(--sidebar-left);
  width: var(--sidebar-width);
  height: calc(100vh - var(--sidebar-top) - 40px);
  z-index: 90;
  display: flex;
  flex-direction: column;
  background: transparent;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.site-title-box {
  margin-bottom: 36px;
}

.site-title {
  font-family: var(--font-serif);
  font-size: 1.95rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.site-title a {
  color: var(--text-main);
}

.sidebar-nav {
  flex: 1;
}

.nav-list-clean {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.nav-item {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition-gentle);
}

.nav-item:hover {
  color: #000;
}

.nav-item.active {
  color: #000;
  font-weight: 500;
}

/* Expandable Folder Styling */
.nav-folder {
  display: flex;
  flex-direction: column;
}

.folder-caret {
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.25s ease;
  color: var(--text-light);
  margin-left: 6px;
}

.nav-folder.open .folder-caret {
  transform: rotate(90deg);
}

.nav-sub-projects {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 14px;
  margin-top: 10px;
  overflow: hidden;
  max-height: 200px;
  transition: max-height 0.3s ease, opacity 0.25s ease, margin 0.25s ease;
}

.nav-folder:not(.open) .nav-sub-projects {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  pointer-events: none;
}

.sub-nav-item {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: inline-block;
  cursor: pointer;
  transition: var(--transition-gentle);
}

.sub-nav-item:hover {
  color: #000;
}

.sub-nav-item.active {
  color: #000;
  font-weight: 500;
}

/* Sidebar Footer */
.sidebar-footer {
  margin-top: auto;
  padding-top: 24px;
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.6;
}

.social-links {
  margin-bottom: 6px;
}

.social-links a {
  color: var(--text-muted);
}
.social-links a:hover {
  color: #000;
}
.social-links .sep {
  margin: 0 4px;
  color: #ddd;
}

.copyright {
  margin-bottom: 2px;
}

.colophon {
  font-size: 0.7rem;
  color: #bbb;
}

/* ==========================================================================
   Main Canvas (Adjacent to Sidebar, Non-centered)
   ========================================================================== */
.main-canvas {
  margin-left: var(--canvas-margin-left);
  padding-top: var(--sidebar-top);
  padding-right: 70px;
  padding-bottom: 80px;
  min-height: 100vh;
}

.content-view {
  animation: fadeIn 0.35s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================================================================
   Project View: Single Massive 5:4 Photo (Zero Text, Adaptive)
   ========================================================================== */
.project-display-stage {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.project-image-box {
  width: min(calc((100vh - 140px) * 1.25), calc(100vw - var(--canvas-margin-left) - 70px), 1100px);
  max-width: 100%;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: #fbfbfb;
  position: relative;
}

.project-hero-photo {
  width: 100%;
  height: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease;
}

.clickable-plate {
  cursor: pointer;
}

/* ==========================================================================
   Editorial Views (Books, Prints, About, Contact)
   ========================================================================== */
.editorial-container {
  max-width: 680px;
  margin-top: 4px;
}

.editorial-header {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 400;
  margin-bottom: 36px;
  letter-spacing: -0.01em;
}

/* Books */
.books-flow {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.book-entry {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
}

.book-art-frame {
  height: 270px;
  background: #24262b;
  border-left: 5px solid #16171a;
  border-radius: 2px 4px 4px 2px;
  box-shadow: 4px 10px 24px rgba(0, 0, 0, 0.1);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}

.book-art-1 { background: #23252a; }
.book-art-2 { background: #1f1e1c; }

.book-spine-label {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  opacity: 0.65;
}

.book-front-mock h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 4px;
}

.book-front-mock p {
  font-size: 0.72rem;
  opacity: 0.65;
  font-style: italic;
  font-family: var(--font-serif);
}

.book-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.book-spec {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 14px;
}

.book-text p {
  font-size: 0.92rem;
  color: #444;
  margin-bottom: 12px;
  line-height: 1.7;
}

.book-action {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
}

.book-availability {
  color: var(--text-muted);
  font-style: italic;
  font-family: var(--font-serif);
}

.text-cta {
  color: var(--text-main);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Prints */
.editorial-intro {
  margin-bottom: 32px;
  font-size: 1.02rem;
  line-height: 1.8;
  color: #444;
}

.editions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.edition-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  padding: 12px;
}

.edition-thumb {
  height: 160px;
  background: #222;
  margin-bottom: 12px;
  background-size: cover;
  background-position: center;
}

.edition-thumb-1 {
  background-image: url('images/plate_01.png');
  background-size: cover;
  background-position: center;
}
.edition-thumb-2 { background: linear-gradient(135deg, #2b2520, #4a3c31); }
.edition-thumb-3 { background: linear-gradient(135deg, #18252a, #294049); }

.edition-details h4 {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-style: italic;
  margin-bottom: 4px;
}

.edition-details p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.edition-details span {
  font-size: 0.7rem;
  color: var(--text-light);
  text-transform: uppercase;
}

.edition-note {
  border-top: 1px solid #f0f0f0;
  padding-top: 20px;
  font-size: 0.92rem;
  color: #555;
  line-height: 1.7;
}

/* About (Statement & Bio) */
.text-content .statement-body p,
.text-content .bio-text p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: #333;
  margin-bottom: 22px;
}

.lead-quote {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  color: #111;
  line-height: 1.5;
  border-left: 2px solid #ddd;
  padding-left: 18px;
  margin: 24px 0;
}

.cv-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}

.cv-section h3 {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.cv-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cv-list li {
  display: grid;
  grid-template-columns: 60px 1fr;
  font-size: 0.92rem;
  line-height: 1.6;
}

.cv-year {
  color: var(--text-light);
}

.cv-detail em {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
}

/* Contact */
.contact-details p {
  font-size: 1.02rem;
  color: #333;
  margin-bottom: 24px;
  line-height: 1.7;
}

.contact-card-simple {
  background: #fafafa;
  padding: 20px;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-line {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-kicker {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
}

.contact-link {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-val {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.contact-dispatch h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.clean-contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.clean-contact-form .form-row {
  display: flex;
  gap: 12px;
}

.clean-contact-form input,
.clean-contact-form textarea {
  flex: 1;
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px 12px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-main);
  outline: none;
  border-radius: 0;
}

.clean-contact-form input:focus,
.clean-contact-form textarea:focus {
  border-color: #111;
}

.submit-link-btn {
  align-self: flex-start;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 6px 0;
  color: #000;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 900px) {
  .mobile-header {
    display: flex;
  }

  .sidebar {
    top: 60px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background: #fff;
    padding: 30px;
    transition: left 0.3s ease;
  }

  .sidebar.mobile-open {
    left: 0;
  }

  .main-canvas {
    margin-left: 0;
    padding: 80px 20px 60px;
  }

  .project-image-box {
    width: 100%;
  }

  .book-entry {
    grid-template-columns: 1fr;
  }

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

  .clean-contact-form .form-row {
    flex-direction: column;
  }
}
