:root {
  --bg: #fffdf8;
  --surface: #ffffff;
  --line: #f0e7d8;
  --text: #2b2b2b;
  --muted: #7a746b;
  --sub: #fff5cc;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --radius: 22px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #fffdf8 0%, #fffaf1 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
   max-width: 100%;
  height: auto;
}

post-thumb img,
.article-content img {
  display: block;
  width: 100%;
  height: auto;
}

/* 카테고리 리스트 내부 이미지 확대 방지 */
.category-box img,
.category-box li img,
.category-box a img,
.tt_category img {
  display: inline !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  vertical-align: middle;
}
.inner {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(240, 231, 216, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-sub {
  font-size: 0.8rem;
  font-weight: 700;
  color: #9a8d76;
  letter-spacing: 0.06em;
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 800;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #4f4a41;
}

.main-nav a:hover {
  background: var(--sub);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 999px;
}

/* hero */
.hero-section {
  padding: 32px 0 10px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
  align-items: stretch;
}

.hero-copy,
.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 36px;
}

.hero-kicker {
  display: inline-block;
  margin: 0 0 12px;
  padding: 8px 14px;
  background: var(--sub);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3vw, 2.9rem);
  line-height: 1.25;
}

.hero-desc {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 1rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.87rem;
  font-weight: 700;
}

.badge-new { background: #fff1be; }
.badge-event { background: #dff7ef; }
.badge-restock { background: #ffe7c9; }
.badge-pick { background: #ffe1ea; }

.hero-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, #fff7da 0%, #fffdf6 100%);
}

.mini-card {
  width: 100%;
  padding: 24px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 24px;
}

.mini-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #8f7853;
  letter-spacing: 0.08em;
}

.mini-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
}

/* layout */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  padding: 20px 0 44px;
}

.content-area {
  min-width: 0;
}

.sidebar-area {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* post list */
.post-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  margin-bottom: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.post-thumb {
  overflow: hidden;
  border-radius: 18px;
  background: #f8f3e8;
  aspect-ratio: 1 / 1;
}

.post-thumb img {
  height: 100%;
  object-fit: cover;
}

.thumb-fallback {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff3bf, #ffe9c9);
  color: #7d6743;
  font-weight: 800;
  font-size: 1.2rem;
}

.post-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.post-category,
.post-date {
  font-size: 0.84rem;
  color: var(--muted);
}

.post-category {
  padding: 6px 10px;
  background: var(--sub);
  border-radius: 999px;
  font-weight: 700;
  color: #7d6743;
}

.post-title {
  margin: 0 0 8px;
  font-size: 1.3rem;
  line-height: 1.4;
}

.post-summary {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.96rem;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f7f3ea;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6c645a;
}

/* article */
.article-page {
  margin-bottom: 20px;
}

.article-box {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.article-top {
  margin-bottom: 24px;
}

.article-category {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--sub);
  color: #7d6743;
  font-size: 0.88rem;
  font-weight: 700;
}

.article-title {
  margin: 14px 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.35;
}

.article-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.article-content {
  font-size: 1.03rem;
  line-height: 1.85;
  word-break: keep-all;
}

.article-content img {
  max-width: 100%;
  border-radius: 18px;
  margin: 18px 0;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  line-height: 1.45;
  margin-top: 1.8em;
  margin-bottom: 0.7em;
}

.article-content p {
  margin: 0 0 1.15em;
}

.article-tags {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.tag-list a {
  display: inline-block;
  margin: 8px 8px 0 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f7f3ea;
  color: #6c645a;
  font-size: 0.88rem;
}

/* sidebar */
.side-box {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.side-box h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.side-box p,
.side-box li,
.side-box a {
  color: var(--muted);
  font-size: 0.95rem;
}

.simple-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.simple-list li + li {
  margin-top: 8px;
}

/* search */
.search-box input[type="text"],
.search-box input[type="search"] {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffefb;
}

/* paging */
.paging {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 0 8px;
}

.paging-link,
.paging-num a,
.paging-num span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}

/* footer */
.site-footer {
  border-top: 1px solid rgba(240, 231, 216, 0.9);
  background: rgba(255,255,255,0.7);
}

.footer-inner {
  padding: 24px 0 36px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* mobile */
@media (max-width: 1024px) {
  .hero-inner,
  .layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    display: none;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .main-nav a {
    width: 100%;
    justify-content: flex-start;
    background: #fcfaf5;
  }

  .post-card {
    grid-template-columns: 1fr;
  }

  .post-thumb {
    aspect-ratio: 16 / 10;
  }

  .hero-copy {
    padding: 26px;
  }
}

@media (max-width: 480px) {
  .inner {
    width: min(calc(100% - 20px), var(--max));
  }

  .header-inner {
    padding: 12px 0;
  }

  .brand-title {
    font-size: 1.04rem;
  }

  .hero-section {
    padding-top: 18px;
  }

  .hero-copy,
  .hero-card,
  .side-box,
  .post-card,
  .article-box {
    border-radius: 18px;
  }

  .hero-copy h1 {
    font-size: 1.72rem;
  }

  .post-title {
    font-size: 1.1rem;
  }

  .article-title {
    font-size: 1.6rem;
  }

  .article-box {
    padding: 20px;
  }
}