:root {
  color-scheme: light;
  --paper: #fcf9f6;
  --ink: #302139;
  --muted: #6e626f;
  --plum: #602d82;
  --lilac: #efe3fa;
  --line: #ede4e8;
  --peach: #fbe9e4;
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #a676c9; outline-offset: 3px; }
svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.top { border-bottom: 1px solid var(--line); background: #fffdfa; }
.top-inner { min-height: 74px; max-width: 1152px; padding: 0 34px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0; min-height: 48px; border: 0; background: none; font-size: 1.4rem; font-weight: 900; color: var(--ink); letter-spacing: -.055em; }
.brand img { border-radius: 14px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.private { display: inline-flex; align-items: center; gap: 7px; background: var(--lilac); color: #57286d; border-radius: 99px; padding: 9px 13px; font-weight: 750; font-size: .86rem; }
.quiet { min-height: 44px; background: none; border: 0; color: var(--muted); font-size: .92rem; font-weight: 700; padding: 6px 5px; white-space: nowrap; }
main { max-width: 1152px; margin: auto; padding: 38px 34px 70px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2rem, 5.6vw, 3.8rem); letter-spacing: -.075em; line-height: 1.11; overflow-wrap: anywhere; }
h2 { font-size: 1.45rem; letter-spacing: -.05em; }
.hero-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.eyebrow { font-size: .96rem; font-weight: 800; color: var(--plum); margin-bottom: 10px; }
.hero-title .greeting { color: var(--muted); margin-top: 11px; line-height: 1.6; }
.switch { display: flex; flex-shrink: 0; padding: 4px; border: 1px solid var(--line); background: #fff; border-radius: 999px; }
.switch button { min-height: 44px; padding: 8px 17px; font-weight: 800; border: 0; border-radius: 999px; color: var(--muted); background: transparent; white-space: nowrap; }
.switch button[aria-pressed="true"] { color: #fff; background: var(--plum); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 10px 0 12px; }
.count, .date { color: var(--muted); font-size: .87rem; font-weight: 650; }
.gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.gallery.featured { grid-template-columns: 1.62fr 1fr; }
.card { border: 1px solid var(--line); border-radius: 24px; background: #fff; overflow: hidden; box-shadow: 0 8px 30px #3d214109; }
.card > button { display: block; width: 100%; text-align: left; height: 100%; color: inherit; background: none; border: 0; padding: 0; }
.card:hover { box-shadow: 0 10px 26px #3d21411a; }
.card > button:focus-visible { outline-offset: -4px; }
.media { position: relative; aspect-ratio: 4 / 3; display: block; background: var(--lilac); overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured .card:first-child { grid-row: span 2; }
.featured .card:first-child button { display: flex; flex-direction: column; }
.featured .card:first-child .media { flex: 1; min-height: 410px; width: 100%; }
.featured .card:first-child .media img { position: absolute; inset: 0; }
.featured .card:not(:first-child) .media { aspect-ratio: 2.3 / 1; }
.video-tag { position: absolute; left: 14px; bottom: 13px; display: flex; gap: 7px; align-items: center; background: #2d193ad9; color: white; border-radius: 999px; padding: 7px 12px; font-size: .82rem; font-weight: 800; }
.video-tag svg { fill: currentColor; stroke: none; }
.card-copy { display: grid; gap: 5px; padding: 15px 18px 17px; width: 100%; }
.caption { font-size: 1.08rem; font-weight: 850; overflow-wrap: anywhere; }
.card-copy .meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-copy .likes { color: #653078; font-weight: 800; font-size: .92rem; }
.month + .month { margin-top: 25px; }
.gate { max-width: 440px; margin: 5vh auto 0; padding: 33px; border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 60px #4a2c4410; }
.gate img { display: block; border-radius: 24px; margin-bottom: 21px; }
.gate h1 { font-size: 2rem; }
.gate p { margin: 13px 0 23px; color: var(--muted); line-height: 1.65; }
form { display: grid; gap: 12px; }
form label { font-weight: 800; }
input { width: 100%; min-height: 53px; padding: 10px 13px; color: var(--ink); background: var(--paper); border: 1px solid #d3c4d8; border-radius: 12px; font-size: 1.08rem; }
.primary { min-height: 52px; border: 0; background: var(--plum); border-radius: 15px; color: #fff; text-decoration: none; font-weight: 850; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; text-align: center; }
.wide { width: 100%; }
.gate .demo { margin-top: 13px; width: 100%; color: var(--plum); border: 1px solid #dfcde7; border-radius: 14px; }
.error { color: #a02747 !important; line-height: 1.5; font-size: .96rem; }
.loading, .empty { padding: 40px 12px; text-align: center; color: var(--muted); }
dialog { color: var(--ink); width: min(720px, calc(100% - 28px)); max-height: calc(100% - 28px); border: 0; border-radius: 24px; padding: 0; background: #fffdfb; box-shadow: 0 20px 80px #25103855; }
dialog::backdrop { background: #281938a6; }
.viewer-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px; gap: 10px; }
.viewer-bar button, .viewer-controls button { min-height: 44px; min-width: 44px; border: 0; border-radius: 13px; color: var(--ink); background: var(--lilac); padding: 8px 12px; font-weight: 800; }
.viewer-media { background: #2e2032; overflow: auto; }
.viewer-media img, .viewer-media video { display: block; width: 100%; max-height: 53vh; object-fit: contain; }
.viewer-media img.zoom { max-height: none; width: 160%; }
.viewer-body { padding: 16px 20px 21px; display: grid; gap: 13px; }
.viewer-body h2 { overflow-wrap: anywhere; }
.viewer-controls { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.viewer-controls .primary { flex: 1; }
.reactions { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 6px; }
.reactions button { display: grid; justify-items: center; gap: 3px; min-height: 58px; padding: 5px 2px; font-weight: 800; font-size: .79rem; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.reactions button[aria-pressed="true"] { background: var(--lilac); border-color: #ad80c8; color: var(--plum); }
.reactions button span { font-size: 1.2rem; }
.toast { position: fixed; left: 50%; bottom: max(18px,env(safe-area-inset-bottom)); z-index: 5; transform: translateX(-50%); background: var(--ink); color: white; border-radius: 15px; padding: 13px 18px; max-width: min(90vw,450px); }
@media (max-width: 650px) {
  main { padding: 27px 18px 55px; }
  .top-inner { min-height: 65px; padding-inline: 17px; }
  .brand { font-size: 1.17rem; gap: 8px; }
  .brand img { width: 36px; height: 36px; border-radius: 11px; }
  .private { padding: 7px 9px; font-size: .74rem; gap: 4px; }
  .top-actions { gap: 6px; }
  .top-actions .quiet { font-size: .77rem; }
  .hero-title { align-items: start; flex-direction: column; gap: 16px; margin-bottom: 18px; }
  .hero-title .greeting { margin-top: 7px; }
  .gallery, .gallery.featured { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .featured .card:first-child { grid-column: span 2; grid-row: auto; }
  .featured .card:first-child .media { min-height: unset; flex: auto; }
  .featured .card:not(:first-child) .media { aspect-ratio: 4 / 3; }
  .card { border-radius: 19px; }
  .card-copy { padding: 11px 12px 13px; }
  .caption { font-size: .94rem; }
  .gate { margin-top: 2vh; padding: 25px; }
  .viewer-body { padding-inline: 13px; }
}
@media (max-width: 365px) {
  .private svg { display: none; }
  .top-inner { padding-inline: 12px; }
}
.legal-links { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.legal-links .quiet { min-height: auto; padding: 7px 0; }
.danger { min-height: 48px; padding: 8px 13px; background: #fff4f5; border: 1px solid #f0cbd3; border-radius: 12px; color: #982348; font-weight: 800; }
.policy { max-width: 700px; margin-inline: auto; line-height: 1.65; }
.policy h1 { font-size: clamp(2rem, 7vw, 3rem); margin-bottom: 20px; }
.policy h2 { margin: 24px 0 8px; }
.policy p + p { margin-top: 14px; }
