:root {
  --bg: #0d0d0d;
  --paper: #f2f2f2;
  --ink: #111;
  --muted: #666;
  --red: #e63946;
  --line: #2a2a2a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: "Malgun Gothic", "Noto Sans KR", sans-serif;
  line-height: 1.7;
}

.top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
}

.film {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--red);
  font-weight: 800;
}

.logo {
  margin: 0;
  font-size: clamp(18px, 3vw, 26px);
  text-align: center;
}

.logo a {
  color: var(--paper);
  text-decoration: none;
}

nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  color: #aaa;
  text-decoration: none;
  font-size: 13px;
  padding: 4px 8px;
  border: 1px solid transparent;
}

nav a.on,
nav a:hover {
  color: var(--paper);
  border-color: var(--red);
}

main {
  width: min(1100px, 94vw);
  margin: 0 auto;
}

.frame {
  margin: 20px 0 0;
  border: 8px solid #222;
  border-bottom: 24px solid #222;
  background: #111;
  position: relative;
}

.frame::before,
.frame::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 32px;
  width: 6px;
  background: repeating-linear-gradient(#333 0 4px, #111 4px 8px);
}

.frame::before { left: -14px; }
.frame::after { right: -14px; }

.frame img {
  width: 100%;
  display: block;
  max-height: 520px;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.05);
}

.frame figcaption {
  position: absolute;
  left: 12px;
  bottom: 6px;
  font-size: 12px;
  color: #ccc;
  letter-spacing: 0.06em;
}

.copy {
  background: var(--paper);
  color: var(--ink);
  margin: 24px 0;
  padding: 22px clamp(18px, 4vw, 32px);
  border-left: 6px solid var(--red);
}

.copy h2 { margin-top: 0; }

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.chip {
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 6px 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.chip.on {
  background: var(--ink);
  color: var(--paper);
}

.copy input[type="range"] {
  width: 100%;
  accent-color: var(--red);
}

.copy output {
  display: block;
  margin-top: 8px;
  font-weight: 700;
  color: var(--red);
}

.checks {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 8px;
}

.checks label {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid #ddd;
  padding: 8px 10px;
}

.dim { color: var(--muted); font-size: 14px; }
.copy a { color: var(--red); font-weight: 700; }

footer {
  text-align: center;
  color: #777;
  font-size: 13px;
  padding: 20px 16px 32px;
}

.reveal {
  opacity: 0;
  transform: scale(0.98);
  transition: 0.45s ease;
}
.reveal.show {
  opacity: 1;
  transform: none;
}

@media (max-width: 720px) {
  .top { grid-template-columns: 1fr; text-align: center; }
  nav { justify-content: center; }
  .frame::before,
  .frame::after { display: none; }
}
