/* ============================================================
   Studio Cradle — Shared Stylesheet
   Applies to: about.html, process.html, portfolio.html,
   collaboration.html, and all future secondary pages.
   index.html uses its own embedded styles.
   ============================================================ */

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

/* ── Body ── */
body {
  background-color: #1C1C1A;
  min-height: 100vh;
  font-family: -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #C8C4BC;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 64px 40px 96px;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: 480px;
}

/* ── Logo ── */
a.logo-link { display: block; line-height: 0; margin-bottom: 28px; }
a.logo-link img.logo { width: 200px; height: auto; }

/* ── Nav ── */
.site-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.site-nav a {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9A9690;
  text-decoration: none;
  border: 0.5px solid #3E3C3A;
  padding: 10px 18px;
  transition: border-color 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  border-color: #9A9690;
  color: #C8C4BC;
}

/* ── Mobile nav toggle (hidden on desktop) ── */
.nav-toggle {
  display: none;
  width: 100%;
  background: transparent;
  border: 0.5px solid #9A9690;   /* active-state border — it's the current page */
  color: #C8C4BC;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 10px 18px;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.2s, color 0.2s;
}

/* hamburger icon — three lines via box-shadow */
.nav-toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.nav-toggle-icon span {
  display: block;
  width: 14px;
  height: 0.5px;
  background: currentColor;
}

/* When open, collapse the middle bar to signal "open" state */
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(2) {
  opacity: 0;
}

/* ── Desktop nav: all 4 items, one line, current page as span ── */
.nav-desktop {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
}

.nav-desktop a,
.nav-desktop span {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0.5px solid #3E3C3A;
  padding: 10px 18px;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-desktop a {
  color: #9A9690;
}

.nav-desktop a:hover {
  border-color: #9A9690;
  color: #C8C4BC;
}

/* Current page — highlighted, not a link */
.nav-desktop span.active {
  border-color: #9A9690;
  color: #C8C4BC;
  cursor: default;
}

/* ── Mobile nav links (hidden until open) ── */
.nav-links {
  display: none;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Rule / divider ── */
.rule {
  border: none;
  border-top: 0.5px solid #9A9690;
  margin: 32px 0;
}

/* ── Body text (shared across all secondary pages) ── */
.bio-body p,
.body-text p,
.phase-body,
.section-note {
  font-size: 14px;
  line-height: 1.85;
  color: #C8C4BC;
  margin-bottom: 20px;
}

.bio-body p:last-child,
.body-text p:last-child { margin-bottom: 0; }

/* ── Section block wrapper ── */
.section-block { padding: 0; margin-bottom: 0; }

/* ── Section heading ── */
.section-title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #F5F2EC;
  margin-bottom: 12px;
}

/* ── Phase / sub-item (process page) ── */
.phase { margin-bottom: 28px; }
.phase:last-child { margin-bottom: 0; }

.phase-title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #F5F2EC;
  margin-bottom: 6px;
}

/* ── About page: photo ── */
.principal-photo {
  width: 100%;
  overflow: hidden;
  margin-bottom: 20px;
}

.principal-photo img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── About page: name & title ── */
.principal-name {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9A9690;
  margin-bottom: 5px;
}

.principal-title {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5A5754;
  margin-bottom: 32px;
}

/* ── About page: credentials ── */
.credentials {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.credentials p {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6A6762;
  margin: 0;
  line-height: 1.4;
}

/* ── Portfolio page ── */
.portfolio-intro {
  font-size: 14px;
  line-height: 1.85;
  color: #C8C4BC;
  margin-bottom: 32px;
}

.portfolio-grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.portfolio-item { position: relative; }

.portfolio-item img {
  width: 100%;
  height: auto;
  display: block;
}

.portfolio-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 100%);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-align: right;
  white-space: normal;
  padding: 40px 10px 10px;
  margin-top: 0;
}

/* ── Back link (thank you page) ── */
.back-link {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9A9690;
  text-decoration: none;
  border: 0.5px solid #3E3C3A;
  padding: 10px 18px;
  display: inline-block;
  transition: border-color 0.2s, color 0.2s;
}

.back-link:hover {
  border-color: #9A9690;
  color: #C8C4BC;
}

/* ── Copyright ── */
.copyright {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5A5754;
  margin-top: 64px;
}

/* ── Mobile ── */
@media (max-width: 600px) {
  body { padding: 40px 24px 72px; }
  a.logo-link img.logo { width: 160px; }

  /* Show toggle, switch nav to column layout */
  .site-nav {
    flex-direction: column;
    gap: 0;
  }

  .nav-toggle { display: flex; }
  .nav-desktop { display: none; }

  /* Dropdown links: hidden by default */
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
  }

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

  /* Each link: full width, three-sided border (no top — toggle provides that edge) */
  .nav-links a {
    display: block;
    width: 100%;
    border: 0.5px solid #3E3C3A;
    border-top: none;
  }

  /* Portfolio caption — mobile inherits desktop overlay; nothing to override */
}

/* ── Image protection ── */
img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}
