/* ==========================================================================
   손짓그리기 아카이브 — 시안 B «스크린 라이트» (Cinematic dark)
   ========================================================================== */
:root {
  --bg: #0a0b0d;
  --bg-2: #0d0e10;
  --surface: #131518;
  --ink: #f3efe7;
  /* 작은 글자도 또렷하게 읽히도록 회색 계열을 모두 흰색에 가깝게 올렸다. */
  --muted: #f3efe7;
  --muted-2: #f3efe7;
  --line: rgba(255, 255, 255, .13);
  --line-soft: rgba(255, 255, 255, .065);
  --coral: #ff5a3c;
  --coral-deep: #d84028;
  --cream: #f4e5c4;
  --good: #74c69d;
  --warn: #f0c22e;
  --sans: "Archivo", "Noto Sans KR", "Pretendard", "Malgun Gothic", sans-serif;
  --kr: "Noto Sans KR", "Pretendard", "Malgun Gothic", sans-serif;
  --mono: "SFMono-Regular", Consolas, "D2Coding", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
img[height] { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--kr);
  font-size: 15px;
  line-height: 1.75;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--coral); color: #0a0b0d; }
.wrap { width: min(100% - 80px, 1280px); margin-inline: auto; }

.skip-link {
  position: fixed; top: -120px; left: 16px; z-index: 999;
  padding: 12px 18px; border-radius: 8px;
  background: var(--ink); color: var(--bg);
  font-weight: 600; font-size: 14px;
  transition: top .18s ease;
}
.skip-link:focus { top: 14px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 11, 13, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
body[data-page="home"] .site-header {
  position: absolute; top: 0; left: 0; right: 0;
  background: linear-gradient(to bottom, rgba(6, 7, 8, .55), transparent);
  border-bottom-color: var(--ink);
  backdrop-filter: none;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 82px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { width: 40px; height: 40px; padding: 3px; background: var(--cream); border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--kr); font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.brand-text span { margin-top: 4px; font-family: var(--sans); font-size: 7.5px; letter-spacing: .24em; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav > a {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color .2s;
}
.nav > a:hover, .nav > a.is-current { color: var(--ink); }
.nav > a.is-current { box-shadow: inset 0 -1px 0 var(--coral); }
.nav-user {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px 7px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px; color: var(--muted);
  white-space: nowrap;
}
.nav-user b {
  display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--coral); color: #0a0b0d;
  font-size: 10px; font-weight: 700;
}
.nav-user em { font-style: normal; color: var(--ink); }
.nav-logout {
  font-family: var(--sans);
  font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-2);
  border-bottom: 1px solid transparent;
}
.nav-logout:hover { color: var(--coral); border-color: var(--coral); }
.menu-btn { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  transition: background .2s, color .2s, border-color .2s, transform .2s, opacity .2s;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-warm { background: var(--ink); color: #0a0b0d; }
.btn-warm:hover:not(:disabled) { background: var(--coral); transform: translateY(-1px); }
.btn-coral { background: var(--coral); color: #0a0b0d; }
.btn-coral:hover:not(:disabled) { background: #ff7057; transform: translateY(-1px); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .28); color: var(--ink); }
.btn-ghost:hover:not(:disabled) { border-color: var(--ink); background: rgba(255, 255, 255, .06); }
.btn-sm { padding: 9px 15px; font-size: 11px; }
.btn-block { width: 100%; }
.text-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .32);
  font-family: var(--sans); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.text-arrow:hover { color: var(--coral); border-color: var(--coral); }
.text-arrow span { font-size: 13px; }

/* ---------- home hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 120px;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; background: #0f1013; }
/* 대문 배경은 사진이 아닌 종이 질감이고, 그림은 손짓그리기 마크가 맡는다. */
.hero-media > img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
}
.hero-emblem {
  position: absolute; right: 5%; top: 38%;
  transform: translateY(-50%);
  display: grid; place-items: center;
  width: min(34vw, 400px); aspect-ratio: 1;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 34px 100px rgba(0, 0, 0, .55);
  opacity: .93;
}
.hero-emblem img { width: 76%; height: auto; }
@media (max-width: 960px) { .hero-emblem { display: none; } }

.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 8, 9, .96) 0%, rgba(7, 8, 9, .82) 38%, rgba(7, 8, 9, .22) 100%),
    linear-gradient(to top, var(--bg) 0%, rgba(10, 11, 13, .1) 52%, rgba(10, 11, 13, .72) 100%);
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1fr 286px;
  gap: 80px; align-items: end;
  padding-bottom: 66px;
}
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 9.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
}
.pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--coral);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 90, 60, .45); }
  70% { box-shadow: 0 0 0 9px rgba(255, 90, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 60, 0); }
}
.hero-title {
  margin-top: 30px;
  font-size: clamp(4.4rem, 9vw, 8.4rem);
  font-weight: 900; line-height: .98; letter-spacing: -.075em;
}
.hero-title .outline { color: transparent; -webkit-text-stroke: 2px var(--coral); letter-spacing: -.055em; }
.hero-lead { max-width: 50ch; margin-top: 32px; font-size: 15.5px; line-height: 1.9; color: var(--ink); }
.hero-lead strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-aside { padding-bottom: 6px; }
.hero-aside-label {
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
  font-family: var(--sans); font-size: 9px; letter-spacing: .2em; color: var(--coral);
}
.hero-aside-note { margin-top: 16px; font-size: 11.5px; line-height: 1.95; color: var(--muted); }
.hero-aside-foot {
  display: flex; align-items: center; gap: 12px; margin-top: 32px;
  font-family: var(--sans); font-size: 8px; letter-spacing: .18em; color: var(--muted-2);
}
.scroll-line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.3), transparent); }

.hero-stats-wrap { position: relative; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 25px 0 27px;
  border-top: 1px solid rgba(255, 255, 255, .2);
  background: linear-gradient(to top, rgba(10, 11, 13, .8), rgba(10, 11, 13, .1));
}
.hstat { padding-left: 28px; border-left: 1px solid var(--line); }
.hstat:first-child { padding-left: 0; border-left: 0; }
.hstat-num { display: block; font-family: var(--sans); font-size: clamp(1.7rem, 2.8vw, 2.3rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
.hstat-label { display: block; margin-top: 6px; font-size: 9px; letter-spacing: .12em; color: var(--muted); }

.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.ticker-track { display: flex; align-items: center; gap: 36px; width: max-content; padding: 15px 0; animation: ticker 42s linear infinite; }
.ticker-track span { font-family: var(--sans); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.ticker-track i { font-style: normal; font-size: 10px; color: var(--coral); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 128px 0; }
.section-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 56px; }
.section-top h2, .story-head h2, .mark-copy h2 {
  margin-top: 20px;
  font-size: clamp(2.5rem, 4.2vw, 3.6rem);
  font-weight: 800; line-height: 1.18; letter-spacing: -.055em;
}

.story-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; }
.story-head { position: relative; }
.story-index {
  display: block; margin-top: 54px;
  font-family: var(--sans); font-size: 130px; font-weight: 800; line-height: .8;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .16); letter-spacing: -.06em;
}
.story-body { padding-top: 54px; }
.story-body .story-lead { font-size: 20px; line-height: 1.8; }
.story-body > p { color: var(--muted); }
.story-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin-top: 30px; }
.story-cols p { font-size: 13.5px; line-height: 1.95; color: var(--muted); }
.story-body blockquote { margin: 38px 0; padding-left: 24px; border-left: 2px solid var(--coral); }
.story-body blockquote p { font-size: 17px; line-height: 1.75; }
.story-body blockquote cite { display: block; margin-top: 10px; font-family: var(--sans); font-size: 8.5px; font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.story-body .text-arrow { margin-top: 8px; }

.latest { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.feed-cards { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feed {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 216px;
  padding: 24px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .22s ease;
}
.feed:hover { background: #16181b; }
.feed-date { font-family: var(--mono); font-size: 9px; color: var(--coral); }
.feed-title { display: block; margin-top: 14px; font-size: 18px; font-weight: 500; line-height: 1.55; letter-spacing: -.02em; padding-right: 22px; }
.feed-excerpt {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 9px; font-size: 11.5px; line-height: 1.8; color: var(--muted-2);
}
.feed-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 20px; font-size: 9.5px; color: var(--muted); }
.feed-board { color: var(--ink); }
.feed-arrow { position: absolute; top: 22px; right: 24px; font-size: 14px; color: var(--muted-2); transition: color .2s, transform .2s; }
.feed:hover .feed-arrow { color: var(--coral); transform: translate(2px, -2px); }

.mark-section {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 500px at 22% 50%, rgba(244, 229, 196, .07), transparent 65%),
    radial-gradient(500px 400px at 82% 20%, rgba(255, 90, 60, .05), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line-soft);
}
.mark-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 96px; align-items: center; }
.mark-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 440px; }
.mark-halo {
  position: absolute; width: 430px; height: 430px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .08);
  background: radial-gradient(circle, rgba(244, 229, 196, .09), transparent 62%);
}
.mark-halo::before, .mark-halo::after { content: ""; position: absolute; inset: 34px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .08); }
.mark-halo::after { inset: 82px; border-style: solid; }
.mark-visual img { position: relative; width: 294px; height: 294px; filter: drop-shadow(0 24px 60px rgba(0,0,0,.55)); }
.mark-caption { position: absolute; right: 0; bottom: 20px; font-family: var(--sans); font-size: 8px; line-height: 1.8; letter-spacing: .2em; text-align: right; color: var(--muted-2); }
.mark-lead { max-width: 52ch; margin-top: 24px; font-size: 14.5px; line-height: 1.95; color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.swatches li { display: grid; grid-template-columns: 14px auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; }
.swatches span { grid-row: span 2; width: 13px; height: 13px; border-radius: 50%; background: var(--c); }
.swatches b { font-size: 10.5px; font-weight: 500; line-height: 1.4; }
.swatches em { font-family: var(--sans); font-size: 6.5px; font-style: normal; letter-spacing: .14em; color: var(--muted-2); }
.mark-note { max-width: 50ch; margin-top: 24px; font-size: 10px; line-height: 1.8; color: var(--muted-2); }

.photo-count { font-family: var(--sans); font-size: 42px; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.photo-count span { display: block; margin-top: 7px; font-size: 8px; letter-spacing: .2em; color: var(--muted); }
.photo-band { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 225px; gap: 12px; }
.photo-card { position: relative; display: block; overflow: hidden; background: #1a1c1f; }
.photo-card:nth-child(1) { grid-column: span 5; grid-row: span 2; }
.photo-card:nth-child(2) { grid-column: span 4; }
.photo-card:nth-child(3) { grid-column: span 3; }
.photo-card:nth-child(4) { grid-column: span 4; }
.photo-card:nth-child(5) { grid-column: span 3; }
.photo-frame, .photo-frame img { width: 100%; height: 100%; }
.photo-frame img { object-fit: cover; filter: grayscale(.7) brightness(.8); transition: transform .7s ease, filter .5s ease; }
.photo-card:hover img { transform: scale(1.05); filter: grayscale(0) brightness(.95); }
.photo-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 40px 16px 14px;
  background: linear-gradient(to top, rgba(5, 6, 7, .88), transparent);
}
.photo-card figcaption strong { font-size: 12px; font-weight: 500; }
.photo-card figcaption span { font-family: var(--sans); font-size: 7.5px; letter-spacing: .1em; color: var(--ink); white-space: nowrap; }

.boards-cta { padding-bottom: 140px; }
.cta-line { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-top: 26px; }
.cta-line h2 { font-size: clamp(3rem, 6.4vw, 5.6rem); font-weight: 900; line-height: 1.1; letter-spacing: -.07em; }
.round-cta {
  position: relative;
  flex-shrink: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  width: 158px; height: 158px; padding: 26px;
  border-radius: 50%;
  background: var(--coral); color: #0a0b0d;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), background .2s;
}
.round-cta:hover { transform: rotate(-5deg) scale(1.03); background: #ff6d52; }
.round-cta span { font-size: 17px; font-weight: 900; line-height: 1.3; letter-spacing: -.01em; text-align: center; }
.round-cta b { position: absolute; right: 30px; bottom: 24px; font-size: 24px; font-weight: 400; }
.board-ticker { display: flex; flex-wrap: wrap; gap: 0 28px; margin-top: 60px; padding-top: 22px; border-top: 1px solid var(--line); }
.board-ticker a, .board-ticker span { font-size: 10px; letter-spacing: .03em; color: var(--muted); padding: 5px 0; }
.board-ticker a::before, .board-ticker span::before { content: "·"; color: var(--coral); margin-right: 9px; }
.board-ticker a:hover { color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 66px 0 30px; background: var(--bg-2); }
.footer-inner { display: grid; grid-template-columns: 1.1fr 1.5fr .8fr; gap: 60px; }
.footer-brand img { width: 44px; height: 44px; margin-bottom: 16px; }
.footer-brand p { font-size: 21px; font-weight: 700; letter-spacing: -.03em; }
.footer-brand span { display: block; margin-top: 10px; font-size: 10px; line-height: 1.9; color: var(--muted); }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-links h3 { margin-bottom: 14px; font-family: var(--sans); font-size: 8px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2); }
.footer-links a { display: block; margin-bottom: 7px; font-size: 11.5px; color: var(--ink); }
.footer-links a:hover { color: var(--coral); }
.footer-credit { align-self: end; font-size: 8.5px; line-height: 1.9; color: var(--muted-2); text-align: right; }

/* ---------- page hero (sub pages) ---------- */
.page-hero {
  position: relative;
  padding: 52px 0 46px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-ghost {
  position: absolute; right: -16px; bottom: -58px;
  font-family: var(--sans); font-size: 280px; font-weight: 900; line-height: 1;
  letter-spacing: -.08em; color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .07);
  pointer-events: none; user-select: none;
}
.page-hero .wrap { position: relative; }
.crumbs { display: flex; gap: 10px; font-family: var(--sans); font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-current] { color: var(--muted); }
.page-title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-top: 46px; }
.page-kicker { font-family: var(--sans); font-size: 9px; letter-spacing: .22em; color: var(--coral); }
.page-title-row h1 { margin-top: 12px; font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 900; line-height: 1; letter-spacing: -.07em; }
.page-title-row h1 span { color: var(--coral); }
.page-lead { max-width: 54ch; margin-top: 16px; font-size: 13px; line-height: 1.85; color: var(--muted); }
.page-numbers { display: flex; gap: 36px; flex-shrink: 0; padding-bottom: 6px; }
.page-numbers p { display: flex; flex-direction: column; gap: 4px; }
.page-numbers b { font-family: var(--sans); font-size: 28px; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.page-numbers span { font-family: var(--sans); font-size: 7.5px; letter-spacing: .18em; color: var(--muted-2); }
.readonly-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px;
  font-family: var(--sans); font-size: 8px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.readonly-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.write-badge { border-color: rgba(255, 90, 60, .45); color: var(--coral); }
.write-badge::before { background: var(--coral); }

/* ---------- auth ---------- */
.auth-page { min-height: 100svh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-visual {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 44px 56px 52px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(900px 700px at 15% 20%, rgba(244, 229, 196, .08), transparent 60%),
    radial-gradient(700px 600px at 88% 82%, rgba(255, 90, 60, .1), transparent 65%),
    #08090b;
}
.auth-visual::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 82%);
}
.auth-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.auth-brand img { width: 44px; height: 44px; padding: 3px; background: var(--cream); border-radius: 50%; }
.auth-brand strong { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.auth-brand span { display: block; margin-top: 3px; font-family: var(--sans); font-size: 7.5px; letter-spacing: .24em; color: var(--muted); }
.auth-copy { position: relative; z-index: 1; padding: 60px 0; }
.auth-copy .eyebrow { color: var(--coral); }
.auth-copy h1 { margin-top: 22px; font-size: clamp(2.6rem, 4.6vw, 4.1rem); font-weight: 900; line-height: 1.12; letter-spacing: -.06em; }
.auth-copy h1 em { font-style: normal; color: transparent; -webkit-text-stroke: 1.6px var(--coral); }
.auth-quote { max-width: 40ch; margin-top: 28px; padding-left: 20px; border-left: 2px solid var(--coral); font-size: 14px; line-height: 1.95; color: var(--muted); }
.auth-meta { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--sans); font-size: 8px; letter-spacing: .18em; color: var(--muted-2); }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 48px 44px; background: var(--bg-2); }
.auth-card { width: min(100%, 420px); }
.auth-card h2 { font-size: 30px; font-weight: 800; letter-spacing: -.04em; line-height: 1.2; }
.auth-card .auth-sub { margin-top: 10px; font-size: 12.5px; line-height: 1.85; color: var(--muted); }
.auth-form { margin-top: 34px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-family: var(--sans); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #101215;
  font-size: 14px;
  outline: none;
  transition: border-color .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus { border-color: var(--coral); background: #121417; }
.field input:disabled { opacity: .62; }
.field-note { font-size: 10px; line-height: 1.7; color: var(--muted-2); }
.form-error {
  margin-bottom: 16px; padding: 12px 14px;
  border: 1px solid rgba(255, 90, 60, .4);
  border-left: 2px solid var(--coral);
  background: rgba(255, 90, 60, .07);
  font-size: 12px; line-height: 1.7; color: #ffd3c9;
}
.form-ok { border-color: rgba(116, 198, 157, .4); border-left-color: var(--good); background: rgba(116, 198, 157, .07); color: #d3f2e3; }
.auth-alt { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--muted); }
.auth-alt a { color: var(--coral); border-bottom: 1px solid rgba(255, 90, 60, .4); }
.auth-alt a:hover { border-color: var(--coral); }
.invite-note {
  margin-bottom: 22px; padding: 14px 16px;
  border: 1px dashed rgba(255, 255, 255, .2);
  border-radius: 12px;
  font-size: 11.5px; line-height: 1.8; color: var(--muted);
}
.invite-note b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 12px; }
.checkline { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 22px; font-size: 11.5px; line-height: 1.75; color: var(--muted); }
.checkline input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--coral); }

/* ---------- board directory + lists ---------- */
.archive-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 48px; padding: 44px 0 100px; }
.board-dir { align-self: start; position: sticky; top: 104px; max-height: calc(100vh - 140px); overflow-y: auto; padding-right: 20px; border-right: 1px solid var(--line); }
.dir-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-family: var(--sans); font-size: 8px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); }
.dir-group { margin-bottom: 20px; }
.dir-group h3 { display: flex; justify-content: space-between; margin-bottom: 6px; font-family: var(--sans); font-size: 7.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); }
.dir-group ul a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 12.5px; color: var(--muted); transition: color .18s; }
.dir-group ul a span:last-child { font-family: var(--mono); font-size: 9px; color: var(--muted-2); }
.dir-group ul a:hover { color: var(--ink); }
.dir-group ul a.is-active { color: var(--coral); }
.dir-group ul a.is-active span:last-child { color: var(--coral); }

.board-panel { min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -.05em; line-height: 1.15; }
.panel-head .panel-desc { margin-top: 8px; max-width: 60ch; font-size: 12px; line-height: 1.85; color: var(--muted); }
.panel-head .panel-count { flex-shrink: 0; text-align: right; font-family: var(--mono); font-size: 10px; color: var(--muted-2); }
.panel-head .panel-count b { display: block; font-family: var(--sans); font-size: 26px; font-weight: 500; color: var(--ink); letter-spacing: -.03em; }

.board-tools {
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.search {
  display: flex; align-items: center; gap: 8px;
  width: 240px; padding: 9px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted-2);
}
.search svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; flex-shrink: 0; }
.search input { width: 100%; border: 0; background: transparent; font-family: var(--sans); font-size: 10.5px; color: var(--ink); outline: none; }
.search input::placeholder { color: var(--muted-2); }
.list-meta { margin-left: auto; font-family: var(--sans); font-size: 9px; letter-spacing: .1em; color: var(--muted-2); white-space: nowrap; }
.list-meta b { color: var(--ink); font-family: var(--mono); font-weight: 500; }

.table-head, .post-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 112px 96px 54px 44px 18px;
  gap: 12px; align-items: center;
}
.table-head { padding: 13px 12px; border-bottom: 1px solid var(--line); font-family: var(--sans); font-size: 8px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.table-head span:nth-child(5), .table-head span:nth-child(6) { text-align: right; }
.post-row { position: relative; padding: 18px 12px; border-bottom: 1px solid var(--line-soft); transition: background .18s ease, box-shadow .18s ease; }
.post-row:hover { background: #121417; box-shadow: inset 2px 0 0 var(--coral); }
.p-no { font-family: var(--mono); font-size: 9.5px; color: var(--muted-2); }
.p-main { min-width: 0; }
.p-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 500; line-height: 1.5; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .18s;
}
.post-row:hover .p-title { color: #fff; }
.p-hot { flex-shrink: 0; color: var(--coral); font-family: var(--sans); font-size: 7px; border: 1px solid rgba(255,90,60,.4); padding: 1px 4px; }
.p-cc-inline { display: none; font-family: var(--sans); font-size: 9px; color: var(--coral); }
.p-meta { display: none; }
.p-author-col { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-date-col, .p-views-col { font-family: var(--mono); font-size: 9px; color: var(--muted-2); }
.p-views-col { text-align: right; }
.p-cc { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; font-family: var(--mono); font-size: 8px; color: var(--muted); }
.p-arrow { font-size: 13px; color: var(--coral); opacity: 0; transform: translate(-3px, 3px); transition: opacity .18s, transform .18s; }
.post-row:hover .p-arrow { opacity: 1; transform: none; }
.empty { padding: 60px 0; text-align: center; font-size: 13px; color: var(--muted); }

.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 38px; flex-wrap: wrap; }
.pager a, .pager button, .pager-edge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 50%;
  font-family: var(--mono); font-size: 9px; color: var(--muted);
  transition: background .18s, color .18s, border-color .18s;
}
.pager a:hover, .pager button:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); }
.pager .is-current { background: var(--coral); border-color: var(--coral); color: #0a0b0d; }
.pager-edge { width: auto; border-radius: 999px; font-family: var(--sans); font-size: 8px; letter-spacing: .14em; }
.pager-edge:disabled { opacity: .3; cursor: default; }
.pager-gap { border: 0; min-width: 18px; color: var(--muted-2); }
.list-note { margin-top: 38px; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: 8.5px; letter-spacing: .04em; color: var(--muted-2); }

/* ---------- post view ---------- */
.reading { max-width: 920px; margin: 0 auto; padding: 44px 0 100px; }
.post-head { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.post-head h1 { margin-top: 18px; font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 800; line-height: 1.35; letter-spacing: -.04em; }
.post-head-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-family: var(--sans); font-size: 9px; letter-spacing: .1em; color: var(--muted-2); }
.post-head-meta b { color: var(--ink); font-weight: 500; }
.post-body {
  margin-top: 30px;
  font-size: 15px; line-height: 2.05;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.post-cover { margin-top: 30px; border: 1px solid var(--line); background: #050506; }
.post-cover img { width: 100%; max-height: 620px; object-fit: contain; }
.attach-block { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.attach-block h2, .comment-block h2 { font-family: var(--sans); font-size: 9px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2); }
.attach-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.attach-list a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 11.5px; color: var(--muted);
}
.attach-list a:hover { border-color: var(--coral); color: var(--ink); }
.attach-list span { font-family: var(--mono); font-size: 9px; color: var(--muted-2); }
.comment-block { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.comment-block h2 span { color: var(--coral); }
.comment { padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.comment-head { display: flex; align-items: baseline; gap: 12px; font-size: 11.5px; }
.comment-head b { color: var(--cream); font-weight: 600; }
.comment-head span { font-family: var(--mono); font-size: 8.5px; color: var(--muted-2); }
.comment p { margin-top: 7px; font-size: 13px; line-height: 1.9; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; }

/* ---------- gallery (titles only) ---------- */
.gallery-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button {
  padding: 8px 14px; border: 1px solid transparent; border-radius: 999px;
  font-size: 10px; color: var(--muted);
  transition: color .18s, border-color .18s;
}
.chips button:hover { color: var(--ink); }
.chips button.is-active { border-color: var(--coral); color: var(--coral); }
.gallery-table { margin-top: 4px; }
.gallery-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 120px 100px 60px;
  gap: 12px; align-items: center;
  padding: 19px 12px;
  border-bottom: 1px solid var(--line-soft);
  transition: background .18s ease, box-shadow .18s ease;
}
/* 행 안의 링크는 격자에 그대로 펼쳐집니다. */
.gallery-link { display: contents; }
.moment-btn {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9.5px; letter-spacing: .01em; color: var(--muted); white-space: nowrap;
  transition: color .18s, border-color .18s, background .18s;
}
.moment-btn:hover { color: var(--ink); border-color: var(--coral); }
.moment-btn.is-on { color: var(--coral); border-color: var(--coral); background: rgba(255,122,92,.08); }
.moment-btn[disabled] { opacity: .45; }
.gallery-row:hover { background: #121417; box-shadow: inset 2px 0 0 var(--coral); }
.g-no { font-family: var(--mono); font-size: 9.5px; color: var(--muted-2); }
.g-title { font-size: 15.5px; font-weight: 500; letter-spacing: -.01em; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery-row:hover .g-title { color: #fff; }
.g-author { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-date, .g-views { font-family: var(--mono); font-size: 9px; color: var(--muted-2); }
.g-views { text-align: right; }
.g-arrow { grid-column: 6; }
.gallery-head { display: grid; grid-template-columns: 60px minmax(0, 1fr) 120px 100px 60px; gap: 12px; padding: 13px 12px; border-bottom: 1px solid var(--line); font-family: var(--sans); font-size: 8px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }

/* ---------- photo view ---------- */
.photo-view { padding: 34px 0 90px; }
.photo-stage {
  display: grid; place-items: center;
  min-height: 46vh;
  padding: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(255,255,255,.05), transparent 70%),
    #050506;
}
/* 본문 사진과 함께 올린 사진을 같은 크기 틀로 — 눌러서 원본 보기 */
.photo-stage img, .photo-extra img { display: block; width: 100%; height: 68vh; max-width: 100%; max-height: none; margin: 0 auto; object-fit: contain; }
.photo-zoom { display: block; width: 100%; cursor: zoom-in; }
.photo-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }

/* 목록에서 한 글에 사진이 두 장인 것을 알리는 배지 */
.g-count { margin-left: 8px; padding: 2px 7px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--mono); font-size: 8.5px; color: var(--muted); vertical-align: 2px; }
/* 한 글에 두 번째 사진이 있으면 본문 아래에 이어 보여 줌 */
.photo-extras { margin-top: 22px; }
.extra-note { margin-bottom: 10px; font-size: 11px; color: var(--muted); }
.extra-note strong { color: var(--ink); }
.extra-list { display: grid; gap: 12px; }
.photo-extra { display: block; padding: 20px; border: 1px solid var(--line); background: #050506; transition: border-color .18s; }
.photo-extra img { cursor: zoom-in; }
.photo-extra:hover { border-color: var(--coral); }
/* 사진 바로 밑에 붙는 '내 생애 가장 빛나는 순간' 버튼 — 사진 한 장에 하나씩 */
.photo-moment { display: flex; justify-content: center; margin-top: 12px; }
.photo-moment.is-extra { margin-top: 10px; }
.photo-bar h1 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.3; }
.photo-bar .photo-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; font-family: var(--sans); font-size: 9px; letter-spacing: .1em; color: var(--muted-2); }
/* 사진 밑에 붙는 원문 글 */
.photo-text {
  margin-top: 24px;
  max-width: 78ch;
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
.photo-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 18px; font-size: 10px; color: var(--muted-2); }

/* ---------- 이전 글 / 다음 글 (글·사진 하단) ---------- */
.pager { display: flex; align-items: stretch; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }
.pager a {
  flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .2s, background-color .2s, color .2s;
}
.pager a:hover { border-color: var(--coral); background: var(--bg-2); }
.pager a.next { flex-direction: row-reverse; text-align: right; }
.pager .pager-arrow { flex-shrink: 0; font-size: 18px; line-height: 1; color: var(--coral); }
.pager .pager-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pager a.next .pager-text { align-items: flex-end; }
.pager .pager-label { font-family: var(--sans); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.pager .pager-title { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.pager a.is-off { opacity: .35; pointer-events: none; }

/* 사진·글 화면: 이전은 오른쪽(→), 다음은 왼쪽(←)에 둔다. */
.pager-flip a.next { flex-direction: row; text-align: left; }
.pager-flip a.next .pager-text { align-items: flex-start; }
.pager-flip a.prev { flex-direction: row-reverse; text-align: right; }
.pager-flip a.prev .pager-text { align-items: flex-end; }


/* 목록 페이지 번호: 작은 화면에서는 번호 원을 감추고 이 줄만 쓴다. */
.pager-status { display: none; }

@media (max-width: 640px) {
  .pager:not(.pager-list) { flex-direction: column; }
  .photo-foot { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* 모바일 페이지 번호는 번호 원 없이 PREV · 3 / 12 · NEXT 한 줄만 */
  .pager-list {
    flex-direction: row; align-items: center; justify-content: space-between;
    flex-wrap: nowrap; gap: 8px;
    margin-top: 30px; padding-top: 18px;
  }
  .pager-list .pager-num,
  .pager-list .pager-gap { display: none; }
  .pager-list .pager-edge,
  .pager-list .pager-status {
    display: inline-flex; align-items: center; justify-content: center;
    height: 40px; min-width: 0; padding: 0 16px;
    border: 1px solid var(--line); border-radius: 999px;
    font-family: var(--sans); font-size: 9px; letter-spacing: .14em; color: var(--muted);
  }
  .pager-list .pager-status {
    flex: 1 1 auto; border-color: transparent;
    font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
    color: var(--ink);
  }
  .pager-list .pager-edge:disabled { opacity: .28; }
}

/* ---------- guestbook ---------- */
.guestbook-grid { display: grid; grid-template-columns: 372px minmax(0, 1fr); gap: 52px; padding: 46px 0 100px; }
.gb-form-card { position: sticky; top: 106px; align-self: start; padding: 24px; border: 1px solid var(--line); background: var(--bg-2); border-radius: 14px; }
.gb-form-card h2 { font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
.gb-form-card p { margin-top: 8px; font-size: 11.5px; line-height: 1.85; color: var(--muted); }
.gb-form { margin-top: 20px; }
.gb-form textarea { min-height: 132px; resize: vertical; }
.gb-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.gb-count { font-family: var(--mono); font-size: 10px; color: var(--muted-2); }
.gb-list { min-width: 0; }
.gb-entry { padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.gb-entry-head { display: flex; align-items: baseline; gap: 12px; }
.gb-entry-head b { font-size: 13.5px; font-weight: 600; color: var(--cream); }
.gb-entry-head span { font-family: var(--mono); font-size: 9px; color: var(--muted-2); }
.gb-entry p { margin-top: 9px; font-size: 13.5px; line-height: 1.95; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.gb-delete { margin-left: auto; font-family: var(--sans); font-size: 8.5px; letter-spacing: .1em; color: var(--muted-2); border-bottom: 1px solid transparent; }
.gb-delete:hover { color: var(--coral); border-color: var(--coral); }
.gb-tools { margin-left: auto; display: flex; align-items: baseline; gap: 12px; }
.gb-tools .gb-delete { margin-left: 0; }
.gb-edit { font-family: var(--sans); font-size: 8.5px; letter-spacing: .1em; color: var(--muted-2); border-bottom: 1px solid transparent; }
.gb-edit:hover { color: var(--coral); border-color: var(--coral); }
.gb-edit-form { margin-top: 10px; }
.gb-edit-form textarea {
  width: 100%; padding: 10px 12px; font-size: 12.5px; line-height: 1.8; color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; background: #101215;
  outline: none; resize: vertical; transition: border-color .2s, background .2s;
}
.gb-edit-form textarea:focus { border-color: var(--coral); background: #121417; }
.gb-edit-actions { display: flex; gap: 8px; margin-top: 8px; }

/* 방명록 사진 · 댓글 */
.gb-photo-field { margin-top: 16px; }
.gb-file { display: block; width: 100%; margin-top: 6px; font-family: var(--sans); font-size: 10.5px; color: var(--muted); }
.gb-file::file-selector-button {
  margin-right: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 9px;
  letter-spacing: .1em; cursor: pointer;
}
.gb-file::file-selector-button:hover { border-color: var(--coral); color: var(--coral); }
.gb-hint { margin-top: 8px; font-family: var(--mono); font-size: 9.5px; color: var(--muted-2); overflow-wrap: anywhere; }
.gb-photo { position: relative; display: inline-block; margin: 14px 0 0; max-width: 340px; }
.gb-photo a { display: block; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.gb-photo img { display: block; width: 100%; height: auto; }
.gb-photo .gb-delete { position: absolute; right: 8px; bottom: 8px; padding: 4px 8px; border-radius: 999px; background: rgba(5, 6, 7, .72); border-color: transparent; }
.gb-comment-count { margin-top: 14px; font-family: var(--sans); font-size: 8px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.gb-comments { margin-top: 6px; padding-left: 14px; border-left: 1px solid var(--line-soft); }
.gb-comment { padding: 10px 0; border-bottom: 1px dashed var(--line-soft); }
.gb-comment:last-of-type { border-bottom: 0; }
.gb-comment-head { display: flex; align-items: baseline; gap: 10px; }
.gb-comment-head b { font-size: 12px; font-weight: 600; color: var(--cream); }
.gb-comment-head span { font-family: var(--mono); font-size: 8.5px; color: var(--muted-2); }
.gb-comment p { margin-top: 5px; font-size: 12.5px; line-height: 1.8; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.gb-comment-form { display: flex; align-items: flex-end; gap: 8px; margin-top: 12px; }
.gb-comment-form textarea {
  flex: 1 1 auto; min-height: 42px; max-height: 130px; padding: 10px 12px;
  font-size: 12px; resize: vertical; color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; background: #101215;
  outline: none; transition: border-color .2s, background .2s;
}
.gb-comment-form textarea::placeholder { color: var(--muted-2); }
.gb-comment-form textarea:focus { border-color: var(--coral); background: #121417; }
.gb-comment-form .btn { flex: 0 0 auto; }

/* ---------- admin ---------- */
.admin-grid { display: grid; grid-template-columns: 372px minmax(0, 1fr); gap: 48px; padding: 46px 0 100px; }
.admin-card { align-self: start; padding: 24px; border: 1px solid var(--line); background: var(--bg-2); border-radius: 14px; }
.admin-card h2 { font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
.admin-card p { margin-top: 8px; font-size: 11.5px; line-height: 1.85; color: var(--muted); }
.invite-result { margin-top: 18px; padding: 14px; border: 1px solid rgba(116, 198, 157, .35); background: rgba(116, 198, 157, .06); border-radius: 12px; font-size: 11.5px; line-height: 1.8; color: #d3f2e3; word-break: break-all; }
.invite-result a { display: block; margin-top: 6px; color: var(--cream); text-decoration: underline; }
.invite-table { min-width: 0; }
.invite-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 112px 100px 96px;
  gap: 12px; align-items: center;
  padding: 16px 10px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
}
.invite-head { display: grid; grid-template-columns: minmax(0, 1.5fr) 112px 100px 96px; gap: 12px; padding: 12px 10px; border-bottom: 1px solid var(--line); font-family: var(--sans); font-size: 8px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.invite-mail { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.invite-date { font-family: var(--mono); font-size: 9.5px; color: var(--muted-2); }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--sans); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-pending { color: var(--warn); border-color: rgba(240, 194, 46, .35); }
.status-accepted { color: var(--good); border-color: rgba(116, 198, 157, .35); }
.status-expired, .status-revoked { color: var(--muted-2); }
.invite-actions { display: flex; justify-content: flex-end; gap: 8px; }
.link-btn { font-family: var(--sans); font-size: 8.5px; letter-spacing: .08em; color: var(--muted); border-bottom: 1px solid var(--line); }
.link-btn:hover { color: var(--coral); border-color: var(--coral); }
.admin-note { margin-top: 26px; padding: 16px; border: 1px dashed rgba(255,255,255,.16); border-radius: 12px; font-size: 11px; line-height: 1.85; color: var(--muted); }
.admin-note b { color: var(--ink); }

/* ---------- home feed / photo helpers ---------- */
.feed-body { display: flex; flex-direction: column; flex: 1; }
.photo-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 40px 16px 14px;
  background: linear-gradient(to top, rgba(5, 6, 7, .88), transparent);
}
.photo-cap strong { font-size: 12px; font-weight: 500; }
.photo-cap span { font-family: var(--sans); font-size: 7.5px; letter-spacing: .1em; color: var(--ink); white-space: nowrap; }

@media (max-width: 640px) {
  .photo-cap { padding: 28px 9px 9px; }
  .photo-cap strong { font-size: 10.5px; }
  .photo-cap span { display: none; }
}

/* ---------- account ---------- */
.kv-list { margin-top: 18px; border-top: 1px solid var(--line); }
.kv-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.kv-list dt { font-family: var(--sans); font-size: 8px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.kv-list dd { margin: 0; font-size: 12.5px; color: var(--ink); text-align: right; overflow-wrap: anywhere; }

/* ---------- utility ---------- */
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.loading { padding: 60px 0; text-align: center; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--muted-2); }
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 400;
  transform: translate(-50%, 20px);
  padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: 12px; font-weight: 600;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 계절 (날짜에 맞춰 자동으로 바뀐다) ----------
   모양·색온도·움직임 세 가지를 계절마다 다르게 둔다. */
.season-layer { position: fixed; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.season-bit {
  position: absolute; top: -12vh; left: var(--x, 50%);
  width: calc(var(--sz, 14px) * var(--s, 1));
  height: calc(var(--sz, 14px) * var(--s, 1));
  background-repeat: no-repeat; background-position: center; background-size: contain;
  animation: season-fall var(--d, 12s) linear var(--delay, 0s) infinite;
}

/* 겨울 — 눈송이, 차가운 푸른 빛 */
.season-winter .season-bit {
  --sz: 15px; --spin: 120deg; opacity: .4;
  /* 아주 조금 더 천천히 내려앉는다. */
  animation-duration: calc(var(--d, 12s) * 1.42);
  /* 눈송이: 여섯 갈래 가지 모양 */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23eef4ff' stroke-width='2.1' stroke-linecap='round'%3E%3Cg%3E%3Cpath d='M12 12V2.6M12 7 9.5 4.5M12 7l2.5-2.5M12 10.4 10.3 8.7M12 10.4l1.7-1.7'/%3E%3C/g%3E%3Cg transform='rotate(60 12 12)'%3E%3Cpath d='M12 12V2.6M12 7 9.5 4.5M12 7l2.5-2.5M12 10.4 10.3 8.7M12 10.4l1.7-1.7'/%3E%3C/g%3E%3Cg transform='rotate(120 12 12)'%3E%3Cpath d='M12 12V2.6M12 7 9.5 4.5M12 7l2.5-2.5M12 10.4 10.3 8.7M12 10.4l1.7-1.7'/%3E%3C/g%3E%3Cg transform='rotate(180 12 12)'%3E%3Cpath d='M12 12V2.6M12 7 9.5 4.5M12 7l2.5-2.5M12 10.4 10.3 8.7M12 10.4l1.7-1.7'/%3E%3C/g%3E%3Cg transform='rotate(240 12 12)'%3E%3Cpath d='M12 12V2.6M12 7 9.5 4.5M12 7l2.5-2.5M12 10.4 10.3 8.7M12 10.4l1.7-1.7'/%3E%3C/g%3E%3Cg transform='rotate(300 12 12)'%3E%3Cpath d='M12 12V2.6M12 7 9.5 4.5M12 7l2.5-2.5M12 10.4 10.3 8.7M12 10.4l1.7-1.7'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* 봄 — 꽃잎, 따뜻한 분홍 기운 */
.season-spring .season-bit {
  --sz: 16px; --spin: 240deg; opacity: .66;
  /* 벛꽃잎: 끝이 갈라진 다섯 갈래 꽃잎 한 장 */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='.1' y1='0' x2='.9' y2='1'%3E%3Cstop offset='0' stop-color='%23fde5e0'/%3E%3Cstop offset='1' stop-color='%23efb8ae'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M12 23C9 21.2 4.4 17.6 4.4 12.4c0-4.4 3-7.8 6.2-8.2L12 6.3l1.4-2.1c3.2.4 6.2 3.8 6.2 8.2 0 5.2-4.6 8.8-7.6 10.6z' fill='url(%23g)'/%3E%3C/svg%3E");
  animation: season-fall var(--d, 12s) linear var(--delay, 0s) infinite,
             season-sway 6.5s ease-in-out var(--delay, 0s) infinite;
}

/* 여름 — 반딧불, 짙은 초록 기운 */
.season-summer .season-bit {
  --sz: 16px;
  background-image: radial-gradient(circle, rgba(226,250,186,.9) 0%, rgba(150,215,120,.42) 40%, rgba(150,215,120,0) 72%);
  /* 몽환적으로: 초점을 풀어 번지게 + 아주 천천히(3.6배) 떠오른다. */
  filter: blur(1.1px);
  animation: season-float calc(var(--d, 12s) * 3.6) linear var(--delay, 0s) infinite,
             season-blink var(--bd, 9s) ease-in-out var(--bdelay, 0s) infinite;
  will-change: transform, opacity;
}

/* 가을 — 낙엽, 노을빛 호박색 */
.season-autumn .season-bit {
  --sz: 20px; --spin: 260deg; opacity: .72;
  /* 단풍잎: 다섯 갈래 잎 + 잎맥 + 잎자루 */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M59.3 33.6c-1.1-.5-1.1-1.4-1-2.1l2.6-9.1l-8.7 1.8c-.3 0-1.1 0-1.6-1.7l-.8-3.1l-6 7s-3.9 4.3-2.7-2.2l2.6-13.9l-4.8 2.4c-.3.1-1.2.2-2.5-2.2L32 2l-4.4 8.4c-1.3 2.4-2.2 2.3-2.5 2.2l-4.8-2.4l2.6 13.9c1.2 6.5-2.7 2.2-2.7 2.2l-6-7l-.8 3.1c-.4 1.7-1.3 1.8-1.6 1.7l-8.7-1.8l2.6 9.1c.1.7.1 1.6-1 2.1L2 34.8s10 8 13.2 10.7c.6.5 2.2 2.1 1.6 3.7l-1.2 3.6l13.6-2.1c.7-.1 4.6-.1 5.3 0l13.6 2.1l-1.2-3.6c-.5-1.7 1-3.2 1.6-3.7C52 42.8 62 34.8 62 34.8z' fill='%23d9803f'/%3E%3Cpath d='M30.6 45.6h2.8v14.6h-2.8z' fill='%23b0632c'/%3E%3C/svg%3E");
  animation: season-fall calc(var(--d, 12s) * .65) linear var(--delay, 0s) infinite,
             season-sway 4s ease-in-out var(--delay, 0s) infinite;
}

@keyframes season-fall {
  from { transform: translate3d(0, -12vh, 0) rotate(0deg); }
  to { transform: translate3d(var(--drift, 0px), 112vh, 0) rotate(var(--spin, 320deg)); }
}
@keyframes season-sway {
  0%, 100% { margin-left: 0; }
  30% { margin-left: calc(var(--drift, 0px) * 0.9); }
  70% { margin-left: calc(var(--drift, 0px) * -0.9); }
}
@keyframes season-float {
  0% { transform: translate3d(0, 108vh, 0); }
  55% { transform: translate3d(var(--drift, 0px), 52vh, 0); }
  100% { transform: translate3d(0, -14vh, 0); }
}
/* 반딧불 깜빡임 — 어둡게 있다가 짧게 두 번 빛나고 다시 어두워진다. */
@keyframes season-blink {
  /* 오래 밝게 머물다가, 짧게 빠르게 꺼지고 금방 다시 켜진다. */
  0%, 6% { opacity: .08; }
  12% { opacity: 1; }
  78% { opacity: .92; }
  86% { opacity: .08; }
  100% { opacity: .08; }
}
/* 계절 색온도 — 글자 위가 아니라 페이지 배경에만 깔린다. */
body {
  background-image: var(--season-wash, none);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}
html[data-season="winter"] body {
  --season-wash: radial-gradient(130% 65% at 50% 100%, rgba(150,190,255,.18), transparent 72%),
                 radial-gradient(120% 60% at 50% 0%, rgba(120,165,240,.14), transparent 70%);
}
html[data-season="spring"] body {
  --season-wash: radial-gradient(120% 70% at 15% 0%, rgba(255,185,200,.18), transparent 70%),
                 radial-gradient(120% 60% at 85% 100%, rgba(255,215,225,.12), transparent 70%);
}
html[data-season="summer"] body {
  --season-wash: radial-gradient(120% 80% at 80% 0%, rgba(130,200,140,.16), transparent 70%),
                 radial-gradient(120% 60% at 10% 100%, rgba(90,160,110,.14), transparent 70%);
}
html[data-season="autumn"] body {
  --season-wash: radial-gradient(130% 65% at 50% 100%, rgba(216,130,55,.2), transparent 72%),
                 radial-gradient(120% 55% at 20% 0%, rgba(180,90,40,.12), transparent 70%);
}

@media (prefers-reduced-motion: reduce) { .season-layer { display: none; } }

/* ---------- 운영자: 회원 목록 ---------- */
.member-table { padding-bottom: 96px; }
.member-head, .member-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 84px 132px;
  gap: 12px; align-items: center;
  padding: 12px 10px;
}
.member-head { border-bottom: 1px solid var(--line); font-family: var(--sans); font-size: 8px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.member-row { border-bottom: 1px solid var(--line-soft); font-size: 12px; }
.member-name { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-mail { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-row .invite-actions { justify-content: flex-end; }
@media (max-width: 820px) {
  .member-head, .member-row { grid-template-columns: minmax(0, 1fr) 132px; }
  .member-head span:nth-child(2), .member-head span:nth-child(3),
  .member-mail, .member-role { display: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1120px) {
  .wrap { width: min(100% - 56px, 1280px); }
  .hero-inner { grid-template-columns: 1fr 250px; gap: 48px; }
  .story-grid, .mark-grid { gap: 64px; }
  .footer-inner { gap: 40px; }
  .archive-layout { grid-template-columns: 232px minmax(0, 1fr); gap: 32px; }
  .table-head, .post-row { grid-template-columns: 46px minmax(0, 1fr) 100px 88px 48px 40px 16px; }
  .guestbook-grid, .admin-grid { gap: 34px; grid-template-columns: 320px minmax(0, 1fr); }
}

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; padding-bottom: 44px; }
  .hero-aside { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 22px 0; }
  .hstat:nth-child(3) { border-left: 0; padding-left: 0; }
  .story-grid { grid-template-columns: 1fr; gap: 24px; }
  .story-index { position: absolute; right: 0; bottom: -20px; margin: 0; }
  .story-body { padding-top: 0; }
  .mark-grid { grid-template-columns: 1fr; gap: 40px; }
  .mark-visual { min-height: 360px; }
  .mark-caption { right: 10%; bottom: 7px; }
  .feed-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-credit { grid-column: 1 / -1; text-align: left; }
  .archive-layout { grid-template-columns: 1fr; }
  .board-dir { position: static; max-height: none; border-right: 0; padding-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
  .board-dir .dir-group ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 18px; }
  .page-title-row { align-items: flex-start; flex-direction: column; gap: 20px; }
  .page-numbers { display: none; }
  .guestbook-grid, .admin-grid { grid-template-columns: 1fr; }
  .gb-form-card { position: static; }
  .photo-bar { flex-direction: column; align-items: flex-start; gap: 16px; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-panel { min-height: 100svh; padding: 40px 24px; }
}

@media (max-width: 820px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 28px 22px; background: rgba(10, 11, 13, .98); border-bottom: 1px solid var(--line); }
  body.menu-open .nav { display: flex; }
  .nav > a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 12px; }
  .nav-user { margin-top: 12px; border: 0; padding: 10px 0; }
  .nav-logout { padding: 12px 0; font-size: 10px; text-align: left; }
  .menu-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; }
  .menu-btn span:not(.sr-only) { display: block; width: 16px; height: 1px; background: var(--ink); }

  .table-head, .post-row { grid-template-columns: 36px minmax(0, 1fr) 40px 18px; }
  .table-head span:nth-child(3), .table-head span:nth-child(4), .table-head span:nth-child(5) { display: none; }
  .p-author-col, .p-date-col, .p-views-col { display: none; }
  .p-title { white-space: normal; font-size: 14px; }
  .p-cc-inline { display: inline; }
  .p-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 5px; font-size: 8.5px; color: var(--muted-2); }
  .p-arrow { display: none; }
  .post-row { padding: 15px 8px; gap: 8px; }

  .gallery-head { grid-template-columns: 44px minmax(0, 1fr) 84px; }
  .gallery-head span:nth-child(4), .gallery-head span:nth-child(6) { display: none; }
  .gallery-row { grid-template-columns: 44px minmax(0, 1fr) 84px; padding: 15px 8px; gap: 8px; }
  .g-title { white-space: normal; font-size: 14px; }
  .g-author, .g-views, .g-arrow { display: none; }
  .invite-head, .invite-row { grid-template-columns: minmax(0, 1fr) 84px 84px; }
  .invite-head span:nth-child(3), .invite-row .invite-created { display: none; }
  .photo-stage { padding: 10px; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { height: 70px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-text strong { font-size: 15px; }

  .hero { min-height: 94svh; padding-top: 110px; }
  .hero-title { font-size: clamp(3.3rem, 16vw, 5rem); letter-spacing: -.08em; }
  .hero-title .outline { -webkit-text-stroke-width: 1.4px; }
  .hero-lead { font-size: 13.5px; line-height: 1.85; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn { padding: 13px 22px; font-size: 12px; }
  .hero-stats { padding: 20px 0; }
  .hstat-num { font-size: 26px; }
  .hstat-label { font-size: 8px; }
  .ticker-track { padding: 12px 0; gap: 24px; }

  .section { padding: 80px 0; }
  .section-top { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 34px; }
  .section-top h2, .story-head h2, .mark-copy h2 { font-size: 2.25rem; }
  .story-index { font-size: 92px; }
  .story-body .story-lead { font-size: 17px; }
  .story-cols { grid-template-columns: 1fr; gap: 16px; }
  .story-body blockquote p { font-size: 15px; }
  .story-body blockquote { margin: 28px 0; }

  .feed-cards { grid-template-columns: 1fr; }
  .feed { min-height: 180px; padding: 20px; }
  .feed-title { font-size: 16.5px; }

  .mark-visual { min-height: 290px; }
  .mark-halo { width: 300px; height: 300px; }
  .mark-visual img { width: 214px; height: 214px; }
  .mark-caption { display: none; }
  .swatches { gap: 18px; }

  .photo-band { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 158px; gap: 8px; }
  .photo-card:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .photo-card:nth-child(2), .photo-card:nth-child(3), .photo-card:nth-child(4), .photo-card:nth-child(5) { grid-column: span 1; }
  .photo-card figcaption { padding: 28px 9px 9px; }
  .photo-card figcaption strong { font-size: 10.5px; }
  .photo-card figcaption span { display: none; }

  .cta-line { flex-direction: column; align-items: flex-start; gap: 28px; }
  .cta-line h2 { font-size: 2.9rem; }
  .round-cta { width: 120px; height: 120px; padding: 20px; }
  .round-cta span { font-size: 15px; }
  .round-cta b { right: 20px; bottom: 16px; font-size: 20px; }
  .board-ticker { margin-top: 36px; }

  .footer-inner { grid-template-columns: 1fr; gap: 34px; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
  .footer-credit { grid-column: auto; }

  .page-hero { padding: 34px 0 34px; }
  .page-title-row { margin-top: 34px; }
  .page-title-row h1 { font-size: 2.7rem; }
  .page-ghost { font-size: 150px; bottom: -28px; }
  .page-lead { font-size: 12px; }

  .archive-layout { padding: 26px 0 80px; }
  .board-tools { gap: 12px; }
  .search { width: 100%; }
  .list-meta { margin-left: 0; }
  .pager { gap: 4px; }
  .pager a, .pager button, .pager-edge { min-width: 32px; height: 32px; font-size: 8px; padding: 0 8px; }

  .reading { padding: 26px 0 80px; }
  .post-body { font-size: 14px; line-height: 1.95; }

  .photo-view { padding: 20px 0 70px; }
  /* 모바일은 사진을 화면 폭에 꽉 차게 키운다. */
  .photo-stage {
    width: auto;
    margin-inline: -20px;
    padding: 0;
    min-height: 0;
    border-left: 0;
    border-right: 0;
  }
  .photo-stage img, .photo-extra img { height: 60vh; height: 60svh; }
  .post-cover { width: auto; margin-inline: -20px; border-left: 0; border-right: 0; }
  .post-cover img { max-height: none; }
  .photo-foot { flex-direction: column; align-items: flex-start; gap: 10px; }

  .gb-form-card, .admin-card { padding: 18px; }
  .guestbook-grid, .admin-grid { padding: 26px 0 80px; }
  .invite-head, .invite-row { grid-template-columns: minmax(0, 1fr) 88px; }
  .invite-head span:nth-child(2), .invite-row .invite-expires { display: none; }
  .auth-copy h1 { font-size: 2.6rem; }
  .auth-card h2 { font-size: 25px; }
}
