/* 표지 에세이형 — 흰 바탕, 명조, 민트 포인트 하나 */
@font-face { font-family: 'Pretendard Variable'; src: url('/fonts/PretendardVariable.woff2') format('woff2-variations'); font-weight: 45 920; font-display: swap; }
:root {
  --bg: #FFFFFF; --ink: #222; --ink2: #4A4A4A; --muted: #959595; --line: #EBEBEB; --soft: #F7F7F5;
  --mint: #18998A; --mint-d: #127A6E; --mint-soft: #EEF7F5;
  --serif: 'Nanum Myeongjo', 'AppleMyungjo', serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.7 var(--sans); word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* 머리글 */
.es-top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.es-top__in { max-width: 1040px; margin: 0 auto; padding: 0 20px; height: 56px; display: flex; align-items: center; gap: 14px; }
.es-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font: 800 17px/1 var(--serif); color: var(--ink); white-space: nowrap; }
.es-brand .brand__mark { width: 24px; height: 24px; color: var(--mint); }
.es-top__name { font: 700 15px/1 var(--serif); text-decoration: none; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.es-nav { margin-left: auto; display: flex; gap: 18px; }
.es-nav a { text-decoration: none; font-size: 14px; color: var(--muted); white-space: nowrap; }
.es-nav a:hover, .es-nav a.is-on { color: var(--ink); }
.es-ico { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; color: var(--ink2); cursor: pointer; text-decoration: none; flex: none; }
.es-ico:hover { background: var(--soft); }
.es-progress { height: 2px; background: transparent; }
.es-progress__bar { display: block; height: 2px; background: var(--mint); transform: scaleX(0); transform-origin: 0 50%; }

/* 버튼 */
.es-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 22px; border-radius: 99px; border: 1px solid transparent; font: 600 14.5px/1.2 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.es-btn--mint { background: var(--mint); color: #fff; }
.es-btn--mint:hover { background: var(--mint-d); }
.es-btn--line { background: #fff; border-color: #D5D5D5; color: var(--ink2); }
.es-btn--line:hover { border-color: var(--ink2); }
.es-btn--sm { padding: 7px 14px; font-size: 13px; }
.es-btn--block { width: 100%; }
.es-link { color: var(--mint-d); }
.es-empty { padding: 40px 0; color: var(--muted); text-align: center; }

/* 작가 페이지 */
.es-page { max-width: 600px; margin: 0 auto; padding: 56px 20px 40px; }
.es-prof { position: relative; padding: 0 120px 32px 0; border-bottom: 1px solid var(--line); }
.es-prof__pic { position: absolute; right: 0; top: -8px; width: 96px; height: 96px; border-radius: 50%; background: var(--mint-soft); display: grid; place-items: center; }
.es-prof__pic .brand__mark { width: 52px; height: 52px; color: var(--mint); }
.es-prof__name { font: 800 30px/1.3 var(--serif); letter-spacing: -0.02em; }
.es-prof__job { margin-top: 6px; color: var(--muted); font-size: 14px; }
.es-prof__bio { margin-top: 16px; color: var(--ink2); font: 400 15.5px/1.85 var(--serif); }
.es-prof__row { margin-top: 18px; display: flex; align-items: center; gap: 18px; font-size: 13.5px; color: var(--muted); }
.es-prof__row b { font-weight: 500; color: var(--ink2); }
.es-prof__row .es-btn { margin-left: auto; }

.es-tabs { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.es-tabs__row { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1; }
.es-tabs__row::-webkit-scrollbar { display: none; }
.es-tabs__row a { padding: 16px 0 14px; text-decoration: none; font-size: 14.5px; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.es-tabs__row a small { margin-left: 4px; font-size: 12px; }
.es-tabs__row a.is-on { color: var(--ink); font-weight: 600; border-color: var(--ink); }
.es-search { display: none; align-items: center; gap: 8px; margin-top: 14px; padding: 0 14px; height: 44px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); }
.es-search.is-open { display: flex; }
.es-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font-size: 15px; }
.es-tags { display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 16px 0 6px; font-size: 13px; }
.es-tags a { color: var(--muted); text-decoration: none; }
.es-tags a:hover { color: var(--ink); }
.es-tags a.is-on { color: var(--mint-d); font-weight: 600; }
.es-sum { padding: 18px 0 0; font-size: 14px; color: var(--ink2); }
.es-sum a { margin-left: 8px; color: var(--mint-d); }

.es-card { border-bottom: 1px solid var(--line); }
.es-card > a { display: grid; grid-template-columns: 1fr 112px; gap: 24px; padding: 30px 0; text-decoration: none; align-items: start; }
.es-card--text > a { grid-template-columns: 1fr; }
.es-card--pin { background: var(--mint-soft); margin: 0 -20px; padding: 0 20px; border-bottom-color: transparent; }
.es-card__pin { margin-bottom: 8px; font-size: 12px; font-weight: 600; color: var(--mint-d); }
.es-card__t { font: 800 21px/1.45 var(--serif); letter-spacing: -0.02em; }
.es-card > a:hover .es-card__t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.es-card__ex { margin-top: 10px; font-size: 14.5px; line-height: 1.75; color: #6B6B6B; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.es-card__meta { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.es-card__img { width: 112px; height: 150px; object-fit: cover; display: block; }

/* 글 보기 — 표지 */
.es-cover { position: relative; min-height: clamp(320px, 46vh, 560px); display: flex; align-items: center; justify-content: center; text-align: center; background: var(--soft); overflow: hidden; }
.es-cover--img { color: #fff; background: #222; }
.es-cover__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.es-cover__in { position: relative; max-width: 720px; padding: 64px 24px 56px; }
.es-cover__cat { display: inline-block; margin-bottom: 18px; font-size: 13px; text-decoration: none; letter-spacing: .02em; opacity: .85; border-bottom: 1px solid currentColor; }
.es-cover__t { font: 800 40px/1.38 var(--serif); letter-spacing: -0.03em; }
.es-cover__sub { margin-top: 16px; font: 400 17px/1.6 var(--serif); opacity: .9; }
.es-cover__by { margin-top: 34px; font-size: 13px; opacity: .8; }
.es-cover__by i { font-family: Georgia, serif; }

.es-narrow { max-width: 600px; margin: 0 auto; padding: 56px 20px 40px; }
.es-prose { font: 400 17px/2 var(--serif); color: #333; }
.es-prose p, .es-prose ul, .es-prose ol { margin: 0 0 1.6em; }
.es-prose h2 { margin: 2.4em 0 .9em; font: 800 21px/1.5 var(--serif); color: var(--ink); }
.es-prose h3 { margin: 2em 0 .6em; font: 700 18px/1.5 var(--serif); }
.es-prose ul, .es-prose ol { padding-left: 1.3em; }
.es-prose strong { font-weight: 800; color: var(--ink); background: linear-gradient(transparent 62%, #D8EFEA 62%); }
.es-prose a { color: var(--mint-d); }

.es-orn { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 56px 0 36px; }
.es-orn span { width: 28px; height: 1px; background: #CFCFCF; }
.es-orn .brand__mark { width: 20px; height: 20px; color: var(--mint); }
.es-tags--post { justify-content: center; padding-top: 0; }
.es-tags--post a { padding: 5px 12px; border: 1px solid var(--line); border-radius: 99px; }

.es-cta { margin-top: 40px; padding: 30px 28px; background: var(--mint-soft); text-align: center; }
.es-cta__t { font: 800 19px/1.5 var(--serif); margin-bottom: 8px; }
.es-cta p { color: var(--ink2); font-size: 14.5px; }
.es-cta .es-btn { margin-top: 18px; }
.es-writer { display: flex; gap: 16px; align-items: center; margin-top: 36px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink2); }
.es-writer__pic { width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--mint-soft); display: grid; place-items: center; }
.es-writer__pic .brand__mark { width: 30px; height: 30px; color: var(--mint); }
.es-writer__n { font: 800 16px/1.4 var(--serif); color: var(--ink); }
.es-more { margin-top: 36px; }
.es-more h2 { font: 700 14px/1.4 var(--sans); color: var(--muted); margin-bottom: 8px; }
.es-more li { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.es-more ul { padding: 0; }
.es-more a { font-family: var(--serif); font-weight: 700; text-decoration: none; }
.es-more a:hover { color: var(--mint-d); }
.es-more span { color: var(--muted); font-size: 12.5px; white-space: nowrap; }

/* 하단 고정 이전/다음 바 */
.es-pn { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-between; gap: 16px; padding: 0 20px; height: 64px; background: rgba(255,255,255,.97); border-top: 1px solid var(--line); }
.es-pn__a { display: flex; align-items: center; gap: 12px; min-width: 0; max-width: 46%; text-decoration: none; color: var(--ink2); }
.es-pn__a:hover { color: var(--mint-d); }
.es-pn__a--next { text-align: right; justify-content: flex-end; }
.es-pn__a.is-off { color: #C2C2C2; font-size: 13px; }
.es-pn__txt { display: flex; flex-direction: column; min-width: 0; }
.es-pn__txt small { font-size: 11.5px; color: var(--muted); }
.es-pn__txt span { font: 700 14.5px/1.4 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 상담 */
.es-form-page { padding-top: 64px; }
.es-kicker { font: 400 14px/1 var(--serif); color: var(--mint-d); margin-bottom: 14px; }
.es-h1 { font: 800 32px/1.35 var(--serif); letter-spacing: -0.02em; }
.es-lead { margin-top: 10px; color: var(--ink2); }
.es-from { margin-top: 18px; padding: 12px 16px; border-left: 2px solid var(--mint); background: var(--soft); font-size: 14px; color: var(--ink2); }
.es-from a { font-family: var(--serif); font-weight: 700; }
.es-form { margin-top: 34px; display: grid; gap: 22px; }
.es-field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.es-field input, .es-field select, .es-field textarea { width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid #D0D0D0; border-radius: 0; background: transparent; font: 400 17px/1.6 var(--serif); color: var(--ink); outline: 0; }
.es-field textarea { resize: vertical; }
.es-field input:focus, .es-field select:focus, .es-field textarea:focus { border-color: var(--mint); }
.es-err { color: #B4443A; font-size: 14px; }
.es-err:empty { display: none; }
.es-hint { font-size: 12.5px; color: var(--muted); text-align: center; }
.es-thanks { text-align: center; }
.es-thanks .es-orn { margin: 0 0 30px; }
.es-thanks__btns { margin-top: 30px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* 바닥글 */
.es-foot { border-top: 1px solid var(--line); background: var(--soft); }
.es-foot--pad { padding-bottom: 64px; }
.es-foot__in { max-width: 600px; margin: 0 auto; padding: 28px 20px; display: flex; gap: 20px; align-items: center; font-size: 12.5px; color: var(--muted); }
.es-foot__in p { flex: 1; }

.toast { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); padding: 11px 18px; border-radius: 99px; background: #222; color: #fff; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; z-index: 50; white-space: nowrap; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 640px) {
  .es-nav { gap: 12px; }
  .es-nav a { font-size: 13px; }
  .es-top--post .es-top__name { display: none; }
  .es-page { padding-top: 36px; }
  .es-prof { padding-right: 84px; }
  .es-prof__pic { width: 68px; height: 68px; top: 0; }
  .es-prof__pic .brand__mark { width: 36px; height: 36px; }
  .es-prof__name { font-size: 25px; }
  .es-prof__row { flex-wrap: wrap; }
  .es-prof__row .es-btn { margin-left: 0; }
  .es-card > a { grid-template-columns: 1fr 84px; gap: 16px; padding: 24px 0; }
  .es-card__img { width: 84px; height: 112px; }
  .es-card__t { font-size: 18px; }
  .es-card__ex { -webkit-line-clamp: 2; font-size: 14px; }
  .es-cover { min-height: clamp(300px, 40vh, 420px); }
  .es-cover__t { font-size: 27px; }
  .es-cover__sub { font-size: 15px; }
  .es-prose { font-size: 16px; line-height: 1.95; }
  .es-pn { height: 56px; padding: 0 12px; }
  .es-pn__txt { display: none; }
  .es-pn__a { max-width: none; width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line); border-radius: 50%; margin-top: 6px; }
  .es-pn__a.is-off { visibility: hidden; }
  .es-foot__in { flex-direction: column; align-items: flex-start; }
  .es-h1 { font-size: 27px; }
}
