/* ═══════════════════════════════════════════
   일인칭 | FIRST PERSON
   조용한 노트 — 손글씨와 여백의 페이지

   서체 — 손글씨는 감성, 활자는 정보를 맡는다.
   · 나눔손글씨 강인한 위로 (브랜드 시그니처 — 히어로의 "일인칭" / 태그라인 / FIRST PERSON)
   · 나눔손글씨 강부장님체 (제목·소개문·약속·질문·CTA — 어른스럽고 반듯한 손글씨)
   · Pretendard (FAQ·참가 안내 등 본문 — 담백한 활자, 400/600 두 굵기)
   손글씨는 단일 굵기라 위계를 크기·잉크색으로 만들고, 본문에서만 굵기를 쓴다.
   ═══════════════════════════════════════════ */

/* 세 서체 모두 이 페이지에 실제로 쓰인 글자만 추린 로컬 서브셋이다.
   카피에 새 한글을 추가하면 서브셋에 없는 글자가 대체 폰트로 보이므로,
   문구를 크게 바꿀 때는 fonts/*.woff2를 다시 만들어야 한다.

   font-display: block — 폰트를 내려받는 동안 글자를 잠깐 숨겼다가 바로 손글씨로 그린다.
   swap이면 시스템 폰트로 먼저 보였다가 손글씨로 바뀌며 깜빡였다. index.html의
   preload와 짝을 이루어, 실제로는 체감되지 않는 짧은 순간에 끝난다. */

@font-face {
  /* 나눔손글씨 강부장님체 (60KB, 원본 5.9MB) */
  font-family: "GangBuJangNim";
  src: url("fonts/GangBuJangNim-subset.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

@font-face {
  /* 나눔손글씨 강인한 위로 — 히어로 시그니처 전용 (51KB, 원본 4.7MB).
     글자 간 획이 서로 닿는 경향이 있어 큰 크기에선 letter-spacing으로 보정했다(.hero-brand 참고). */
  font-family: "GangInHanWiRo";
  src: url("fonts/GangInHanWiRo-subset.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

@font-face {
  /* Pretendard — 본문. 정보성 텍스트는 활자로 담백하게 읽히게 한다. */
  font-family: "Pretendard";
  src: url("fonts/Pretendard-Regular-subset.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Pretendard";
  src: url("fonts/Pretendard-SemiBold-subset.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: block;
}

:root {
  --bg: #F7F4ED; /* 종이 느낌의 웜 화이트 */
  --ink: #1F1F1D;
  --ink-soft: #6E6B63;
  --accent: #F4551F; /* 밝은 오렌지 — 남색으로 되돌리려면 #2C4A6E / #1E3550 */
  --accent-deep: #D9440F;
  --hairline: #E4DFD4;
  --hand-display: "GangBuJangNim", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --hand-signature: "GangInHanWiRo", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --body-font: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  background: var(--bg);
  color: var(--ink);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.8;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding-inline: 1.5rem;
}

a {
  color: var(--accent);
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── GNB ── */

.gnb {
  position: sticky;
  top: 0.9rem;
  z-index: 100;
  padding-inline: 1rem;
}

.gnb-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0.6rem 0.6rem 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #FFFEFB; /* backdrop-filter 미지원 브라우저 폴백 */
  border: 1px solid var(--hairline);
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(31, 31, 29, 0.07);
}

/* 리퀴드 글래스 — 반투명 + 블러 + 채도 부스트 + 유리 모서리 하이라이트 */
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .gnb-inner {
    background: rgba(255, 253, 248, 0.5);
    -webkit-backdrop-filter: blur(18px) saturate(1.7);
    backdrop-filter: blur(18px) saturate(1.7);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
      0 4px 20px rgba(31, 31, 29, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.65);
  }
}

.gnb-logo {
  font-family: var(--hand-display);
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}

.gnb-menu {
  display: none;
  list-style: none;
  gap: 1.4rem;
}

.gnb-menu a {
  font-size: 0.9375rem;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.gnb-menu a:hover {
  color: var(--accent);
}

.gnb-cta {
  font-family: var(--hand-display);
  font-size: 1rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 0.45em 1.3em;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}

.gnb-cta:hover {
  background: var(--accent-deep);
}

@media (min-width: 768px) {
  .gnb-menu {
    display: flex;
  }
}

/* ── 공통 섹션 리듬 ── */

section {
  padding-block: 5.5rem;
  scroll-margin-top: 5.5rem; /* 앵커 이동 시 떠 있는 GNB에 가리지 않게 */
}

.overline {
  font-size: 0.9375rem;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

h2 {
  font-family: var(--hand-display);
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 2.25rem;
}

.dot {
  margin-inline: 0.5em;
  color: var(--ink-soft);
}

/* ── CTA ── */

.cta {
  display: inline-block;
  font-family: var(--hand-display);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 400;
  font-size: 1.3125rem;
  letter-spacing: 0.02em;
  padding: 0.85em 2.2em;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.cta:hover {
  background: var(--accent-deep);
}

/* ── 1. Hero ── */

.hero {
  padding-block: 7rem 6rem;
  text-align: center;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-weight: 400;
}

.hero-descriptor {
  font-size: 0.9375rem;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}

.hero-brand {
  font-family: var(--hand-signature);
  font-size: 2.75rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.35em; /* 이 폰트는 획이 붙는 경향이 있어 큰 크기에서 자간으로 보정 */
}

.hero-en {
  font-family: var(--hand-signature);
  font-size: 1rem;
  letter-spacing: 0.3em;
  color: var(--ink-soft);
  text-indent: 0.3em; /* letter-spacing 우측 보정 */
}

.hero-tagline {
  font-family: var(--hand-signature);
  margin-top: 2.5rem;
  font-size: 1.625rem;
  font-weight: 400;
}

/* 시그니처 — 깜빡이다 멈추는 커서 */
.caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 0.18em;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: caret-blink 1.1s step-end 4;
}

@keyframes caret-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-info {
  margin-top: 1.75rem;
  font-size: 1.0625rem;
  line-height: 2;
  color: var(--ink-soft);
}

/* 모바일: 두 줄로 정돈, 데스크톱: 한 줄 */
.dot-a {
  display: none;
}

@media (min-width: 768px) {
  .dot-a {
    display: inline;
  }

  .br-m {
    display: none;
  }
}

.hero-sub {
  margin-top: 0.4rem;
  font-size: 1.0625rem;
  color: var(--ink-soft);
}

.hero .cta {
  margin-top: 3rem;
}

/* ── 2. 소개문 ── */

.intro {
  border-top: 1px solid var(--hairline);
  padding-block: 7rem;
}

.intro p {
  font-family: var(--hand-display);
  font-size: 1.4375rem;
  line-height: 2.05;
  margin-bottom: 3.5rem;
}

.intro p:last-child {
  margin-bottom: 0;
}

.intro-close {
  color: var(--accent);
}

/* 스크롤 리빌 — JS가 있을 때만 숨김 상태로 시작 */
.js .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ── 3. 타임테이블 ── */

.timeline {
  list-style: none;
  border-left: 1px solid var(--hairline);
  margin-left: 0.25rem;
  padding-left: 1.75rem;
}

.timeline li {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding-block: 0.85rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: calc(-1.75rem - 3.5px);
  top: 1.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hairline);
}

.timeline li:first-child::before,
.timeline li:last-child::before {
  background: var(--accent);
}

.tl-time {
  font-size: 1.0625rem;
  color: var(--accent);
  flex-shrink: 0;
}

/* ── 4. 다섯 가지 약속 ── */

.rules {
  list-style: none;
}

.rules li {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  font-family: var(--hand-display);
  font-size: 1.5rem;
  padding-block: 0.95rem;
}

.rules li + li {
  border-top: 1px solid var(--hairline);
}

.rule-num {
  font-family: var(--body-font);
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  flex-shrink: 0;
  min-width: 2.9em;
}

.rules-note {
  margin-top: 2.5rem;
  font-size: 1.0625rem;
  line-height: 2;
  color: var(--ink-soft);
}

/* ── 5. 프롬프트 미리보기 ── */

.prompts {
  list-style: none;
}

.prompts li {
  position: relative;
  font-family: var(--hand-display);
  font-size: 1.375rem;
  line-height: 1.7;
  padding: 1.1rem 0 1.1rem 1.4rem;
}

.prompts li::before {
  content: "";
  position: absolute;
  left: 0;
  /* 첫 줄의 세로 중앙에 맞춤 — 패딩 + 줄높이 절반(0.85em = line-height 1.7의 반) */
  top: calc(1.1rem + 0.85em - 1px);
  width: 0.45rem;
  height: 2px;
  background: var(--accent);
}

.prompts-note {
  margin-top: 1.5rem;
  font-size: 1.0625rem;
  color: var(--ink-soft);
}

/* ── 6. 이런 모임은 아닙니다 ── */

.nots {
  list-style: none;
}

.nots li {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  padding-block: 0.55rem;
}

.nots li::before {
  content: "·";
  margin-right: 0.75em;
  color: var(--ink);
}

/* ── 7. 참가 안내 ── */

.info {
  border-top: 1px solid var(--hairline);
}

.info-row {
  display: flex;
  gap: 1.5rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--hairline);
}

.info-row dt {
  flex-shrink: 0;
  width: 3.5em;
  font-size: 1rem;
  color: var(--ink-soft);
  padding-top: 0.15em;
}

.info-row dd {
  line-height: 1.9;
}

.info-small {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.cta-mid {
  margin-top: 2.75rem;
}

/* ── 8. FAQ ── */

.faq details {
  border-bottom: 1px solid var(--hairline);
}

.faq details:first-child {
  border-top: 1px solid var(--hairline);
}

.faq summary {
  cursor: pointer;
  font-size: 1.0625rem;
  font-weight: 600; /* 질문과 답변을 굵기로 구분 — 활자라 가능해진 위계 */
  padding-block: 1.2rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--ink-soft);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding-bottom: 1.4rem;
  font-size: 1.0625rem;
  color: var(--ink-soft);
  line-height: 1.9;
}

/* ── 9. 신청 ── */

.apply {
  border-top: 1px solid var(--hairline);
  text-align: center;
  padding-block: 7rem;
}

.apply h2 {
  font-size: 1.875rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.apply-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2.5rem;
}

.apply-links a {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  text-decoration-color: var(--hairline);
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.apply-links a:hover {
  color: var(--accent);
}

.apply-place {
  margin-top: 3rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* ── Footer ── */

.footer {
  border-top: 1px solid var(--hairline);
  padding-block: 3rem;
  text-align: center;
}

.footer-brand {
  font-family: var(--hand-display);
  font-size: 1.125rem;
  letter-spacing: 0.04em;
}

.footer-slogan {
  font-family: var(--hand-display);
  margin-top: 0.3rem;
  font-size: 0.9375rem;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

/* ── 데스크톱 확장 ── */

@media (min-width: 768px) {
  body {
    font-size: 1.125rem;
  }

  .hero {
    padding-block: 9rem 8rem;
  }

  .hero-brand {
    font-size: 4.75rem;
  }

  .hero-tagline {
    font-size: 1.75rem;
  }

  .intro p {
    font-size: 1.5rem;
  }

  section {
    padding-block: 7rem;
  }
}

/* ── 모션 최소화 ── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .caret {
    animation: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .faq summary::after {
    transition: none;
  }
}
