/* ============================================================
   시인 김옥례 — 원페이지
   문학적이고 차분한 톤: 종이빛 배경 · 명조체 · 낙관(인장) 붉은빛 포인트
   ============================================================ */

*,
*::before,
*::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --paper:      #f8f5ef;   /* 종이빛 바탕 */
  --paper-alt:  #f1ebdf;   /* 교차 섹션 바탕 */
  --ink:        #2b2622;   /* 먹빛 본문 */
  --ink-soft:   #776c5e;   /* 보조 텍스트 */
  --line:       #e4dccc;   /* 가는 선 */
  --seal:       #9e3b2e;   /* 낙관 붉은빛 포인트 */
  --serif:      'Noto Serif KR', serif;
  --sans:       'Noto Sans KR', system-ui, -apple-system, sans-serif;
  --maxw:       1080px;
  --nav-h:      66px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--serif);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.85;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== Navigation ===== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(248, 245, 239, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner {
  max-width: var(--maxw); height: 100%; margin: 0 auto;
  padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__brand {
  font-size: 1.32rem; font-weight: 600; letter-spacing: .06em;
  display: flex; align-items: baseline; gap: .4em;
}
.nav__brand-sub { color: var(--seal); font-size: .8rem; font-weight: 500; }

.nav__menu { display: flex; gap: 34px; }
.nav__menu a {
  font-family: var(--sans); font-size: .92rem; color: var(--ink-soft);
  position: relative; padding: 6px 0; transition: color .25s;
}
.nav__menu a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--seal); transform: scaleX(0); transform-origin: center;
  transition: transform .28s;
}
.nav__menu a:hover,
.nav__menu a.is-active { color: var(--ink); }
.nav__menu a.is-active::after { transform: scaleX(1); }

.nav__toggle { display: none; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 120px 24px 80px;
  background: radial-gradient(120% 80% at 50% 0%, #fcfaf5 0%, var(--paper) 62%);
}
.hero__inner { position: relative; z-index: 2; }

/* 배경에 떠다니는 시 제목들 */
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero__phrase {
  position: absolute; transform: translate(-50%, -50%) scale(.7);
  font-family: var(--serif); color: rgba(43, 38, 34, var(--max-op, .2)); white-space: nowrap;
  opacity: 0; pointer-events: none; will-change: opacity, transform;
  animation-name: heroPhrase; animation-timing-function: ease-in-out; animation-fill-mode: forwards;
}
@keyframes heroPhrase {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.6);  filter: blur(3px); }
  22%  { opacity: 1; filter: blur(0); }
  66%  { opacity: 1; filter: blur(0); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.34); filter: blur(2px); }
}
@media (prefers-reduced-motion: reduce) { .hero__phrase { display: none; } }
.hero__eyebrow {
  font-family: var(--sans); font-size: .78rem; font-weight: 400;
  letter-spacing: 1em; text-indent: 1em; color: var(--seal); margin-bottom: 30px;
}
.hero__name {
  font-size: clamp(3.4rem, 12vw, 6.6rem); font-weight: 600;
  letter-spacing: .16em; text-indent: .16em; line-height: 1.1;
}
.hero__rule { width: 54px; height: 2px; background: var(--seal); opacity: .85; margin: 34px auto; }
.hero__verse {
  font-size: clamp(1rem, 2.4vw, 1.22rem); color: var(--ink-soft);
  font-style: italic; line-height: 2.1; max-width: 32ch; margin: 0 auto;
}
.hero__scroll {
  display: inline-block; margin-top: 52px;
  font-family: var(--sans); font-size: .8rem; letter-spacing: .25em; color: var(--ink-soft);
  transition: color .25s;
}
.hero__scroll:hover { color: var(--seal); }

/* ===== Sections ===== */
.section { padding: 110px 0; scroll-margin-top: var(--nav-h); }
.section--alt { background: var(--paper-alt); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.container--narrow { max-width: 680px; }

.section__head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 48px; }
.section__index { font-family: var(--sans); font-size: .8rem; letter-spacing: .2em; color: var(--seal); }
.section__title { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 600; letter-spacing: .1em; }
.section__note { font-family: var(--sans); font-size: .95rem; color: var(--ink-soft); margin: -28px 0 40px; }

.ph { color: var(--ink-soft); }

/* 이미지 자리 (placeholder frame) */
.frame {
  position: relative;
  background: repeating-linear-gradient(45deg, #efe8da, #efe8da 10px, #ece4d4 10px, #ece4d4 20px);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.frame span { font-family: var(--sans); font-size: .82rem; letter-spacing: .15em; color: #a89c88; }
.frame--portrait { aspect-ratio: 3 / 4; }
.frame--cover    { aspect-ratio: 3 / 4.3; box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .4); }
.frame--photo    { aspect-ratio: 4 / 3; }

/* 실제 인물 사진 */
.portrait-photo {
  width: 100%; display: block;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .35);
}

/* ===== 소개 ===== */
.about { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.about__body .lead { font-size: 1.12rem; line-height: 2.05; margin-bottom: 34px; }
/* 수상경력 목록 */
.award-list { list-style: none; max-width: 760px; }
.award-item {
  display: flex; gap: 28px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.award-item__year { font-family: var(--sans); font-size: .9rem; color: var(--seal); min-width: 70px; flex-shrink: 0; }
.award-item__body { display: flex; flex-direction: column; gap: 4px; }
.award-item__name { font-size: 1.1rem; }
.award-item__org { font-family: var(--sans); font-size: .9rem; color: var(--ink-soft); }
.bio-list { list-style: none; }
.bio-list li { display: flex; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.bio-list__year { font-family: var(--sans); font-size: .86rem; color: var(--seal); min-width: 64px; }

/* ===== 출간도서 ===== */
.book { display: grid; grid-template-columns: 260px 1fr; gap: 52px; align-items: start; }
.book__title { font-size: 1.7rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 12px; }
.book__pub { font-family: var(--sans); font-size: .92rem; color: var(--ink-soft); margin-bottom: 26px; }
.book__desc { line-height: 2.05; margin-bottom: 30px; }
.verse { border-left: 2px solid var(--seal); padding: 6px 0 6px 24px; font-style: italic; color: var(--ink-soft); line-height: 2.1; }

/* 도서 구입 버튼 */
.book__buy { margin-top: 32px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.book__buy-label { font-family: var(--sans); font-size: .78rem; letter-spacing: .2em; color: var(--seal); }
.book__buy-links { display: flex; gap: 12px; flex-wrap: wrap; }
.buy-btn {
  width: 116px; padding: 18px 0 15px; background: #fff; border: 1px solid var(--line); border-radius: 6px;
  display: flex; flex-direction: column; align-items: center; gap: 11px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.buy-btn:hover { border-color: var(--seal); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .28); transform: translateY(-2px); }
.buy-ico { height: 38px; width: auto; object-fit: contain; display: block; }
.buy-name { font-family: var(--sans); font-size: .88rem; letter-spacing: .02em; color: var(--ink); }

/* 목차 (접이식) */
.toc { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 20px; }
.toc__clip { position: relative; max-height: 860px; overflow: hidden; transition: max-height .45s ease; }
.toc__clip:not(.is-expanded)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 110px;
  background: linear-gradient(to bottom, rgba(241, 235, 223, 0), var(--paper-alt));
  pointer-events: none;
}
.toc__more {
  display: block; margin: 16px auto 0; cursor: pointer;
  font-family: var(--sans); font-size: .88rem; letter-spacing: .05em; color: var(--seal);
  background: none; border: 1px solid var(--line); padding: 10px 30px; border-radius: 2px;
  transition: border-color .2s, background .2s;
}
.toc__more:hover { border-color: var(--seal); background: rgba(255, 255, 255, .45); }
.toc__body { padding: 0 2px; }
.toc__meta { font-family: var(--sans); font-size: .85rem; color: var(--ink-soft); margin-bottom: 26px; }
.toc__part { margin-bottom: 26px; }
.toc__part h4 {
  font-size: 1.02rem; font-weight: 600; color: var(--ink);
  margin-bottom: 12px; padding-bottom: 9px; border-bottom: 1px solid var(--line);
}
.toc__part ul { list-style: none; columns: 2; column-gap: 36px; }
.toc__part li { font-size: .95rem; color: var(--ink-soft); padding: 5px 0; break-inside: avoid; }
@media (max-width: 640px) { .toc__part ul { columns: 1; } .toc__clip { max-height: 1180px; } }

/* ===== 사진자료 ===== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* ===== 게시판 ===== */
.board__row { margin-bottom: 16px; }
.board input,
.board textarea {
  width: 100%; font-family: var(--serif); font-size: 1rem; color: var(--ink);
  background: rgba(255, 255, 255, .75); border: 1px solid var(--line);
  padding: 14px 16px; border-radius: 2px; resize: vertical;
}
.board input:disabled,
.board textarea:disabled { background: #f3eee2; cursor: not-allowed; }
.btn {
  font-family: var(--sans); font-size: .92rem; letter-spacing: .08em;
  color: #fff; background: var(--seal); border: none;
  padding: 12px 30px; border-radius: 2px; cursor: pointer; transition: background .25s;
}
.btn:hover { background: #862f25; }
.btn:disabled { background: #c4ada6; cursor: not-allowed; }
.board__hint { font-family: var(--sans); font-size: .84rem; color: var(--ink-soft); margin-top: 14px; }

/* 게시판 글 목록 (아코디언) */
.board-list { list-style: none; border-top: 1px solid var(--line); margin-bottom: 20px; }
.board-item { border-bottom: 1px solid var(--line); }
.board-item__head {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 16px 4px; background: none; border: none; cursor: pointer;
  text-align: left; font-family: var(--serif);
}
.board-item__tag {
  font-family: var(--sans); font-size: .72rem; letter-spacing: .06em; color: #fff;
  background: var(--ink-soft); padding: 3px 9px; border-radius: 2px; flex-shrink: 0;
}
.tag--notice { background: var(--seal); }
.board-item__title { flex: 1; font-size: 1.05rem; color: var(--ink); transition: color .2s; }
.board-item__head:hover .board-item__title { color: var(--seal); }
.board-item__meta { font-family: var(--sans); font-size: .82rem; color: var(--ink-soft); flex-shrink: 0; }
.board-item__body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.board-item.is-open .board-item__body { max-height: 320px; }
.board-item__body p { padding: 2px 4px 22px; line-height: 2.0; color: var(--ink-soft); }
@media (max-width: 560px) {
  .board-item__head { flex-wrap: wrap; gap: 6px 12px; }
  .board-item__meta { width: 100%; order: 3; }
}

/* 출간도서 표지 사진(목업) */
.book-photo { width: 100%; display: block; }

/* 게시판 글쓰기 */
.board-write { margin-bottom: 28px; }
.board-write__toggle {
  font-family: var(--sans); font-size: .9rem; letter-spacing: .04em; color: var(--seal);
  background: none; border: 1px solid var(--seal); padding: 9px 20px; border-radius: 2px;
  cursor: pointer; transition: background .2s, color .2s;
}
.board-write__toggle:hover, .board-write__toggle.is-active { background: var(--seal); color: #fff; }
.board-form { margin-top: 18px; }
.board-form .board__row { margin-bottom: 12px; }
.board-form input, .board-form textarea {
  width: 100%; font-family: var(--serif); font-size: 1rem; color: var(--ink);
  background: rgba(255, 255, 255, .7); border: 1px solid var(--line);
  padding: 13px 15px; border-radius: 2px; resize: vertical;
}
.board-form input:focus, .board-form textarea:focus { outline: none; border-color: var(--seal); }
.bf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.board-form__actions { display: flex; align-items: center; gap: 16px; margin-top: 2px; }
.board-form__cancel { font-family: var(--sans); font-size: .88rem; color: var(--ink-soft); background: none; border: none; cursor: pointer; }
.board-form__msg { font-family: var(--sans); font-size: .88rem; color: var(--seal); }

/* ===== Footer ===== */
.footer { background: var(--ink); color: #e9e2d6; padding: 54px 0; text-align: center; }
.footer__name { font-size: 1.2rem; letter-spacing: .1em; margin-bottom: 10px; }
.footer__meta { font-family: var(--sans); font-size: .88rem; color: #b3a896; margin-bottom: 18px; }
.footer__copy { font-family: var(--sans); font-size: .78rem; color: #8a8070; letter-spacing: .05em; }

/* ===== 반응형 ===== */
@media (max-width: 760px) {
  .nav__menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 28px 18px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .3s;
  }
  .nav__menu.is-open { transform: translateY(0); }
  .nav__menu a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav__toggle {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
  }
  .nav__toggle span { width: 24px; height: 2px; background: var(--ink); }

  .about, .book { grid-template-columns: 1fr; gap: 34px; justify-items: center; }
  .about__portrait, .book__cover { max-width: 280px; width: 100%; }
  .about__body, .book__meta { width: 100%; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 80px 0; }
}
