:root {
  --accent: #2f6b4f;
  --ink: #222;
  --text: #333;
  --muted: #888;
  --faint: #aaa;
  --line: #ececec;
  --serif: "Nanum Myeongjo", "Noto Serif KR", serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; }
img { max-width: 100%; display: block; }
main { max-width: 720px; margin: 0 auto; padding: 0 20px 72px; }

/* header / footer */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.site-header-inner { max-width: 720px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-brand { font-family: var(--serif); font-weight: 700; font-size: 19px; text-decoration: none; letter-spacing: -.02em; }
.site-nav { display: flex; gap: 18px; font-size: 14px; }
.site-nav a { text-decoration: none; color: #555; }
.site-nav a:hover { color: var(--accent); }
.site-footer { border-top: 1px solid var(--line); padding: 36px 20px 48px; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.7; }
.site-footer strong { font-family: var(--serif); color: #555; font-size: 15px; }
.site-footer p { margin: 6px auto 0; max-width: 560px; }
.site-footer-small { font-size: 12px; color: var(--faint); }

/* blog home profile */
.blog-profile { text-align: center; padding: 48px 0 32px; border-bottom: 1px solid var(--line); }
.blog-profile-avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; border: 1px solid var(--line); }
.blog-profile h1 { font-family: var(--serif); font-weight: 700; font-size: 26px; margin: 0 0 10px; letter-spacing: -.02em; }
.blog-profile-intro { margin: 0 auto; max-width: 460px; color: #666; font-size: 14.5px; line-height: 1.75; }
.blog-profile-author { display: inline-block; margin-top: 12px; font-size: 13.5px; color: var(--accent); text-decoration: none; }
.blog-profile-stats { margin-top: 14px; display: flex; justify-content: center; gap: 14px; font-size: 13px; color: var(--muted); }
.blog-profile-stats b { color: var(--ink); }

/* post list (home, author, bottom of post) */
.post-list { padding-top: 8px; }
.post-list-title { font-size: 15px; font-weight: 700; margin: 24px 0 4px; }
.post-list-empty { color: var(--muted); text-align: center; padding: 40px 0; }
.post-list-item { display: flex; gap: 18px; align-items: center; justify-content: space-between; padding: 22px 0; border-bottom: 1px solid #f2f2f2; text-decoration: none; }
.post-list-item:hover strong { color: var(--accent); }
.post-list-copy { min-width: 0; display: grid; gap: 7px; }
.post-list-category { font-size: 12px; color: var(--accent); font-weight: 600; }
.post-list-copy strong { font-size: 16.5px; font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-list-copy p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-list-date { font-size: 12px; color: var(--faint); }
.post-list-item img { flex: 0 0 auto; width: 104px; height: 104px; object-fit: cover; border-radius: 6px; background: #f5f5f5; }

/* post */
.story { padding-top: 8px; }
.story-head { text-align: center; padding: 44px 0 26px; border-bottom: 1px solid var(--line); }
.story-category { display: inline-block; font-size: 13px; color: var(--accent); margin-bottom: 14px; }
.story-head h1 { font-family: var(--serif); font-weight: 400; font-size: 29px; line-height: 1.55; margin: 0 auto; max-width: 620px; letter-spacing: -.02em; }
.story-byline { margin-top: 20px; display: flex; justify-content: center; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.story-byline a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #555; }
.story-byline img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.story-disclosure { text-align: center; font-size: 12.5px; color: var(--faint); margin: 18px auto 0; line-height: 1.6; }
.story-hero { margin-top: 28px; }

.photo { margin: 0 0 34px; }
.photo img { width: 100%; height: auto; }
.photo figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; line-height: 1.6; }
.photo-product { max-width: 420px; margin-left: auto; margin-right: auto; }
.photo-product img { aspect-ratio: 1 / 1; object-fit: contain; background: #fff; border: 1px solid #f0f0f0; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 34px; }
.photo-pair .photo { margin: 0; }
.photo-pair img { aspect-ratio: 1 / 1; object-fit: cover; background: #f6f6f6; }
.photo-pair img.product-shot { object-fit: contain; background: #fff; border: 1px solid #f0f0f0; }

.story-body { text-align: center; padding-top: 12px; }
.story-body p { font-size: 16px; line-height: 1.95; color: var(--text); margin: 0 auto 28px; white-space: pre-line; max-width: 600px; }
.story-body strong, .story-body b { color: var(--ink); font-weight: 700; }
.story-body mark { background: linear-gradient(180deg, transparent 58%, color-mix(in srgb, var(--accent) 22%, transparent) 0); color: inherit; padding: 0 2px; }
.story-body a { color: var(--accent); }
.story-body h2, .quote-head { font-family: var(--serif); font-weight: 700; font-size: 20px; line-height: 1.6; color: var(--ink); text-align: center; margin: 64px auto 34px; padding: 0 0 18px; border-bottom: 1px solid #9b9b9b; max-width: 600px; }
.quote-head { display: grid; gap: 8px; }
.quote-head span { font-family: var(--sans); font-weight: 400; font-size: 13.5px; color: #777; }
.story-body h3 { font-size: 19px; font-weight: 700; margin: 56px auto 20px; line-height: 1.5; }
.story-body hr { width: 44px; border: 0; border-top: 1px solid #c8c8c8; margin: 28px auto 30px; }
.story-body .spec { font-size: 13.5px; line-height: 1.85; color: var(--accent); margin-bottom: 0; }
.story-body .point { font-size: 15px; color: #555; }
.story-body .point b { display: block; color: var(--ink); margin-bottom: 4px; }
.story-body ul, .story-body ol, .plain-list { display: table; text-align: left; margin: 0 auto 30px; padding-left: 22px; max-width: 560px; font-size: 15.5px; line-height: 1.85; color: var(--text); }
.story-body li { margin-bottom: 6px; }
.story-body li::marker { color: var(--accent); }
.story-body blockquote { margin: 40px auto; max-width: 520px; font-family: var(--serif); font-size: 18px; line-height: 1.8; color: #555; }
.story-body blockquote::before { content: "“"; display: block; font-size: 44px; line-height: .8; color: #bbb; }
.story-body blockquote p { margin: 0; font-size: inherit; }
.story-body table { display: block; overflow-x: auto; width: max-content; max-width: 100%; margin: 0 auto 34px; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.story-body th, .story-body td { border: 1px solid #e4e4e4; padding: 10px 14px; text-align: center; vertical-align: middle; }
.story-body th { background: #f8f8f6; font-weight: 600; color: #444; white-space: nowrap; }
.note-box { text-align: left; background: #f8f8f6; border-radius: 6px; padding: 22px 24px 8px; margin: 0 auto 34px; max-width: 600px; }
.note-box p, .note-box ul, .note-box ol { text-align: left; display: block; max-width: none; font-size: 15px; margin-bottom: 14px; }
.note-box .note-title { font-weight: 700; color: var(--ink); margin-bottom: 8px; }

.link-card { display: flex; align-items: stretch; max-width: 520px; margin: 6px auto 34px; border: 1px solid #e3e3e3; border-radius: 4px; text-decoration: none !important; text-align: left; overflow: hidden; background: #fff; transition: box-shadow .15s; }
.link-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.link-card img { width: 104px; height: 104px; flex: 0 0 auto; object-fit: contain; background: #fff; border-right: 1px solid #f0f0f0; }
.link-card .lc-body { display: grid; align-content: center; gap: 4px; padding: 12px 16px; min-width: 0; }
.link-card .lc-body strong { font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.link-card .lc-body em { font-style: normal; font-size: 14px; font-weight: 700; color: var(--accent); }
.link-card .lc-body small { font-size: 12px; color: var(--faint); }

.pick-box { max-width: 600px; margin: 56px auto 40px; padding: 34px 0 6px; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.pick-box .pick-title { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--ink); }
.pick-box p { margin-bottom: 22px; }

.story-tags { text-align: center; margin: 48px auto 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; font-size: 13.5px; color: var(--accent); max-width: 600px; }
.story-image-note { text-align: center; font-size: 12px; color: var(--faint); margin: 8px 0 0; }
.story-author { display: flex; gap: 16px; align-items: center; margin: 44px 0 0; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story-author img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.story-author strong { font-size: 15px; }
.story-author p { margin: 4px 0 6px; font-size: 13.5px; color: #666; line-height: 1.6; }
.story-author a { font-size: 13px; color: var(--accent); text-decoration: none; }
/* recommendations: topic chips, card grid, inline related, prev/next, neighbours */
.topic-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 22px 0 6px; }
.topic-chips-left { justify-content: flex-start; padding-top: 4px; }
.topic-chips a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid #e2e2e2; border-radius: 999px; font-size: 13.5px; text-decoration: none; color: #444; background: #fff; }
.topic-chips a:hover { border-color: var(--accent); color: var(--accent); }
.topic-chips a span { font-size: 12px; color: var(--faint); }
.home-section { margin-top: 36px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head a { font-size: 13px; color: var(--accent); text-decoration: none; white-space: nowrap; }
.section-title { font-size: 16px; font-weight: 700; margin: 0 0 10px; color: var(--ink); }
.section-intro { margin: 0 0 4px; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; margin-top: 14px; }
.card { display: grid; gap: 7px; align-content: start; text-decoration: none; min-width: 0; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: #f5f5f5; }
.card-topic { font-size: 12px; color: var(--accent); font-weight: 600; }
.card strong { font-size: 15px; font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover strong { color: var(--accent); }
.topic-more { display: block; margin: 22px 0 0; padding: 13px; text-align: center; border: 1px solid #e2e2e2; border-radius: 6px; font-size: 14px; text-decoration: none; color: #444; }
.topic-more:hover { border-color: var(--accent); color: var(--accent); }
.inline-related { max-width: 560px; margin: 8px auto 48px; padding: 18px 18px 8px; background: #f8f8f6; border-radius: 6px; text-align: left; }
.inline-related-title { font-size: 13px !important; font-weight: 700; color: var(--accent) !important; margin: 0 0 10px !important; text-align: left; white-space: normal !important; }
.inline-related a { display: flex; gap: 12px; align-items: center; padding: 0 0 10px; text-decoration: none !important; color: var(--ink) !important; }
.inline-related img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; flex: 0 0 auto; }
.inline-related span { font-size: 14.5px; font-weight: 600; line-height: 1.5; }
.inline-related a:hover span { color: var(--accent); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 36px; }
.post-nav a { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid #e8e8e8; border-radius: 6px; text-decoration: none; font-size: 14px; line-height: 1.5; color: #444; }
.post-nav a span { font-size: 12px; color: var(--faint); }
.post-nav a:hover { border-color: var(--accent); }
.post-nav-next { text-align: right; }
.neighbour-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.neighbour-list a { display: grid; gap: 3px; padding: 14px 16px; border: 1px solid #e8e8e8; border-radius: 6px; text-decoration: none; }
.neighbour-list strong { font-size: 14px; }
.neighbour-list span { font-size: 12.5px; color: var(--muted); }
.neighbour-list a:hover strong { color: var(--accent); }
.site-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 14px !important; }
.site-footer-links a { color: #777; text-decoration: none; }
.topic-count { font-size: 13px; color: var(--muted); }
a.story-category { text-decoration: none; }

/* plain pages */
.page-plain { text-align: center; padding: 52px 0 20px; }
.page-plain h1 { font-family: var(--serif); font-size: 26px; margin: 0 0 14px; }
.page-lead { color: #555; font-size: 15.5px; line-height: 1.9; max-width: 560px; margin: 0 auto 18px; }
.page-plain .blog-profile-avatar { margin-bottom: 18px; }

/* electricity calculator */
.calc-card { max-width: 560px; margin: 0 auto 40px; padding: 26px; border: 1px solid #e3e3e3; border-radius: 8px; text-align: left; }
.calc-card label { display: grid; gap: 6px; font-size: 14px; color: #555; margin-bottom: 14px; }
.calc-card input { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #d6d6d6; border-radius: 6px; }
.calc-card output { display: block; margin-top: 6px; font-size: 17px; text-align: center; padding: 16px; background: #f8f8f6; border-radius: 6px; }
.calc-card output strong { color: var(--accent); font-size: 22px; }

/* pipeline-generated markup that may still appear in new drafts */
.inline-product-cards { display: grid; gap: 12px; margin: 0 auto 34px; max-width: 600px; text-align: left; }
.inline-product-card { display: flex; gap: 14px; padding: 12px; border: 1px solid #e3e3e3; border-radius: 4px; text-decoration: none !important; color: inherit !important; }
.inline-product-card img { width: 96px; height: 96px; object-fit: contain; flex: 0 0 auto; }
.inline-product-card p { white-space: normal; text-align: left; font-size: 13.5px; margin: 4px 0; }
.motion-scene-card, .giphy-motion-card { display: none; }

@media (max-width: 640px) {
  main { padding: 0 16px 56px; }
  .story-head { padding-top: 32px; }
  .story-head h1 { font-size: 24px; }
  .story-body p { font-size: 15.5px; line-height: 1.9; }
  .story-body h2, .quote-head { font-size: 18.5px; margin-top: 52px; }
  .story-body h3 { font-size: 17.5px; }
  .post-list-item img { width: 88px; height: 88px; }
  .link-card img { width: 88px; height: 88px; }
  .card-grid { gap: 18px 10px; }
  .card strong { font-size: 14px; }
  .post-nav, .neighbour-list { grid-template-columns: 1fr; }
  .post-nav-next { text-align: left; }
}
