/* 커버 그리드형 — Gothic A1 한 벌, 흰 바탕 + 먹색 + 겨자색 포인트 */
@font-face { font-family: 'Pretendard Variable'; src: url('/fonts/PretendardVariable.woff2') format('woff2-variations'); font-weight: 45 920; font-display: swap; }
:root {
  --bg: #FFFFFF; --soft: #F5F4F0; --ink: #15181C; --ink2: #3A3F46; --mut: #7A7F86; --line: #E6E4DE;
  --acc: #C9962B; --acc-d: #8F6812; --dark: #1B1F24;
  --f: 'Gothic A1', 'Pretendard Variable', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  --w: 1200px;
}
* { 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(--f); word-break: keep-all; overflow-wrap: anywhere; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 32px; }
a:focus-visible, button:focus-visible, .in:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* 머리글 */
.hd { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.hd__in { max-width: var(--w); margin: 0 auto; padding: 0 32px; height: 64px; display: flex; align-items: center; gap: 28px; }
.hd__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.hd__brand .brand__mark { width: 26px; height: 26px; color: var(--dark); }
.hd__cats { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.hd__cats::-webkit-scrollbar { display: none; }
.hd__cat { padding: 6px 10px; font-size: 14px; font-weight: 600; color: var(--mut); white-space: nowrap; border-radius: 4px; }
.hd__cat:hover { color: var(--ink); }
.hd__cat.is-on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--acc); border-radius: 0; }
.hd__right { display: flex; align-items: center; gap: 4px; flex: none; }
.hd__ic { display: grid; place-items: center; width: 38px; height: 38px; border: 0; background: none; border-radius: 50%; cursor: pointer; color: var(--ink2); }
.hd__ic:hover { background: var(--soft); }
.hd__link { padding: 7px 12px; font-size: 14px; font-weight: 600; color: var(--ink2); white-space: nowrap; border-radius: 99px; }
.hd__link.is-on { color: var(--ink); background: var(--soft); }
.hd__link--owner { border: 1px solid var(--line); }
.hd__search { display: none; max-width: var(--w); margin: 0 auto; padding: 0 32px 14px; }
.hd__search.is-open { display: block; }
.hd__search input { width: 100%; height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); font-size: 15px; }
.hd__search input:focus { outline: none; border-color: var(--ink); background: #fff; }

/* 커버 띠 */
.band { position: relative; overflow: hidden; background: var(--dark); color: #fff; }
.band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.band__in { position: relative; max-width: var(--w); margin: 0 auto; padding: 92px 32px 84px; }
.band__t { font-size: 52px; font-weight: 800; line-height: 1.15; letter-spacing: -0.04em; }
.band__s { margin-top: 16px; max-width: 520px; font-size: 17px; line-height: 1.7; color: rgba(255,255,255,.86); }
.band__s a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.band__k { font-size: 13px; font-weight: 600; color: var(--acc); margin-bottom: 8px; }
.band--slim { background: var(--soft); color: var(--ink); }
.band--slim .band__in { padding: 48px 32px 42px; }
.band--slim .band__t { font-size: 36px; }
.band--slim .band__s { color: var(--mut); }
.band--slim .band__s a { color: var(--acc-d); }

.tagrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 26px; padding-bottom: 6px; }
.tagrow__k { font-size: 12.5px; font-weight: 600; color: var(--mut); margin-right: 6px; }
.chip { display: inline-block; padding: 4px 11px; border: 1px solid var(--line); border-radius: 99px; font-size: 13px; color: var(--ink2); }
.chip:hover { border-color: var(--ink2); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* 그리드: 첫 글이 3칸을 다 차지한다 */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; padding-top: 28px; padding-bottom: 80px; }
.kick { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--acc-d); letter-spacing: .02em; }
.meta { font-size: 13px; color: var(--mut); }
.feat { grid-column: 1 / -1; }
.feat__a { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.feat__pic { aspect-ratio: 3 / 2; overflow: hidden; border-radius: 4px; background: var(--soft); }
.feat__pic img, .feat__pic .type-cover { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.feat__a:hover img { transform: scale(1.025); }
.feat__t { margin: 10px 0 14px; font-size: 34px; font-weight: 800; line-height: 1.3; letter-spacing: -0.035em; }
.feat__ex { color: var(--ink2); font-size: 16px; line-height: 1.75; margin-bottom: 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feat__a:hover .feat__t { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

.card__a { display: flex; flex-direction: column; height: 100%; }
.card__pic { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; background: var(--soft); margin-bottom: 16px; }
.card__pic img, .card__pic .type-cover { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card__a:hover img { transform: scale(1.03); }
.card__t { margin: 6px 0 8px; font-size: 20px; font-weight: 800; line-height: 1.4; letter-spacing: -0.03em; }
.card__a:hover .card__t { text-decoration: underline; text-underline-offset: 4px; }
.card__ex { color: var(--ink2); font-size: 14.5px; line-height: 1.7; margin-bottom: 12px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* 사진 없는 새 글 — 글자 표지 */
.type-cover { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 22px; background: var(--dark); color: #fff; }
.type-cover span { font-size: 12px; font-weight: 600; color: var(--acc); }
.type-cover b { font-size: 19px; font-weight: 800; line-height: 1.35; letter-spacing: -0.03em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.none { color: var(--mut); padding: 48px 0 80px; font-size: 16px; }

/* 글 보기 */
.post__hd { max-width: 760px; margin: 0 auto; padding: 72px 32px 40px; text-align: center; }
.post__t { margin: 12px 0 16px; font-size: 42px; font-weight: 800; line-height: 1.28; letter-spacing: -0.04em; }
.post__sub { font-size: 18px; line-height: 1.65; color: var(--ink2); margin-bottom: 18px; }
.post__fig { max-width: 1040px; margin: 0 auto 56px; padding: 0 32px; }
.post__fig img { width: 100%; height: auto; border-radius: 4px; }
.post__rule { width: 60px; margin: 0 auto 48px; border: 0; border-top: 3px solid var(--acc); }
.post__body { max-width: 720px; margin: 0 auto; padding: 0 32px 72px; }
.prose { font-size: 17.5px; line-height: 1.9; color: var(--ink); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: 24px; font-weight: 800; line-height: 1.45; letter-spacing: -0.03em; margin-top: 2em; }
.prose h3 { font-size: 19px; font-weight: 800; margin-top: 1.7em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--acc); }
.prose strong { font-weight: 800; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.post__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 40px; }
.ask { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 48px; padding: 28px 30px; border-radius: 6px; background: var(--dark); color: #fff; }
.ask__t { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.ask__s { margin-top: 6px; font-size: 14.5px; color: rgba(255,255,255,.75); }
.more { background: var(--soft); padding: 64px 0 80px; }
.more__h { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 28px; }
.more__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }

/* 버튼·폼 */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border: 1px solid var(--acc); border-radius: 99px; background: var(--acc); color: var(--dark); font-size: 15px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.btn:hover { background: #DDAA3C; }
.btn--line { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--line:hover { background: var(--soft); }
.btn--wide { width: 100%; }
.ln { color: var(--acc-d); font-weight: 600; }
.slim { max-width: 600px; margin: 0 auto; padding: 72px 32px 96px; }
.slim__t { margin: 8px 0 10px; font-size: 36px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.25; }
.slim__s { color: var(--ink2); font-size: 16px; }
.from { display: flex; gap: 10px; margin-top: 22px; padding: 14px 16px; background: var(--soft); border-radius: 6px; font-size: 14.5px; }
.from span { color: var(--mut); flex: none; }
.from a { font-weight: 600; }
.form { display: grid; gap: 16px; margin-top: 30px; }
.fr { display: grid; gap: 6px; }
.fr > span { font-size: 13.5px; font-weight: 600; color: var(--ink2); }
.fr2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.in { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 15px; }
.in:focus { outline: none; border-color: var(--ink); }
textarea.in { resize: vertical; line-height: 1.7; }
.err { color: #A83A2A; font-size: 14px; }
.err:empty { display: none; }
.hint { color: var(--mut); font-size: 13.5px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* 바닥글 */
.ft { background: var(--dark); color: rgba(255,255,255,.72); }
.ft__in { max-width: var(--w); margin: 0 auto; padding: 40px 32px 48px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.ft__brand { color: #fff; font-weight: 800; white-space: nowrap; }
.ft__note { font-size: 13.5px; line-height: 1.7; max-width: 620px; }
.ft__reset { padding: 8px 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 99px; background: none; color: #fff; font-size: 13px; cursor: pointer; white-space: nowrap; }
.ft__reset:hover { background: rgba(255,255,255,.1); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); max-width: calc(100% - 32px); padding: 11px 18px; border-radius: 6px; background: var(--ink); color: #fff; 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: 960px) {
  .grid, .more__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat__a { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 640px) {
  .wrap, .hd__search { padding-left: 16px; padding-right: 16px; }
  .hd__in { padding: 0 16px; height: auto; flex-wrap: wrap; gap: 0 8px; padding-top: 10px; }
  .hd__brand { flex: 1; }
  .hd__cats { order: 3; flex-basis: 100%; margin: 6px -16px 0; padding: 0 10px 2px; }
  .hd__link { padding: 6px 9px; font-size: 13.5px; }
  .band__in { padding: 48px 16px 44px; }
  .band__t { font-size: 34px; }
  .band__s { font-size: 15.5px; }
  .band--slim .band__in { padding: 32px 16px; }
  .band--slim .band__t { font-size: 26px; }
  .grid, .more__grid { grid-template-columns: 1fr; gap: 36px; }
  .feat__t { font-size: 26px; }
  .card__t { font-size: 19px; }
  .post__hd { padding: 40px 16px 28px; }
  .post__t { font-size: 28px; }
  .post__sub { font-size: 16px; }
  .post__fig { padding: 0; margin-bottom: 36px; }
  .post__fig img { border-radius: 0; }
  .post__body { padding: 0 16px 56px; }
  .prose { font-size: 16.5px; }
  .ask { flex-direction: column; align-items: stretch; padding: 24px 20px; }
  .more { padding: 44px 0 56px; }
  .slim { padding: 44px 16px 64px; }
  .slim__t { font-size: 28px; }
  .fr2 { grid-template-columns: 1fr; }
  .ft__in { grid-template-columns: 1fr; padding: 32px 16px 40px; gap: 14px; justify-items: start; }
}
