:root{
  --bg:#0f1011;
  --paper:#fbfaf8;
  --ink:#141516;
  --muted:#6e7176;
  --line:rgba(20,21,22,.10);
  --radius:18px;
  --shadow:0 10px 26px rgba(0,0,0,.08);
  --max:560px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  background: var(--paper);
  color: var(--ink);
  font-family: ui-serif, "Noto Serif KR", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.topbar{
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--max), calc(100vw - 24px));
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  z-index: 50;
  pointer-events: none;
}
.chip{
  pointer-events: auto;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(15,16,17,.35);
  color: #fff;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .2px;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.page{
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 14px;
  padding: 0 12px 26px;
}

.hero{
  position: relative;
  height: 100svh;
  min-height: 640px;
  max-height: 860px;
  width: 100%;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  background: var(--bg);
}
.hero__bg{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  display:block;
}
.hero__shade{
  position:absolute; inset:0;
  background: radial-gradient(1200px 800px at 50% 30%, rgba(0,0,0,.10), rgba(0,0,0,.75));
}
.hero__content{
  position:absolute; inset:0;
  padding: 18px;
  display: grid;
  align-content: end;
  gap: 12px;
  color:#fff;
}
.hero__meta{
  display:flex;
  align-items:center;
  gap:10px;
  opacity:.95;
}
.hero__line{
  height:1px;
  flex:1;
  background: rgba(255,255,255,.35);
}
.hero__date{
  margin:0;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero__names{
  margin:0;
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: .02em;
  font-size: clamp(42px, 7.2vw, 64px);
}
.amp{ font-weight: 400; opacity:.95; }
.hero__place{
  margin:0;
  font-size: 14px;
  letter-spacing: .02em;
  opacity:.92;
}
.hero__cta{ margin-top: 6px; }
.hero__hint{
  margin-top: 14px;
  display:flex; gap:6px;
  opacity:.75;
}
.dot{
  width:5px; height:5px; border-radius:999px;
  background: rgba(255,255,255,.85);
}

.card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.h2{
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.p{
  margin:0;
  line-height: 1.75;
  font-size: 14px;
}
.p--muted{ color: var(--muted); margin-top: 10px; }

.divider{
  height:1px;
  background: var(--line);
  margin: 14px 0;
}

.kv{
  display:grid;
  grid-template-columns: 72px 1fr;
  gap: 10px 12px;
  align-items: start;
}
.kv__k{
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .06em;
}
.kv__v{
  font-size: 14px;
  line-height: 1.55;
}

.actions{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 10px;
}

.btn{
  border: 1px solid rgba(20,21,22,.14);
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}
.btn--ghost{
  background: transparent;
  border-color: rgba(255,255,255,.35);
  color:#fff;
}
.card .btn--ghost{
  border-color: rgba(20,21,22,.14);
  color: var(--ink);
}
.btn--sm{
  padding: 8px 10px;
  min-height: 36px;
  font-size: 13px;
}

.details{
  border: 1px solid rgba(20,21,22,.12);
  border-radius: 16px;
  padding: 12px;
  margin-top: 10px;
  background: rgba(251,250,248,.55);
}
.details summary{
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.details summary::-webkit-details-marker{ display:none; }
.ul{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--ink);
  line-height: 1.7;
  font-size: 14px;
}

.gallery{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.gallery img{
  width:100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(20,21,22,.10);
  cursor: pointer;
  background:#eee;
}

.row{
  display:flex;
  align-items:center;
  gap: 10px;
  justify-content: space-between;
  margin-top: 10px;
}
.row__text{ font-size: 14px; line-height: 1.4; }

.footer{
  display:grid;
  justify-items: center;
  gap: 10px;
  padding-bottom: 10px;
}
.footer__small{
  margin:0;
  font-size: 12px;
  color: var(--muted);
}

/* 모달 */
.modal{
  position: fixed;
  inset:0;
  background: rgba(0,0,0,.78);
  display:none;
  place-items: center;
  padding: 18px;
  z-index: 80;
}
.modal[aria-hidden="false"]{ display:grid; }
.modal__img{
  max-width: min(var(--max), 96vw);
  max-height: 82vh;
  border-radius: 20px;
}
.modal__close{
  position: fixed;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

/* 토스트 */
.toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: rgba(15,16,17,.88);
  color: #fff;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .02em;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 90;
}
.toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

@media (min-width: 720px){
  .page{ padding: 0 14px 28px; }
  .gallery{ grid-template-columns: repeat(3, 1fr); }
}
