/* 사진첩형 — 무채색 어두운 바탕, 사진만 돋보이게. IBM Plex Sans KR */
:root {
  --bg: #141414; --bg2: #1E1E1E; --ink: #EDEDED; --ink2: #B9B9B9; --muted: #808080; --line: #2E2E2E; --line2: #444;
  --hi: #FFFFFF;
  --sans: 'IBM Plex Sans KR', -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.65 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, figure { margin: 0; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
a:focus-visible, button:focus-visible, .al-field:focus-visible { outline: 2px solid var(--hi); outline-offset: 2px; }
.main { max-width: 1040px; margin: 0 auto; padding: 0 20px 80px; }
.main--post { max-width: none; padding: 0 0 80px; }

/* 머리글 */
.al-top { max-width: 1040px; margin: 0 auto; padding: 0 20px; height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.al-brand { font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.al-brand span { color: var(--muted); font-weight: 400; }
.al-nav { display: flex; gap: 18px; }
.al-nav__a { font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.al-nav__a:hover, .al-nav__a.is-on { color: var(--hi); }

.al-btn { display: inline-flex; align-items: center; justify-content: center; padding: 9px 16px; border-radius: 6px; border: 1px solid var(--hi); background: var(--hi); color: #111; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.al-btn:hover { background: #D8D8D8; }
.al-btn--line { background: transparent; color: var(--ink); border-color: var(--line2); }
.al-btn--line:hover { background: var(--bg2); border-color: var(--ink2); }
.al-btn--block { width: 100%; padding: 12px; }

/* 프로필 + 탭 */
.al-prof { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 28px; padding: 40px 0 34px; }
.al-prof__av { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: #2B3A33; color: #2F4A3E; }
.al-prof__av .brand__mark { width: 96px; height: 96px; border-radius: 50%; }
.al-prof__name { font-size: 22px; font-weight: 600; }
.al-prof__n { margin-top: 4px; color: var(--ink2); font-size: 14.5px; }
.al-prof__n b { color: var(--hi); }
.al-sep { display: inline-block; width: 18px; }
.al-prof__bio { margin-top: 6px; color: var(--ink2); font-size: 14.5px; }
.al-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); }
.al-tabs { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.al-tabs::-webkit-scrollbar { display: none; }
.al-tab { display: inline-flex; gap: 5px; padding: 14px 0 13px; margin-top: -1px; font-size: 13.5px; letter-spacing: 0.04em; color: var(--muted); text-decoration: none; white-space: nowrap; border-top: 1px solid transparent; }
.al-tab span { font-size: 12px; color: #5C5C5C; }
.al-tab:hover { color: var(--ink); }
.al-tab.is-on { color: var(--hi); border-top-color: var(--hi); font-weight: 600; }
.al-search { display: flex; align-items: center; gap: 6px; color: var(--muted); flex: 0 1 200px; min-width: 120px; }
.al-search__in { width: 100%; min-width: 0; border: 0; border-bottom: 1px solid var(--line2); background: transparent; padding: 6px 0; font-size: 13.5px; outline: none; color: var(--ink); }
.al-search__in:focus { border-bottom-color: var(--hi); }
.al-tags { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 2px 0 16px; font-size: 13px; }
.al-tags a { color: var(--muted); text-decoration: none; }
.al-tags a:hover, .al-tags a.is-on { color: var(--hi); }
.al-sum { padding-bottom: 14px; font-size: 13.5px; color: var(--ink2); }
.al-sum a { color: var(--hi); }
.al-empty { padding: 60px 0; text-align: center; color: var(--muted); }

/* 정사각 격자 */
.al-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.al-cell { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg2); text-decoration: none; }
.al-cell__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.al-cell__cap { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 16px; background: linear-gradient(transparent 35%, rgba(0, 0, 0, .78)); opacity: 0; transition: opacity .2s; }
.al-cell__cap b { font-size: 15.5px; line-height: 1.45; font-weight: 600; color: #fff; }
.al-cell__cap span { font-size: 12px; color: #CFCFCF; }
.al-cell:hover .al-cell__cap, .al-cell:focus-visible .al-cell__cap { opacity: 1; }
.al-type { display: flex; align-items: center; justify-content: center; padding: 18px; text-align: center; background: #262626; }
.al-type b { font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--ink2); }

/* 글 보기 — 넘김 화면 */
.al-stage { background: #0B0B0B; padding: 14px 0 26px; }
.al-stage__top { max-width: 1040px; margin: 0 auto 12px; padding: 0 20px; display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.al-close { color: var(--ink2); text-decoration: none; }
.al-close:hover { color: var(--hi); }
.al-stage__fig { position: relative; max-width: 1040px; margin: 0 auto; padding: 0 64px; }
.al-stage__fig img { display: block; width: 100%; height: auto; max-height: 76vh; object-fit: contain; margin: 0 auto; }
.al-type--big { aspect-ratio: 3 / 2; max-height: 76vh; }
.al-type--big b { font-size: 30px; }
.al-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; }
.al-arrow:hover { background: rgba(255, 255, 255, .2); }
.al-arrow .ic { width: 22px; height: 22px; }
.al-arrow--l { left: 6px; }
.al-arrow--r { right: 6px; }
.al-arrow.is-off { display: none; }
.al-cap { max-width: 640px; margin: 0 auto; padding: 30px 20px 0; }
.al-cap__t { font-size: 22px; font-weight: 600; line-height: 1.45; }
.al-cap__m { margin-top: 6px; font-size: 13px; color: var(--muted); }
.al-cap__m a { color: var(--ink2); }
.al-prose { margin-top: 22px; font-size: 15px; line-height: 1.85; color: var(--ink2); }
.al-prose > * + * { margin-top: 1em; }
.al-prose h2 { font-size: 15.5px; font-weight: 600; color: var(--hi); margin-top: 1.8em; }
.al-prose h3 { font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 1.5em; }
.al-prose h2 + *, .al-prose h3 + * { margin-top: .5em; }
.al-prose ul, .al-prose ol { padding-left: 1.2em; }
.al-prose strong { color: var(--hi); font-weight: 600; }
.al-prose a { color: var(--hi); }
.al-tags--post { padding: 22px 0 0; }
.al-cta { margin-top: 30px; padding: 18px 20px; border: 1px solid var(--line2); border-radius: 8px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--ink2); }
.al-cta b { color: var(--hi); font-weight: 600; }
.al-same { max-width: 1040px; margin: 56px auto 0; padding: 0 20px; }
.al-same__h { font-size: 14px; font-weight: 600; color: var(--ink2); margin-bottom: 12px; }
.al-strip { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.al-strip .al-type b { font-size: 12px; }

/* 상담 */
.al-narrow { max-width: 560px; margin: 0 auto; padding-top: 48px; }
.al-h1 { font-size: 26px; font-weight: 600; }
.al-sub { margin-top: 8px; color: var(--ink2); }
.al-from { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 10px; border: 1px solid var(--line2); border-radius: 8px; text-decoration: none; }
.al-from img { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; }
.al-from span { display: grid; font-weight: 600; }
.al-from small { font-size: 12px; color: var(--muted); font-weight: 400; }
.al-form { display: grid; gap: 16px; margin-top: 26px; }
.al-row { display: grid; gap: 6px; }
.al-row > span { font-size: 13.5px; color: var(--ink2); }
.al-field { width: 100%; padding: 11px 12px; border: 1px solid var(--line2); border-radius: 6px; background: var(--bg2); font-size: 15px; color: var(--ink); }
.al-field:focus { outline: none; border-color: var(--hi); }
textarea.al-field { resize: vertical; line-height: 1.7; }
.al-field::placeholder { color: #6A6A6A; }
.al-err { color: #FF9A8A; font-size: 14px; }
.al-err:empty { display: none; }
.al-hint { font-size: 13px; color: var(--muted); }
.al-thanks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.al-link { color: var(--hi); }

/* 바닥글 */
.al-foot { max-width: 1040px; margin: 0 auto; padding: 26px 20px 36px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.al-foot p { font-size: 13px; color: var(--muted); max-width: 46em; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); max-width: calc(100% - 32px); padding: 11px 18px; border-radius: 8px; background: var(--hi); color: #111; 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 (hover: none) { .al-cell__cap { display: none; } }
@media (max-width: 720px) {
  .al-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .al-stage__fig { padding: 0; }
  .al-arrow { width: 40px; height: 40px; background: rgba(0, 0, 0, .45); }
  .al-arrow--l { left: 8px; }
  .al-arrow--r { right: 8px; }
}
@media (max-width: 560px) {
  .main { padding: 0 0 64px; }
  .al-top { padding: 0 16px; height: 54px; }
  .al-brand span { display: none; }
  .al-nav { gap: 14px; }
  .al-prof { grid-template-columns: 72px minmax(0, 1fr); gap: 4px 18px; padding: 24px 16px 20px; }
  .al-prof__av { grid-row: span 2; }
  .al-prof__av, .al-prof__av .brand__mark { width: 72px; height: 72px; }
  .al-prof__name { font-size: 19px; }
  .al-prof__bio { grid-column: 1 / -1; margin-top: 12px; }
  .al-prof__txt { display: contents; }
  .al-prof__name, .al-prof__n { grid-column: 2; }
  .al-prof__name { align-self: end; }
  .al-prof__n { align-self: start; }
  .al-prof > .al-btn { grid-column: 1 / -1; margin-top: 12px; }
  .al-bar { flex-direction: column; align-items: stretch; gap: 0; }
  .al-tabs { justify-content: space-between; gap: 12px; padding: 0 16px; }
  .al-tab { flex-direction: column; align-items: center; gap: 0; font-size: 13px; }
  .al-search { padding: 4px 16px 6px; flex: none; }
  .al-tags { padding: 8px 16px 12px; }
  .al-tags--post { padding: 20px 0 0; }
  .al-sum { padding: 0 16px 12px; }
  .al-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
  .al-type { padding: 8px; }
  .al-type b { font-size: 12.5px; }
  .al-stage { padding: 10px 0 16px; }
  .al-stage__top { padding: 0 16px; }
  .al-cap { padding: 22px 16px 0; }
  .al-cap__t { font-size: 19.5px; }
  .al-cta { flex-direction: column; align-items: stretch; }
  .al-same { padding: 0 16px; margin-top: 40px; }
  .al-narrow { padding: 32px 16px 0; }
  .al-foot { flex-direction: column; align-items: flex-start; padding: 22px 16px 30px; }
}
