/* 성도고 총동문회 랜딩 화면 디자인 — 한지(종이)·먹·붉은 낙관 세 가지 색, 면비담과 같은 결 */
:root {
  --paper: #eee5d2;
  --paper-2: #e4d8bf;
  --paper-3: #f6f0e3;
  --ink: #161311;
  --ink-soft: #5b524a;
  --seal: #b2221e;
  --line: rgba(22, 19, 17, .14);
  --serif: 'Noto Serif KR', serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --gut: clamp(18px, 4vw, 48px);
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.7; word-break: keep-all; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, video, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 머리글 */
.hd { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: 14px var(--gut); background: linear-gradient(var(--paper) 60%, transparent); }
.hd-logo { display: flex; align-items: baseline; gap: 10px; }
.hd-logo b { font-family: 'Noto Serif TC', var(--serif); font-size: 24px; font-weight: 900; }
.hd-logo span { font-family: var(--serif); font-weight: 700; font-size: 15px; color: var(--ink-soft); }
.hd-band { font-size: 15px; font-weight: 700; padding: 8px 16px; border-radius: 999px; background: var(--ink); color: var(--paper-3); }

/* 첫 화면 — 세로 영상 칸(9:16, 正 위·道 아래) 위에 낙관을 % 좌표로 찍는다. 데스크톱도 세로(2026-11-28 대표 지적) */
.hero { min-height: 100svh; display: grid; grid-template-rows: 1fr auto; padding-top: 64px; }
.stage { display: grid; place-items: center; min-height: 0; }
.frame { position: relative; aspect-ratio: 9 / 16; width: min(100vw, calc((100svh - 64px - var(--text-h, 250px)) * 9 / 16)); }
.frame > img, .frame > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%); } /* 영상 네모 테두리가 바탕 한지와 갈라져 보이지 않게 가장자리를 흐린다 */
.brush { opacity: 0; transition: opacity .4s; }
.brush.is-on { opacity: 1; }
.seal { position: absolute; left: var(--sx, 71%); top: var(--sy, 79%); width: var(--sw, 14%); height: auto; aspect-ratio: 1; opacity: 0; transform: scale(2.6) rotate(-14deg); transform-origin: 50% 50%; filter: drop-shadow(0 18px 18px rgba(0,0,0,.25)); }
.seal.is-on { animation: stamp .55s cubic-bezier(.2, 1.4, .35, 1) forwards; }
@keyframes stamp {
  0% { opacity: 0; transform: scale(2.6) rotate(-14deg); filter: drop-shadow(0 18px 18px rgba(0,0,0,.25)); }
  55% { opacity: 1; transform: scale(.92) rotate(-3deg); filter: drop-shadow(0 0 0 rgba(0,0,0,0)); }
  100% { opacity: .96; transform: scale(1) rotate(-3deg); filter: drop-shadow(0 0 0 rgba(0,0,0,0)); }
}
.frame.is-thud { animation: thud .35s ease-out; }
@keyframes thud { 0% { transform: translateY(0); } 30% { transform: translateY(3px) scale(.997); } 100% { transform: translateY(0); } }

.hero-text { text-align: center; padding: 8px var(--gut) clamp(26px, 5vh, 56px); }
.js .hero-text > * { opacity: 0; transform: translateY(16px); transition: opacity .7s, transform .7s; }
.hero-text.is-on > * { opacity: 1; transform: none; }
.hero-text.is-on > :nth-child(2) { transition-delay: .12s; }
.hero-text.is-on > :nth-child(3) { transition-delay: .24s; }
.hero-text.is-on > :nth-child(4) { transition-delay: .36s; }
.hero-text.is-on > :nth-child(5) { transition-delay: .5s; }
.hero-event { margin: 4px 0 0; font-weight: 800; color: var(--seal); }
.hero-event a { text-decoration: underline; text-underline-offset: 4px; }
.eyebrow { color: var(--seal); font-weight: 800; font-size: 15px; letter-spacing: .12em; }
.title { font-family: var(--serif); font-weight: 900; font-size: clamp(26px, 3.6vw, 46px); line-height: 1.25; letter-spacing: -.02em; margin-top: 6px; }
.cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 800; font-size: 16px; }
.btn-seal { background: var(--seal); color: #fff; box-shadow: 0 10px 26px rgba(178, 34, 30, .28); }
.btn-line { border: 1.5px solid var(--ink); }
.replay { margin-top: 14px; background: none; border: 0; color: var(--ink-soft); font-size: 15px; text-decoration: underline; cursor: pointer; }

/* 본문 */
.sec { padding: clamp(64px, 10vw, 120px) var(--gut); max-width: 1080px; margin: 0 auto; }
.kicker { color: var(--seal); font-weight: 800; font-size: 15px; letter-spacing: .1em; }
.sec h2 { font-family: var(--serif); font-weight: 900; font-size: clamp(30px, 5vw, 56px); line-height: 1.2; letter-spacing: -.02em; margin: 6px 0 16px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); max-width: 46em; }
.note { margin: 18px 0; color: var(--ink-soft); font-size: 16px; }
.event { border-top: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 26px; }
.facts div { background: var(--paper-3); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.facts dt { font-size: 15px; color: var(--seal); font-weight: 800; }
.facts dd { font-family: var(--serif); font-weight: 700; font-size: 19px; line-height: 1.4; margin-top: 4px; }
.motto { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.motto-han { font-family: 'Noto Serif TC', var(--serif); font-weight: 900; font-size: clamp(90px, 14vw, 180px); line-height: 1; writing-mode: vertical-rl; color: var(--ink); }
.symbols { list-style: none; margin-top: 18px; display: grid; gap: 8px; }
.symbols b { color: var(--seal); margin-right: 8px; }
.timeline { list-style: none; margin-top: 26px; border-left: 2px solid var(--ink); }
.timeline li { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 12px 0 12px 20px; position: relative; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: 22px; width: 12px; height: 12px; border-radius: 3px; background: var(--seal); }
.timeline time { font-family: var(--serif); font-weight: 900; font-size: 20px; }
.club-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.club-list li { padding: 10px 18px; border-radius: 999px; background: var(--paper-3); border: 1px solid var(--line); font-weight: 700; }
.ft { background: var(--ink); color: var(--paper-2); padding: 48px var(--gut) calc(48px + env(safe-area-inset-bottom)); text-align: center; font-size: 15px; }
.ft-name { font-family: var(--serif); font-weight: 900; font-size: 18px; color: var(--paper-3); margin-bottom: 6px; }
.ft-c { opacity: .6; margin-top: 12px; }

/* 첫 화면 아래 문구 */
.hero-sub { color: var(--ink-soft); margin-top: 8px; font-size: clamp(15px, 1.4vw, 18px); }

/* 데스크톱(가로 화면) — 세로 붓글씨는 왼쪽, 안내 문구는 오른쪽 */
@media (orientation: landscape) and (min-width: 760px) {
  .hero { grid-template-rows: none; grid-template-columns: auto minmax(0, 520px); justify-content: center; align-items: center; gap: clamp(24px, 6vw, 96px); padding: 72px var(--gut) 28px; }
  .frame { width: auto; height: calc(100svh - 110px); max-height: 1000px; }
  .hero-text { text-align: left; padding: 0; }
  .cta { justify-content: flex-start; }
  .title { font-size: clamp(32px, 3.4vw, 52px); }
}

/* 송년의 밤 띠 */
.strip { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; align-items: baseline; padding: 16px var(--gut); background: var(--ink); color: var(--paper-3); font-size: 16px; }
.strip b { font-family: var(--serif); font-weight: 900; color: #f0b9a6; }
.strip i { font-style: normal; font-weight: 800; text-decoration: underline; }

/* 기억하십니까 — 선생님 별명 */
.teachers { margin-top: 36px; padding: 28px clamp(20px, 4vw, 40px); background: var(--paper-3); border: 1px solid var(--line); border-radius: 20px; }
.teachers-q { font-family: var(--serif); font-weight: 900; font-size: clamp(20px, 2.4vw, 26px); }

/* 지금의 총동문회 — 숫자와 한 해 */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.stats div { border-top: 3px solid var(--seal); padding-top: 14px; }
.stats dt { font-family: var(--serif); font-weight: 900; font-size: clamp(34px, 5vw, 56px); line-height: 1.1; }
.stats dd { color: var(--ink-soft); font-size: 16px; margin-top: 6px; }
.sub { font-family: var(--serif); font-weight: 900; font-size: 22px; margin-top: 48px; }
.year { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.year li { background: var(--paper-3); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.year b { display: block; font-family: var(--serif); font-weight: 900; font-size: 24px; color: var(--seal); }
.year span { font-size: 16px; }

/* 하는 일 */
.cards { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.cards li { background: var(--paper-3); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.cards b { font-family: var(--serif); font-weight: 900; font-size: 20px; }
.cards p { color: var(--ink-soft); font-size: 16px; margin-top: 6px; }

/* 우리 밴드 찾기 */
.band-main { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 26px; padding: 22px 24px; border-radius: 18px; background: var(--ink); color: var(--paper-3); }
.band-main b { display: block; font-family: var(--serif); font-weight: 900; font-size: 20px; }
.band-main small { color: var(--paper-2); font-size: 15px; }
.band-main i { font-style: normal; font-weight: 800; white-space: nowrap; color: #f0b9a6; }
.band-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
.band-list li { display: flex; flex-direction: column; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-3); }
.band-list b { font-weight: 800; }
.band-list span { color: var(--ink-soft); font-size: 15px; }

/* 들어오는 길 */
.steps { list-style: none; counter-reset: s; display: grid; gap: 12px; margin: 26px 0 28px; }
.steps li { counter-increment: s; position: relative; padding: 18px 20px 18px 74px; background: var(--paper-3); border: 1px solid var(--line); border-radius: 16px; }
.steps li::before { content: counter(s); position: absolute; left: 20px; top: 16px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; background: var(--seal); color: #fff; font-family: var(--serif); font-weight: 900; font-size: 20px; transform: rotate(-3deg); }
.steps b { font-family: var(--serif); font-weight: 900; font-size: 19px; }
.steps p { color: var(--ink-soft); font-size: 16px; }

/* 동문 게시판 예고 */
.board { border-top: 1px solid var(--line); }
.board-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.board-list li { padding: 18px 20px; border: 1.5px dashed var(--ink-soft); border-radius: 16px; }
.board-list b { display: block; font-family: var(--serif); font-weight: 900; font-size: 19px; }
.board-list span { color: var(--ink-soft); font-size: 15px; }
.ft a { text-decoration: underline; }

/* 밴드 사진첩에서 고른 실제 사진(2026-11-28 대표 지적 "너무 AI 같다") — 마스코트·큰 사진·카드 사진·추억 사진관 */
.hd-logo { align-items: center; }
.hd-mascot { width: 36px; height: 36px; object-fit: contain; }
.wide-photo { margin: 0; position: relative; }
.wide-photo img { width: 100%; height: auto; max-height: 82vh; object-fit: cover; }
.wide-photo figcaption { max-width: 1080px; margin: 0 auto; padding: 14px var(--gut) 0; color: var(--ink-soft); font-size: 16px; }
.wide-photo figcaption b { display: block; color: var(--ink); font-family: var(--serif); font-weight: 900; font-size: 18px; }
.cards li.has-img { padding: 0 0 22px; overflow: hidden; }
.cards li.has-img img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 16px; }
.cards li.has-img b, .cards li.has-img p { margin-left: 22px; margin-right: 22px; display: block; }
.event-mascot { float: right; width: clamp(120px, 22vw, 220px); height: auto; margin: 0 0 12px 16px; }
.event .facts { clear: both; }
.gallery { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 26px 0 22px; }
.gallery li { background: var(--paper-3); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery span { display: block; padding: 10px 12px 12px; font-size: 15px; color: var(--ink-soft); line-height: 1.45; }
.gallery span b { display: block; color: var(--seal); font-size: 15px; letter-spacing: .04em; }

@media (max-width: 720px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  body { font-size: 17px; }
  .facts { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .year, .band-list { grid-template-columns: repeat(2, 1fr); }
  .cards, .board-list { grid-template-columns: 1fr; }
  .band-main { flex-direction: column; align-items: flex-start; }
  .motto { grid-template-columns: 1fr; }
  .motto-han { writing-mode: horizontal-tb; font-size: 88px; }
  .hd-logo span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-text > *, .brush { transition: none; }
  .seal.is-on { animation: none; opacity: .96; transform: rotate(-3deg) scale(1); }
}
