:root {
  --bg: #f3f3ef;
  --paper: #fff;
  --ink: #111;
  --muted: #6e7378;
  --line: #d9d9d4;
  --highlight: #fff36a;
  --accent: #b7ff00;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  letter-spacing: 0;
}

a { color: inherit; }

.article-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 clamp(18px, 4vw, 48px);
  background: #fff;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.brand-logo {
  width: 33px;
  height: 30px;
  color: #111;
  display: block;
}

.back-link {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.back-link:hover { color: var(--ink); }

.article-shell {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 0 18px 88px;
}

.article-card {
  width: min(100%, 840px);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 44px) clamp(38px, 6vw, 72px) clamp(56px, 7vw, 84px);
  background: var(--paper);
  border: 1px solid #e6e6e0;
}

.article-kicker {
  max-width: 100%;
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
  text-align: center;
}

h1 {
  max-width: 100%;
  margin: 0 auto;
  font-size: clamp(2.05rem, 3.2vw, 2.55rem);
  line-height: 1.24;
  letter-spacing: -0.045em;
  text-align: left;
  word-break: keep-all;
}

.article-meta {
  display: flex;
  align-items: center;
  max-width: 100%;
  margin: 30px auto 36px;
  gap: 13px;
  color: #4b4f54;
  font-size: 1.02rem;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #101010;
  color: var(--accent);
  font-weight: 900;
}

.avatar svg {
  width: 22px;
  height: 20px;
  color: var(--accent);
}

.author {
  color: var(--ink);
  font-weight: 700;
}

.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b8b8b8;
}

hr {
  max-width: 100%;
  margin: 0 auto 42px;
  border: 0;
  border-top: 1px solid #bdbdb8;
}

.article-body {
  width: 100%;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.95;
  word-break: keep-all;
}

.loading {
  padding: 80px 0;
  color: var(--muted);
  text-align: center;
}

.naver-post .se-main-container,
.naver-post .se-component,
.naver-post .se-component-content,
.naver-post .se-section,
.naver-post .se-module-text {
  width: 100%;
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}

.naver-post p {
  max-width: 32em;
  min-height: 0;
  margin: 0 auto 0.32em;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.95;
}

.naver-post p:empty,
.naver-post p.is-empty-line {
  display: none;
}

.naver-post .se-component + .se-component { margin-top: 22px; }

.naver-post span { line-height: inherit; }
.naver-post .se-text-paragraph-align-center { text-align: center; }
.naver-post .se-text-paragraph-align-left { text-align: left; }
.naver-post .se-text-paragraph-align-right { text-align: right; }

.naver-post .se-fs-fs19 {
  font-size: 1.24rem;
  line-height: 1.72;
}

.naver-post p:has(.se-fs-fs19) {
  margin-top: 0.65em;
  margin-bottom: 0.65em;
}

.naver-post b,
.naver-post strong {
  font-weight: 900;
  letter-spacing: -0.015em;
}

.naver-post span[style*="background-color:#ffffff"],
.naver-post span[style*="background-color: #ffffff"] {
  background-color: transparent !important;
}

.naver-post span[style*="background-color:#fdd5f5"],
.naver-post span[style*="background-color:#fff36a"],
.naver-post span[style*="background-color:#ffff00"] {
  background-color: var(--highlight) !important;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.naver-post .se-component-content-extend,
.naver-post .se-section-image,
.naver-post .se-module-image,
.naver-post .se-module-image a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.naver-post .se-module-image {
  display: grid;
  justify-items: center;
}

.naver-post img,
.naver-post .se-image-resource {
  display: block;
  width: auto;
  max-width: min(100%, 560px);
  height: auto;
  margin: 24px auto 32px !important;
  object-fit: contain;
}

.naver-post .se-hr {
  max-width: 660px;
  margin: 38px auto;
  border: 0;
  border-top: 1px solid #e3e3df;
}

.naver-post .se-component.se-quotation {
  max-width: 660px;
  margin: 38px auto;
}

.naver-post .se-quotation-container {
  position: relative;
  margin: 0;
  padding: 28px 34px 28px 38px;
  background: #f5f5ef;
  border-left: 5px solid var(--ink);
}

.naver-post .se-quotation-container::before {
  content: "\201C";
  position: absolute;
  top: -8px;
  left: 18px;
  color: #c3c3ba;
  font-family: Georgia, serif;
  font-size: 3.2rem;
  line-height: 1;
}

.naver-post .se-module-text.se-quote,
.naver-post .se-module-text.se-quote p {
  max-width: none;
  color: #222;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.72;
  text-align: left;
}

.naver-post .se-l-quotation_underline .se-quotation-container {
  padding: 20px 0 15px;
  background: transparent;
  border-left: 0;
  border-bottom: 2px solid #111;
}

.naver-post .se-l-quotation_underline .se-quotation-container::before {
  content: none;
}

.naver-post .se-l-quotation_underline .se-module-text.se-quote,
.naver-post .se-l-quotation_underline .se-module-text.se-quote p {
  text-align: center;
}

.naver-post .se-oglink { display: none; }

.naver-post a {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 720px) {
  .article-header { min-height: 62px; }
  .brand span { font-size: 0.86rem; }
  .article-shell { padding: 0 10px 58px; }
  .article-card { padding: 24px 18px 42px; }
  .article-kicker { margin-bottom: 18px; font-size: 0.92rem; }
  h1 { font-size: 1.62rem; line-height: 1.35; }
  .article-meta { margin: 24px auto 28px; gap: 10px; font-size: 0.92rem; }
  .avatar { width: 34px; height: 34px; }
  hr { margin-bottom: 32px; }
  .article-body,
  .naver-post p { font-size: 0.98rem; line-height: 1.9; }
  .naver-post .se-fs-fs19 { font-size: 1.12rem; }
  .naver-post .se-main-container,
  .naver-post .se-component,
  .naver-post .se-component-content,
  .naver-post .se-section,
  .naver-post .se-module-text,
  .naver-post .se-component-content-extend,
  .naver-post .se-section-image,
  .naver-post .se-module-image,
  .naver-post .se-module-image a { max-width: 100%; }
  .naver-post img,
  .naver-post .se-image-resource { max-width: 100%; margin: 22px auto 28px !important; }
  .naver-post .se-quotation-container { padding: 26px 22px 24px 26px; }
  .naver-post .se-module-text.se-quote,
  .naver-post .se-module-text.se-quote p { font-size: 1rem; }
}
