/* 레이아웃 6 — 전면 표지형: 사진 표지 + 어두운 추천 띠 + 밝고 좁은 목록. Gowun Batang + Pretendard */
@font-face { font-family: 'Pretendard Variable'; src: url('/fonts/PretendardVariable.woff2') format('woff2-variations'); font-weight: 45 920; font-display: swap; }

:root {
  --night: #191714; --night2: #24211D; --cream: #F1ECE2; --paper: #F7F4EE; --ink: #201D19; --ink2: #4A453E; --muted: #857D72;
  --line: #E1DAD0; --accent: #C9A15A; --accent-d: #8E6B2C;
  --serif: 'Gowun Batang', '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(--paper); color: var(--ink); font: 400 15.5px/1.7 var(--sans); letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: anywhere; overflow-x: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, p, ol, ul { margin: 0; }
img { display: block; max-width: 100%; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
#app { position: relative; }

/* 머리글 — 목록에서는 표지 위에 얹힌다 */
.fc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 32px; height: 68px; background: var(--night); color: var(--cream); }
.fc-top--over { position: absolute; left: 0; right: 0; top: 0; z-index: 5; background: transparent; }
.fc-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px/1 var(--serif); white-space: nowrap; color: var(--cream); }
.fc-brand .brand__mark { width: 26px; height: 26px; color: var(--accent-d); }
.fc-nav { display: flex; gap: 4px; }
.fc-nav__a { padding: 7px 12px; font-size: 14.5px; font-weight: 500; text-decoration: none; white-space: nowrap; color: rgba(241,236,226,.78); border-bottom: 1px solid transparent; }
.fc-nav__a:hover { color: #fff; }
.fc-nav__a.is-on { color: #fff; border-bottom-color: var(--accent); }

/* 표지 */
.fc-hero { position: relative; height: calc(100svh - 72px); min-height: 520px; max-height: 1000px; color: #fff; overflow: hidden; background: var(--night); }
.fc-hero--short { height: 46svh; min-height: 340px; }
.fc-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fc-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,15,.55) 0%, rgba(20,18,15,.12) 30%, rgba(20,18,15,.2) 55%, rgba(20,18,15,.78) 100%); }
.fc-hero__txt { position: absolute; z-index: 2; left: 0; right: 0; bottom: 12%; padding: 0 32px; text-align: center; }
.fc-hero--short .fc-hero__txt { bottom: 14%; }
.fc-hero__k { font-size: 14px; letter-spacing: .14em; color: rgba(255,255,255,.82); }
.fc-hero__t { margin-top: 10px; font: 700 clamp(48px, 8vw, 96px)/1.1 var(--serif); letter-spacing: -0.02em; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.fc-hero__l { margin-top: 18px; font: 400 18px/1.75 var(--serif); color: rgba(255,255,255,.9); }
.fc-hero--short .fc-hero__l { display: none; }
.fc-hero__down { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 34px; font-size: 13.5px; color: rgba(255,255,255,.85); text-decoration: none; }
.fc-hero__arrow { font-size: 22px; animation: fc-bob 2.4s ease-in-out infinite; }
@keyframes fc-bob { 50% { transform: translateY(6px); } }
.fc-hero__cap { position: absolute; z-index: 2; right: 32px; bottom: 22px; font-size: 12px; color: rgba(255,255,255,.6); }

/* 추천 넘김 띠 */
.fc-picks { background: var(--night); color: var(--cream); padding: 64px 0 72px; }
.fc-picks__head { max-width: 1180px; margin: 0 auto 26px; padding: 0 32px; display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.fc-picks__head h2 { font: 700 26px/1.3 var(--serif); }
.fc-arrows { display: flex; gap: 8px; }
.fc-arrow { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(241,236,226,.3); background: transparent; color: var(--cream); cursor: pointer; }
.fc-arrow:hover { border-color: var(--accent); color: var(--accent); }
.fc-track { list-style: none; margin: 0 auto; padding: 0 32px 6px; max-width: 1180px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 32px; scrollbar-width: none; }
.fc-track::-webkit-scrollbar { display: none; }
.fc-slide { scroll-snap-align: start; min-width: 0; }
.fc-slide a { display: flex; flex-direction: column; text-decoration: none; }
.fc-slide__img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; transition: opacity .2s; }
.fc-slide a:hover .fc-slide__img { opacity: .85; }
.fc-slide__n { margin-top: 16px; font-size: 12px; letter-spacing: .1em; color: var(--accent); }
.fc-slide__cat { margin-top: 2px; font-size: 13px; color: rgba(241,236,226,.6); }
.fc-slide__t { margin-top: 6px; font: 700 20px/1.45 var(--serif); }
.fc-slide__note { margin-top: 6px; font-size: 14.5px; color: rgba(241,236,226,.7); }

/* 좁은 최근 글 목록 */
.fc-latest { max-width: 620px; margin: 0 auto; padding: 72px 24px 96px; scroll-margin-top: 16px; }
.fc-latest__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.fc-latest__head h2 { font: 700 26px/1.3 var(--serif); }
.fc-search { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); padding: 4px 2px; color: var(--muted); min-width: 0; }
.fc-search__in { border: 0; background: transparent; outline: none; width: 160px; min-width: 0; font-size: 14.5px; color: var(--ink); }
.fc-search:focus-within { border-bottom-color: var(--ink); }
.fc-cats { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 18px; }
.fc-cat { font-size: 14.5px; text-decoration: none; color: var(--muted); padding: 2px 0; }
.fc-cat span { margin-left: 4px; font-size: 12px; color: var(--line); color: #B3AA9D; }
.fc-cat:hover { color: var(--ink); }
.fc-cat.is-on { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--accent); }
.fc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.fc-tag { font-size: 13px; padding: 3px 10px; border-radius: 99px; background: #ECE6DC; color: var(--ink2); text-decoration: none; }
.fc-tag:hover { background: #E2D9CB; }
.fc-tag.is-on { background: var(--ink); color: var(--cream); }
.fc-sum { margin-top: 26px; font-size: 14px; color: var(--ink2); }
.fc-sum a { margin-left: 6px; color: var(--accent-d); }
.fc-empty { padding: 48px 0; color: var(--muted); }
.fc-rows { list-style: none; padding: 0; margin-top: 14px; }
.fc-row { border-bottom: 1px solid var(--line); }
.fc-row a { display: grid; grid-template-columns: 132px 1fr; gap: 20px; align-items: start; padding: 22px 0; text-decoration: none; }
.fc-row__img { width: 132px; height: 99px; object-fit: cover; border-radius: 2px; }
.fc-row__img--none { display: grid; place-items: center; background: var(--night2); color: var(--accent); font: 700 34px/1 var(--serif); }
.fc-row__txt { display: flex; flex-direction: column; min-width: 0; }
.fc-row__cat { font-size: 12.5px; color: var(--accent-d); font-weight: 600; }
.fc-row__t { margin-top: 2px; font: 700 18.5px/1.45 var(--serif); }
.fc-row a:hover .fc-row__t { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.fc-row__ex { margin-top: 6px; font-size: 14.5px; color: var(--ink2); }
.fc-row__m { margin-top: 8px; font-size: 13px; color: var(--muted); }
.fc-more { display: block; width: 100%; margin-top: 28px; padding: 14px; border: 1px solid var(--ink); background: transparent; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.fc-more:hover { background: var(--ink); color: var(--cream); }

/* 버튼·링크 */
.fc-btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border: 1px solid var(--ink); background: var(--ink); color: var(--cream); font-size: 14.5px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.fc-btn:hover { background: #000; }
.fc-btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.fc-btn--ghost:hover { background: rgba(127,127,127,.12); }
.fc-btn--block { width: 100%; }
.fc-link { font-size: 14px; color: var(--muted); text-decoration: none; }
.fc-link:hover { color: var(--ink); }

/* 글 보기 */
.fc-post__head { position: relative; height: 78svh; min-height: 460px; max-height: 860px; overflow: hidden; color: #fff; background: var(--night); }
.fc-post__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fc-post__head::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,15,0) 35%, rgba(20,18,15,.82) 100%); }
.fc-post__txt { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; max-width: 880px; margin: 0 auto; padding: 0 32px 56px; }
.fc-post__head--plain { height: auto; min-height: 0; }
.fc-post__head--plain::after { display: none; }
.fc-post__head--plain .fc-post__txt { position: static; padding-top: 96px; }
.fc-post__cat { font-size: 14px; color: var(--accent); text-decoration: none; letter-spacing: .04em; }
.fc-post__t { margin-top: 12px; font: 700 clamp(32px, 4.6vw, 50px)/1.3 var(--serif); letter-spacing: -0.02em; }
.fc-post__m { margin-top: 16px; font-size: 14px; color: rgba(255,255,255,.75); }
.fc-post__body { max-width: 660px; margin: 0 auto; padding: 64px 24px 24px; }
.fc-prose { font: 400 18px/2 var(--serif); color: var(--ink); }
.fc-prose > * + * { margin-top: 1.15em; }
.fc-prose h2 { font: 700 23px/1.5 var(--serif); margin-top: 2.1em; }
.fc-prose h3 { font: 700 19px/1.5 var(--serif); margin-top: 1.8em; }
.fc-prose h2 + *, .fc-prose h3 + * { margin-top: .55em; }
.fc-prose ul, .fc-prose ol { padding-left: 1.3em; }
.fc-prose li + li { margin-top: .3em; }
.fc-prose strong { background: linear-gradient(transparent 62%, #EED9AE 62%); font-weight: 700; }
.fc-prose a { color: var(--accent-d); }
.fc-tags--post { margin-top: 40px; }
.fc-cta { margin-top: 48px; padding: 30px 32px; background: var(--night); color: var(--cream); }
.fc-cta__t { font: 700 21px/1.45 var(--serif); }
.fc-cta__s { margin: 8px 0 20px; font-size: 15px; color: rgba(241,236,226,.78); }
.fc-cta .fc-btn { background: var(--accent); border-color: var(--accent); color: var(--night); }
.fc-cta .fc-btn:hover { background: var(--cream); border-color: var(--cream); }
.fc-next { max-width: 1000px; margin: 0 auto; padding: 56px 24px 96px; }
.fc-next h2 { font: 700 20px/1.3 var(--serif); padding-bottom: 14px; border-bottom: 2px solid var(--ink); margin-bottom: 24px; }
.fc-next__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.fc-next__a { display: flex; flex-direction: column; text-decoration: none; }
.fc-next__img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.fc-next__k { margin-top: 12px; font-size: 13px; color: var(--muted); }
.fc-next__t { margin-top: 4px; font: 700 19px/1.45 var(--serif); }
.fc-next__a:hover .fc-next__t { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.fc-page { max-width: 620px; margin: 0 auto; padding: 80px 24px; }

/* 상담 — 사진과 양식 좌우 분할 */
.fc-split { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100svh - 140px); }
.fc-split__pic { position: relative; background: var(--night); overflow: hidden; }
.fc-split__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.fc-split__cap { position: absolute; left: 32px; right: 32px; bottom: 28px; color: #fff; font: 400 16px/1.6 var(--serif); text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.fc-split__form { padding: 56px 56px 72px; max-width: 600px; }
.fc-page__t { margin-top: 22px; font: 700 34px/1.3 var(--serif); }
.fc-page__s { margin-top: 8px; color: var(--muted); }
.fc-form { margin-top: 32px; display: grid; gap: 18px; }
.fc-form__row { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink2); }
.fc-field { width: 100%; padding: 12px 2px; border: 0; border-bottom: 1px solid #C8BFB2; background: transparent; font-size: 16px; font-weight: 400; color: var(--ink); border-radius: 0; outline: none; }
select.fc-field { padding-left: 0; }
textarea.fc-field { resize: vertical; border: 1px solid #C8BFB2; padding: 12px; margin-top: 4px; }
.fc-field:focus { border-color: var(--ink); }
.fc-err { min-height: 1.2em; font-size: 14px; color: #A23A22; }
.fc-hint { font-size: 13px; color: var(--muted); }

/* 감사 */
.fc-thanks { position: relative; min-height: calc(100svh - 140px); display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; background: var(--night); }
.fc-thanks__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.fc-thanks__txt { position: relative; padding: 48px 24px; }
.fc-thanks h1 { font: 700 48px/1.2 var(--serif); }
.fc-thanks__txt > p { margin-top: 14px; font-size: 16px; color: rgba(255,255,255,.85); }
.fc-thanks__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px !important; }
.fc-thanks .fc-btn { background: var(--cream); color: var(--night); border-color: var(--cream); }
.fc-thanks .fc-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }

/* 바닥글 */
.fc-foot { background: var(--night); color: rgba(241,236,226,.7); }
.fc-foot__in { max-width: 1180px; margin: 0 auto; padding: 44px 32px 52px; display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 32px; align-items: start; font-size: 14px; }
.fc-foot__name { font: 700 18px/1.4 var(--serif); color: var(--cream); display: flex; flex-direction: column; gap: 4px; }
.fc-foot__name span { font: 400 13px/1.5 var(--sans); color: rgba(241,236,226,.55); }
.fc-foot__note { line-height: 1.75; }
.fc-foot .fc-btn { padding: 9px 16px; font-size: 13.5px; color: var(--cream); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); max-width: calc(100% - 32px); padding: 11px 18px; background: var(--ink); color: var(--cream); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 860px) {
  .fc-track { grid-auto-columns: 78%; }
  .fc-split { grid-template-columns: 1fr; min-height: 0; }
  .fc-split__pic { height: 240px; }
  .fc-split__form { padding: 36px 20px 56px; }
  .fc-foot__in { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 560px) {
  .fc-top { padding: 0 16px; height: 58px; }
  .fc-brand { font-size: 16px; gap: 8px; }
  .fc-brand .brand__mark { width: 22px; height: 22px; }
  .fc-nav { gap: 0; }
  .fc-nav__a { padding: 6px 7px; font-size: 13.5px; }
  .fc-hero { height: calc(100svh - 64px); min-height: 560px; }
  .fc-hero--short { height: 40svh; min-height: 300px; }
  .fc-hero__txt { padding: 0 20px; }
  .fc-hero__l { font-size: 16px; }
  .fc-hero__l br { display: none; }
  .fc-hero__cap { right: 16px; left: 16px; text-align: right; }
  .fc-picks { padding: 48px 0 56px; }
  .fc-picks__head { padding: 0 20px; }
  .fc-picks__head h2, .fc-latest__head h2 { font-size: 22px; }
  .fc-track { grid-auto-columns: 82%; padding: 0 20px 6px; gap: 14px; scroll-padding: 0 20px; }
  .fc-latest { padding: 52px 20px 72px; }
  .fc-latest__head { flex-wrap: wrap; }
  .fc-search { flex: 1 1 100%; }
  .fc-search__in { width: 100%; }
  .fc-row a { grid-template-columns: 72px 1fr; gap: 14px; padding: 18px 0; }
  .fc-row__img { width: 72px; height: 72px; }
  .fc-row__img--none { font-size: 26px; }
  .fc-row__t { font-size: 16.5px; }
  .fc-row__ex { display: none; }
  .fc-post__head { height: 70svh; min-height: 420px; }
  .fc-post__txt { padding: 0 20px 36px; }
  .fc-post__head--plain .fc-post__txt { padding-top: 56px; }
  .fc-post__body { padding: 44px 20px 16px; }
  .fc-prose { font-size: 17px; line-height: 1.95; }
  .fc-cta { padding: 24px 20px; margin-left: -20px; margin-right: -20px; }
  .fc-next { padding: 44px 20px 72px; }
  .fc-next__grid { grid-template-columns: 1fr; }
  .fc-thanks h1 { font-size: 38px; }
}
