:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --fg: #232323;
  --muted: #6b6b6b;
  --line: #e8e5e0;
  --accent: #1f7a6b;
  --accent-soft: #e7f2ef;
  --accent-ink: #14584c;
  --btn-bg: #17685a;
  --btn-fg: #ffffff;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16171a;
    --surface: #1e2024;
    --fg: #e9e8e6;
    --muted: #9b9b9b;
    --line: #32343a;
    --accent: #4bbfa8;
    --accent-soft: #1c2a28;
    --accent-ink: #8fe0d0;
    --btn-bg: #4bbfa8;
    --btn-fg: #0b241f;
  }
}
* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  scrollbar-color: var(--line) transparent;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Pretendard, -apple-system, "Segoe UI", "Malgun Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
}
::selection { background: var(--accent-soft); color: var(--accent-ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* header / footer */
.site-header { border-bottom: 2px solid var(--accent); background: var(--surface); }
.brand { display: inline-flex; align-items: center; gap: 9px; padding: 16px 0; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }
.brand-name { font-weight: 800; font-size: 20px; color: var(--fg); letter-spacing: -0.02em; }
.brand-season {
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  color: var(--accent-ink); background: var(--accent-soft);
  padding: 2px 8px; border-radius: 999px;
}
.site-footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 28px 0; font-size: 14px; color: var(--muted); }
.site-footer p { margin: 4px 0; }
.muted { color: var(--muted); }

main.wrap { padding-top: 36px; padding-bottom: 8px; }
.home-h1 { font-size: 24px; letter-spacing: -0.02em; margin: 0 0 8px; }
.lead { font-size: 15.5px; color: var(--muted); margin: 0 0 32px; line-height: 1.6; }
.home-group { margin: 0 0 40px; }
.home-group h2 {
  font-size: 15px; font-weight: 700; color: var(--accent-ink);
  margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
  letter-spacing: .01em;
}
.now-tag {
  font-size: 11px; font-weight: 700; letter-spacing: .03em;
  color: var(--btn-fg); background: var(--accent);
  padding: 1px 7px; border-radius: 999px; vertical-align: 2px;
}

/* index cards */
.card-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card:active { transform: translateY(0); }
.card a { display: flex; gap: 14px; padding: 18px; color: inherit; align-items: flex-start; }
.card a:hover { text-decoration: none; }
.card-ill {
  width: 44px; height: 44px; flex-shrink: 0; padding: 7px;
  background: #eef1ef; border-radius: 10px;
}
.card-text { min-width: 0; }
.card h2, .card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; line-height: 1.45; color: var(--fg); }
.card-desc {
  margin: 0 0 10px; font-size: 14.5px; color: var(--muted); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { margin: 0; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chip { background: var(--accent-soft); color: var(--accent-ink); border-radius: 999px; padding: 2px 9px; font-size: 12px; }
.tag-title { font-size: 22px; margin: 0 0 20px; }

/* post */
.post-ill {
  width: 58px; height: 58px; padding: 9px; margin: 0 0 10px;
  background: #eef1ef; border-radius: 12px; display: block;
}
.post h1 { font-size: 27px; line-height: 1.35; letter-spacing: -0.02em; margin: 0 0 20px; }
.post-body { font-size: 17px; }
.post-body p { margin: 18px 0; }
.post-body h2 { font-size: 19px; margin: 30px 0 8px; letter-spacing: -0.01em; }
.post-body h2:first-child { margin-top: 6px; }
.post-body strong { font-weight: 700; color: var(--fg); }
.post-body ul { padding-left: 20px; }
.post-body li { margin: 6px 0; }

.summary-box {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 0 0 24px;
}
.summary-label {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  color: var(--accent-ink);
  letter-spacing: .04em;
  margin-bottom: 4px;
}
.summary-box p { margin: 0; font-size: 15.5px; line-height: 1.7; }
.summary-jump {
  display: inline-flex; align-items: center;
  margin-top: 6px; min-height: 40px; padding: 4px 0;
  font-size: 14px; font-weight: 600;
  color: var(--accent-ink);
}

/* comparison table */
.cmp-wrap { overflow-x: auto; margin: 0 0 28px; }
table.cmp {
  width: 100%; border-collapse: collapse; font-size: 15px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
table.cmp caption {
  text-align: left; font-size: 13px; color: var(--muted);
  padding: 0 2px 8px; caption-side: top;
}
table.cmp th, table.cmp td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
table.cmp thead th { background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp td:first-child { font-weight: 600; color: var(--fg); }
.post-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.post-body th, .post-body td { padding: 9px 12px; border: 1px solid var(--line); text-align: left; }
.post-body thead th { background: var(--accent-soft); color: var(--accent-ink); }

/* recommendation / product pick */
.rec-box {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin: 36px 0;
}
.rec-title { margin: 0 0 12px; font-weight: 700; font-size: 16px; color: var(--fg); }
.rec-points { margin: 0 0 18px; padding-left: 18px; }
.rec-points li { margin: 5px 0; font-size: 15px; color: var(--fg); }
.rec-card {
  display: flex; gap: 14px; align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
}
.rec-img {
  width: 96px; height: 96px; flex-shrink: 0;
  object-fit: cover; border-radius: 8px; background: #eef1ef;
}
.rec-ill { object-fit: contain; padding: 16px; }
.rec-card-body { min-width: 0; flex: 1; }
.rec-name {
  margin: 0 0 3px; font-size: 15px; font-weight: 600; color: var(--fg);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rec-price { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--accent-ink); }
.rec-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 14.5px;
  padding: 11px 18px;
  border-radius: 8px;
  min-height: 44px;
  line-height: 1.35;
}
.rec-btn:hover { text-decoration: none; filter: brightness(1.05); }
.rec-btn:active { filter: brightness(0.95); }
.rec-btn-wide { display: flex; text-align: center; }
.rec-trust { margin: 12px 0 0; font-size: 12.5px; color: var(--fg); }
.rec-note { margin: 6px 0 0; font-size: 11.5px; color: var(--muted); }

.notfound { padding: 40px 0 60px; }
.notfound-code { font-size: 15px; font-weight: 700; color: var(--accent-ink); letter-spacing: .1em; margin: 0 0 4px; }
.notfound h1 { font-size: 24px; margin: 0 0 10px; }
.notfound p { color: var(--muted); margin: 6px 0; }
.notfound a { font-weight: 600; }

.related { margin: 40px 0 0; border-top: 1px solid var(--line); padding-top: 20px; }
.related h2 { font-size: 16px; margin: 0 0 10px; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { margin: 8px 0; }
.related a { font-weight: 600; }

.post-more {
  margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline;
}
.post-more span { color: var(--muted); font-size: 13px; }
.post-more a { font-weight: 600; }

.post-tags { margin: 22px 0 0; font-size: 14px; }
.post-tags a { color: var(--muted); }

@media (max-width: 460px) {
  .rec-card { flex-direction: column; align-items: stretch; }
  .rec-img { width: 100%; height: 150px; }
  .rec-ill { padding: 22px; }
}
