/* Hallmark · Map / Diagram · Park and ink · P5 H5 E4 S5 R5 V4 */
@font-face { font-family: Pretendard; src: url('./assets/PretendardVariable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  --paper: #f7f6ef;
  --white: #fffefa;
  --ink: #202e25;
  --muted: #4d5c50;
  --line: #d8dbd0;
  --forest: #214c36;
  --deep: #173b29;
  --accent: #93b07c;
  --soft: #e5ecdd;
  --map: #e9e7dd;
  --park: #cbd9bc;
  --road: #fffdf3;
  --road-edge: #c9c9b8;
  --district: #dce0d0;
  --water: #c4d9dd;
  --map-label-ink: #52645a;
  --shadow: #283a2b26;
  --veil: #14291e80;
  --error: #992e29;
  --font: Pretendard, system-ui, sans-serif;
  --radius: 1.1rem;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
body { color: var(--ink); background: var(--paper); font-family: var(--font); line-height: 1.5; word-break: keep-all; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button:focus-visible, input:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; }
h1, h2, h3, p, ul { margin: 0; }
[hidden] { display: none !important; }
.wrap { width: min(90rem, calc(100% - 5rem)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; z-index: 5; top: .5rem; left: .5rem; background: var(--white); color: var(--deep); padding: .75rem; transform: translateY(-160%); }
.skip:focus { transform: none; }
.mast { border-bottom: 1px solid var(--line); }
.mast-inner { min-height: 4.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { display: inline-flex; gap: .65rem; align-items: center; font-size: 1rem; font-weight: 800; }
.brand-mark { display: inline-block; width: 1.15rem; height: 1.15rem; border: .34rem solid var(--forest); border-radius: 50% 50% 50% 0; rotate: -45deg; }
.demo-label { color: var(--muted); font-size: .85rem; }
.intro { display: flex; justify-content: space-between; align-items: end; gap: 1.2rem; margin-block: 2rem 1.5rem; }
h1 { font-size: clamp(2.1rem, 4vw, 4rem); letter-spacing: -.067em; font-weight: 780; line-height: 1.13; overflow-wrap: anywhere; }
.intro p { margin-top: .6rem; color: var(--muted); }
.switch { display: flex; align-self: center; gap: .125rem; padding: .2rem; border: 1px solid var(--line); background: var(--white); border-radius: 3rem; }
.switch button { min-height: 2.9rem; padding: .5rem .9rem; border: 0; border-radius: 2rem; background: transparent; color: var(--forest); font-weight: 710; white-space: nowrap; }
.switch button[aria-pressed="true"] { background: var(--forest); color: var(--white); }
.switch span { margin-left: .2rem; }
.scene { display: grid; grid-template-columns: minmax(0, 2.08fr) minmax(0, 1fr); align-items: stretch; gap: 1rem; }
.map { position: relative; align-self: start; min-height: 36rem; isolation: isolate; overflow: clip; border: 1px solid var(--line); border-radius: var(--radius); background: var(--map); }
canvas, .pins { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-top { position: relative; z-index: 1; padding: 1rem; pointer-events: none; }
.map-label, .legend { display: flex; width: max-content; max-width: calc(100% - 2rem); align-items: center; gap: .55rem; padding: .55rem .72rem; border-radius: .6rem; background: var(--white); box-shadow: 0 3px 12px var(--shadow); color: var(--deep); font-size: .82rem; font-weight: 650; }
.map-dot, .legend span { flex: none; width: .62rem; height: .62rem; border-radius: 50%; background: var(--forest); }
.legend { position: absolute; bottom: 1rem; left: 1rem; }
.legend span { background: var(--accent); box-shadow: 0 0 0 1px var(--forest); }
.pin { position: absolute; transform: translate(-50%, -55%); padding: .15rem .6rem .15rem .23rem; min-height: 3rem; display: flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 770; color: var(--deep); background: var(--white); border: 1px solid var(--forest); border-radius: 3rem; box-shadow: 0 5px 12px var(--shadow); white-space: nowrap; transition: box-shadow .16s ease, background .16s ease; }
.pin img { width: 2.35rem; height: 2.35rem; border-radius: 50%; object-fit: cover; }
.pin:hover { box-shadow: 0 6px 17px var(--shadow); }
.pin[aria-pressed="true"] { background: var(--forest); color: var(--white); z-index: 2; }
.pin.saved::after { content: ''; display: block; width: .54rem; height: .54rem; border-radius: 50%; background: var(--accent); }
.empty { position: absolute; inset: 47% auto auto 50%; transform: translate(-50%,-50%); width: min(15rem, 85%); padding: .85rem; text-align: center; color: var(--deep); background: var(--white); border-radius: .7rem; box-shadow: 0 5px 14px var(--shadow); }
.cafe { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: clip; background: var(--white); }
.cover { height: clamp(12.25rem, 22vw, 19.5rem); background: var(--soft); }
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }
.cafe-body { padding: 1.15rem 1.35rem 1.3rem; }
.area { color: var(--forest); font-size: .9rem; font-weight: 670; }
h2 { font-size: 1.65rem; letter-spacing: -.04em; line-height: 1.25; overflow-wrap: anywhere; }
.cafe h2 { margin-top: .18rem; }
.cafe-note { color: var(--muted); margin-top: .36rem; }
.actions, .dialog-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .95rem; }
.primary, .secondary { min-height: 3rem; padding: .55rem .84rem; border: 1px solid var(--forest); border-radius: .65rem; font-weight: 720; white-space: nowrap; }
.primary { color: var(--white); background: var(--forest); }
.primary:hover { background: var(--deep); }
.secondary { color: var(--forest); background: var(--white); }
.secondary:hover, .secondary[aria-pressed="true"] { background: var(--soft); }
.visits, .discussion { border-top: 1px solid var(--line); margin-top: .95rem; padding-top: .75rem; }
.visits h3 { font-size: .975rem; }
.hint { color: var(--muted); font-size: .91rem; margin-top: .28rem; }
.visit-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: .4rem 0 0; }
.visit-list:empty { padding: 0; }
.visit-list img { display: block; width: 3.5rem; height: 3.5rem; border-radius: .5rem; object-fit: cover; }
summary { cursor: pointer; color: var(--forest); font-weight: 730; min-height: 2rem; }
#comment-list { list-style: none; padding: 0; }
#comment-list li { padding-block: .45rem; overflow-wrap: anywhere; }
.comment-form { display: flex; gap: .4rem; }
.comment-form input { width: 100%; min-width: 0; border: 1px solid var(--forest); border-radius: .6rem; padding: .5rem; color: var(--ink); background: var(--white); }
.scope { margin-block: 1rem 1.8rem; color: var(--muted); font-size: .88rem; }
dialog { width: min(31rem, calc(100% - 1.5rem)); max-height: 90dvh; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; color: var(--ink); background: var(--white); box-shadow: 0 1rem 3rem var(--shadow); }
dialog::backdrop { background: var(--veil); }
dialog p { margin-block: .35rem .8rem; color: var(--muted); }
dialog label { font-weight: 720; display: block; }
dialog label span { color: var(--muted); font-size: .85rem; font-weight: 500; }
input[type=file] { max-width: 100%; min-height: 3rem; padding: .35rem 0; }
input[type=file]::file-selector-button { min-height: 2.5rem; background: var(--soft); border: 1px solid var(--line); border-radius: .55rem; font: inherit; padding-inline: .6rem; margin-right: .4rem; color: var(--deep); cursor: pointer; }
#photo-error { color: var(--error); }
.dialog-actions { justify-content: flex-end; }
@media (max-width: 65rem) {
  .wrap { width: calc(100% - 2.5rem); }
  .scene { grid-template-columns: minmax(0, 1.48fr) minmax(0, 1fr); }
  .map { min-height: 33rem; }
  .pin { padding-right: .48rem; }
}
@media (max-width: 46rem) {
  .wrap { width: calc(100% - 1.5rem); }
  .mast-inner { min-height: 3.5rem; }
  .intro { flex-direction: column; align-items: start; gap: .8rem; margin-top: 1.25rem; }
  .switch { align-self: start; }
  .scene { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .map { min-height: 22rem; }
  .cover { height: clamp(13.5rem, 53vw, 19rem); }
  .cafe-body { padding: 1.05rem; }
}
@media (max-width: 27rem) {
  .pin { width: 3rem; justify-content: center; padding: .2rem; }
  .pin .pin-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .pin.saved::after { position: absolute; top: .08rem; right: .12rem; box-shadow: 0 0 0 1px var(--forest); }
  .map-top { padding: .75rem; }
  .legend { bottom: .75rem; left: .75rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
