:root{
  --bg:#2a3441; --bg2:#333f4e; --hero:#1f2733;
  --line:#3f4c5d; --line2:#465366; --ctl:#8391a5;
  --text:#eef1f5; --text2:#e2e7ee; --mute:#b4bdca; --mute2:#9aa5b4;
}
*{box-sizing:border-box}
[hidden]{display:none !important}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:'Noto Sans KR',system-ui,sans-serif;line-height:1.6}
a{color:inherit;text-decoration:none}
a:hover{color:#fff}
img{display:block;max-width:100%}
button,input,textarea{font-family:inherit}
:focus-visible{outline:2px solid #fff;outline-offset:2px}
.serif{font-family:'Noto Serif KR',serif}
.wrap{max-width:1440px;margin:0 auto;padding:0 48px}
.section{padding:56px 0 96px}
.center{display:flex;justify-content:center;margin-top:56px}
.msg{margin:32px 0;font-size:16px;color:var(--mute)}
.vh{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}

/* 헤더 */
.logo{font-family:'Gungsuh','궁서','GungsuhChe','Song Myung',serif;font-size:30px;font-weight:400;color:#fff;letter-spacing:.04em}
.site-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;padding:24px 48px;border-bottom:1px solid var(--line)}
.site-header.overlay{position:absolute;top:0;left:0;right:0;z-index:5;padding-bottom:48px;border-bottom:0;background:linear-gradient(rgba(0,0,0,.6),rgba(0,0,0,0))}
.nav{display:flex;flex-wrap:wrap;align-items:center;gap:4px}
.nav a{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;font-size:15px;color:#fff}
.nav a.active{font-weight:700;border-bottom:2px solid #fff}
.who{margin-left:8px;font-size:14px;color:var(--text2)}
.site-footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px 24px;padding:36px 48px 48px;border-top:1px solid var(--line);font-size:14px;color:var(--mute2)}
.cfg-banner{padding:12px 48px;background:#5a2d2d;color:#fff;font-size:14px}

/* 버튼 */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 28px;border:0;border-radius:6px;background:var(--text);color:var(--bg);font-size:16px;font-weight:700;cursor:pointer}
.btn:hover{background:#fff;color:var(--bg)}
.btn:disabled{opacity:.5;cursor:default}
.btn-pill{border-radius:24px;padding:0 26px}
.btn-line{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 22px;border:1px solid var(--ctl);border-radius:22px;background:transparent;color:var(--text);font-size:15px;cursor:pointer}
.btn-line.big{min-height:52px;padding:0 36px;border-radius:26px;font-size:16px}
.site-header .btn-line{margin-left:8px;border-color:rgba(255,255,255,.7);color:#fff}
.btn-text{min-height:44px;padding:0 14px;border:0;background:none;color:var(--mute);font-size:14px;text-decoration:underline;cursor:pointer}
.btn-sm{min-height:44px;padding:0 16px;border:1px solid var(--ctl);border-radius:6px;background:transparent;color:var(--text2);font-size:14px;cursor:pointer}
.btn-danger{min-height:44px;padding:0 18px;border:0;border-radius:6px;background:#e8b4a8;color:#2a0d07;font-size:14px;font-weight:700;cursor:pointer}

/* 대문 */
.hero{position:relative;height:760px;overflow:hidden;background:var(--hero)}
.slide{position:absolute;inset:0;opacity:0;transition:opacity .9s ease}
.slide.on{opacity:1}
.slide img{width:100%;height:100%;object-fit:cover}
.hero-bottom{position:absolute;left:0;right:0;bottom:0;z-index:3;padding:160px 48px 44px;display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:24px;background:linear-gradient(rgba(0,0,0,0),rgba(0,0,0,.65))}
.hero-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;color:var(--mute)}
.counter{font-size:14px;letter-spacing:.14em}
.hero h1{margin:10px 0 0;font-family:'Noto Serif KR',serif;font-size:56px;font-weight:700;line-height:1.15;color:#fff}
.link-under{display:inline-flex;align-items:center;min-height:44px;margin-top:8px;color:#fff;border-bottom:1px solid rgba(255,255,255,.7)}
.hero-ctl{display:flex;align-items:center;gap:20px}
.dots{display:flex;align-items:center}
.dot{width:44px;height:44px;padding:0;border:0;background:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.dot span{display:block;height:4px;width:16px;border-radius:2px;background:rgba(255,255,255,.5);transition:width .3s}
.dot.on span{width:36px;background:#fff}
.arrows{display:flex;gap:12px}
.circle{width:52px;height:52px;border:1px solid rgba(255,255,255,.7);border-radius:50%;background:transparent;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}

/* 사진 목록 */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(340px,100%),1fr));gap:44px 24px}
.card{display:block;min-width:0}
.thumb{aspect-ratio:3/2;background:var(--bg2);overflow:hidden}
.thumb img{width:100%;height:100%;object-fit:cover}
.card:hover .thumb img{opacity:.92}
.card-title{margin-top:14px;font-family:'Noto Serif KR',serif;font-size:19px;font-weight:700;color:var(--text)}

/* 사진 상세 */
.pt{padding-top:32px}
.viewer{margin:0;background:var(--hero);display:flex;justify-content:center}
.viewer img{width:100%;height:auto;max-height:82vh;object-fit:contain}
.viewer:fullscreen{background:#000;align-items:center}
.viewer:fullscreen img{height:100vh;max-height:100vh}
.row-end{display:flex;justify-content:flex-end;margin-top:12px}
.title-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;margin-top:32px}
.photo-title{margin:0;font-size:44px;font-weight:700;line-height:1.2}
.pager{display:flex;gap:8px}
.pager a,.pager span{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border:1px solid var(--ctl);border-radius:22px;font-size:15px}
.pager span{opacity:.4}
.story{max-width:680px;margin:28px 0 0;font-size:18px;line-height:1.9;color:#cdd4de;white-space:pre-line}

/* 폼, 패널 */
.panel{padding:24px;border:1px solid var(--line2);border-radius:4px;background:var(--bg2)}
.panel p{margin:0;font-size:16px;line-height:1.7;color:var(--text2)}
.stack{display:flex;flex-direction:column;gap:18px}
.field{display:flex;flex-direction:column;gap:8px}
.field label{font-size:14px;color:var(--mute)}
input[type=text],input[type=password],textarea{width:100%;min-height:52px;padding:0 14px;border:1px solid var(--ctl);border-radius:4px;background:var(--bg);color:var(--text);font-size:17px}
textarea{min-height:120px;padding:14px;line-height:1.8;resize:vertical}
.row-between{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px}
.check{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:15px;color:var(--text2)}
.check input{width:20px;height:20px}

/* 댓글 */
.comments{max-width:760px;padding:72px 0 96px}
.comments h2,.board h2{margin:0;font-family:'Noto Serif KR',serif;font-size:28px;font-weight:700}
.cmt{padding:22px 0;border-top:1px solid var(--line)}
.cmt-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px}
.cmt-name{font-size:15px;font-weight:700}
.cmt-time{font-size:13px;color:var(--mute2)}
.cmt-body{margin:8px 0 0;font-size:16px;line-height:1.75;color:var(--text2);white-space:pre-line}

/* 게시판 */
.board{max-width:960px}
.board-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px}
.board h1,.page-h1{margin:0;font-family:'Noto Serif KR',serif;font-size:36px;font-weight:700}
.post{border-top:1px solid var(--line)}
.post:last-child{border-bottom:1px solid var(--line)}
.post-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 20px;width:100%;min-height:72px;padding:18px 4px;border:0;background:none;color:var(--text);text-align:left;cursor:pointer}
.post-title{flex:1 1 320px;min-width:0;font-size:18px;font-weight:700;line-height:1.5}
.post-meta{font-size:14px;color:var(--mute)}
.post-body{padding:4px 4px 12px;font-size:16px;line-height:1.9;color:var(--text2);white-space:pre-line}
.post-tools{padding:0 4px 24px}
.badge{display:inline-block;margin-right:8px;padding:2px 8px;border:1px solid var(--ctl);border-radius:12px;font-size:12px;font-weight:500;vertical-align:2px}

/* 소개 */
.about{display:flex;flex-wrap:wrap;align-items:flex-start;gap:48px}
.about-photo{flex:1 1 320px;max-width:420px;min-width:0}
.about-photo img,.about-photo .ph{width:100%;aspect-ratio:4/5;object-fit:cover;background:var(--bg2)}
.about-photo .ph{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;color:var(--mute2);font-size:14px}
.about-text{flex:2 1 420px;min-width:0;max-width:720px}
.about-name{margin:0;font-family:'Gungsuh','궁서','GungsuhChe','Song Myung',serif;font-size:52px;font-weight:400;line-height:1.2;letter-spacing:.04em}
.about-tag{margin:16px 0 0;font-family:'Noto Serif KR',serif;font-size:20px;line-height:1.7;color:#cdd4de}
.rule{width:48px;height:1px;margin:32px 0;background:var(--line2)}
.about-bio{margin:0;font-size:17px;line-height:1.95;color:var(--text2);white-space:pre-line}
.tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:16px}

/* 관리 */
.drop{padding:28px;border:1px dashed var(--ctl);border-radius:4px;background:var(--bg2)}
.drop ul{margin:20px 0 0;padding:0 0 0 20px;font-size:15px;line-height:1.9;color:#cdd4de}
.arow{display:flex;flex-wrap:wrap;gap:20px 28px;padding:28px 0;border-top:1px solid var(--line)}
.arow .pic{flex:1 1 240px;max-width:300px;min-width:0}
.arow .fields{flex:2 1 360px;min-width:0;display:flex;flex-direction:column;gap:18px}
.arow .acts{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}

/* 로그인 창 */
.dlg-back{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(10,14,20,.72);overflow-y:auto}
.dlg{width:100%;max-width:420px;padding:28px;border:1px solid var(--line2);border-radius:8px;background:var(--bg2);box-shadow:0 16px 48px rgba(0,0,0,.5);display:flex;flex-direction:column;gap:0}
.dlg-or{display:flex;align-items:center;gap:12px;margin:20px 0;font-size:13px;color:var(--mute2)}
.dlg-or::before,.dlg-or::after{content:"";flex:1;height:1px;background:var(--line2)}
.dlg .btn{width:100%}
@media (max-width:600px){
  .wrap,.site-header,.site-footer{padding-left:20px;padding-right:20px}
  .hero{height:600px}
  .hero-bottom{padding-left:20px;padding-right:20px}
  .hero h1,.photo-title,.about-name{font-size:34px}
  .logo{font-size:26px}
  .section{padding-top:32px}
}
