/* Cream Journal · standalone design sample */
:root {
  --page: #f8f5ec;
  --paper: #fffdf7;
  --ink: #34382d;
  --body: #727466;
  --muted: #939080;
  --line: #dedace;
  --accent: #c76236;
  --sage: #8d9571;
  font-family: 'DM Sans', 'Noto Sans KR', sans-serif;
  color: var(--ink);
  background: var(--page);
  color-scheme: light;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
img { max-width: 100%; vertical-align: middle; }
h1, h2, h3, h4, p { margin-top: 0; }
/* 풀와이드: 화면 너비를 그대로 쓰고 좌우 여백만 둡니다. 글줄이 너무 길어지지 않게 본문 쪽에서 따로 폭을 잡습니다. */
.shell { width: calc(100% - 64px); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 15px; padding: 13px 20px; z-index: 10; background: var(--ink); color: #fff; }
.skip-link:focus { top: 15px; }

/* Header */
.site-header { display: flex; align-items: center; gap: 25px; min-height: 100px; border-bottom: 1px solid #62644f; }
.wordmark { font-size: 29px; font-weight: 800; letter-spacing: -1.45px; white-space: nowrap; }
.wordmark > span { font-weight: 400; }
.wordmark i { font-style: normal; color: var(--accent); }
.brand-tagline { border-left: 1px solid #cfc8b7; padding-left: 23px; margin: 4px 0 0; font-size: 14px; color: #8e8a7b; }
.header-nav { display: flex; align-items: center; gap: 27px; margin-left: auto; font-size: 14px; }
.header-nav a:hover { color: var(--accent); }
.header-nav .site-link { color: var(--accent); font-weight: 600; }
.site-link > span { margin-left: 5px; }
.edition-line { display: flex; justify-content: space-between; gap: 12px; padding-block: 17px; font-size: 11px; color: #98917e; letter-spacing: 1.6px; }
.edition-line > span:last-child { font-size: 12px; letter-spacing: 0; }

/* The banner is a single anchor, including the apparent button and artwork. */
.hero-banner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 10px; min-height: 463px; padding: 34px 39px; border: 1px solid #dcccaa; border-radius: 16px; background: radial-gradient(ellipse at 77% 64%, #ede5cf 0%, #f5eedf 38%, #fbf8ef 75%); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.hero-banner:hover { border-color: #ba9d73; box-shadow: 0 7px 24px #70542c0c; }
.hero-banner:focus-visible { outline-offset: 5px; }
/* 관리자에서 직접 올린 배너 이미지: 그림이 배너 전체입니다 */
.hero-banner.is-image { display: block; min-height: 0; padding: 0; overflow: hidden; background: none; }
.hero-banner.is-image h1 { margin: 0; }
.hero-banner.is-image img { display: block; width: 100%; height: auto; }
.eyebrow { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 500; color: #9b8e72; letter-spacing: 1.5px; margin-bottom: 20px; }
.eyebrow > span { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 { font-family: 'Gowun Batang', serif; font-size: 44px; letter-spacing: -2.1px; line-height: 1.45; font-weight: 700; margin-bottom: 23px; }
.hero-copy h1 { text-wrap: balance; }
.hero-copy h1 em { color: var(--accent); font-style: normal; position: relative; white-space: nowrap; }
.hero-copy h1 em:after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 4px; border-top: 1px solid var(--accent); border-radius: 50%; transform: rotate(-2deg); }
.hero-description { font-size: 14px; line-height: 1.95; color: #87816f; letter-spacing: -.1px; margin-bottom: 24px; }
.hero-cta { display: inline-flex; align-items: center; gap: 29px; padding: 14px 22px; font-size: 15px; font-weight: 500; background: var(--accent); color: #fffaf3; border: 1px solid #b85a31; border-radius: 5px; transition: background .2s; }
.hero-cta > span { font-size: 22px; line-height: 1; }
.hero-banner:hover .hero-cta { background: #b4552f; }
.hero-art { position: relative; height: 385px; min-width: 0; width: 100%; max-width: 540px; justify-self: center; }
.paper { position: absolute; width: 78%; max-width: 362px; height: 285px; border-radius: 12px; top: 48px; left: 8%; }
.paper-back { background: #b8bd9b; border: 1px solid #a7ad88; transform: rotate(-9deg); top: 42px; left: 7%; }
.paper-front { background: var(--paper); border: 1px solid #ded1b8; transform: rotate(5deg); box-shadow: 7px 15px 28px #81633f17; padding: 21px 23px; transition: transform .2s; }
.hero-banner:hover .paper-front { transform: rotate(3deg) translateY(-3px); }
.paper-header { display: flex; align-items: center; justify-content: space-between; }
.paper-header > b { font-size: 21px; font-weight: 800; letter-spacing: -.9px; }
.paper-header > b > span { color: var(--accent); }
.paper-menu { font-size: 13px; letter-spacing: 3px; color: #ada58e; }
.paper-search { display: flex; align-items: center; gap: 9px; padding: 10px; margin-block: 15px 7px; border: 1px solid #e7ddc8; border-radius: 5px; color: #a79d88; font-size: 9px; }
.paper-search svg { width: 15px; height: 15px; stroke: #a49a84; stroke-width: 1.4; flex-shrink: 0; }
.paper-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px dashed #e7ddc8; }
.paper-row:last-child { border-bottom: 0; }
.paper-icon { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #eee4d1; border-radius: 8px; background: #f7f1e5; }
.paper-icon img { width: 28px; height: 28px; object-fit: contain; }
.paper-row b { display: block; font-size: 11px; font-weight: 500; }
.paper-row small { display: block; font-size: 9px; color: #a49a84; margin-top: 4px; }
.paper-row i { font-style: normal; margin-left: auto; color: #a19579; font-size: 17px; }
.art-star { position: absolute; font-family: serif; color: var(--accent); font-weight: 400; z-index: 2; line-height: 1; }
.star-one { top: 12px; right: 2%; font-size: 73px; }
.star-two { bottom: 35px; left: 0; font-size: 42px; }
.art-arrow { position: absolute; right: -4%; bottom: 35px; width: 126px; height: 94px; overflow: visible; stroke: var(--accent); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.arrow-rays { stroke-width: 2.6; }
.art-caption { position: absolute; bottom: 5px; left: 12%; right: 5%; text-align: center; font-size: 7px; letter-spacing: 1.3px; color: #aa9c80; }

/* Article metadata and two-column editorial layout */
.article-meta { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 24px; border-bottom: 1px solid #66694f; }
.author { display: flex; align-items: center; gap: 11px; }
.author-avatar { display: grid; place-items: center; width: 36px; height: 36px; background: #e8e5d5; border: 1px solid #e2deca; border-radius: 50%; color: #929674; font-size: 21px; font-weight: 600; flex-shrink: 0; }
.author b { display: block; font-size: 13px; font-weight: 500; }
.author small { display: block; font-size: 11px; color: #a29a83; margin-top: 4px; }
.article-meta > a { display: flex; gap: 28px; color: #827d68; font-size: 13px; }
.article-meta > a:hover { color: var(--accent); }
.editorial-layout { display: grid; grid-template-columns: minmax(0, 1fr) 274px; gap: 87px; padding-top: 46px; }
.article-body { min-width: 0; }
.article-section { margin-top: 54px; scroll-margin-top: 25px; }
.intro-section { margin-top: 0; }
.section-eyebrow { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .5px; font-weight: 500; color: #a89b7b; margin-bottom: 17px; }
.section-eyebrow > span { font-size: 10px; letter-spacing: 1.6px; border-left: 1px solid #d2c9b4; padding-left: 12px; }
.article-section h2 { font-family: 'Gowun Batang', serif; font-size: 32px; line-height: 1.6; font-weight: 700; letter-spacing: -1.05px; margin-bottom: 23px; }
.article-section > p:not(.section-eyebrow):not(.category-footnote) { font-size: 16px; color: var(--body); line-height: 2.05; word-break: keep-all; overflow-wrap: break-word; margin-bottom: 18px; }
.article-section strong { font-weight: 600; color: #505544; }
.article-section h3 { font-size: 19px; font-weight: 600; letter-spacing: -.45px; margin-bottom: 20px; }
blockquote { position: relative; background: #eff0e3; border-left: 2px solid #b0b78b; margin: 31px 0 36px; padding: 27px 30px 25px; }
.quote-mark { position: absolute; right: 24px; top: 0; color: #dadfbe; font-family: Georgia, serif; font-size: 102px; line-height: 1.1; }
blockquote p { position: relative; font-family: 'Gowun Batang', serif; font-size: 24px; line-height: 1.8; letter-spacing: -.6px; color: #6a7453; margin: 0 0 13px; }
blockquote cite { font-size: 12px; font-style: normal; color: #969b80; }
.use-cases { border-top: 1px solid var(--line); }
.use-cases > div { display: flex; align-items: center; gap: 19px; border-bottom: 1px solid var(--line); padding-block: 19px; }
.use-cases > div > span { align-self: flex-start; padding-top: 2px; font-size: 13px; color: #a99f85; }
.use-cases h4 { font-size: 15px; font-weight: 500; letter-spacing: -.2px; margin-bottom: 7px; }
.use-cases p { font-size: 13px; line-height: 1.8; color: #98927e; margin: 0; word-break: keep-all; }
.use-cases i { font-size: 18px; font-style: normal; color: #bab198; margin-left: auto; }

/* Category introduction, not a second directory interface */
.category-grid { list-style: none; padding: 0; margin: 25px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.category-grid li { display: flex; align-items: center; gap: 15px; min-height: 83px; padding: 17px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fcfaf4; }
.category-grid img { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; }
.category-grid b { display: block; font-size: 15px; font-weight: 500; letter-spacing: -.25px; }
.category-grid li span { display: block; color: #a29781; font-size: 12px; line-height: 1.7; margin-top: 5px; }
.category-footnote { color: #a49b84; font-size: 12px; margin: 13px 0 0; text-align: right; }

/* Guide and FAQ */
.steps { list-style: none; padding: 0; margin: 29px 0 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps li { border-top: 1px solid #aeb292; padding-top: 17px; }
.step-number { display: grid; place-items: center; width: 24px; height: 24px; background: #e8e9d9; border-radius: 50%; color: #838a63; font-size: 12px; margin-bottom: 16px; }
.steps h3 { font-size: 15px; margin-bottom: 10px; font-weight: 600; letter-spacing: -.3px; }
.steps p { font-size: 13px; color: #98927c; line-height: 1.9; margin: 0; }
.editor-tip { display: flex; gap: 12px; align-items: flex-start; padding: 17px 18px; background: #eeedde; border-radius: 4px; }
.editor-tip > span { color: #a6ac87; font-size: 21px; line-height: 1.4; }
.editor-tip p { margin: 0; font-size: 13px; line-height: 1.9; color: #97937b; word-break: keep-all; }
.editor-tip b { color: #808363; font-weight: 500; margin-right: 9px; }
.faq-section { border-top: 1px solid var(--line); padding-top: 34px; }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; position: relative; padding: 19px 30px 19px 0; font-size: 15px; font-weight: 500; line-height: 1.7; cursor: pointer; touch-action: manipulation; }
summary::-webkit-details-marker { display: none; }
summary:after { content: '+'; position: absolute; right: 3px; top: 17px; font-size: 22px; font-family: 'DM Sans', sans-serif; color: #ad9d7b; }
details[open] summary:after { content: '−'; }
details p { font-size: 14px; line-height: 1.95; color: #8f8c7a; margin: 0 25px 21px 0; word-break: keep-all; }
.article-signoff { display: flex; align-items: center; gap: 11px; margin-top: 32px; padding-block: 20px; }
.article-signoff b { font-size: 13px; font-weight: 500; }
.article-signoff p { color: #a19984; font-size: 12px; margin: 5px 0 0; }
.signoff-star { margin-left: auto; font-size: 31px; color: #b5bb96; }

/* Editorial sidebar */
.sidebar-promo { background: #ede7d5; border: 1px solid #ddd3b8; padding: 26px 24px 22px; }
.sidebar-promo .section-eyebrow { font-size: 10px; letter-spacing: 1.5px; margin-bottom: 25px; color: #a19573; }
.promo-mark { width: 45px; height: 45px; filter: saturate(.7); margin-bottom: 22px; }
.sidebar-promo h2 { font-family: 'Gowun Batang', serif; font-size: 24px; font-weight: 700; line-height: 1.65; letter-spacing: -.85px; margin-bottom: 13px; }
.sidebar-promo > p:not(.section-eyebrow) { font-size: 14px; line-height: 1.9; color: #9e8d71; margin-bottom: 22px; }
.button-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--accent); color: #fff8ec; border: 1px solid #b95c33; font-size: 14px; padding: 14px 17px; white-space: nowrap; transition: background .15s; }
.button-link:hover { background: #b4552f; }
.sidebar-promo > small { display: block; text-align: center; color: #ab9878; font-size: 11px; margin-top: 13px; }
.table-of-contents { margin-top: 34px; border-top: 2px solid #8b9171; padding-top: 21px; }
.table-of-contents h2 { font-size: 14px; font-weight: 500; margin-bottom: 17px; }
.table-of-contents a { display: flex; gap: 14px; color: #97917b; font-size: 13px; padding-block: 11px; }
.table-of-contents a span { color: #b9ad94; font-size: 12px; }
.table-of-contents a:hover { color: var(--accent); }
.sidebar-note { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 25px; }
.sidebar-note > span { font-size: 39px; color: #b1b795; line-height: 1; }
.sidebar-note p { font-family: 'Gowun Batang', serif; font-size: 22px; line-height: 1.8; letter-spacing: -.7px; color: #89916e; margin: 14px 0; }
.sidebar-note small { color: #aba68e; font-size: 10px; letter-spacing: 1.3px; line-height: 1.8; }

/* Bottom banner and footer */
.closing-banner { margin-top: 41px; padding: 37px 44px; background: #eeeadb; border: 1px solid #d8d2bb; display: flex; justify-content: space-between; align-items: center; gap: 30px; border-radius: 8px; }
.closing-banner .section-eyebrow { font-size: 10px; letter-spacing: 1.5px; margin-bottom: 14px; }
.closing-banner h2 { font-family: 'Gowun Batang', serif; font-size: 34px; line-height: 1.55; letter-spacing: -1px; margin-bottom: 14px; }
.closing-banner > div > p:last-child { font-size: 14px; color: #9b9078; line-height: 1.8; margin: 0; }
.closing-action { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.closing-star { font-family: serif; color: #abb38a; font-size: 57px; line-height: 1; }
.closing-action .button-link { min-width: 221px; }
.site-footer { margin-top: 45px; padding-block: 27px 33px; border-top: 1px solid #62684d; }
.footer-top, .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-top .wordmark { font-size: 24px; }
.back-to-top { display: flex; gap: 18px; color: #8b8873; font-size: 12px; }
.back-to-top:hover { color: var(--accent); }
.footer-bottom { margin-top: 13px; }
.footer-bottom p { font-size: 12px; line-height: 1.8; color: #99927c; margin: 0; }
.footer-bottom > span { font-size: 10px; letter-spacing: .7px; color: #aaa187; white-space: nowrap; }

/* ---------- 실제 사이트(server/views.js)에서 더 쓰는 부분 ---------- */
.header-nav a[aria-current="page"] { font-weight: 600; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }

.text-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* 빠른 링크: 헤더 바로 아래 한 줄. 좁은 화면에서는 옆으로 밀어서 봅니다. */
.quick-links { display: flex; align-items: center; gap: 9px; padding-block: 13px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.quick-links::-webkit-scrollbar { display: none; }
.quick-links b { display: flex; align-items: center; gap: 7px; margin-right: 10px; font-size: 14px; font-weight: 700; letter-spacing: -.2px; white-space: nowrap; }
.quick-links b span { color: var(--accent); font-size: 17px; line-height: 1; }
.quick-links a { flex-shrink: 0; padding: 8px 17px; font-size: 14px; font-weight: 500; white-space: nowrap; background: var(--paper); border: 1px solid #dcd3bd; border-radius: 999px; transition: border-color .15s, color .15s; }
.quick-links a:hover { border-color: var(--accent); color: var(--accent); }
.quick-links a:focus-visible { outline-offset: -1px; }

/* 카테고리별 링크모음: 주소랭킹에서 가져온 링크 몇 개. 분야 이름은 주소랭킹의 전체 목록으로, 사이트 이름은 그 사이트로 갑니다. */
.directory { margin-top: 26px; padding: 38px 40px 28px; background: #f1ecdd; border: 1px solid #e0d8c1; border-radius: 16px; scroll-margin-top: 20px; }
.directory-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.directory-head .section-eyebrow { color: var(--accent); font-weight: 700; letter-spacing: 2px; margin-bottom: 12px; }
.directory-head h2 { font-family: 'Gowun Batang', serif; font-size: 32px; font-weight: 700; line-height: 1.4; letter-spacing: -1.1px; margin: 0; }
.directory-head > p { font-size: 15px; color: var(--body); margin: 0 0 6px; word-break: keep-all; }
.directory-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.directory-card { min-width: 0; padding: 20px 22px 8px; background: var(--paper); border: 1px solid #e3dcc8; border-radius: 12px; }
.directory-card h3 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.3px; }
.directory-card h3 a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 13px; border-bottom: 1px solid #c9c2ad; }
.directory-card h3 small { flex-shrink: 0; font-size: 12px; font-weight: 500; color: #a19573; white-space: nowrap; }
.directory-card h3 i, .directory-card li i { font-style: normal; }
.directory-card h3 a:hover, .directory-card h3 a:hover small { color: var(--accent); }
.directory-card ul { list-style: none; margin: 0; padding: 0; }
.directory-card li a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; font-size: 15px; color: #5d6052; border-bottom: 1px solid var(--line); }
.directory-card li:last-child a { border-bottom: 0; }
.directory-card li span, .directory-card h3 a > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.directory-card li i { color: #bab198; font-size: 16px; line-height: 1; }
.directory-card li a:hover, .directory-card li a:hover i { color: var(--accent); }
.directory-note { margin: 18px 0 0; font-size: 13px; line-height: 1.8; color: #98927e; text-align: right; word-break: keep-all; }

/* 첫 화면의 글: 보통 블로그 글처럼 소제목·문단·목록만, 화면 끝까지 */
.home-article { padding-top: 46px; }
.official-card + .prose { margin-top: 40px; }
.prose-date { margin-left: 6px; font-size: 13px; color: #a29a83; white-space: nowrap; }

/* 안쪽 페이지: 제목(page-head)이 본문·사이드바와 같은 틀 안에 들어갑니다. 넓은 화면에서는 왼쪽 열이 됩니다. */
.editorial-layout.with-head { padding-top: 0; row-gap: 46px; }
.with-head > .page-head { grid-column: 1 / -1; }

/* 공식 주소 상자: 주소를 글자로 적어 둔 곳 */
.official-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 28px 0 6px; padding: 24px 26px; background: var(--paper); border: 1px solid #dcccaa; border-radius: 10px; }
.official-card > div { min-width: 0; }
.official-card small { display: block; font-size: 12px; letter-spacing: .4px; color: #a19573; margin-bottom: 9px; }
.official-card strong { display: block; font-size: 27px; font-weight: 800; letter-spacing: -.8px; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.official-card p { margin: 9px 0 0; font-size: 13px; line-height: 1.8; color: #98927e; word-break: keep-all; }
.official-card .button-link { flex-shrink: 0; min-width: 190px; border-radius: 5px; }
.prose + .official-card { margin-top: 40px; }

/* 블로그 목록 */
.post-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.post-list a { display: block; padding: 24px 0 22px; border-bottom: 1px solid var(--line); }
.post-list h2, .post-list h3 { font-family: 'Gowun Batang', serif; font-size: 23px; font-weight: 700; line-height: 1.6; letter-spacing: -.7px; margin: 0 0 9px; word-break: keep-all; }
.post-list a:hover h2, .post-list a:hover h3 { color: var(--accent); }
.post-list p { font-size: 14px; line-height: 1.9; color: var(--body); margin: 0 0 11px; word-break: keep-all; }
.post-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #a29a83; }
.category-footnote a { color: var(--accent); }
.empty-note { padding: 44px 0; margin: 0; font-size: 15px; color: #98927e; border-block: 1px solid var(--line); text-align: center; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 30px; font-size: 14px; color: #8b8873; }
.pagination a { color: var(--accent); }

/* 안쪽 페이지 머리: 현재 위치, 제목, 요약 */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-block: 17px; font-size: 12px; color: #98917e; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: #6f6b5a; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-head { padding: 30px 0 34px; border-top: 1px solid var(--line); border-bottom: 1px solid #66694f; }
.page-head h1 { font-family: 'Gowun Batang', serif; font-size: 40px; font-weight: 700; line-height: 1.5; letter-spacing: -1.7px; margin-bottom: 16px; word-break: keep-all; }
.page-head .lead { font-size: 16px; line-height: 2; color: var(--body); margin: 0; word-break: keep-all; }
.page-head .post-meta { margin: 0 0 16px; }

/* 본문 (관리자에서 쓴 마크다운) */
.prose { font-size: 16px; line-height: 2.05; color: var(--body); word-break: keep-all; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-family: 'Gowun Batang', serif; font-size: 27px; font-weight: 700; line-height: 1.6; letter-spacing: -.9px; color: var(--ink); margin: 46px 0 16px; }
.prose h3 { font-size: 18px; font-weight: 600; letter-spacing: -.4px; color: var(--ink); margin: 30px 0 10px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 21px; }
.prose li { margin-bottom: 9px; padding-left: 3px; }
.prose li::marker { color: #a89b7b; }
.prose strong { font-weight: 600; color: #505544; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose code { font-size: .9em; padding: 2px 6px; background: #eeeadb; border-radius: 3px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.prose blockquote { font-family: 'Gowun Batang', serif; font-size: 20px; line-height: 1.85; letter-spacing: -.5px; color: #6a7453; padding: 22px 26px; margin: 28px 0; }

/* 없는 주소 · 오류 */
.message-card { padding: 84px 0 60px; }
.message-card h1 { font-family: 'Gowun Batang', serif; font-size: 38px; font-weight: 700; letter-spacing: -1.5px; line-height: 1.5; margin-bottom: 14px; }
.message-card > p:not(.section-eyebrow) { font-size: 16px; line-height: 2; color: var(--body); margin-bottom: 28px; word-break: keep-all; }
.message-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.message-actions .button-link { min-width: 210px; border-radius: 5px; }
.message-actions .button-link:first-child { background: transparent; color: var(--ink); border-color: #b9b39c; }
.message-actions .button-link:first-child:hover { background: #eeeadb; }

.sidebar .table-of-contents + .table-of-contents { margin-top: 30px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 13px; color: #7e7b68; }
.footer-nav a:hover { color: var(--accent); }

/* Tablet */
@media (max-width: 1080px) {
  .shell { width: calc(100% - 48px); }
  .brand-tagline { display: none; }
  .hero-banner { padding: 30px; gap: 0; }
  .hero-copy h1 { font-size: 39px; }
  .hero-description { font-size: 13px; }
  .hero-art { height: 357px; }
  .paper { width: 83%; left: 8%; height: 275px; }
  .paper-back { left: 6%; }
  .paper-front { padding: 18px; }
  .paper-row b { font-size: 10px; }
  .paper-row small { font-size: 8px; }
  .paper-icon { width: 32px; height: 32px; }
  .star-one { font-size: 58px; right: -3%; }
  .art-arrow { right: -6%; width: 108px; bottom: 10px; }
  .art-caption { bottom: -9px; font-size: 6px; }
  .editorial-layout { grid-template-columns: minmax(0, 1fr) 252px; gap: 45px; }
  .sidebar-promo { padding: 23px 20px; }
  .sidebar-promo h2 { font-size: 23px; }
  .category-grid li { padding: 16px 13px; gap: 11px; }
  .category-grid b { font-size: 14px; }
  .category-grid li span { font-size: 11px; }
}
@media (max-width: 800px) {
  .site-header { min-height: 85px; }
  .header-nav { font-size: 13px; gap: 19px; }
  .wordmark { font-size: 27px; }
  .hero-banner { grid-template-columns: 1fr; padding: 30px 35px 25px; }
  .hero-copy h1 { font-size: 41px; }
  .hero-copy h1 br:last-of-type { display: none; }
  .hero-copy h1 { max-width: 530px; }
  .hero-description { font-size: 14px; }
  .hero-description br:first-child { display: none; }
  .hero-art { width: 100%; max-width: 495px; height: 334px; justify-self: center; margin-top: 6px; }
  .paper { top: 36px; width: 70%; left: 17%; }
  .paper-back { top: 30px; left: 15%; }
  .paper-front { padding: 19px 22px; }
  .paper-row b { font-size: 11px; }
  .star-one { right: 3%; top: 9px; }
  .star-two { left: 3%; bottom: 29px; }
  .art-arrow { right: 0; bottom: 16px; }
  .art-caption { bottom: -3px; }
  .editorial-layout { grid-template-columns: minmax(0, 1fr); padding-top: 36px; gap: 35px; }
  .sidebar { display: none; }
  .category-grid li { padding: 18px; }
  .category-grid b { font-size: 15px; }
  .category-grid li span { font-size: 12px; }
  .closing-banner { padding: 30px; }
  .closing-banner h2 { font-size: 31px; }
  .closing-action .button-link { min-width: 199px; }
}

/* Mobile */
@media (max-width: 600px) {
  .shell { width: calc(100% - 32px); }
  .site-header { min-height: 75px; gap: 12px; }
  .wordmark { font-size: 25px; letter-spacing: -1.1px; }
  .header-nav { font-size: 12px; gap: 13px; }
  .header-nav > a:first-child { display: none; }
  .header-nav .site-link { font-size: 11px; }
  .site-link > span { margin-left: 1px; }
  .edition-line { padding-block: 14px; font-size: 9px; letter-spacing: .9px; }
  .edition-line > span:last-child { font-size: 10px; }
  .hero-banner { padding: 26px 21px 20px; border-radius: 12px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.1px; margin-bottom: 16px; }
  .hero-copy h1 { font-size: 31px; letter-spacing: -1.7px; line-height: 1.48; margin-bottom: 21px; }
  .hero-copy h1 br:last-of-type { display: block; }
  .hero-description { font-size: 12px; line-height: 1.9; margin-bottom: 20px; }
  .hero-description br:first-child { display: block; }
  .hero-cta { font-size: 13px; padding: 12px 16px; gap: 24px; }
  .hero-cta > span { font-size: 19px; }
  .hero-art { height: 283px; margin-top: 16px; }
  .paper { width: 84%; height: 225px; left: 8%; top: 29px; border-radius: 9px; }
  .paper-back { left: 6%; top: 26px; }
  .paper-front { padding: 16px; }
  .paper-header > b { font-size: 17px; }
  .paper-menu { font-size: 10px; letter-spacing: 2px; }
  .paper-search { font-size: 7px; gap: 6px; padding: 7px; margin-block: 10px 5px; }
  .paper-search svg { width: 12px; height: 12px; }
  .paper-row { gap: 8px; padding-block: 8px; }
  .paper-icon { width: 29px; height: 29px; border-radius: 6px; }
  .paper-icon img { width: 24px; height: 24px; }
  .paper-row b { font-size: 9px; }
  .paper-row small { font-size: 7px; margin-top: 3px; }
  .paper-row i { font-size: 14px; }
  .star-one { font-size: 45px; right: -2%; top: 0; }
  .star-two { font-size: 30px; left: -2%; bottom: 21px; }
  .art-arrow { right: -5%; bottom: 8px; width: 84px; height: 64px; stroke-width: 3; }
  .art-caption { font-size: 5px; letter-spacing: .85px; bottom: -3px; }
  .article-meta { padding-block: 19px; }
  .author-avatar { width: 33px; height: 33px; font-size: 19px; }
  .author b { font-size: 12px; }
  .author small { font-size: 10px; }
  .article-meta > a { font-size: 12px; gap: 17px; }
  .editorial-layout { padding-top: 30px; }
  .section-eyebrow { font-size: 11px; gap: 10px; margin-bottom: 14px; }
  .section-eyebrow > span { font-size: 9px; letter-spacing: 1.2px; padding-left: 10px; }
  .article-section { margin-top: 40px; scroll-margin-top: 20px; }
  .intro-section { margin-top: 0; }
  .article-section h2 { font-size: 27px; letter-spacing: -.95px; line-height: 1.6; margin-bottom: 21px; }
  .article-section > p:not(.section-eyebrow):not(.category-footnote) { font-size: 15px; line-height: 1.95; }
  blockquote { padding: 22px 20px; margin-block: 26px 30px; }
  blockquote p { font-size: 20px; letter-spacing: -.7px; line-height: 1.8; margin-bottom: 12px; }
  .quote-mark { font-size: 76px; right: 15px; }
  blockquote cite { font-size: 11px; }
  .article-section h3 { font-size: 18px; margin-bottom: 17px; }
  .use-cases > div { gap: 12px; padding-block: 17px; }
  .use-cases > div > span { font-size: 12px; }
  .use-cases h4 { font-size: 14px; line-height: 1.75; margin-bottom: 5px; }
  .use-cases p { font-size: 12px; }
  .use-cases i { display: none; }
  .category-grid { margin-top: 22px; }
  .category-grid li { gap: 9px; min-height: 83px; padding: 13px 10px; }
  .category-grid img { width: 26px; height: 26px; }
  .category-grid b { font-size: 12px; }
  .category-grid li span { font-size: 10px; letter-spacing: -.15px; line-height: 1.8; word-break: keep-all; }
  .category-footnote { font-size: 11px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-block: 25px 22px; }
  .steps li { padding-top: 14px; }
  .step-number { width: 22px; height: 22px; font-size: 11px; margin-bottom: 14px; }
  .steps h3 { font-size: 13px; letter-spacing: -.35px; margin-bottom: 10px; }
  .steps p { font-size: 12px; line-height: 1.9; word-break: keep-all; }
  .steps p br { display: none; }
  .editor-tip { padding: 13px; gap: 9px; }
  .editor-tip > span { font-size: 19px; }
  .editor-tip p { font-size: 12px; }
  .faq-section { padding-top: 28px; }
  summary { font-size: 14px; padding-block: 17px; }
  summary:after { top: 14px; }
  details p { font-size: 13px; line-height: 1.95; }
  .article-signoff { margin-top: 24px; padding-block: 16px; }
  .article-signoff p { font-size: 11px; }
  .article-signoff b { font-size: 12px; }
  .closing-banner { align-items: flex-start; flex-direction: column; padding: 26px 24px; gap: 24px; margin-top: 28px; }
  .closing-banner .section-eyebrow { font-size: 8px; letter-spacing: 1.2px; }
  .closing-banner h2 { font-size: 29px; line-height: 1.55; }
  .closing-banner > div > p:last-child { font-size: 13px; word-break: keep-all; }
  .closing-action { width: 100%; flex-direction: row-reverse; justify-content: space-between; align-items: center; }
  .closing-star { font-size: 40px; }
  .closing-action .button-link { min-width: 0; font-size: 13px; padding: 13px 16px; gap: 24px; }
  .site-footer { margin-top: 33px; padding-block: 23px 29px; }
  .footer-top .wordmark { font-size: 22px; }
  .back-to-top { font-size: 11px; gap: 11px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 9px; margin-top: 11px; }
  .footer-bottom p { font-size: 11px; }
  .footer-bottom > span { font-size: 9px; }
}
@media (max-width: 360px) {
  .wordmark { font-size: 23px; }
  .header-nav { gap: 10px; }
  .header-nav > a:nth-child(2) { display: none; }
  .hero-copy h1 { font-size: 28px; }
  .hero-banner { padding-inline: 17px; }
  .hero-description { font-size: 11px; }
  .paper-front { padding: 14px; }
  .category-grid li { gap: 7px; padding-inline: 8px; }
  .category-grid img { width: 23px; height: 23px; }
  .steps h3 { font-size: 12px; }
}
/* 넓은 화면: 배너만 조금 키웁니다. 그 아래는 어느 너비에서나 위에서 아래로 읽는 보통 글입니다. */
@media (min-width: 1440px) {
  .hero-banner { padding: 44px 64px; min-height: 500px; }
  .hero-copy h1 { font-size: 48px; }
  .hero-description { font-size: 15px; }
}

/* 실제 사이트에서 더 쓰는 부분의 좁은 화면 */
@media (max-width: 1100px) {
  .directory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .directory { padding: 30px 28px 24px; }
  .directory-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 22px; }
  .directory-head > p { margin: 0; }
  .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .page-head h1 { font-size: 34px; }
  .official-card .button-link { min-width: 170px; }
  .editorial-layout.with-head { row-gap: 36px; }
  .home-article { padding-top: 36px; }
}
@media (max-width: 600px) {
  .quick-links { gap: 7px; padding-block: 11px; }
  .quick-links b { font-size: 13px; margin-right: 5px; }
  .quick-links a { padding: 7px 13px; font-size: 13px; }
  .directory { margin-top: 18px; padding: 22px 14px 18px; border-radius: 12px; }
  .directory-head .section-eyebrow { font-size: 10px; margin-bottom: 9px; }
  .directory-head h2 { font-size: 26px; }
  .directory-head > p { font-size: 13px; }
  .directory-grid { gap: 9px; }
  .directory-card { padding: 15px 13px 4px; border-radius: 10px; }
  .directory-card h3 { font-size: 14px; }
  .directory-card h3 a { padding-bottom: 10px; }
  .directory-card h3 small span { display: none; }
  .directory-card li a { padding: 9px 0; font-size: 14px; }
  .directory-note { font-size: 12px; text-align: left; }
  .editorial-layout.with-head { row-gap: 28px; }
  .home-article { padding-top: 30px; }
  .official-card { flex-direction: column; align-items: stretch; gap: 18px; padding: 20px; }
  .official-card strong { font-size: 24px; }
  .official-card p { font-size: 12px; }
  .official-card .button-link { min-width: 0; font-size: 13px; padding: 13px 16px; }
  .post-list a { padding: 19px 0 17px; }
  .post-list h2, .post-list h3 { font-size: 20px; }
  .post-list p { font-size: 13px; }
  .breadcrumb { padding-block: 13px; font-size: 11px; }
  .page-head { padding: 22px 0 26px; }
  .page-head h1 { font-size: 28px; letter-spacing: -1.2px; }
  .page-head .lead { font-size: 15px; line-height: 1.95; }
  .prose { font-size: 15px; line-height: 1.95; }
  .prose h2 { font-size: 23px; margin-top: 36px; }
  .prose h3 { font-size: 17px; }
  .prose blockquote { font-size: 18px; padding: 18px 20px; }
  .message-card { padding: 50px 0 36px; }
  .message-card h1 { font-size: 30px; }
  .message-actions .button-link { min-width: 0; flex: 1 1 100%; }
  .footer-nav { font-size: 12px; gap: 7px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { transition: none !important; }
}
