/* Global Stylesheets */

body {
    font-family: 'Hanken Grotesk', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

::selection {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Semantic Logo Component */
.csa-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-family: "Zen Kaku Gothic New", sans-serif;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.1;
  text-align: center;
}

.csa-brand-name {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: clamp(0.85rem, 4.8vw, 1.5rem) !important;
  font-weight: 900 !important;
  letter-spacing: 0.1em !important;
  text-indent: 0.1em; /* Offsets trailing letter-spacing for true centering */
  display: block;
  white-space: nowrap;
  -webkit-text-stroke: 0.5px currentColor;
  margin-bottom: 0 !important; /* Overrides HTML mb-1 margin */
}

.csa-brand-subtitle {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: clamp(0.7rem, 4vw, 1.25rem) !important;
  font-weight: 500 !important;
  letter-spacing: 0.102em !important;
  text-indent: 0.25em; /* Offsets trailing letter-spacing for true centering */
  margin-top: -3px !important; /* Adjust between -1px and -4px to fine-tune spacing */
  display: block;
  opacity: 0.9;
  white-space: nowrap;
}


/* 
@media (max-width: 768px) {
  .csa-brand-name {
    font-size: 1.4rem !important;
    letter-spacing: 0.15em;
  }
  .csa-brand-subtitle {
    font-size: 1.15rem !important;
  }
} */

@media (max-width: 768px) {
  .csa-brand-name {
    letter-spacing: 0.1em !important;
  }
  .csa-brand-subtitle {
    letter-spacing: 0.1em !important;
  }
}

@media (min-width: 1536px) {
    .max-w-7xl {
        max-width: 95rem !important; /* Expands to ~1520px on 2xl screens */
    }
}

@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 110rem !important; /* Expands further on ultra-wide / 4K screens */
    }
}

/* Image Reveal Scroll Animations */
.image-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.image-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* CV Overlay Styles */
.cv-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

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

/* Mobile Image Modal Enlarge Effect Styles */
@media (max-width: 767px) {
    main img {
        cursor: pointer;
    }
}

#image-modal-overlay {
    transition: opacity 0.3s ease-in-out;
}

/* Single-Column Mode Overlay Typography Scaling (#projects-grid.flex) */
#projects-grid.flex .project-item .absolute {
    padding: 1.5rem !important; /* matches p-6 in all-no-grid.html */
}

#projects-grid.flex .project-item .absolute > div {
    letter-spacing: 0.15em !important;
    font-size: 0.75rem !important; /* text-xs */
}

@media (min-width: 768px) {
    #projects-grid.flex .project-item .absolute > div {
        font-size: 0.875rem !important; /* text-sm */
    }

    #projects-grid.flex .project-item .absolute > div > div + div {
        margin-top: 1rem !important; /* matches space-y-4 in all-no-grid.html */
    }
}

#projects-grid.flex .project-item .absolute p.font-label-caps {
    font-size: 10px !important;
    letter-spacing: 0.2em !important;
    line-height: normal !important;
    margin-bottom: 0.125rem !important;
}

#projects-grid.flex .project-item .absolute p.font-bold {
    font-size: 0.875rem !important; /* text-sm */
    line-height: normal !important;
}

@media (min-width: 768px) {
    #projects-grid.flex .project-item .absolute p.font-bold {
        font-size: 1rem !important; /* text-base */
    }
}

