/* 여유로운 청도 삶 — 공통 스타일 */
:root {
  --bg: #FAF6EE;
  --paper: #FFFDF8;
  --sand: #F1E4D0;
  --line: #EADFCC;
  --line-strong: #E0D0B8;
  --ink: #3B2A20;
  --ink-soft: #5E4A3C;
  --ink-mute: #6B5444;
  --brown: #5A3A28;
  --accent: #E8833A;
  --accent-ink: #9A4A16;
  --cream: #FFF8EE;
  --serif: 'Nanum Myeongjo', serif;
  --sans: 'Gowun Dodum', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); }
a:hover { color: #6E3410; }
h1, h2, h3 { font-family: var(--serif); font-weight: 800; letter-spacing: -0.5px; line-height: 1.3; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--paper); padding: 8px 12px; }

/* 헤더 */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo span { font-family: var(--serif); font-weight: 800; font-size: 22px; letter-spacing: -0.5px; }
.logo:hover { color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a { padding: 10px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); }
.nav a:hover { background: var(--sand); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--sand); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--paper); cursor: pointer; align-items: center; justify-content: center; }

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; width: 100%; flex-direction: column; padding-bottom: 8px; }
  .nav.open { display: flex; }
}

/* 사진 자리: images 폴더에 파일이 있으면 사진, 없으면 색 블록 */
.photo { position: relative; overflow: hidden; background: var(--tone, #C98A4E); border-radius: 20px; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-label { position: absolute; left: 14px; bottom: 14px; padding: 4px 12px; border-radius: 999px; background: rgba(255,250,240,0.88); color: var(--brown); font-size: 13px; }
.photo img + .ph-label { display: none; }

/* 히어로 */
.hero { margin-top: 40px; min-height: 460px; display: flex; align-items: flex-end; border-radius: 24px; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(40, 22, 10, 0.32); }
.hero-text { position: relative; z-index: 1; padding: 48px; max-width: 640px; color: var(--cream); }
.hero-text .eyebrow { color: var(--cream); }
.hero-text h1 { margin: 0 0 16px; font-size: clamp(34px, 6vw, 48px); line-height: 1.25; }
.hero-text p { margin: 0 0 28px; font-size: 18px; color: #FFF1DE; }
@media (max-width: 600px) { .hero { min-height: 400px; } .hero-text { padding: 28px; } }

.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; text-decoration: none; font-weight: 700; }
.btn-light { background: var(--cream); color: var(--brown); }
.btn-light:hover { color: var(--brown); background: #fff; }
.btn-dark { background: var(--brown); color: var(--cream); }
.btn-dark:hover { color: var(--cream); background: #46291b; }
.btn-line { border: 1px solid var(--brown); color: var(--brown); font-weight: 400; }
.btn-line:hover { background: var(--sand); color: var(--brown); }

/* 계절 띠 */
.season { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 20px 28px; border-radius: 16px; background: var(--sand); }
.season-main { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pill-dark { padding: 2px 12px; border-radius: 999px; background: var(--brown); color: var(--cream); font-size: 13px; }
.season strong { font-family: var(--serif); font-size: 19px; }

/* 섹션 */
.section { padding-top: 64px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.eyebrow { margin: 0 0 6px; color: var(--accent-ink); font-size: 14px; letter-spacing: 2px; }
.section-head h2 { margin: 0; font-size: 34px; }
.center { display: flex; justify-content: center; margin-top: 32px; }

/* 필터 */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--brown); font-family: inherit; font-size: 15px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--brown); border-color: var(--brown); color: var(--cream); }

/* 장소 카드 */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.card .photo { height: 210px; border-radius: 0; }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.tag { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--sand); color: #6E3410; font-size: 13px; }
.card h3 { margin: 0; font-size: 22px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; flex-grow: 1; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 12px; border-top: 1px dashed var(--line-strong); font-size: 14px; color: var(--ink-mute); }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.card[hidden] { display: none; }

/* 일상 글 */
.daily { display: flex; flex-wrap: wrap; gap: 28px; }
.feature { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--ink); }
.feature:hover { color: var(--ink); }
.feature .photo { height: 340px; }
.feature .date { color: var(--accent-ink); font-size: 14px; }
.feature h3 { margin: 0; font-size: 28px; line-height: 1.35; }
.feature p { margin: 0; color: var(--ink-soft); }
.post-list { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; }
.post-list a { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.post-list .photo { width: 84px; height: 84px; flex-shrink: 0; border-radius: 14px; }
.post-list .photo .ph-label { display: none; }
.post-list .date { font-size: 13px; color: var(--accent-ink); }
.post-list strong { font-family: var(--serif); font-size: 17px; line-height: 1.4; display: block; }

/* 소개 */
.about { margin: 72px 0 64px; display: flex; flex-wrap: wrap; align-items: center; gap: 32px; padding: 40px; border-radius: 24px; background: var(--brown); color: var(--cream); }
.about .photo { width: 120px; height: 120px; border-radius: 999px; flex-shrink: 0; --tone: var(--accent); }
.about .photo .ph-label { left: 50%; bottom: 50%; transform: translate(-50%, 50%); white-space: nowrap; }
.about-text { flex: 1 1 360px; min-width: 0; }
.about h2 { margin: 0 0 10px; font-size: 26px; }
.about p { margin: 0; color: #F4E6D2; }

/* 푸터 */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: var(--ink-mute); }
.site-footer strong { font-family: var(--serif); color: var(--ink); }

/* 목록 페이지 머리 */
.page-head { padding: 56px 0 8px; }
.page-head h1 { margin: 0 0 8px; font-size: 40px; }
.page-head p { margin: 0; color: var(--ink-soft); }

/* 글 상세 */
.post { max-width: 720px; margin: 0 auto; padding: 0 22px 64px; }
.post-cover { height: clamp(260px, 45vw, 420px); margin-top: 32px; }
.post-head { padding: 28px 0 8px; display: flex; flex-direction: column; gap: 10px; }
.post-head h1 { margin: 0; font-size: clamp(26px, 4.5vw, 36px); line-height: 1.4; }
.post-head .byline { font-size: 14px; color: var(--ink-mute); }
.post hr { border: 0; height: 1px; background: var(--line); margin: 20px 0 28px; }
.post-body { font-size: 19px; }
@media (max-width: 600px) { .post-body { font-size: 16px; } }
.post-body p { margin: 0 0 20px; }
.post-body h2 { display: inline-block; margin: 36px 0 14px; padding-bottom: 6px; border-bottom: 2px solid var(--accent); font-size: 22px; }
.post-body figure { margin: 8px 0 28px; }
.post-body figure .photo { height: clamp(220px, 40vw, 380px); border-radius: 14px; }
.post-body figcaption { margin-top: 8px; text-align: center; font-size: 14px; color: var(--ink-mute); }
.post-body .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 8px 0 28px; }
.post-body .pair .photo { height: clamp(150px, 26vw, 240px); border-radius: 12px; }
.post-body blockquote { margin: 8px 0 28px; padding: 20px 24px; border-radius: 14px; background: #F7EBDA; font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.7; color: var(--brown); }
.info { margin: 36px 0 28px; padding: 24px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--bg); font-size: 15px; line-height: 1.6; }
.info h2 { margin: 0 0 14px !important; border: 0 !important; padding: 0 !important; font-size: 19px !important; }
.info dl { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px 12px; margin: 0; }
.info dt { color: var(--accent-ink); font-weight: 700; }
.info dd { margin: 0; }
.map { margin-top: 16px; height: 220px; border-radius: 12px; overflow: hidden; background: var(--line); display: flex; align-items: center; justify-content: center; color: var(--ink-mute); font-size: 14px; }
.map iframe { width: 100%; height: 100%; border: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; font-size: 14px; }
.tags span { padding: 4px 12px; border-radius: 999px; background: var(--sand); color: #6E3410; }
.post-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }

.meta .loc::before, .meta .when::before { content: ""; width: 14px; height: 14px; background: currentColor; flex-shrink: 0; }
.meta .loc::before { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 21s-7-6.5-7-12a7 7 0 0114 0c0 5.5-7 12-7 12z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 21s-7-6.5-7-12a7 7 0 0114 0c0 5.5-7 12-7 12z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E") center/contain no-repeat; }
.meta .when::before { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center/contain no-repeat; }

/* 직접 쓴 글: 사진을 원래 비율대로 */
.post-body .photo-auto { height: auto !important; background: var(--sand); }
.post-body .photo-auto img { position: static; width: 100%; height: auto; }
.post-cover img { position: absolute; }
.empty-note { color: var(--ink-mute); padding: 24px 0; list-style: none; }

/* 미리보기 문장: 3줄까지 보여 주고 넘치면 … */
.feature p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; line-height: 1.75; }

.hero { align-items: center; }
