/* Shared portfolio typography. Source of truth: the Home page. */

@font-face {
  font-family: 'Michroma';
  src: url('Fonts/Michroma-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: 'Chakra Petch';
  src: url('Fonts/ChakraPetch-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Chakra Petch';
  src: url('Fonts/ChakraPetch-Medium.ttf') format('truetype');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Chakra Petch';
  src: url('Fonts/ChakraPetch-SemiBold.ttf') format('truetype');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Chakra Petch';
  src: url('Fonts/ChakraPetch-Bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --portfolio-font-heading: 'Michroma', sans-serif;
  --portfolio-font-body: 'Chakra Petch', sans-serif;
  --portfolio-font-nav: 'Chakra Petch', sans-serif;
}

html,
body,
p,
li,
dd,
dt,
figcaption,
caption,
small,
label,
input,
textarea,
button,
a,
nav,
nav a,
footer,
.back-button,
.project-description,
.project-block,
.project-block p,
.project-block li,
.reflection-section p,
.sketch-caption,
.contact-info p,
.contact-info a,
.about-text,
.about-text p,
.window-text,
.window-text p,
.hero-subtitle,
.hero-hook,
.status-intro,
.status-item p,
.status-item ul li,
.sprint-text p,
.sprint-text ul li,
.sensory-category,
.sensory-intro,
.sensory-placeholder,
.interview-group-description,
.sensory-final-model-grid figcaption {
  font-family: var(--portfolio-font-body) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
h1 strong,
.project-subtitle,
.project-block-title,
.sketch-title,
.timeline-title,
.tools-title,
.soft-skills-title,
.section-title,
.gallery-section h3,
.sensory-case-study h1,
.sensory-case-study h2,
.sensory-case-study h3,
.sensory-case-study h4 {
  font-family: var(--portfolio-font-heading) !important;
}

/* Navigation menus follow the Home page exactly.
   Scoped to non-Home pages so the Home menu remains unchanged. */
body:not(:has(#main-content)) header nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  white-space: nowrap;
}

body:not(:has(#main-content)) header nav ul li {
  display: inline;
  margin: 0;
  flex-shrink: 0;
}

body:not(:has(#main-content)) header nav a {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid transparent;
  border-radius: 30px;
  background: transparent;
  color: #a7b2c0;
  font-family: 'Chakra Petch', 'Segoe UI', sans-serif !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 17px;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all 0.3s ease-in-out;
}

body:not(:has(#main-content)) header nav a:hover,
body:not(:has(#main-content)) header nav a:focus-visible {
  border: 2px solid #91F778;
  background: #91F778;
  color: #111;
}

@media (max-width: 768px) {
  body:not(:has(#main-content)) header nav ul {
    flex-wrap: nowrap;
  }

  body:not(:has(#main-content)) header nav ul li,
  body:not(:has(#main-content)) header nav a {
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  body:not(:has(#main-content)) header nav ul {
    padding: 10px 12px;
    gap: 2px;
  }

  body:not(:has(#main-content)) header nav a {
    padding: 8px 10px;
    font-size: 14px;
  }
}
