/* ============================================
   Case Study Page Stylesheet
   專案詳情頁專屬樣式（建構在 style.css 之上）

   結構說明：
   1. 容器調整（case-container）
   2. 返回首頁連結（back-nav）
   3. 專案標題區（case-header）
   4. 圖片區（figure）
   5. 內文段落間距
   6. 響應式
   ============================================ */


/* ============================================
   1. 容器：詳情頁稍微寬一點，容納大圖
   ============================================ */
.case-container {
  max-width: 780px;       /* 比首頁 720 略寬，圖片才有舒展空間 */
}


/* ============================================
   2. 返回首頁連結
   ============================================ */
.back-nav {
  margin-bottom: 60px;
}

.back-nav--bottom {
  margin-top: 80px;
  margin-bottom: 24px;
}

.back-link {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--text);
  border-bottom: none;
  transition: opacity 0.2s ease;
}

.back-link:hover {
  opacity: 0.6;
  border-bottom: none;
}


/* ============================================
   3. 專案標題區
   ============================================ */
.case-header {
  text-align: center;
  margin-bottom: var(--gap-section);
}

.case-title {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.case-tagline {
  font-size: var(--fs-body);
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}


/* ============================================
   4. 圖片區（淺灰底容器 + 內嵌圖）
   ============================================ */
.figure {
  margin: 60px 0;
}

.figure-frame {
  background: #f0eeea;          /* 淺灰米色背景 */
  border-radius: 14px;
  padding: 48px;                 /* 圖片與容器邊緣的留白 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.figure-frame img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;           /* 圖片本身也有小圓角 */
}

.figure-caption {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
}


/* ============================================
   5. 內文段落（Context / Outcome 等）
   ============================================ */
.section p {
  font-size: var(--fs-body);
  line-height: 1.75;             /* 詳情頁讀字較多，行高加大 */
  color: var(--text);
  margin-bottom: 20px;
}

.section p:last-child {
  margin-bottom: 0;
}

/* Project details 開頭的引言 */
.case-intro {
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 32px;
  max-width: 640px;
}


/* ============================================
   6. 響應式
   ============================================ */
@media (max-width: 640px) {
  .case-title {
    font-size: 26px;
  }

  .figure {
    margin: 40px 0;
  }

  .figure-frame {
    padding: 24px;                /* 手機上縮減留白 */
    border-radius: 10px;
  }

  .back-nav {
    margin-bottom: 40px;
  }

  .back-nav--bottom {
    margin-top: 56px;
  }
}
