/*
Theme Name: Sokcho Blog
Theme URI: https://example.com/sokcho-blog
Author: Claude (Cowork)
Author URI: https://claude.ai
Description: 속초의 바다와 노을을 담은 따뜻하고 감성적인 여행·풍경 블로그 테마. 큰 사진, 부드러운 색감, 정갈한 세리프 제목이 특징입니다.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sokcho-blog
Tags: blog, travel, photography, one-column, two-columns, right-sidebar, custom-menu, featured-images, translation-ready
*/

/* =========================================================
   1. 색상·타이포 변수 (따뜻·감성 팔레트)
   ========================================================= */
:root {
  --sc-bg: #fbf7f1;          /* 따뜻한 크림 배경 */
  --sc-surface: #ffffff;     /* 카드/본문 */
  --sc-text: #3a3330;        /* 부드러운 브라운 그레이 */
  --sc-muted: #8a7f78;       /* 보조 텍스트 */
  --sc-accent: #cf7a54;      /* 속초 노을 코랄/테라코타 */
  --sc-accent-dark: #b5623c;
  --sc-sea: #6f8f86;         /* 은은한 바다·솔숲 그린 */
  --sc-border: #ece3d8;      /* 따뜻한 경계선 */
  --sc-shadow: 0 8px 30px rgba(120, 92, 66, 0.10);
  --sc-shadow-sm: 0 3px 14px rgba(120, 92, 66, 0.08);
  --sc-radius: 18px;
  --sc-radius-sm: 12px;
  --sc-maxw: 1180px;
  --sc-serif: "Noto Serif KR", "Nanum Myeongjo", Georgia, serif;
  --sc-sans: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

/* =========================================================
   2. 기본 리셋 & 바탕
   ========================================================= */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sc-sans);
  font-size: 17px;
  line-height: 1.8;
  color: var(--sc-text);
  background: var(--sc-bg);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sc-accent-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--sc-accent); }
h1, h2, h3, h4 { font-family: var(--sc-serif); font-weight: 600; line-height: 1.35; color: var(--sc-text); letter-spacing: -0.01em; }
p { margin: 0 0 1.2em; }

.sc-container { max-width: var(--sc-maxw); margin: 0 auto; padding: 0 24px; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* =========================================================
   3. 헤더 & 내비게이션
   ========================================================= */
.sc-header {
  background: rgba(251, 247, 241, 0.92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--sc-border);
  position: sticky; top: 0; z-index: 50;
}
.sc-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 16px 24px; max-width: var(--sc-maxw); margin: 0 auto;
}
.sc-brand { display: flex; flex-direction: column; gap: 2px; }
.sc-site-title { font-family: var(--sc-serif); font-size: 1.5rem; font-weight: 700; margin: 0; }
.sc-site-title a { color: var(--sc-text); }
.sc-site-title a:hover { color: var(--sc-accent); }
.sc-site-desc { font-size: .82rem; color: var(--sc-muted); margin: 0; }

.sc-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.sc-nav a { color: var(--sc-text); font-size: .96rem; font-weight: 500; position: relative; padding: 4px 0; }
.sc-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--sc-accent); transition: width .25s ease;
}
.sc-nav a:hover::after, .sc-nav .current-menu-item > a::after { width: 100%; }
.sc-nav .current-menu-item > a { color: var(--sc-accent-dark); }

.sc-menu-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  font-size: 1.5rem; color: var(--sc-text); line-height: 1;
}

/* =========================================================
   4. 히어로 (홈 상단)
   ========================================================= */
.sc-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 140% at 80% -10%, rgba(207,122,84,.35), transparent 55%),
    linear-gradient(160deg, #f6e5d6 0%, #f3d9c4 40%, #e7c7ac 100%);
  border-bottom: 1px solid var(--sc-border);
}
.sc-hero.has-image { background-size: cover; background-position: center; }
.sc-hero-overlay { background: linear-gradient(180deg, rgba(58,51,48,.15), rgba(58,51,48,.45)); }
.sc-hero-inner {
  max-width: var(--sc-maxw); margin: 0 auto; padding: 96px 24px;
  text-align: center;
}
.sc-hero.has-image .sc-hero-inner { padding: 130px 24px; }
.sc-hero-eyebrow {
  display: inline-block; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--sc-accent-dark); margin-bottom: 16px; font-weight: 600;
}
.sc-hero.has-image .sc-hero-eyebrow { color: #ffe9d8; }
.sc-hero h1, .sc-hero .sc-hero-title {
  font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 0 0 18px; line-height: 1.25;
}
.sc-hero.has-image .sc-hero-title, .sc-hero.has-image .sc-hero-sub { color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.sc-hero-sub { font-size: clamp(1rem, 2vw, 1.2rem); color: #6b5c50; max-width: 640px; margin: 0 auto; }

/* =========================================================
   5. 레이아웃 (본문 + 사이드바)
   ========================================================= */
.sc-main { padding: 56px 0 72px; }
.sc-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 48px; }
.sc-layout.no-sidebar { grid-template-columns: minmax(0, 820px); justify-content: center; }

.sc-section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 26px; }
.sc-section-head h2 { font-size: 1.5rem; margin: 0; position: relative; padding-left: 16px; }
.sc-section-head h2::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 1.1em; border-radius: 4px; background: var(--sc-accent);
}
.sc-section-head .sc-more { font-size: .9rem; color: var(--sc-muted); }

/* =========================================================
   6. 글 카드 그리드
   ========================================================= */
.sc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.sc-card {
  background: var(--sc-surface); border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius); overflow: hidden; box-shadow: var(--sc-shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease; display: flex; flex-direction: column;
}
.sc-card:hover { transform: translateY(-4px); box-shadow: var(--sc-shadow); }
.sc-card-thumb { display: block; aspect-ratio: 16/10; overflow: hidden; background: #f0e7dc; }
.sc-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.sc-card:hover .sc-card-thumb img { transform: scale(1.05); }
.sc-card-thumb.is-empty {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #f4e3d3, #ecd0b8); color: #c99a78; font-size: 2.4rem;
}
.sc-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.sc-cat { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sc-accent-dark); font-weight: 700; }
.sc-card-title { font-size: 1.28rem; margin: 0; }
.sc-card-title a { color: var(--sc-text); }
.sc-card-title a:hover { color: var(--sc-accent); }
.sc-card-excerpt { color: var(--sc-muted); font-size: .96rem; margin: 0; }
.sc-card-meta { margin-top: auto; padding-top: 8px; font-size: .82rem; color: var(--sc-muted); display: flex; gap: 12px; align-items: center; }
.sc-card-meta .sc-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--sc-muted); display: inline-block; }

/* 첫 글 크게 (홈 피처드) */
.sc-featured { margin-bottom: 44px; }
.sc-featured .sc-card { flex-direction: row; }
.sc-featured .sc-card-thumb { flex: 1 1 55%; aspect-ratio: auto; }
.sc-featured .sc-card-body { flex: 1 1 45%; justify-content: center; padding: 34px 38px; }
.sc-featured .sc-card-title { font-size: 1.9rem; }
.sc-featured .sc-card-excerpt { font-size: 1.02rem; }

/* =========================================================
   7. 단일 글 / 페이지
   ========================================================= */
.sc-article { background: var(--sc-surface); border: 1px solid var(--sc-border); border-radius: var(--sc-radius); overflow: hidden; box-shadow: var(--sc-shadow-sm); }
.sc-article-hero img { width: 100%; max-height: 460px; object-fit: cover; }
.sc-article-body { padding: 40px clamp(24px, 5vw, 56px) 48px; }
.sc-article-header { margin-bottom: 28px; }
.sc-article-header .sc-cat { display: inline-block; margin-bottom: 12px; }
.sc-article-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 14px; }
.sc-article-meta { color: var(--sc-muted); font-size: .9rem; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.sc-content { font-size: 1.05rem; line-height: 1.95; }
.sc-content > * { margin-bottom: 1.3em; }
.sc-content h2 { font-size: 1.6rem; margin: 1.8em 0 .6em; }
.sc-content h3 { font-size: 1.3rem; margin: 1.6em 0 .5em; }
.sc-content img, .sc-content figure { border-radius: var(--sc-radius-sm); margin: 1.6em 0; }
.sc-content figure img { margin: 0; }
.sc-content figcaption { text-align: center; color: var(--sc-muted); font-size: .85rem; margin-top: 8px; }
.sc-content blockquote {
  margin: 1.6em 0; padding: 6px 24px; border-left: 4px solid var(--sc-accent);
  color: #6b5c50; font-family: var(--sc-serif); font-style: italic; background: #f7ede2; border-radius: 0 var(--sc-radius-sm) var(--sc-radius-sm) 0;
}
.sc-content a { border-bottom: 1px solid rgba(207,122,84,.4); }
.sc-content code { background: #f2e8dc; padding: 2px 7px; border-radius: 6px; font-size: .9em; }
.sc-content ul, .sc-content ol { padding-left: 1.4em; }
.sc-content li { margin-bottom: .5em; }

.sc-tags { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px; }
.sc-tags a { background: #f2e8dc; color: #7a6a5c; font-size: .82rem; padding: 6px 14px; border-radius: 999px; }
.sc-tags a:hover { background: var(--sc-accent); color: #fff; }

.sc-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.sc-post-nav a { display: block; background: var(--sc-surface); border: 1px solid var(--sc-border); border-radius: var(--sc-radius-sm); padding: 18px 22px; box-shadow: var(--sc-shadow-sm); }
.sc-post-nav .sc-pn-label { font-size: .78rem; color: var(--sc-muted); text-transform: uppercase; letter-spacing: .1em; }
.sc-post-nav .sc-pn-title { font-family: var(--sc-serif); font-size: 1.05rem; margin-top: 4px; }
.sc-post-nav .next { text-align: right; }

/* =========================================================
   8. 사이드바 위젯
   ========================================================= */
.sc-sidebar .widget { background: var(--sc-surface); border: 1px solid var(--sc-border); border-radius: var(--sc-radius); padding: 24px 24px 26px; margin-bottom: 28px; box-shadow: var(--sc-shadow-sm); }
.sc-sidebar .widget-title { font-size: 1.1rem; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--sc-border); }
.sc-sidebar ul { list-style: none; margin: 0; padding: 0; }
.sc-sidebar li { padding: 7px 0; border-bottom: 1px dashed var(--sc-border); font-size: .96rem; }
.sc-sidebar li:last-child { border-bottom: 0; }
.sc-sidebar a { color: var(--sc-text); }
.sc-sidebar a:hover { color: var(--sc-accent); }
.sc-about-card { text-align: center; }
.sc-about-card .sc-about-avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 14px; object-fit: cover; border: 3px solid var(--sc-bg); box-shadow: var(--sc-shadow-sm); }
.sc-about-card p { color: var(--sc-muted); font-size: .94rem; }

/* 검색폼 */
.sc-searchform { display: flex; gap: 8px; }
.sc-searchform input[type=search] { flex: 1; padding: 11px 14px; border: 1px solid var(--sc-border); border-radius: var(--sc-radius-sm); background: var(--sc-bg); font-family: inherit; font-size: .95rem; }
.sc-searchform input[type=search]:focus { outline: 2px solid rgba(207,122,84,.4); border-color: var(--sc-accent); }
.sc-searchform button { border: 0; background: var(--sc-accent); color: #fff; padding: 0 18px; border-radius: var(--sc-radius-sm); cursor: pointer; font-family: inherit; }
.sc-searchform button:hover { background: var(--sc-accent-dark); }

/* =========================================================
   9. 페이지네이션
   ========================================================= */
.sc-pagination { margin-top: 48px; display: flex; justify-content: center; }
.sc-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px; margin: 0 4px;
  border-radius: var(--sc-radius-sm); border: 1px solid var(--sc-border);
  background: var(--sc-surface); color: var(--sc-text); font-size: .95rem;
}
.sc-pagination .page-numbers.current { background: var(--sc-accent); color: #fff; border-color: var(--sc-accent); }
.sc-pagination a.page-numbers:hover { border-color: var(--sc-accent); color: var(--sc-accent); }

/* =========================================================
   10. 푸터
   ========================================================= */
.sc-footer { background: #3a3330; color: #e9ddd0; margin-top: 40px; }
.sc-footer-inner { max-width: var(--sc-maxw); margin: 0 auto; padding: 48px 24px 40px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.sc-footer-brand { font-family: var(--sc-serif); font-size: 1.3rem; color: #fff; }
.sc-footer p { margin: 6px 0 0; color: #b6a89a; font-size: .88rem; }
.sc-footer-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.sc-footer-nav a { color: #d9cbbc; font-size: .92rem; }
.sc-footer-nav a:hover { color: var(--sc-accent); }
.sc-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); text-align: center; padding: 18px; font-size: .82rem; color: #9c8f81; }

/* =========================================================
   11. 반응형
   ========================================================= */
@media (max-width: 980px) {
  .sc-layout { grid-template-columns: 1fr; }
  .sc-featured .sc-card { flex-direction: column; }
  .sc-featured .sc-card-thumb { aspect-ratio: 16/9; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .sc-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--sc-bg); border-bottom: 1px solid var(--sc-border); }
  .sc-nav.open { display: block; }
  .sc-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  .sc-nav li { padding: 10px 0; border-bottom: 1px dashed var(--sc-border); }
  .sc-menu-toggle { display: block; }
  .sc-grid { grid-template-columns: 1fr; }
  .sc-post-nav { grid-template-columns: 1fr; }
  .sc-hero-inner { padding: 64px 20px; }
}
