:root {
  color-scheme: light;
  --ink: #171512;
  --muted: #706b63;
  --soft: #f5f1e8;
  --bg: #fbfaf6;
  --card: #fffefb;
  --line: #e6dfd2;
  --accent: #7b2d21;
  --accent-strong: #5c1f17;
  --accent-soft: #f3e7df;
  --green: #284839;
  --warn: #9a5b23;
  --shadow: 0 18px 56px rgba(45, 34, 19, 0.07);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.72;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(123, 45, 33, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #fffdfa 0%, #fbfaf6 46%, #f7f2e9 100%);
  background-size: 72px 72px, auto;
}

a { color: var(--accent-strong); text-decoration-thickness: 0.07em; text-underline-offset: 0.22em; }
a:hover { color: #2d120d; }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(123, 45, 33, 0.28); outline-offset: 4px; }

.skip-link { position: absolute; left: -999px; top: 12px; background: var(--ink); color: white; padding: 10px 14px; border-radius: 12px; z-index: 10; }
.skip-link:focus { left: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: rgba(255, 253, 250, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(230, 223, 210, 0.92);
}
.top-nav {
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Gowun Batang", serif;
  font-size: 25px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.045em;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fffdfa;
  font-family: Pretendard, sans-serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.08em;
}
.nav-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; font-weight: 800; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--accent-strong); }

.container { width: min(1040px, calc(100% - 38px)); margin: 0 auto; padding: 46px 0 80px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: 28px;
  align-items: stretch;
  padding: 0 0 34px;
  border-bottom: 1px solid var(--line);
}
.editorial-hero { margin-bottom: 30px; }
.hero-copy {
  min-height: 520px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 90% 8%, rgba(123, 45, 33, 0.12), transparent 17rem),
    linear-gradient(145deg, #fffefb 0%, #fbf5ea 100%);
  box-shadow: var(--shadow);
}
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
h1, h2, h3 { letter-spacing: -0.052em; line-height: 1.16; }
h1 { margin: 0; font-size: clamp(42px, 7.2vw, 78px); max-width: 760px; }
h2 { margin: 0 0 14px; font-size: clamp(28px, 4vw, 44px); }
h3 { margin: 0; font-size: 24px; }
.hero-lede { max-width: 680px; margin: 24px 0 0; color: #423d36; font-size: clamp(18px, 2.2vw, 22px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 18px; border-radius: 999px; font-weight: 900; text-decoration: none; }
.button.primary { background: var(--ink); color: #fffdf8; }
.button.secondary { background: #fffdf8; color: var(--ink); border: 1px solid #c9b9a4; }
.commerce-disclosure { margin: 28px 0 0; max-width: 650px; color: #403a33; font-size: 15px; font-weight: 600; }
.hero-image-placeholder, .guide-image-placeholder, .card-image-placeholder {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: var(--soft);
  border: 1px solid rgba(123, 45, 33, 0.18);
}
.hero-image-placeholder {
  aspect-ratio: 16 / 9;
  max-height: 260px;
  margin: 0 0 26px;
  border-radius: 24px;
  box-shadow: 0 16px 38px rgba(45, 34, 19, 0.08);
}
.card-image-placeholder {
  aspect-ratio: 16 / 9;
  margin-bottom: 2px;
  border-radius: 14px;
}
.guide-hero-image {
  aspect-ratio: 16 / 9;
  margin: 0 0 28px;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(45, 34, 19, 0.08);
}

.editor-card, .trust-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 26px;
  align-self: stretch;
  box-shadow: var(--shadow);
}
.editor-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0.7)),
    repeating-linear-gradient(-8deg, #f2eadc 0 12px, #eadfcd 12px 24px);
}
.editor-avatar {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--green);
  color: #fffefb;
  font-family: "Gowun Batang", serif;
  font-size: 26px;
  font-weight: 700;
}
.editor-card strong, .trust-panel strong { display: block; font-size: 22px; margin-bottom: 10px; letter-spacing: -0.04em; }
.editor-card p { margin: 0 0 18px; color: #3e3a34; }
.editor-card dl { display: grid; gap: 10px; margin: 0; }
.editor-card dl div { padding-top: 12px; border-top: 1px solid rgba(92,31,23,0.18); }
.editor-card dt { color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: 0.08em; }
.editor-card dd { margin: 4px 0 0; color: #4f493f; font-weight: 700; }
.trust-panel ul { margin: 0; padding-left: 20px; color: var(--muted); }
.trust-link { display: inline-flex; margin-top: 16px; font-size: 14px; font-weight: 900; text-decoration: none; }

.problem-finder, .featured-section, .method-card, .guide-group, .reader-path, .guide-article, .related-guides, .dont-buy-yet, .recommendation-paths {
  margin-top: 30px;
  background: rgba(255,254,251,0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3.4vw, 32px);
  box-shadow: 0 10px 32px rgba(45, 34, 19, 0.045);
}
.problem-finder { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 24px; align-items: center; }
.symptom-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.symptom-chip { display: inline-flex; min-height: 44px; align-items: center; padding: 10px 14px; border: 1px solid #dfd3c0; border-radius: 999px; background: #fffdfa; color: var(--ink); text-decoration: none; font-weight: 900; transition: transform .16s ease, background .16s ease, box-shadow .16s ease; }
.symptom-chip::after { content: '→'; margin-left: 8px; color: var(--accent); }
.symptom-chip:hover { background: var(--accent-soft); text-decoration: none; transform: translateY(-1px); box-shadow: 0 12px 24px rgba(92, 31, 23, 0.08); }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-heading p, .section-intro { margin: 0; color: var(--muted); }
.section-intro { margin: -4px 0 18px; }
.section-link { white-space: nowrap; font-weight: 900; text-decoration: none; }
ul.guide-list, .featured-list { padding-left: 0; list-style: none; display: grid; gap: 14px; margin: 0; }
.featured-list { grid-template-columns: repeat(2, minmax(0, 1fr)); counter-reset: featured; }
.secondary-featured { margin-top: 16px; }
.featured-card, .guide-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 182px;
  background: #fffefb;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.featured-card:hover, .guide-card:hover { transform: translateY(-2px); border-color: #d1b9a4; box-shadow: var(--shadow); }
.featured-card::before { counter-increment: featured; content: counter(featured); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: white; font-weight: 900; }
.card-kicker { color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: 0.05em; }
.card-title { color: var(--ink); font-size: 20px; font-weight: 900; line-height: 1.28; text-decoration: none; letter-spacing: -0.035em; }
.card-title:hover { color: var(--accent-strong); }
.featured-card p, .guide-card p { margin: 0; color: var(--muted); font-size: 15px; }
.card-cta { margin-top: auto; color: var(--accent-strong); font-weight: 900; }
.guide-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guide-list:has(.guide-card:only-child) { grid-template-columns: 1fr; }

.featured-lead {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: stretch;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.featured-visual {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.16), rgba(23,21,18,0.08)),
    linear-gradient(135deg, #cabda8 0%, #efe3cf 42%, #a9b6a5 100%);
}
.featured-visual::before {
  content: '';
  position: absolute;
  left: 13%;
  right: 13%;
  bottom: 18%;
  height: 42%;
  border: 2px solid rgba(23,21,18,0.45);
  border-radius: 18px 18px 8px 8px;
  background: rgba(255,253,250,0.38);
}
.featured-visual span:nth-child(1) { position: absolute; left: 20%; bottom: 28%; width: 25%; height: 42%; border-radius: 12px; background: rgba(40,72,57,0.84); }
.featured-visual span:nth-child(2) { position: absolute; right: 18%; bottom: 25%; width: 24%; height: 32%; border-radius: 999px 999px 16px 16px; background: rgba(123,45,33,0.82); }
.featured-visual span:nth-child(3) { position: absolute; left: 9%; bottom: 12%; width: 82%; height: 10px; border-radius: 999px; background: rgba(23,21,18,0.36); }
.featured-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.featured-copy h3 { font-size: clamp(30px, 4vw, 46px); margin: 8px 0 10px; }
.featured-copy h3 a { color: var(--ink); text-decoration: none; }
.featured-copy p { color: var(--muted); }
.editor-note { padding: 14px 16px; border-left: 4px solid var(--accent); background: #faf3ea; border-radius: 14px; color: #4f493f !important; }

.dont-buy-yet { background: #201d19; color: #fffdf8; }
.dont-buy-yet .eyebrow { color: #d9a28e; }
.dont-buy-yet .section-heading p { color: #d6cec0; }
.dont-buy-grid, .recommendation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dont-buy-card { padding: 20px; border: 1px solid rgba(255,253,248,0.16); border-radius: 18px; background: rgba(255,253,248,0.06); }
.dont-buy-card strong { display: block; font-size: 18px; margin-bottom: 8px; }
.dont-buy-card p { margin: 0; color: #f0e6d8; }
.recommendation-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.recommendation-card { display: flex; flex-direction: column; gap: 8px; min-height: 170px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fffdfa; text-decoration: none; color: var(--ink); }
.recommendation-card span { color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: 0.04em; }
.recommendation-card strong { font-size: 19px; line-height: 1.25; letter-spacing: -0.04em; }
.recommendation-card small { margin-top: auto; color: var(--muted); font-weight: 800; }
.recommendation-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.recommendation-card::after { content: '읽기 →'; margin-top: 4px; color: var(--accent-strong); font-size: 14px; font-weight: 900; }

.method-card { margin-top: 36px; background: #233a2e; color: #fffdf8; }
.method-card .eyebrow { color: #d6b78f; }
.method-card p { color: #e9efe6; max-width: 820px; }

.guide-article { max-width: 840px; margin-left: auto; margin-right: auto; }
.guide-article h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 22px; }
.guide-article h2 { margin-top: 42px; padding-top: 26px; border-top: 1px solid var(--line); }
.guide-article p, .guide-article li { font-size: 18px; }
.guide-article code { background: #f2ebdf; padding: 2px 6px; border-radius: 7px; }
.guide-article ul { padding-left: 22px; }
.notice { border-left: 4px solid var(--accent); padding: 14px 16px; background: var(--accent-soft); border-radius: 14px; color: var(--accent-strong); }
.reader-path { max-width: 840px; margin-left: auto; margin-right: auto; display: flex; gap: 18px; align-items: center; justify-content: space-between; }
.reader-path strong { font-size: 18px; }
.reader-path ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.reader-path li { padding: 8px 10px; background: var(--soft); border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 800; }
.related-guides { background: #f8fbf4; }
.related-guides h2 { margin-top: 0; padding-top: 0; border-top: 0; }

.site-footer {
  border-top: 1px solid var(--line);
  background: #201d19;
  color: #f3ede3;
  padding: 30px max(22px, calc((100vw - 1040px) / 2));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.site-footer p { margin: 8px 0 0; color: #d2c8bb; font-size: 14px; }
.site-footer strong { color: white; }

@media (max-width: 900px) {
  .hero, .problem-finder, .featured-lead { grid-template-columns: 1fr; }
  .hero-copy { min-height: auto; }
  .recommendation-grid, .dont-buy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .top-nav { align-items: flex-start; flex-direction: column; }
  .nav-links { gap: 10px; }
  .container { width: min(100% - 24px, 1040px); padding-top: 22px; }
  .hero-copy, .editor-card { border-radius: 24px; }
  .featured-list, .guide-list, .site-footer, .recommendation-grid, .dont-buy-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; }
  .reader-path { align-items: flex-start; flex-direction: column; }
}
