/* ============================================================
   SHARED STYLES — JC Portfolio
   Used by: index.html, all case study pages
   ============================================================ */

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

/* ── TOKENS ── */
:root {
  --gap: 30px;
  --nav-height: 108.693px;
  --nav-padding-desktop: 40px;
  --nav-padding-mobile: 20px;
  --margin-desktop: 72px;
  --margin-mobile: 20px;

  /* Type scale — fluid, clamp-based */
  --text-label:   clamp(0.625rem, 0.4rem + 0.47vw, 0.75rem);   /* 10–12px  Staff SemiBold, all-caps */
  --text-body:    clamp(0.875rem, 0.7rem + 0.37vw, 1rem);       /* 14–16px  Staff Regular */
  --text-h3:      clamp(1.25rem, 0.9rem + 0.73vw, 1.75rem);     /* 20–28px  Canela Regular */
  --text-h2:      clamp(1.75rem, 1rem + 1.56vw, 3rem);          /* 28–48px  Canela Regular */
  --text-h1:      clamp(2.5rem, 1.5rem + 2.08vw, 4.5rem);       /* 40–72px  Canela Regular */
}

/* ── BASE ── */
html, body {
  width: 100%;
  overflow-x: hidden;
  background: #fff;
}

body {
  font-family: "Staff Regular", sans-serif;
  font-size: var(--text-body);
  color: #111;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding: 0 var(--nav-padding-desktop);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(7.5px);
  -webkit-backdrop-filter: blur(7.5px);
}

.logo-svg {
  width: 31px;
  height: 29px;
  flex-shrink: 0;
}

.logo-svg path {
  transition: fill 0.3s ease;
}

.nav-link {
  font-family: "Staff SemiBold", sans-serif;
  font-size: var(--text-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #000;
  transition: color 0.3s ease;
}

/* ── NAV JS — shared nav color switching script targets these ── */

/* ── TYPOGRAPHY HELPERS ── */
.t-label {
  font-family: "Staff SemiBold", sans-serif;
  font-size: var(--text-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.t-body {
  font-family: "Staff Regular", sans-serif;
  font-size: var(--text-body);
  line-height: 1.6;
}

.t-h3 {
  font-family: "Canela Regular", serif;
  font-size: var(--text-h3);
  font-weight: normal;
  line-height: 1.2;
}

.t-h2 {
  font-family: "Canela Regular", serif;
  font-size: var(--text-h2);
  font-weight: normal;
  line-height: 1.15;
}

.t-h1 {
  font-family: "Canela Regular", serif;
  font-size: var(--text-h1);
  font-weight: normal;
  line-height: 1.1;
}

/* ── LAYOUT UTILITIES ── */
.full-width {
  width: 100%;
}

/* Content container with desktop margin */
.container {
  width: 100%;
  padding: 0 var(--margin-desktop);
}

/* 50/50 split */
.split {
  display: flex;
  width: 100%;
}

.split-half {
  flex: 1 1 50%;
  min-width: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .split {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 0 var(--nav-padding-mobile);
  }

  .container {
    padding: 0 var(--margin-mobile);
  }
}

/* ── NAV SHARED MARKUP (SVG logo) ── */
/* The nav HTML is duplicated per page but the script below is shared via nav.js */
