/* 글 페이지 공통 (원작자의 인사말 · 기획의 글 · 연출의 글 · 원작 소설에 대하여)
   Layout: 메인 페이지와 같은 검은 무대 위, 읽기 좋은 한 단. 머리말은 가운데, 본문은 왼쪽 정렬.
   글자 크기 단계와 색은 메인(index.html)의 규칙을 그대로 따른다: 13 · 15 · 16 · --t-l */
:root{
  --black:#0a0a0a;
  --green-bright:#62c47c;
  --vermilion:#d1492c;
  --white:#ffffff;
  --ivory:#ece3d2;
  --ivory-dim:rgba(236,227,210,.62);
  --line:rgba(255,255,255,.2);

  --say:"Gowun Dodum","Apple SD Gothic Neo","Malgun Gothic",sans-serif;
  --gothic:"Noto Sans KR","Apple SD Gothic Neo","Malgun Gothic",sans-serif;
  --tell:"Gowun Dodum","Apple SD Gothic Neo","Malgun Gothic",sans-serif;
  --latin:"EB Garamond",Georgia,serif;
  --serif:"Hahmlet","Nanum Myeongjo",serif;

  --t-l:clamp(1.35rem,2.8vw,2.05rem);
  --gutter-l:max(16px,env(safe-area-inset-left,0px));
  --gutter-r:max(16px,env(safe-area-inset-right,0px));
  color-scheme:dark;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--black);color:var(--ivory);font-family:var(--tell);font-size:16px;line-height:1.8;-webkit-font-smoothing:antialiased;word-break:keep-all;overflow-wrap:break-word}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:10;background:var(--black)}
img{max-width:100%;display:block}
a{color:inherit}
:focus-visible{outline:2px solid var(--vermilion);outline-offset:3px}

.page{max-width:40rem;margin-inline:auto;padding-left:var(--gutter-l);padding-right:var(--gutter-r)}

/* 위: 공연 페이지로 돌아가기 */
.top{padding-block:clamp(1.2rem,4vw,2rem)}
.back{display:inline-flex;align-items:center;gap:.5rem;font-size:15px;color:var(--ivory-dim);text-decoration:none;padding-block:.4rem}
.back:hover{color:var(--white)}
.back svg{width:16px;height:16px;flex:none}

/* 머리말 */
.head{display:grid;gap:.8rem;justify-items:center;text-align:center;padding-block:clamp(2.5rem,8vw,4.5rem) clamp(2.5rem,6vw,4rem)}
.label{font-family:var(--tell);font-size:13px;letter-spacing:.2em;text-transform:uppercase;color:rgba(255,255,255,.7)}
h1{margin:0;font-family:var(--gothic);font-weight:700;font-size:clamp(1.6rem,4.6vw,2.5rem);line-height:1.25;color:var(--white);text-wrap:balance}
.by{margin:0;font-size:15px;color:var(--ivory-dim)}
.by b{font-weight:400;color:var(--ivory)}

/* 사진 (원작자의 인사말) */
.photo{margin:0 0 clamp(2.5rem,6vw,3.5rem)}
.photo img{width:100%;height:auto;border-radius:2px}

/* 본문 */
.body{padding-bottom:clamp(3rem,8vw,5rem)}
.body p{margin:0 0 1em}
.body .blk{margin-bottom:2em}
.body .blk p:last-child{margin-bottom:0}
.body .verse p{margin-bottom:1.8em}
.body .sign{margin-top:2.4em;text-align:right;color:var(--ivory-dim);font-size:15px}

/* 원작 소설에 대하여: 글 제목 · 인용 · 주석 */
.essay{margin:0 0 clamp(2rem,5vw,3rem);text-align:center;display:grid;gap:.7rem;justify-items:center}
.essay h2{margin:0;font-family:var(--serif);font-weight:600;font-size:var(--t-l);line-height:1.4;color:var(--white);text-wrap:balance}
.epigraph{margin:0 auto clamp(2rem,5vw,3rem);max-width:30em;font-family:var(--serif);font-size:16px;line-height:1.8;color:var(--ivory);text-align:center}
.footnote{margin-top:2.4em;padding-top:1em;border-top:1px solid var(--line);font-size:15px;color:var(--ivory-dim)}

/* 아래: 다른 글 */
.more{padding-block:clamp(1rem,3vw,1.5rem) clamp(2rem,6vw,3rem)}
.more .label{display:block;margin-bottom:1rem}
.more ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:.4rem 1.6rem}
.more a,.more .now{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;padding-block:.7rem;border-bottom:1px solid var(--line);text-decoration:none;font-size:16px}
.more a:hover{color:var(--green-bright)}
.more a span,.more .now span{font-size:13px;color:var(--ivory-dim)}
.more .now{color:var(--ivory-dim)}
.end{display:flex;flex-wrap:wrap;justify-content:space-between;gap:1rem;padding-block:0 max(clamp(2.5rem,8vw,4rem),env(safe-area-inset-bottom,0px))}
.end a{font-size:15px;color:var(--ivory-dim);text-decoration:none}
.end a:hover{color:var(--white)}
.end .info{color:var(--green-bright)}
