/* 지면: 흑백 사진과 먹 바탕 사이에 손글씨가 색을 맡는다. 빨강은 로고의 책등 색 하나뿐이고 표시와 링크 끝에만 쓴다. */
:root {
  --paper: #ffffff;
  --ink: #1b1b1b;        /* 로고의 먹 */
  --red: #fa4f59;        /* 로고의 책등 빨강 */
  --mute: #6d6865;
  --line: #e4e1de;
  --night-fg: #f4f2ef;
  --night-mute: #b3aeaa;
  --night-line: #3f3c3a;
  --serif: "Gowun Batang", "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", serif;
  --sans: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --gap: clamp(16px, 2.4vw, 32px);
  --band: clamp(72px, 10vw, 144px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.75; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.wrap { max-width: 1240px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); }
.label { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; }
.latin { font-family: var(--serif); font-size: .9375rem; letter-spacing: .04em; }
.serif-l { font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 4.2vw, 3.125rem); line-height: 1.4; letter-spacing: -.035em; text-wrap: balance; }
.arrow { width: 12px; height: 12px; flex: none; fill: var(--red); transition: transform .25s ease; }
a:hover > .arrow { transform: translateX(4px); }

/* 안내 상자: 첫 화면 사진 위에 얹는다. 리뉴얼이 끝나면 .notice 블록 하나만 지운다 */
.notice { margin-top: clamp(28px, 3.4vw, 48px); max-width: 38rem; background: var(--ink); color: var(--night-fg); padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 40px); display: grid; gap: 12px; justify-items: start; border-left: 6px solid var(--red); }
.notice__tag { font-size: .875rem; font-weight: 600; letter-spacing: .08em; color: var(--ink); background: var(--red); padding: 2px 10px; }
.notice__text { font-family: var(--serif); font-size: clamp(1.375rem, 2.3vw, 1.75rem); line-height: 1.45; letter-spacing: -.02em; }
.notice__more { font-size: 1.0625rem; line-height: 1.7; color: var(--night-mute); }
.notice__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 1.0625rem; font-weight: 600; padding-block: 4px; border-bottom: 1px solid var(--night-mute); }
.notice__link:hover { border-bottom-color: var(--night-fg); }
.notice__link .arrow { width: 10px; height: 10px; }

/* 머리 */
.head__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 24px; }
.head__logo img { width: clamp(150px, 15vw, 196px); }
.nav { display: flex; flex-wrap: wrap; gap: 0 clamp(16px, 2.6vw, 36px); font-size: .9375rem; font-weight: 500; }
.nav a { padding-block: 6px; border-bottom: 1px solid transparent; }
.nav a:hover { border-bottom-color: var(--ink); }

/* 첫 화면: 사진의 빈 왼쪽에 문장을 얹는다 */
.hero { position: relative; background: #d9d9d9; }
.hero__photo { width: 100%; height: clamp(600px, 62vw, 840px); object-fit: cover; object-position: 72% 30%; }
.hero__text { position: absolute; inset: 0; display: flex; align-items: center; }
.hero__text > div { width: 100%; }
.hero__say { margin-top: 18px; font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 5.2vw, 4.25rem); line-height: 1.34; letter-spacing: -.045em; }
.hero__say span { display: block; }

/* 소개 */
.about { padding-block: var(--band); row-gap: 28px; align-items: start; }
.about__say { grid-column: 1 / 3; }
.about__text { grid-column: 3 / 5; display: grid; gap: 1.1em; font-size: 1.0625rem; line-height: 1.95; }
.mark { width: 34px; margin-bottom: 22px; }

/* 노트: 먹 바탕에 종이 */
.notes { background: var(--ink); color: var(--night-fg); padding-block: var(--band); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 64px); }
.sec-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.02em; line-height: 1.3; }
.sec-head p { font-size: .9375rem; color: var(--mute); }
.notes .sec-head p { color: var(--night-mute); }
.sheets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; }
.sheets li { background: #fff; display: flex; align-items: center; }
.sheets img { width: 100%; background: #fff; }

/* 박웅현 */
.who { padding-block: var(--band); row-gap: 28px; align-items: start; }
.who__name { grid-column: 1 / 3; }
.who__name .latin { display: block; margin-bottom: 14px; color: var(--mute); }
.who__name h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.25rem, 5.4vw, 4rem); letter-spacing: .28em; line-height: 1.2; }
.who__text { grid-column: 3 / 5; display: grid; gap: 1.1em; font-size: 1.0625rem; line-height: 1.95; }
.who__text .small { font-size: .9375rem; color: var(--mute); line-height: 1.85; }
.history { margin-top: .6em; border-top: 1px solid var(--line); font-size: .9375rem; line-height: 1.6; }
.history li { padding-block: 9px; border-bottom: 1px solid var(--line); }
.history span { display: inline-block; width: 1.8em; color: var(--mute); }

/* 인용 */
.quote { padding-block: 0 var(--band); }
.quote blockquote { border-top: 2px solid var(--ink); padding-top: clamp(32px, 5vw, 56px); display: grid; gap: 24px; }
.quote blockquote p { max-width: 20em; }
.quote cite { font-style: normal; font-size: .9375rem; color: var(--mute); }

/* 책 */
.books { padding-block: 0 var(--band); }
.books .sec-head { border-top: 2px solid var(--ink); padding-top: 18px; }
.shelf { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(36px, 5vw, 56px) var(--gap); }
.book { min-width: 0; }
.book__cover { aspect-ratio: 100 / 158; display: flex; align-items: flex-end; margin-bottom: 14px; }
.book__cover img { width: 100%; box-shadow: 0 0 0 1px var(--line), 0 14px 28px -18px rgba(27, 27, 27, .45); }
.book__title { font-size: .9375rem; font-weight: 600; line-height: 1.45; letter-spacing: -.01em; }
.book__shops { display: flex; flex-wrap: wrap; column-gap: 12px; margin-top: 4px; font-size: .8125rem; color: var(--mute); }
.book__shops a { padding-block: 5px; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.book__shops a:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* 클립: 누르면 그 자리에서 영상이 열린다 */
.clips { padding-block: 0 var(--band); }
.clips .sec-head, .writing .sec-head { border-top: 2px solid var(--ink); padding-top: 18px; }
.reel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 5vw, 56px) var(--gap); }
.clip { min-width: 0; }
.clip__play { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--ink); cursor: pointer; aspect-ratio: 16 / 9; overflow: hidden; }
.clip__play img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s ease; }
.clip__play:hover img { opacity: .82; }
.clip__play:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.clip__icon { position: absolute; left: 14px; bottom: 14px; width: 44px; height: 44px; background: var(--ink); display: grid; place-items: center; }
.clip__icon svg { width: 13px; height: 13px; fill: var(--red); margin-left: 2px; }
.clip__frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: var(--ink); }
.clip__title { margin-top: 14px; font-size: 1.0625rem; font-weight: 600; line-height: 1.45; letter-spacing: -.01em; }
.clip__say { margin-top: 4px; font-family: var(--serif); font-size: 1rem; line-height: 1.6; }
.clip__sub { margin-top: 2px; font-size: .875rem; color: var(--mute); line-height: 1.6; }

/* 글 목록 */
.writing { padding-block: 0 var(--band); }
.rows { border-bottom: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto 12px; align-items: baseline; column-gap: var(--gap); padding-block: 18px; border-top: 1px solid var(--line); }
.row__kind { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; color: var(--mute); }
.row__title { font-family: var(--serif); font-size: clamp(1.0625rem, 1.9vw, 1.3125rem); line-height: 1.5; letter-spacing: -.02em; }
.row:hover .row__title { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.row__date { font-size: .875rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.row .arrow { align-self: center; }

/* 글 페이지 */
.page { padding-block: clamp(32px, 6vw, 80px) var(--band); }
.page__head { border-top: 2px solid var(--ink); padding-top: 18px; }
.page__head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.02em; line-height: 1.3; margin: 0; }
.post { max-width: 44rem; margin-inline: auto; }
.post__meta { display: flex; gap: 16px; align-items: baseline; font-size: .875rem; color: var(--mute); border-top: 2px solid var(--ink); padding-top: 18px; }
.post__title { margin: 14px 0 clamp(28px, 4vw, 44px); font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.38; letter-spacing: -.035em; text-wrap: balance; }
.post p { margin-top: 1.25em; font-size: 1.0625rem; line-height: 1.95; }
.post__fig { margin-block: 0 clamp(28px, 4vw, 44px); }
.post__fig img { width: 100%; max-height: 80vh; object-fit: contain; object-position: left; }
.post .post__by { color: var(--mute); font-size: .9375rem; }
.post__link { text-decoration: underline; text-underline-offset: 4px; }
.pager { max-width: 44rem; margin: clamp(48px, 7vw, 88px) auto 0; border-bottom: 1px solid var(--line); }
.pager__a { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); column-gap: var(--gap); padding-block: 16px; border-top: 1px solid var(--line); font-family: var(--serif); line-height: 1.5; }
.pager__a:hover span + span { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.pager__k { font-family: var(--sans); font-size: .8125rem; font-weight: 600; letter-spacing: .08em; color: var(--mute); }

/* 살롱에서 함께한 일, 소식 */
.news { background: var(--ink); color: var(--night-fg); padding-block: var(--band); }
.programs { row-gap: 0; }
.program { border-top: 1px solid var(--night-line); padding-block: 20px 28px; min-width: 0; }
.program h3 { font-size: 1.0625rem; font-weight: 600; }
.program p { font-size: .875rem; line-height: 1.75; color: var(--night-mute); margin-top: 6px; }
.links { margin-top: clamp(40px, 5vw, 64px); row-gap: 0; }
.go { grid-column: span 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 20px; border-top: 1px solid var(--night-fg); min-width: 0; }
.go__name { display: block; font-size: clamp(1.125rem, 1.9vw, 1.375rem); font-weight: 600; letter-spacing: -.01em; line-height: 1.4; }
.go__addr { display: block; font-size: .875rem; color: var(--night-mute); overflow-wrap: anywhere; }

/* 발 */
.foot__in { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: clamp(40px, 6vw, 72px) 44px; font-size: .8125rem; color: var(--mute); }
.foot__in img { width: 132px; }
.foot__in p + p { margin-top: 2px; }
.foot__in a { color: var(--ink); }
.foot__in a:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 900px) {
  .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .programs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about__say, .who__name { grid-column: 1 / -1; }
  .about__text, .who__text { grid-column: 1 / -1; max-width: 38em; }
}
@media (max-width: 640px) {
  .head__in { flex-direction: column; align-items: flex-start; gap: 10px; padding-block: 18px 12px; }
  .nav { font-size: .9375rem; gap: 0 20px; }
  .reel { grid-template-columns: 1fr; }
  .row { grid-template-columns: minmax(0, 1fr) 12px; row-gap: 2px; }
  .row__kind { grid-column: 1; }
  .row__title { grid-column: 1; }
  .row__date { grid-column: 1; }
  .row .arrow { grid-column: 2; grid-row: 1 / 4; }
  .pager__a { grid-template-columns: 1fr; }
  .hero__photo { height: auto; aspect-ratio: 5 / 4; object-position: 80% 30%; }
  .hero__text { position: static; background: var(--paper); padding-block: 0; }
  .hero__text .wrap { display: flex; flex-direction: column; }
  .notice { order: -1; margin-top: -56px; margin-bottom: 36px; max-width: none; position: relative; }
  .sheets { grid-template-columns: 1fr; gap: 20px; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .programs { grid-template-columns: 1fr; }
  .go { grid-column: 1 / -1; }
  .book__shops a { padding-block: 10px; }
  .book__shops { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .arrow, .clip__play img { transition: none; }
}
