/* FilmN 작가 링크 — 앱과 같은 팔레트(단일 라이트 테마, 앱과 동일)
   surface #fff · ink #111 · sub 60% · divider #E5E5EA · subtle #F7F7F8 · brand #E0BD00 · notice #FFF8E1
   필름 목록만 어두운 밀착 인화(contact sheet) — 가장자리 인쇄는 브랜드 옐로. */
:root {
  color-scheme: light;
  --ink: #111111;
  --ink-sub: rgba(17, 17, 17, .62);
  --ink-mute: rgba(17, 17, 17, .45);
  --surface: #ffffff;
  --subtle: #F7F7F8;
  --divider: #E5E5EA;
  --brand: #E0BD00;
  --notice: #FFF8E1;
  --sheet: #161514;
  --sheet-ink: rgba(255, 255, 255, .78);
  --gutter: 16px;
  --cta-h: 150px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 16px/1.6 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
        'Apple SD Gothic Neo', 'Noto Sans KR', 'Segoe UI', sans-serif;
  letter-spacing: -.011em;
  padding-bottom: calc(var(--cta-h) + env(safe-area-inset-bottom));
}
a { color: inherit; }
a:focus-visible, input:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
img { display: block; max-width: 100%; height: auto; }

.top {
  display: flex; align-items: baseline; gap: 8px;
  max-width: 560px; margin: 0 auto; padding: 14px var(--gutter) 12px;
}
.wordmark { font-size: 21px; font-weight: 800; letter-spacing: -.035em; text-decoration: none; }
.wordmark span { color: var(--brand); }
.studio { font-size: 13px; color: var(--ink-sub); font-weight: 500; }

.wrap { max-width: 560px; margin: 0 auto; padding: 0 var(--gutter); }

.hero { margin: 0 calc(-1 * var(--gutter)); aspect-ratio: 16 / 9; background: var(--subtle); overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 592px) { .hero { margin: 0; border-radius: 16px; } }

.who { display: flex; align-items: center; gap: 14px; margin: 20px 0 6px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 1px solid var(--divider); flex: none; }
.who h1 { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
.meta { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-sub); }
.badge { background: var(--subtle); border: 1px solid var(--divider); border-radius: 999px; padding: 1px 10px; color: var(--ink); font-weight: 600; }
.count { font-variant-numeric: tabular-nums; }
.intro { margin: 14px 0 22px; color: var(--ink-sub); font-size: 16px; line-height: 1.7; max-width: 60ch; }
.title { margin: 8px 0 4px; font-size: 26px; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }

/* 밀착 인화 — 필름 가장자리 인쇄(edge print)와 퍼포레이션 */
.sheet { background: var(--sheet); border-radius: 6px; padding: 0 10px; margin: 0 0 28px; }
.edge {
  display: flex; justify-content: space-between; align-items: center; height: 26px;
  font: 600 10px/1 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: .22em;
  color: var(--brand); opacity: .9; position: relative;
}
.edge::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 7px; transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, transparent 0 9px, rgba(255, 255, 255, .09) 9px 17px);
  border-radius: 2px; z-index: 0;
}
.edge span { position: relative; z-index: 1; background: var(--sheet); padding: 0 6px; }
.frames { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 4px 0; }
.frame { margin: 0; }
.frame img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; background: #2a2826; }
.frame figcaption {
  display: flex; gap: 6px; align-items: baseline; padding: 6px 1px 2px;
  font-size: 12px; line-height: 1.3; color: var(--sheet-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.frame .no { font: 600 10px/1 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; color: var(--brand); letter-spacing: .08em; }

/* 보정 전후 비교 */
.compare h2 { font-size: 15px; font-weight: 700; margin: 0 0 10px; }
.compare h2 span { color: var(--ink-sub); font-weight: 500; margin-left: 4px; }
.ba { --pos: 50%; position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--subtle); touch-action: pan-y; }
.ba img { width: 100%; height: 100%; object-fit: cover; }
.ba .before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); pointer-events: none;
}
.ba .lbl {
  position: absolute; top: 12px; font-size: 12px; font-weight: 600; color: #fff;
  background: rgba(17, 17, 17, .55); border-radius: 999px; padding: 2px 10px; pointer-events: none;
}
.ba .l { left: 12px; } .ba .r { right: 12px; }
.ba input[type=range] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none; background: transparent;
}

.lead { margin: 22px 0 6px; font-size: 14px; color: var(--ink-sub); }
.all { margin: 0 0 32px; font-size: 14px; }
.all a { font-weight: 600; text-underline-offset: 3px; }

/* 목록 */
.cards { display: grid; grid-template-columns: 1fr; gap: 18px; margin: 18px 0 32px; }
@media (min-width: 560px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.card img, .card .ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: var(--subtle); margin-bottom: 8px; }
.card .name { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.card .sub { font-size: 13px; color: var(--ink-sub); font-variant-numeric: tabular-nums; }

/* 하단 고정 CTA */
.cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-top: 1px solid var(--divider);
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 8px;
}
.cta > * { width: 100%; max-width: 528px; margin-left: auto; margin-right: auto; }
.btn {
  display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 16px;
  border-radius: 14px; border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink);
  font-size: 16px; font-weight: 700; text-decoration: none; letter-spacing: -.01em; text-align: center;
}
.btn.primary { background: var(--ink); color: #fff; }
.stores { display: flex; gap: 8px; }
.stores .btn { flex: 1; font-size: 14px; min-height: 46px; }
.note { margin: 0; font-size: 13px; color: var(--ink-sub); text-align: center; }
.hint { margin: 0; font-size: 12px; color: var(--ink-mute); text-align: center; }
.inapp { margin: 0; background: var(--notice); border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.5; }
.inapp .ext { font-weight: 700; white-space: nowrap; text-underline-offset: 3px; }
