:root {
  color-scheme: dark;
  --ground: #171a19;
  --ink: #f4f1e8;
  --muted: #bfc6bb;
  --edge: #3c443d;
  --action: #edc493;
  --paper: #f0e4cd;
  --paper-ink: #221a14;
  --paper-reading: #fbf0dc;
  --paper-note: #473224;
  --paper-texture: url("/img/crimeset-paper.webp");
  font-family: "Pretendard Variable", Pretendard, system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--ground); color: var(--ink); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:is(a, button, input):focus-visible { outline: 3px solid var(--action); outline-offset: 4px; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
figcaption { margin-top: 7px; color: var(--muted); font-size: .875rem; }
.photo-print {
  position: relative;
  padding: clamp(7px,1.2vw,13px);
  color: var(--paper-ink);
  background: var(--paper-texture) center / cover var(--paper);
  box-shadow: 2px 4px 0 #775e42, 0 9px 24px #0007;
}
.photo-print figcaption { color: var(--paper-ink); margin-inline: 3px; font-weight: 650; }
.photo-print > .print-clip, .photo-print > .print-pin {
  position: absolute;
  z-index: 1;
  height: auto;
  filter: drop-shadow(1px 3px 2px #170c086b);
  pointer-events: none;
}
.photo-print > .print-clip { width: clamp(34px,4vw,51px); top: -17px; right: 27px; }
.photo-print > .print-pin { width: clamp(20px,2.1vw,27px); top: -8px; left: 36px; }
.wrap { width: min(1160px, calc(100% - 76px)); margin-inline: auto; }

.site-header { border-bottom: 1px solid var(--edge); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 62px; }
.brand { font-size: 1.25rem; font-weight: 850; letter-spacing: -.045em; }
.header-inner nav { display: flex; align-items: center; gap: clamp(14px,3vw,30px); font-size: .94rem; font-weight: 680; }
.header-inner nav a { min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
:is(.header-inner, footer) a:hover { color: var(--action); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 16px; border: 1px solid transparent; border-radius: 4px; font-weight: 780; }
.primary { background: var(--action); color: #251b12; }
.primary:hover:not(:disabled) { background: #f6d6ae; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; text-decoration: underline; text-underline-offset: 5px; color: var(--ink); font-weight: 680; }
.text-link:hover { color: #ffdbab; }

@media (max-width: 640px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 55px; }
  .header-inner nav { font-size: .89rem; }
}