/* Theme 22 · 마케팅 플레이북 — HubSpot Blog article grammar + our floor rules.
   Values: docs/proto/v05/22-playbook/tokens.json. Mockup-only content parts (definition box, flow panel, pick cards)
   are left out: the core renders post bodies from markdown. Core body classes are styled at the end. */
:root {
  --bg: #FCFCFA;
  --band: #F8F5EE;
  --surface: #FFFFFF;
  --ink: #1F1F1F;
  --ink-2: #5E5E5C;
  --line: #E2E2E0;
  --line-strong: #878786;
  --table-head: #F3F2EE;
  --accent: #0F4C47;
  --accent-soft: #CFE2D8;
  --mint-2: #E4EFE9;
  --panel: #0B2E2C;
  --footer: #1F1F1F;
  --footer-ink: rgba(255, 255, 255, 0.72);
  --display: "Gothic A1", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --sans: "SUIT Variable", "SUIT", -apple-system, system-ui, sans-serif;
  --frame: 1080px;
  --col: 700px;
  --gut: 32px;
  --r-btn: 8px;
  --r-box: 16px;
  --t: 0.3s ease;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 350 16px/28px var(--sans);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -1000px; top: 4px; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: var(--r-btn); font-size: 14px; }
.skip:focus { left: 8px; z-index: 10; }
.frame { max-width: calc(var(--frame) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- utility bar: the site-wide one-liner (medical: the short disclaimer) ---------- */
.util { font-size: 13px; line-height: 20px; font-weight: 500; }
.util .frame { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; }
.util p { margin: 0; color: var(--ink-2); padding: 6px 0; }
.util a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--ink); text-underline-offset: 3px; }
.util .right { display: flex; gap: 20px; flex-shrink: 0; }

/* ---------- header ---------- */
.hd { border-bottom: 1px solid var(--line); position: relative; }
.hd .frame { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; white-space: nowrap; }
.logo svg { width: 28px; height: 28px; flex: none; }
.nav { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 0; padding: 0; list-style: none; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; font-size: 16px; font-weight: 600; white-space: nowrap; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.hd .tools { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); border-radius: var(--r-btn); cursor: pointer; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px; border-radius: var(--r-btn); border: 2px solid transparent; background: var(--accent); color: #fff; font: 600 14px/22px var(--sans); text-decoration: none; transition: background var(--t); white-space: nowrap; }
.btn:hover { background: #0A3834; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn.ghost:hover { background: var(--band); }
.menu-btn { display: none; }

/* ---------- breadcrumb ---------- */
.crumbs { font-size: 14px; line-height: 22px; font-weight: 500; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.crumbs li { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); }
.crumbs li + li::before { content: ""; flex: none; width: 7px; height: 7px; border: solid var(--ink-2); border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); margin: 0 14px 0 10px; }
.crumbs a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.crumbs li:last-child span { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- cream title band ---------- */
.band { background: var(--band); }
.hero .frame { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding-top: 64px; padding-bottom: 40px; }
.hero h1, .page-title h1 { font: 300 40px/44px var(--display); letter-spacing: -0.01em; margin: 0; }
.eyebrow { margin: 0 0 16px; font-size: 14px; line-height: 22px; font-weight: 600; color: var(--ink-2); }
.byline { margin: 24px 0 0; font-size: 16px; }
.byline b { font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.lead { margin: 20px 0 0; font-size: 18px; line-height: 32px; }
.updated { grid-column: 1 / -1; justify-self: end; margin: 0; padding-right: 16px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.post-cats { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; margin: 12px 0 0; font-size: 14px; line-height: 22px; }
.post-cats span { color: var(--ink-2); font-weight: 600; }
.post-cats a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--accent); text-underline-offset: 3px; }

/* relation box: HubSpot's white offer card; here it carries the trust line (sources + check date) */
.relation { margin-top: 40px; background: var(--surface); padding: 28px 32px; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 24px; }
.relation h2 { margin: 0 0 8px; font: 600 14px/22px var(--display); letter-spacing: 0.04em; }
.relation p { margin: 0 0 16px; font-size: 14px; line-height: 22px; font-weight: 600; }
.relation p a { color: var(--accent); }

/* photo frames: dark panel (hero 4:3), mint (cards 1.26), square glyphs. Without a photo they stay tinted blocks */
.art { margin: 0; position: relative; background: var(--panel); aspect-ratio: 4 / 3; overflow: hidden; align-self: start; }
.art img { width: 100%; height: 100%; object-fit: cover; }
.art figcaption { position: absolute; right: 12px; bottom: 12px; font: 500 12px/20px var(--sans); color: #fff; background: rgba(15, 30, 28, .55); padding: 2px 8px; }
.art.blank::before { content: ""; position: absolute; left: 12%; right: 0; top: 30%; bottom: 0; background: var(--accent-soft); clip-path: polygon(0 18%, 68% 0, 100% 16%, 100% 100%, 0 100%); opacity: 0.9; }
.glyph { width: 76px; height: 76px; background: var(--mint-2); }
.glyph.blank { background: linear-gradient(160deg, var(--accent-soft) 0 55%, var(--mint-2) 55% 100%); }
.thumb { aspect-ratio: 1.26; background: var(--mint-2); position: relative; overflow: hidden; margin-bottom: 16px; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb.blank::before { content: ""; position: absolute; left: 14%; right: 0; top: 38%; bottom: 0; background: var(--accent-soft); clip-path: polygon(0 20%, 66% 0, 100% 18%, 100% 100%, 0 100%); }

/* ---------- article column ---------- */
.col { max-width: calc(var(--col) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.article { padding-top: 56px; }
.article p { margin: 0 0 24px; }
.article a:not(.btn) { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
.article h2 { font: 300 40px/44px var(--display); margin: 72px 0 20px; letter-spacing: -0.01em; scroll-margin-top: 16px; }
.article h3 { font: 600 24px/34px var(--sans); margin: 40px 0 12px; scroll-margin-top: 16px; }
.article h4 { font: 600 20px/30px var(--sans); margin: 32px 0 10px; }
.article ul, .article ol { margin: 0 0 24px; padding-left: 22px; }
.article li { margin: 0 0 8px; }
.article li::marker { color: var(--ink-2); }
.article strong, .article b { font-weight: 700; }

.toc { margin: 8px 0 24px; padding: 20px 0 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toc b { display: block; font-weight: 700; margin-bottom: 4px; }
.article .toc ul { list-style: none; padding: 0; margin: 0 0 12px; }
.article .toc li { margin: 0; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; line-height: 22px; padding: 4px 0; }

/* cream method box (home): how sources are checked */
.method { background: var(--band); padding: 40px; margin: 64px 0 0; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 28px; }
.method .glyph { width: 120px; height: 150px; }
.method h3 { font: 300 32px/38px var(--display); margin: 0 0 12px; }
.method p { margin: 0 0 8px; }
.method .go { margin-top: 20px; }

/* ---------- sources + tail ---------- */
.sources-sec { margin-top: 72px; }
.sources-sec h2 { margin-top: 0; }
.src-note { font-size: 15px; line-height: 26px; color: var(--ink-2); }
.article ol.sources { padding-left: 26px; }
.sources li { font-size: 15px; line-height: 26px; padding-left: 4px; scroll-margin-top: 16px; }
.sources li:target { background: var(--band); }
.sources .k { color: var(--ink-2); font-weight: 500; }
.article .tail { margin: 40px 0 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; line-height: 22px; color: var(--ink-2); }

/* ---------- card grid (HubSpot related posts: 4 × 291, gap 24; three when a row has three) ---------- */
.shelf { padding: 80px 0 96px; }
.shelf h2 { font: 300 40px/44px var(--display); margin: 0 0 32px; letter-spacing: -0.01em; }
.shelf .head { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.shelf .head a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--accent); margin-bottom: 28px; white-space: nowrap; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card a { display: block; text-decoration: none; padding: 4px; border-radius: var(--r-btn); transition: background var(--t); }
.card a:hover { background: var(--band); }
.card a:hover .t { text-decoration: underline; text-underline-offset: 3px; }
.card .c { display: block; font-size: 13px; line-height: 20px; font-weight: 600; color: var(--accent); margin-bottom: 6px; }
.card .t { display: block; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--ink); }
.card .d { display: block; margin-top: 8px; font-size: 14px; line-height: 22px; color: var(--ink-2); font-weight: 400; }

/* ---------- home ---------- */
.home-hero h1 { font-size: 48px; line-height: 54px; }
.intro { padding-top: 64px; }
.intro h2 { margin-top: 0; }
.article .topics { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; border-top: 1px solid var(--line); }
.article .topics li { margin: 0; border-bottom: 1px solid var(--line); }
.topics a, .topics p { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 64px; margin: 0; text-decoration: none; color: var(--ink) !important; font-weight: 600 !important; }
.topics p { color: var(--ink-2) !important; }
.topics span { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.feature { max-width: calc(828px + var(--gut) * 2); margin: 56px auto 0; padding: 0 var(--gut); }
.feature > a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); text-decoration: none; border: 1px solid var(--line-strong); background: var(--surface); }
.feature .thumb { margin: 0; aspect-ratio: auto; min-height: 260px; }
.feature .txt { padding: 32px 36px; }
.feature .c { font-size: 13px; font-weight: 600; color: var(--accent); }
.feature h2 { font: 400 30px/38px var(--display); margin: 8px 0 12px; }
.feature p { margin: 0 0 20px; color: var(--ink-2); }
.feature .more { font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.about-block { padding-top: 80px; }
.about-block h2 { font: 300 40px/44px var(--display); margin: 0 0 20px; }
.about-block dl { display: grid; grid-template-columns: 160px minmax(0, 1fr); margin: 0; border-top: 1px solid var(--line); }
.about-block dt, .about-block dd { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
.about-block dt { font-weight: 700; font-size: 14px; }
.about-block dd { font-size: 15px; line-height: 26px; }
.about-block dd a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
.foot-gap { height: 96px; }

/* ---------- list page: chips + category sections (no-JS: :target shows one section) ---------- */
.page-title .frame { padding-top: 56px; padding-bottom: 48px; }
.page-title .lead { max-width: 640px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-btn); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 600 14px/22px var(--sans); text-decoration: none; transition: background var(--t), color var(--t); }
.chip:hover { background: var(--band); }
.chip[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip .n { font-weight: 500; opacity: 0.8; margin-left: 6px; }
.lead-post { padding-top: 56px; }
.lead-post > a { display: grid; grid-template-columns: minmax(0, 524px) minmax(0, 1fr); gap: 32px; text-decoration: none; align-items: center; }
.lead-post .thumb { margin: 0; aspect-ratio: 4 / 3; }
.lead-post .c { font-size: 13px; font-weight: 600; color: var(--accent); }
.lead-post h2 { font: 300 32px/40px var(--display); margin: 8px 0 12px; }
.lead-post p { margin: 0; color: var(--ink-2); }
.lead-post .meta { margin-top: 12px; font-size: 14px; line-height: 22px; font-weight: 600; }
.lead-post > a:hover h2 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.list-shelf { padding-top: 24px; }
.cat-sec { display: none; }
.cat-sec#c0 { display: block; }
.cat-sec:target { display: block; }
.lists:has(.cat-sec:target) .cat-sec#c0:not(:target) { display: none; }
.cat-sec .head { align-items: baseline; flex-wrap: wrap; }
.cat-sec h2 { margin: 32px 0 24px; }
.cat-sec .count { margin: 0 0 24px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.empty { color: var(--ink-2); }
.list-note { margin: 56px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; line-height: 22px; color: var(--ink-2); }

/* ---------- plain pages (about, 404) ---------- */
.page { padding-top: 40px; }
.page h2 { font-size: 32px; line-height: 38px; margin: 56px 0 16px; }
.page h2:first-child { margin-top: 0; }

/* ---------- footer (HubSpot dark band) ---------- */
.ft { background: var(--footer); color: #fff; }
.ft .frame { padding-top: 64px; padding-bottom: 40px; }
.ft .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.ft .logo { color: #fff; }
.ft p { font-size: 14px; line-height: 22px; color: var(--footer-ink); margin: 12px 0 0; }
.ft h2 { font: 700 13px/20px var(--sans); color: #fff; margin: 0 0 8px; letter-spacing: 0.04em; }
.ft ul { list-style: none; margin: 0; padding: 0; }
.ft li a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--footer-ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.ft li a:hover { color: #fff; text-decoration: underline; }
.ft .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 13px; line-height: 22px; color: var(--footer-ink); }
.ft .legal a { color: #fff; }

/* ---------- core body HTML (README: classes the core emits) ---------- */
/* medical disclaimer: same size as body, white face, full 1px frame (no coloured edge) */
.article p.disclaim { background: var(--surface); border: 1px solid var(--line-strong); padding: 18px 22px; font-size: 16px; line-height: 28px; font-weight: 500; }
.article p.adnote { background: var(--band); padding: 14px 18px; font-size: 15px; line-height: 24px; color: var(--ink-2); }
.cite { display: inline-block; padding: 8px 2px; margin: -8px 0; min-width: 24px; text-align: center; font-size: 14px; font-weight: 700; text-decoration: none !important; line-height: 28px; white-space: nowrap; }
.cite:hover { text-decoration: underline !important; }
.article figure.fig { margin: 8px 0 32px; }
.article figure.fig img { width: 100%; height: auto; }
.article figure.fig figcaption { font-size: 13px; line-height: 20px; color: var(--ink-2); margin-top: 10px; }
.table-scroll { margin: 8px 0 12px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-box); background: var(--surface); }
table.cmp { width: 100%; min-width: 600px; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 24px; }
table.cmp th, table.cmp td { text-align: left; vertical-align: top; padding: 18px 16px; border-bottom: 1px solid var(--line); }
table.cmp thead th { background: var(--table-head); font-size: 14px; line-height: 22px; font-weight: 600; letter-spacing: 0.02em; padding-top: 20px; padding-bottom: 20px; }
table.cmp tbody th { font-weight: 600; font-size: 14px; color: var(--ink); width: 24%; }
table.cmp tbody tr:last-child > * { border-bottom: 0; }
table.cmp td { font-weight: 350; }
.article p.table-note { font-size: 13px; line-height: 20px; color: var(--ink-2); margin: 0 0 32px; }
.article blockquote { margin: 0 0 24px; background: var(--band); padding: 20px 24px; font-size: 16px; line-height: 28px; }
.article blockquote p { margin: 0 0 8px; }
.article blockquote p:last-child { margin: 0; }
.todo { background: var(--table-head); padding: 0 6px; font-weight: 600; }
.samplebar { background: var(--surface); border: 1px solid var(--line-strong); font-size: 14px; line-height: 22px; padding: 10px 14px; margin: 0 0 20px; }

/* ---------- responsive: 1100 / 1023 (header menu) / 767 / 640 / 380 ---------- */
@media (max-width: 1100px) {
  .nav a { font-size: 15px; padding: 0 6px; }
  .hd .frame { gap: 16px; }
}
@media (max-width: 1023px) {
  .menu-btn { display: inline-grid; }
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gut) 16px; }
  .nav.open a { width: 100%; font-size: 16px; padding: 0; }
  .lead-post > a { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 767px) {
  :root { --gut: 24px; }
  .hero .frame { grid-template-columns: minmax(0, 1fr); padding-top: 40px; }
  .updated { justify-self: start; padding: 0; }
  .relation { margin-top: 32px; }
  .cards, .cards.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-post > a { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .feature > a { grid-template-columns: minmax(0, 1fr); }
  .feature .thumb { min-height: 0; aspect-ratio: 1.26; }
  .ft .cols { grid-template-columns: 1fr 1fr; }
  .method { grid-template-columns: minmax(0, 1fr); padding: 32px 24px; }
  .method .glyph { width: 88px; height: 88px; }
}
@media (max-width: 640px) {
  :root { --gut: 16px; }
  .util .frame { align-items: flex-start; flex-direction: column; gap: 0; padding-top: 4px; }
  .hd .frame { min-height: 60px; }
  .logo { font-size: 17px; }
  .hero h1, .page-title h1 { font-size: 34px; line-height: 40px; }
  .home-hero h1 { font-size: 34px; line-height: 42px; }
  .lead { font-size: 17px; line-height: 30px; }
  .relation { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; gap: 12px; }
  .relation .glyph { width: 56px; height: 56px; }
  .article h2, .shelf h2, .about-block h2 { font-size: 30px; line-height: 36px; }
  .article h2 { margin-top: 56px; }
  .article h3 { font-size: 21px; line-height: 30px; }
  .page h2 { font-size: 26px; line-height: 32px; }
  .method h3 { font-size: 26px; line-height: 32px; }
  .cards, .cards.three { grid-template-columns: minmax(0, 1fr); }
  .article .topics { grid-template-columns: minmax(0, 1fr); }
  .about-block dl { grid-template-columns: minmax(0, 1fr); }
  .about-block dt { border-bottom: 0; padding-bottom: 0; }
  .ft .cols { grid-template-columns: minmax(0, 1fr); }
  .feature .txt { padding: 24px 20px; }
  .feature h2 { font-size: 26px; line-height: 34px; }
  .lead-post h2 { font-size: 26px; line-height: 34px; }
  .shelf { padding: 56px 0 64px; }
  .article p.disclaim { padding: 16px 18px; }
  .hero .art.blank { display: none; }
}
@media (max-width: 380px) {
  .hd .frame { gap: 8px; }
  .logo { font-size: 16px; gap: 8px; }
  .logo svg { width: 24px; height: 24px; }
  .util .right { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
