@font-face {
    font-family: 'Switzer';
    src: url('../font/Switzer-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.body-s {
  font-family: 'Switzer', 'Inter', sans-serif;
  font-size: var(--font-size-s);
  line-height: var(--line-height-base);
  font-weight: 400;
}

.body-m {
  font-family: 'Switzer', 'Inter', sans-serif;
  font-size: var(--font-size-m);
  line-height: var(--line-height-loose);
  font-weight: 400;
}

/* Base text styles */
body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-m);
  line-height: var(--line-height-base);
  color: var(--color-text-primary);
  background-color: var(--color-background);
}

.branch-title {
  line-height: 1.3;
}


.parent-folder {
  margin-bottom: 2px;
  cursor: pointer;
  transition: opacity 0.2s ease;
  user-select: none; /* Prevent text selection */
}

.parent-folder:hover {
  opacity: 0.7;
}

.parent-folder:active {
  opacity: 0.5; /* Visual feedback on click */
}

.current-project {
  padding-left: var(--space-m);
}

.project-detail-layout {
  width: 100%;
  padding-top: var(--space-xl);
}

.project-content {
  width: 100%;
  padding-top: var(--space-2xl);
}

/* Add consistent spacing between all project content elements */
.project-content > * {
  margin-bottom: var(--space-m);
}

.project-content > *:last-child {
  margin-bottom: 0;
}

/* Universal image component */
.project-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
}

/* Project duo image container */
.project-duo-image {
  width: 100%;
  display: flex;
  gap: var(--space-s);
  flex-direction: row;
  box-sizing: border-box;
}

.project-duo-image .project-image {
  flex: 1;
  margin: 0;
  width: 0;
  min-width: 0;
}

/* Spacing block component */
.project-spacing {
  width: 100%;
  height: var(--space-xl); /* Default height */
}

/* Spacing variants */
.project-spacing.small {
  height: var(--space-s);
}

.project-spacing.medium {
  height: var(--space-m);
}

.project-spacing.large {
  height: var(--space-l);
}

.project-spacing.xlarge {
  height: var(--space-xl);
}

.project-spacing.xxlarge {
  height: var(--space-2xl);
}

.project-spacing.xxxlarge {
  height: var(--space-3xl);
}
/* Universal project content styles */
.intro-text {
  font-size: var(--font-size-l);
  color: var(--color-text-primary);
  font-weight: 400;
  line-height: 1.4;
}

.intro-text-h {
  font-size: var(--font-size-m);
  color: var(--color-text-primary);
  font-weight: 400;
  line-height: var((--line-height-loose));
}

.project-text {
  font-size: var(--font-size-m);
  color: var(--color-text-primary);
  font-weight: 400;
  line-height: var(--line-height-loose);
}

.project-label {
  font-size: var(--font-size-m);
  color: var(--color-text-low);
  font-weight: 400;
}

.project-text-container {
  display: flex;
  flex-direction: row;
  gap: var(--space-m);
  align-items: flex-start;
}

.project-text-container .project-label {
  width: 35%;
  flex-shrink: 0;
}

.project-text-container .project-text {
  width: 65%;
  flex-shrink: 0;
}

.project-meta {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  opacity: 0;
}

.meta-item {
  font-size: var(--font-size-s);
  color: var(--color-text-low);
  font-weight: 400;
}

/* Headings spacing */
h1, h2, h3, h4, h5, h6 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-m);
}

h1:first-child, h2:first-child, h3:first-child {
  margin-top: 0;
}

/* Hyperlink styles */
.hyperlink {
  color: var(--color-text-primary);
  font-weight: 400;
  line-height: var(--line-height-loose);
  text-decoration: underline;
  transition: transform 0.3s cubic-bezier(0.57, 0, 0.17, 1);
  display: inline-block; /* Needed for transform to work */
}

.hyperlinkup {
  color: var(--color-text-primary);
  font-weight: 400;
  line-height: var(--line-height-loose);
  text-decoration: underline;
  transition: transform 0.3s cubic-bezier(0.57, 0, 0.17, 1);
  display: inline-block; /* Needed for transform to work */
}

.hyperlink:hover {
  text-decoration: underline;
  transform: translateX(4px); /* Move right by 4px on hover */
}

.hyperlinkup:hover {
  text-decoration: underline;
  transform: translateY(-4px); /* Move up by 4px on hover */
}

/* Hide mobile config section on project detail page */
.config-section {
  display: none !important;
}