/* ============================================
   Yasmina Lin Portfolio - Stylesheet
   作者：Yasmina Lin
   最後更新：May 2026

   結構說明：
   1. CSS 變數（顏色、字型、間距）— 改這裡就能全站套用
   2. 基礎重置
   3. 主容器
   4. Header 區（雨傘 + 姓名 + 介紹）
   5. Section 通用樣式
   6. 作品卡片（Work item）
   7. 三欄資訊區（Contact / Stack / About）
   8. Footer
   9. 響應式（手機版）
   ============================================ */


/* ============================================
   1. CSS 變數
   想改色、改字體、改間距，只要動這一段
   ============================================ */
:root {
  /* 顏色 */
  --bg: #fbfaf7;             /* 背景：米白色 */
  --text: #1a1a1a;           /* 主要文字：近黑 */
  --text-muted: #6b6b6b;     /* 次要文字：灰 */
  --text-light: #9a9a9a;     /* 更淺文字：標題用 */
  --border: #e8e6e0;         /* 卡片邊框：淡米色 */
  --link: #1a1a1a;           /* 連結色 */

  /* 字型 */
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* 字級 */
  --fs-h1: 36px;             /* Yasmina Lin */
  --fs-h2: 14px;             /* Work samples 等小標 */
  --fs-h3: 15px;             /* 作品名稱 */
  --fs-body: 14px;           /* 一般內文 */
  --fs-small: 13px;          /* 卡片描述 */

  /* 間距 */
  --gap-section: 80px;       /* 區塊之間的距離 */
  --gap-item: 12px;           /* 作品卡之間的距離 */
  --radius: 8px;              /* 圓角 */
}


/* ============================================
   2. 基礎重置
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
}

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

a:hover {
  border-bottom-color: var(--text);
	
}


/* ============================================
   3. 主容器
   ============================================ */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 32px 60px;
}


/* ============================================
   4. Header 區
   ============================================ */
.header {
  text-align: center;
  margin-bottom: var(--gap-section);
}

/* 雨傘 logo */
.logo {
  width: 100px;
  margin: 0 auto 40px;
}

.logo svg {
  width: 100%;
  height: auto;
  display: block;
}

/* 姓名（等寬字體）*/
.name {
  font-family: var(--font-mono);
  font-size: var(--fs-h1);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

/* 職稱 */
.title {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--text);
  margin-bottom: 40px;
}

/* 自我介紹三段（每段中間留空隙）*/
.intro p {
  font-size: var(--fs-body);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

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

.work-thumb img {
  width: 56px;
  height: 56px;
  object-fit: cover;     /* 圖片填滿方塊，超出部分裁切（不變形）*/
  border-radius: 10px;   /* 跟方塊一樣的圓角 */
  display: block;
}

/* 作品卡連結：讓整個卡片都可以點 */
.work-link {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  width: 100%;
  text-decoration: none;
  color: inherit;          /* 文字顏色繼承，不要變藍色 */
  border-bottom: none;     /* 移除預設底線 */
}

/* 作品卡連結：所有狀態、所有子元素都不要底線 */
.work-link,
.work-link:hover,
.work-link:active,
.work-link:focus,
.work-link:visited,
.work-link *,
.work-link:hover *,
.work-link:hover h3,
.work-link:hover p {
  text-decoration: none;
  border-bottom: none;
}

/* 卡片內的圖片：填滿縮圖方塊 */
.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
/* ============================================
   5. Section 通用樣式
   ============================================ */
.section {
  margin-bottom: var(--gap-section);
}

/* 區塊標題（Work samples / Earlier work 等）— 等寬字、灰色 */
.section-title {
  font-family: var(--font-mono);
  font-size: var(--fs-h2);
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}


/* ============================================
   6. 作品卡片
   ============================================ */
.work-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--gap-item);
}

.work-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  border: 0.8px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.work-item:hover {
  border-color: #505050;  
}

/* 作品縮圖（左側方塊）*/
.work-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

/* 作品內文區 */
.work-body {
  flex: 1;
  min-width: 0;
}

.work-name {
  font-family: var(--font-mono);
  font-size: var(--fs-h3);
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text);
}

.work-desc {
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: 1.5;
}


/* ============================================
   7. 三欄資訊區（Contact / Stack / About）
   ============================================ */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-top: 16px;
}

.info-col {
  min-width: 0;
}

/* 欄位標籤（Email / Design / Typefonts...）*/
.info-label {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

/* 欄位內容 */
.info-value {
  font-size: var(--fs-small);
  color: var(--text);
  line-height: 1.5;
}

/* About this site 區的單行說明 */
.about-text {
  font-size: var(--fs-body);
  color: var(--text);
  margin-bottom: 32px;
}


/* ============================================
   8. Footer
   ============================================ */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  font-size: var(--fs-small);
}

.copyright {
  color: var(--text);
}

.slogan em {
  font-style: italic;
  color: var(--text);
}


/* ============================================
   9. 響應式（手機版：螢幕寬度 < 640px）
   ============================================ */
@media (max-width: 640px) {
  .container {
    padding: 48px 20px 40px;
  }

  :root {
    --fs-h1: 28px;
    --gap-section: 56px;
  }

  /* 三欄變一欄 */
  .info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* 作品卡：縮圖縮小 */
  .work-thumb {
    width: 48px;
    height: 48px;
    font-size: 16px;
  }

  .work-item {
    padding: 14px 16px;
    gap: 14px;
  }

  /* Footer 改成上下排列 */
  .footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
