/* ========================================================================
   warm.css — 버전 B (따뜻한 햇살) 레이아웃 & 인터랙션
   shared.css 뒤에 로드. data-theme="warm" 가정.
   ======================================================================== */

html { scroll-behavior: smooth; }
body { padding-top: 68px; padding-bottom: 88px; }
section[id], #about, #works, #teaching, #contact { scroll-margin-top: 80px; }

/* --- Top Nav (fixed — 항상 상단 고정) --- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: 0 2px 8px rgba(61, 38, 21, 0.06); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; }
.brand { font-family: var(--font-display); font-size: 26px; letter-spacing: 1px; font-weight: 600; }
.nav-menu { display: flex; gap: 28px; font-size: 16px; font-weight: 500; }
.nav-menu a:hover { color: var(--accent); }
.nav-toggle { display: none; font-size: 24px; background: none; border: 0; cursor: pointer; }
@media (max-width: 640px) {
  .nav-menu { display: none; }
  .nav-menu.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--bg); padding: 16px; border-bottom: 1px solid var(--border); gap: 16px; }
  .nav-toggle { display: block; }
}

/* --- Hero --- */
.hero { padding: 64px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.hero-portrait { aspect-ratio: 4/5; border-radius: 50% 50% 48% 52% / 55% 58% 42% 45%; overflow: hidden; box-shadow: var(--shadow-lg); animation: blobMorph 12s ease-in-out infinite alternate; }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; }
@keyframes blobMorph { to { border-radius: 48% 52% 55% 45% / 45% 48% 52% 55%; } }
.hero-eyebrow { color: var(--accent); letter-spacing: 4px; font-size: 13px; font-weight: 600; text-transform: uppercase; margin-bottom: 14px; }
.hero-title { font-size: clamp(44px, 6.5vw, 80px); font-weight: 500; line-height: 1.08; margin-bottom: 18px; }
.hero-sub { color: var(--text-soft); font-style: italic; margin-bottom: 32px; font-size: 20px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 768px) { .hero-grid { grid-template-columns: 1fr; } .hero-portrait { max-width: 320px; margin: 0 auto; } }

/* --- Section common --- */
.section { padding: 80px 0; }
.section-head { margin-bottom: 48px; text-align: center; position: relative; }
.section-head::after { content: ''; display: block; width: 60px; height: 2px; background: var(--accent); margin: 16px auto 0; transform-origin: left; }
.section-eyebrow { display: inline-block; color: var(--accent); letter-spacing: 4px; font-size: 11px; margin-bottom: 12px; text-transform: uppercase; }
.section-title { font-size: clamp(40px, 5.5vw, 64px); }
.section-sub { color: var(--text-soft); margin-top: 12px; }

/* About + CV grid */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; } }
.about-note p { margin-bottom: 18px; font-size: 18px; line-height: 1.85; }
.about-en { font-family: var(--font-display); font-style: italic; color: var(--text-soft); margin-top: 24px; }
.cv-list { display: grid; gap: 8px; font-family: var(--font-body); }
.cv-block { margin-bottom: 32px; }
.cv-block h4 { font-family: var(--font-body); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.cv-row { display: grid; grid-template-columns: 70px 1fr; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 15px; }

/* Works */
.category-section { margin-bottom: 72px; }
.category-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.category-icon { font-size: 24px; }
.category-title { font-size: 32px; font-weight: 500; }
.category-sub { color: var(--muted); font-size: 13px; }

/* Teaching */
.teach-grid { display: grid; gap: 24px; }
.teach-latest { background: linear-gradient(135deg, var(--surface), var(--bg)); padding: 32px; border-radius: var(--radius-lg); border: 2px solid var(--accent); }
.teach-timeline, .teach-tutorial { background: var(--surface); padding: 32px; border-radius: var(--radius-md); }
.teach-timeline h3, .teach-tutorial h3 { font-size: 22px; margin-bottom: 16px; }
.teach-tutorial { text-align: center; }
.teach-tutorial p { color: var(--text-soft); margin-bottom: 20px; }

/* Contact — 양각(입체) 카드 */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.contact-card {
  background: linear-gradient(145deg, #fffaf0, #f3e3c8);
  padding: 28px 20px;
  border-radius: var(--radius-md);
  border: 2px solid rgba(139, 74, 25, 0.22);
  text-align: center;
  display: block;
  position: relative;
  transition: transform .25s, box-shadow .25s;
  box-shadow:
    0 6px 16px rgba(139, 74, 25, 0.10),
    inset 0 2px 0 rgba(255,255,255,0.95),
    inset 0 -3px 6px rgba(139, 74, 25, 0.08);
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 28px rgba(139, 74, 25, 0.18),
    inset 0 2px 0 rgba(255,255,255,1),
    inset 0 -3px 6px rgba(139, 74, 25, 0.10);
}
.contact-icon { font-size: 34px; margin-bottom: 10px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08)); }
.contact-label { font-size: 12px; color: var(--muted); letter-spacing: 2px; font-weight: 600; }
.contact-value { font-size: 15px; margin-top: 6px; font-weight: 500; }

/* 강좌 액션 버튼 — 크기·모양 통일 (전화 / 링크복사) */
.course-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}
.btn-action {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 18px;
  border-radius: 12px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.3px;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn-action-primary {
  background: linear-gradient(145deg, #e87a3e, #c65d2a);
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(139, 74, 25, 0.28), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-action-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(139, 74, 25, 0.38); }
.btn-action-ghost {
  background: #ffffff;
  color: #5c3010;
  border-color: rgba(139, 74, 25, 0.25);
  box-shadow: 0 4px 10px rgba(139, 74, 25, 0.08), inset 0 1px 0 rgba(255,255,255,0.9);
}
.btn-action-ghost:hover { transform: translateY(-2px); background: #fff6e8; }

/* 타임라인 / 강좌 제목 — 세로 글자 스택 방지 */
.timeline-row, .timeline-title, .timeline-status, .course-title, .course-status, .course-desc {
  word-break: keep-all;
  overflow-wrap: break-word;
}
.poster-panel .course-title, .course-latest .course-title { word-break: keep-all; overflow-wrap: break-word; }

@media (max-width: 640px) {
  .timeline-row {
    grid-template-columns: 60px 1fr !important;
    grid-template-areas: "year title" "status title";
    row-gap: 2px;
    padding: 14px 0;
  }
  .timeline-year { grid-area: year; }
  .timeline-status { grid-area: status; font-size: 12px; }
  .timeline-title { grid-area: title; font-size: 15px; line-height: 1.4; }
  .course-title { font-size: clamp(22px, 6vw, 32px) !important; line-height: 1.2; }
  .poster-panel { padding: 40px 24px !important; aspect-ratio: auto !important; min-height: auto !important; }
  .poster-panel .course-title { font-size: clamp(26px, 7.5vw, 40px) !important; }
  .course-actions { grid-template-columns: 1fr; }
  .btn-action { width: 100%; }
  .course-actions .btn, .course-actions a, .course-actions button { width: 100%; text-align: center; }
}

/* Footer */
.site-footer { padding: 48px 0 32px; text-align: center; color: var(--muted); font-size: 13px; border-top: 1px solid var(--border); margin-top: 96px; }
.site-footer p { margin-bottom: 8px; }
