/* ===========================================================
   튼튼혈관연구소 — Design System
   Brand: coral #E8503A (혈관·심장) / hope green #46c98b
   Light, readable, fast, AdSense-friendly. No frameworks.
   =========================================================== */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;600;900&display=swap");

:root {
  --coral: #E8503A;
  --coral-dark: #c63d29;
  --green: #46c98b;
  --ink: #1b1f24;
  --gray: #5b656f;
  --line: #e8ebee;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --maxw: 1080px;
  --radius: 14px;
  --shadow: 0 2px 18px rgba(20, 24, 29, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--coral); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); }
.brand .dot { width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ff7a63, var(--coral)); display:inline-block; }
.brand:hover { text-decoration: none; }
.menu { display: flex; gap: 22px; }
.menu a { color: var(--gray); font-weight: 600; font-size: 15px; }
.menu a:hover { color: var(--coral); text-decoration: none; }
.menu-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--ink); }

@media (max-width: 720px) {
  .menu { position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 0;
    transform: translateY(-130%); transition: transform .25s ease; }
  .menu.open { transform: translateY(0); }
  .menu a { padding: 14px 20px; border-top: 1px solid var(--line); }
  .menu-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: 38px; font-weight: 800; line-height: 1.25; margin: 0 0 16px; letter-spacing: -.02em; }
.hero h1 .hl { color: var(--coral); }
.hero p { font-size: 18px; color: var(--gray); max-width: 640px; margin: 0; }
.hero .tag { display:inline-block; background: #fdeae6; color: var(--coral-dark);
  font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
@media (max-width: 720px){ .hero h1 { font-size: 28px; } }

/* ---------- Section ---------- */
section { padding: 48px 0; }
.section-head { display:flex; align-items:baseline; justify-content:space-between; margin-bottom: 24px; }
.section-head h2 { font-size: 24px; font-weight: 800; margin: 0; }
.section-head a { font-size: 14px; font-weight: 600; }

/* ---------- Card grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 880px){ .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .grid { grid-template-columns: 1fr; } }

.card { display:flex; flex-direction: column; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; background:#fff; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--coral), #ff9a86);
  display:flex; align-items:center; justify-content:center; color:#fff; font-weight:800; font-size: 17px; text-align:center; padding: 16px; }
.card .thumb.green { background: linear-gradient(135deg, var(--green), #79e0b1); }
.card .thumb.ink { background: linear-gradient(135deg, #2b3138, #4a525b); }
.card .body { padding: 18px; display:flex; flex-direction:column; gap: 8px; flex:1; }
.card .cat { font-size: 12px; font-weight: 700; color: var(--coral); }
.card h3 { font-size: 17px; font-weight: 700; margin: 0; line-height: 1.4; color: var(--ink); }
.card p { font-size: 14px; color: var(--gray); margin: 0; }
.card .meta { margin-top: auto; font-size: 12px; color: #9aa3ac; }

/* ---------- Article ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 48px 20px 24px; }
.article .crumb { font-size: 13px; color: var(--gray); margin-bottom: 18px; }
.article h1 { font-size: 32px; line-height: 1.3; font-weight: 800; letter-spacing: -.02em; margin: 0 0 14px; }
.article .byline { display:flex; align-items:center; gap: 12px; padding: 16px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); margin-bottom: 28px; font-size: 14px; color: var(--gray); }
.article .byline .ava { width: 40px; height: 40px; border-radius:50%; background: radial-gradient(circle at 30% 30%, #ff7a63, var(--coral)); }
.article .byline b { color: var(--ink); }
.article h2 { font-size: 23px; font-weight: 800; margin: 38px 0 14px; padding-top: 6px; }
.article h3 { font-size: 19px; font-weight: 700; margin: 26px 0 10px; }
.article p { margin: 0 0 18px; }
.article ul, .article ol { margin: 0 0 18px; padding-left: 22px; }
.article li { margin-bottom: 8px; }
.article blockquote { border-left: 4px solid var(--coral); background: var(--bg-soft);
  margin: 24px 0; padding: 14px 18px; border-radius: 0 8px 8px 0; color: var(--ink); }
.article .lead { font-size: 19px; color: var(--gray); }
.callout { background:#fdeae6; border:1px solid #f6c9bf; border-radius: 12px; padding: 18px 20px; margin: 24px 0; }
.callout.green { background:#e8f8f0; border-color:#bfe9d4; }
.callout b { color: var(--coral-dark); }
.callout.green b { color: #279067; }
.disclaimer { font-size: 13px; color: #8a949d; background: var(--bg-soft); border:1px dashed var(--line);
  border-radius: 10px; padding: 14px 16px; margin: 32px 0 0; line-height: 1.6; }
.sources { font-size: 13px; color: var(--gray); margin-top: 24px; }
.sources b { color: var(--ink); }

/* ---------- Ad slot ---------- */
.ad-slot { margin: 28px auto; max-width: 760px; min-height: 100px;
  display:flex; align-items:center; justify-content:center;
  border:1px dashed var(--line); border-radius:10px; color:#b3bbc3; font-size:13px; background: var(--bg-soft); }

/* ---------- CTA box ---------- */
.cta-box { background: var(--ink); color:#fff; border-radius: var(--radius); padding: 32px; text-align:center; margin: 40px 0; }
.cta-box h3 { margin: 0 0 8px; font-size: 22px; }
.cta-box p { margin: 0 0 18px; color: #c7ced5; }
.btn { display:inline-block; background: var(--coral); color:#fff; font-weight:700;
  padding: 12px 26px; border-radius: 999px; }
.btn:hover { background: var(--coral-dark); text-decoration:none; }

/* ---------- Static page ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 48px 20px; }
.page h1 { font-size: 30px; font-weight: 800; margin: 0 0 24px; }
.page h2 { font-size: 21px; font-weight: 700; margin: 30px 0 12px; }
.page p, .page li { color: #353c44; }
.page table { width:100%; border-collapse: collapse; margin: 16px 0; }
.page td, .page th { border:1px solid var(--line); padding: 10px 12px; text-align:left; font-size: 15px; }

/* ---------- Footer ---------- */
footer.site { background: var(--bg-soft); border-top: 1px solid var(--line); margin-top: 40px; padding: 40px 0 28px; }
footer.site .cols { display:flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
footer.site .brand { margin-bottom: 10px; }
footer.site p { color: var(--gray); font-size: 14px; max-width: 360px; margin: 6px 0; }
footer.site .links { display:flex; gap: 18px; flex-wrap: wrap; }
footer.site .links a { color: var(--gray); font-size: 14px; font-weight: 600; }
footer.site .copy { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color:#9aa3ac; }

.form { display:flex; flex-direction:column; gap: 14px; max-width: 520px; }
.form label { font-weight: 600; font-size: 14px; }
.form input, .form textarea { width:100%; padding: 12px 14px; border:1px solid var(--line); border-radius: 10px; font-family:inherit; font-size: 15px; }
.form button { align-self:flex-start; }

/* ---------- Hero actions ---------- */
.hero .actions { display:flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn.ghost { background:#fff; color: var(--coral-dark); border: 2px solid var(--coral); }
.btn.ghost:hover { background: #fdeae6; }

/* ---------- Stats band ---------- */
.stats { display:grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.stats .stat { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; text-align:center; }
.stats .stat b { display:block; font-size: 22px; color: var(--coral-dark); letter-spacing: -.02em; }
.stats .stat span { font-size: 13px; color: var(--gray); }
@media (max-width: 720px){ .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Category tiles ---------- */
.tiles { display:grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 880px){ .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile { display:flex; flex-direction:column; gap: 6px; border:1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; background:#fff; transition: transform .15s, box-shadow .15s, border-color .15s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color:#f3b9ae; text-decoration:none; }
.tile .ico { font-size: 28px; line-height: 1; }
.tile b { font-size: 17px; color: var(--ink); }
.tile span { font-size: 13.5px; color: var(--gray); line-height: 1.5; }
.tile .go { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--coral); }

/* ---------- Tool cards / calculators ---------- */
.tool { border:1px solid var(--line); border-radius: var(--radius); background:#fff; padding: 26px 24px; margin-bottom: 28px; }
.tool h2 { margin: 0 0 6px; font-size: 21px; }
.tool .desc { color: var(--gray); font-size: 14.5px; margin: 0 0 18px; }
.tool .row { display:flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tool .field { flex:1; min-width: 130px; }
.tool label { display:block; font-weight:700; font-size: 13.5px; margin-bottom: 6px; color: var(--ink); }
.tool input[type="number"] { width:100%; padding: 12px 14px; border:1px solid var(--line); border-radius: 10px; font-size: 16px; font-family:inherit; }
.tool input:focus { outline: 2px solid #f6c9bf; border-color: var(--coral); }
.tool .checks { display:grid; grid-template-columns: repeat(2, 1fr); gap: 8px 14px; margin-bottom: 16px; }
@media (max-width: 560px){ .tool .checks { grid-template-columns: 1fr; } }
.tool .checks label { display:flex; align-items:flex-start; gap: 8px; font-weight:500; font-size: 14.5px; cursor:pointer;
  border:1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0; }
.tool .checks input { width: 18px; height: 18px; accent-color: var(--coral); margin-top: 2px; flex-shrink: 0; }
.tool button.btn { border: 0; cursor: pointer; font-size: 15px; font-family: inherit; }
.result { margin-top: 16px; border-radius: 12px; padding: 16px 18px; font-size: 15px; display:none; line-height: 1.65; }
.result.show { display:block; }
.result.good { background:#e8f8f0; border:1px solid #bfe9d4; }
.result.warn { background:#fff6e0; border:1px solid #f2dfa8; }
.result.bad { background:#fdeae6; border:1px solid #f6c9bf; }
.result b.level { font-size: 17px; display:block; margin-bottom: 4px; }
.result .item { display:flex; justify-content:space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.result .item:last-of-type { border-bottom: 0; }
.badge { display:inline-block; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.badge.g { background:#e8f8f0; color:#279067; }
.badge.y { background:#fff6e0; color:#a97c0a; }
.badge.r { background:#fdeae6; color: var(--coral-dark); }

/* ---------- Community link cards ---------- */
.linkcards { display:grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 720px){ .linkcards { grid-template-columns: 1fr; } }
.linkcard { display:flex; align-items:center; gap: 16px; border:1px solid var(--line); border-radius: var(--radius);
  background:#fff; padding: 20px; transition: transform .15s, box-shadow .15s; }
.linkcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration:none; }
.linkcard .lgo { width: 52px; height: 52px; border-radius: 14px; display:flex; align-items:center; justify-content:center;
  font-size: 26px; flex-shrink:0; color:#fff; font-weight:800; }
.lgo.threads { background:#1b1f24; }
.lgo.insta { background: linear-gradient(45deg,#f9ce34,#ee2a7b 55%,#6228d7); }
.lgo.kakao { background:#fee500; color:#3c1e1e; }
.lgo.naver { background:#03c75a; }
.linkcard .txt b { display:block; font-size: 16.5px; color: var(--ink); }
.linkcard .txt span { font-size: 13.5px; color: var(--gray); line-height: 1.5; display:block; }
.linkcard .soon { margin-left:auto; flex-shrink:0; }
.soon { font-size: 11.5px; font-weight:800; background: var(--bg-soft); color:#9aa3ac; border:1px solid var(--line); padding: 4px 10px; border-radius: 999px; }

/* ---------- Naver Cafe CTA (모든 툴 공통) ---------- */
.cafe-cta { display:flex; align-items:center; gap:18px; background:#f2fbf6;
  border:1.5px solid #bfe9d4; border-radius: var(--radius); padding: 22px 24px;
  margin: 32px 0 0; flex-wrap: wrap; }
.cafe-cta .ci { width:54px; height:54px; border-radius:16px; background:#03c75a; color:#fff;
  font-size:24px; display:flex; align-items:center; justify-content:center; flex-shrink:0; font-weight:800; }
.cafe-cta .tx { flex:1; min-width: 220px; }
.cafe-cta b { display:block; font-size:17px; color:var(--ink); margin-bottom:2px; }
.cafe-cta span { font-size:14px; color:var(--gray); line-height:1.6; }
.btn.naver { background:#03c75a; white-space:nowrap; }
.btn.naver:hover { background:#02a94d; }
@media (max-width: 560px){ .cafe-cta .btn.naver { width:100%; text-align:center; } }

/* ===========================================================
   v2 — HAMLOG-inspired editorial refresh
   =========================================================== */
.brand .logo { width: 30px; height: 30px; display: block; }
.brand { letter-spacing: -.01em; }

.menu a { font-size: 13.5px; letter-spacing: .05em; }

/* eyebrow section label */
.eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: .32em;
  text-transform: uppercase; color: #9aa3ac; margin-bottom: 14px; }
.eyebrow.red { color: var(--coral); }

.serif { font-family: "Noto Serif KR", "Pretendard", serif; }

.section-head h2 { font-size: 30px; letter-spacing: -.03em; }
.section-head { flex-wrap: wrap; gap: 8px; }

/* contact channel cards (HAMLOG-style bordered row) */
.chan-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 960px){ .chan-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px){ .chan-grid { grid-template-columns: repeat(2, 1fr); } }
.chan { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line);
  background: #fff; padding: 20px 18px; border-radius: 4px; transition: border-color .2s, transform .15s; }
.chan:hover { border-color: var(--ink); transform: translateY(-2px); text-decoration: none; }
.chan .ci { font-size: 18px; line-height: 1; }
.chan b { font-size: 14px; color: var(--ink); letter-spacing: .02em; }
.chan span { font-size: 12.5px; color: var(--gray); word-break: break-all; }
