@font-face{font-family:'Space Grotesk';src:url('./assets/space-grotesk.ttf') format('truetype');font-display:swap}
@font-face{font-family:'DM Sans';src:url('./assets/dm-sans.ttf') format('truetype');font-display:swap}
@font-face{font-family:'DM Serif';src:url('./assets/dm-serif.ttf') format('truetype');font-display:swap}
@font-face{font-family:'Literata';src:url('./assets/literata.ttf') format('truetype');font-display:swap}
@font-face{font-family:'IBM Plex Mono';src:url('./assets/ibm-plex-mono.ttf') format('truetype');font-display:swap}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:#F6F1E7;
  color:#11120F;
  font-family:'DM Sans',system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit}
button{font:inherit}
:root{
  --paper:#F6F1E7;
  --paper2:#EDE7D6;
  --paper3:#E8E0CB;
  --ink:#11120F;
  --muted:#6B6258;
  --line:rgba(17,18,15,0.12);
  --c-culture:#E85D26;
  --c-food:#C83B2A;
  --c-movement:#2A7A9B;
  --c-people:#C99A14;
  --c-places:#2E7D52;
}
/* focus */
:focus-visible{outline:2px solid #11120F;outline-offset:2px}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* top color strip */
.color-strip{height:6px;display:flex}
.color-strip span{flex:1}
.color-strip span:nth-child(1){background:var(--c-culture)}
.color-strip span:nth-child(2){background:var(--c-food)}
.color-strip span:nth-child(3){background:var(--c-movement)}
.color-strip span:nth-child(4){background:var(--c-people)}
.color-strip span:nth-child(5){background:var(--c-places)}

/* masthead */
.masthead{
  background:#FFFBF0;
  border-bottom:1.5px solid #11120F;
  position:sticky;top:0;z-index:10;
}
.masthead-inner{
  max-width:1340px;margin:0 auto;
  padding:14px 20px 10px;
  display:flex;align-items:flex-end;justify-content:space-between;gap:16px;
}
.brand{ display:flex;align-items:baseline;gap:14px}
.brand-mark{
  font-family:'Space Grotesk',sans-serif;
  font-weight:700;letter-spacing:-0.04em;line-height:0.9;
  font-size:44px;
}
.brand-mark em{font-style:normal;background:#11120F;color:#FFFBF0;padding:2px 8px 3px;border-radius:4px;margin-left:2px;font-size:0.95em}
.brand-tag{
  font-family:'IBM Plex Mono',monospace;
  font-size:11px;letter-spacing:0.14em;text-transform:uppercase;color:var(--muted);
  border-left:1.5px solid var(--line);padding-left:14px;line-height:1.4;
  max-width:160px;
}
.masthead-meta{
  text-align:right;
  font-family:'IBM Plex Mono',monospace;
  font-size:11px;letter-spacing:0.08em;text-transform:uppercase;line-height:1.6;color:var(--muted);
}
.masthead-meta strong{color:#11120F;font-weight:700}
.issue-badge{display:inline-block;border:1.5px solid #11120F;border-radius:100px;padding:2px 10px;font-size:11px;background:#FFFBF0}
@media(max-width:850px){
  .masthead-inner{flex-direction:column;align-items:flex-start}
  .masthead-meta{text-align:left;display:flex;gap:12px;flex-wrap:wrap}
  .brand-mark{font-size:38px}
}

/* intro bar */
.intro-bar{
  max-width:1340px;margin:0 auto;
  padding:18px 20px 8px;
  display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px;
}
.intro-bar h1{
  font-family:'Space Grotesk',sans-serif;
  font-size:34px;line-height:0.95;letter-spacing:-0.04em;margin:0;font-weight:700;
}
.intro-bar h1 i{font-family:'DM Serif',serif;font-style:italic;font-weight:400;letter-spacing:-0.02em}
.intro-bar p{
  max-width:420px;font-size:14.5px;line-height:1.5;color:var(--muted);margin:6px 0 0;
}
.legend{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:10px}
.legend-item{display:flex;align-items:center;gap:6px;font-family:'IBM Plex Mono',monospace;font-size:11px;letter-spacing:0.06em;text-transform:uppercase}
.legend-dot{width:10px;height:10px;border-radius:50%}
.legend-item.places .legend-dot{background:var(--c-places)}
.legend-item.movement .legend-dot{background:var(--c-movement)}
.legend-item.people .legend-dot{background:var(--c-people)}
.legend-item.food .legend-dot{background:var(--c-food)}
.legend-item.culture .legend-dot{background:var(--c-culture)}

/* map */
.map-wrap{
  max-width:1340px;margin:12px auto 0;padding:0 20px;
}
.map-card{
  background:#FFFBF0;
  border:1.5px solid #11120F;
  border-radius:18px;
  overflow:hidden;
  position:relative;
  box-shadow:4px 4px 0 #11120F;
}
.map-header{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:10px 14px;
  border-bottom:1.5px solid #11120F;
  background:var(--paper2);
  font-family:'IBM Plex Mono',monospace;font-size:11px;letter-spacing:0.12em;text-transform:uppercase;
}
.map-header-left{display:flex;align-items:center;gap:10px}
.map-dot{width:8px;height:8px;border-radius:50%;background:#11120F;animation:pulse 2s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:0.4}}
.map-scroll{overflow-x:auto;overflow-y:hidden;background:radial-gradient(circle at 1px 1px, rgba(17,18,15,0.08) 1px, transparent 0);background-size:18px 18px}
.map-svg{width:1000px;height:420px;display:block;min-width:100%}
@media(max-width:700px){.map-svg{width:860px;height:380px}}
.station{cursor:pointer}
.station-hit{fill:transparent;stroke:transparent;stroke-width:18}
.station-outer{fill:white;stroke:#11120F;stroke-width:1.7;transition:transform .2s}
.station-inner{transition:fill .2s}
.station-label{font-family:'DM Sans',sans-serif;font-weight:700;font-size:11px;letter-spacing:0.02em;paint-order:stroke;stroke:#FFFBF0;stroke-width:4px;stroke-linejoin:round}
.station-sub{font-family:'IBM Plex Mono',monospace;font-size:8px;letter-spacing:0.08em;text-transform:uppercase;fill:#6B6258}
.station:hover .station-outer{transform:scale(1.1)}
.station.active .station-outer{stroke-width:2.5;filter:drop-shadow(0 2px 6px rgba(0,0,0,0.2))}
.station.dimmed{opacity:0.22;filter:grayscale(0.4)}
.line-path{fill:none;stroke-linecap:round;stroke-linejoin:round}
.line-bg{fill:none;stroke:#11120F;stroke-width:10;opacity:0.06;stroke-linecap:round}
.map-footer{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:8px 14px;border-top:1.5px solid #11120F;background:#FFFBF0;
  font-family:'IBM Plex Mono',monospace;font-size:10px;letter-spacing:0.08em;text-transform:uppercase;color:var(--muted);flex-wrap:wrap
}
.map-footer strong{color:#11120F}

/* controls */
.controls{
  max-width:1340px;margin:18px auto 0;padding:0 20px;
  display:flex;gap:12px;flex-wrap:wrap;align-items:end;
}
.control-group{display:flex;flex-direction:column;gap:6px;flex:1;min-width:200px}
.control-group label{font-family:'IBM Plex Mono',monospace;font-size:11px;letter-spacing:0.12em;text-transform:uppercase;color:var(--muted)}
.control-field{
  display:flex;align-items:center;gap:8px;
  background:#FFFBF0;border:1.5px solid #11120F;border-radius:12px;padding:10px 12px;
  box-shadow:2px 2px 0 #11120F;
}
.control-field:focus-within{box-shadow:3px 3px 0 #11120F;transform:translate(-1px,-1px)}
.control-field input,.control-field select{
  border:0;outline:0;background:transparent;flex:1;font-size:15px;width:100%;color:#11120F
}
.control-field select{cursor:pointer}
.control-icon{width:18px;height:18px;flex:0 0 18px;opacity:0.7}
.saved-toggle-wrap{display:flex;flex-direction:column;gap:6px}
.saved-toggle{
  border:1.5px solid #11120F;border-radius:100px;padding:11px 16px;background:#FFFBF0;
  font-family:'IBM Plex Mono',monospace;font-size:12px;letter-spacing:0.08em;text-transform:uppercase;
  display:flex;align-items:center;gap:8px;cursor:pointer;box-shadow:2px 2px 0 #11120F;white-space:nowrap;
  transition:all .15s;
}
.saved-toggle[aria-pressed="true"]{background:#11120F;color:#FFFBF0}
.saved-toggle:active{transform:translate(1px,1px);box-shadow:1px 1px 0 #11120F}
.saved-count{background:#E85D26;color:white;border-radius:100px;padding:1px 7px;font-size:11px;font-weight:700}
.saved-toggle[aria-pressed="true"] .saved-count{background:#FFFBF0;color:#11120F}

/* timetable */
.timetable-wrap{max-width:1340px;margin:18px auto 0;padding:0 20px 40px}
.timetable-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:10px 2px;
  border-bottom:1.5px solid #11120F;
  font-family:'IBM Plex Mono',monospace;font-size:11px;letter-spacing:0.1em;text-transform:uppercase;color:var(--muted)
}
.grid{
  display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:16px;
}
@media(max-width:860px){.grid{grid-template-columns:1fr}}
.item{
  background:#FFFBF0;border:1.5px solid #11120F;border-radius:16px;padding:16px 16px 14px;
  display:flex;flex-direction:column;gap:10px;position:relative;overflow:hidden;
  box-shadow:3px 3px 0 #11120F;
  transition:transform .15s, box-shadow .15s;
}
.item:hover{transform:translate(-1px,-1px);box-shadow:4px 4px 0 #11120F}
.item-top{display:flex;align-items:center;justify-content:space-between;gap:10px;font-family:'IBM Plex Mono',monospace;font-size:10.5px;letter-spacing:0.08em;text-transform:uppercase;color:var(--muted)}
.item-line{display:flex;align-items:center;gap:7px}
.item-line-dot{width:10px;height:10px;border-radius:50%;flex:0 0 10px}
.item-line-dot.places{background:var(--c-places)} .item-line-dot.movement{background:var(--c-movement)} .item-line-dot.people{background:var(--c-people)} .item-line-dot.food{background:var(--c-food)} .item-line-dot.culture{background:var(--c-culture)}
.item-title{
  font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:22px;line-height:1.05;letter-spacing:-0.03em;margin:0;
}
.item-summary{font-size:14px;line-height:1.5;color:#3A3935;margin:0}
.item-meta{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--muted);margin-top:2px}
.item-meta img{width:22px;height:22px;border-radius:50%;object-fit:cover;border:1px solid #11120F}
.item-actions{display:flex;align-items:center;gap:8px;margin-top:6px}
.open-btn{
  flex:1;background:#11120F;color:#FFFBF0;border:1.5px solid #11120F;border-radius:100px;padding:10px 14px;
  font-family:'IBM Plex Mono',monospace;font-size:12px;letter-spacing:0.08em;text-transform:uppercase;
  display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;
}
.open-btn:hover{background:#1A1A18}
.open-btn:active{transform:scale(0.98)}
.clip-mark{
  width:36px;height:36px;border-radius:50%;border:1.5px solid #11120F;background:#FFFBF0;display:grid;place-items:center;flex:0 0 36px;
}
.clip-mark.saved{background:#E85D26;color:white;border-color:#E85D26}
.saved-ribbon{
  position:absolute;top:12px;right:12px;background:#11120F;color:#FFFBF0;font-family:'IBM Plex Mono',monospace;font-size:10px;letter-spacing:0.08em;text-transform:uppercase;padding:4px 8px;border-radius:100px;
}

/* empty state */
.empty{
  margin-top:22px;background:#FFFBF0;border:1.5px dashed #11120F;border-radius:16px;padding:30px;text-align:center;
}
.empty h3{font-family:'Space Grotesk',sans-serif;font-size:22px;margin:0}
.empty p{color:var(--muted);margin:8px 0 14px}
.empty button{background:#11120F;color:#FFFBF0;border-radius:100px;border:0;padding:10px 18px;cursor:pointer;font-family:'IBM Plex Mono',monospace;font-size:12px;letter-spacing:0.08em;text-transform:uppercase}

/* detail */
.backdrop{position:fixed;inset:0;background:rgba(17,18,15,0.42);backdrop-filter:blur(2px);z-index:30;display:none}
.backdrop.open{display:block}
.detail-panel{
  position:fixed;top:0;right:0;bottom:0;width:min(640px,100vw);background:#FFFBF0;z-index:31;
  border-left:1.5px solid #11120F;box-shadow:-8px 0 24px rgba(0,0,0,0.12);
  display:flex;flex-direction:column;transform:translateX(100%);transition:transform .32s cubic-bezier(0.16,1,0.3,1);
  max-height:100dvh;
}
.detail-panel.open{transform:translateX(0)}
@media(max-width:640px){.detail-panel{top:auto;bottom:0;right:0;left:0;width:auto;height:min(92dvh, 820px);border-left:0;border-top:1.5px solid #11120F;border-radius:20px 20px 0 0;transform:translateY(100%)}.detail-panel.open{transform:translateY(0)} .backdrop{backdrop-filter:none}}
.detail-head{
  padding:14px 18px;border-bottom:1.5px solid #11120F;display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--paper2);
}
.detail-head-left{display:flex;align-items:center;gap:10px;font-family:'IBM Plex Mono',monospace;font-size:11px;letter-spacing:0.1em;text-transform:uppercase}
.detail-close{width:36px;height:36px;border-radius:50%;border:1.5px solid #11120F;background:#FFFBF0;display:grid;place-items:center;cursor:pointer;flex:0 0 36px}
.detail-body{overflow:auto;padding:22px 22px 30px;flex:1}
.detail-kicker{display:flex;align-items:center;gap:8px;font-family:'IBM Plex Mono',monospace;font-size:11px;letter-spacing:0.1em;text-transform:uppercase;color:var(--muted);margin-bottom:8px}
.detail-title{font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:32px;line-height:0.98;letter-spacing:-0.04em;margin:0}
.detail-by{margin-top:10px;display:flex;align-items:center;gap:10px;font-size:14px;color:var(--muted);flex-wrap:wrap}
.detail-by strong{color:#11120F}
.detail-hero{margin:16px 0;border:1.5px solid #11120F;border-radius:14px;overflow:hidden;background:var(--paper2)}
.detail-hero img{width:100%;height:240px;object-fit:cover;display:block}
.detail-hero-caption{padding:8px 12px;font-family:'IBM Plex Mono',monospace;font-size:10px;letter-spacing:0.08em;text-transform:uppercase;color:var(--muted);display:flex;justify-content:space-between;gap:8px}
.detail-save{margin:14px 0;display:flex;gap:10px}
.save-btn{
  flex:1;border:1.5px solid #11120F;border-radius:100px;padding:12px 16px;display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;
  font-family:'IBM Plex Mono',monospace;font-size:12px;letter-spacing:0.08em;text-transform:uppercase;background:#11120F;color:#FFFBF0;
}
.save-btn[aria-pressed="false"]{background:#FFFBF0;color:#11120F}
.detail-prose{font-family:'Literata',serif;font-size:17px;line-height:1.7;color:#1A1A18}
.detail-prose p{margin:14px 0}
.detail-prose p:first-child::first-letter{font-family:'DM Serif',serif;font-size:2.2em;float:left;line-height:0.9;margin:6px 6px 0 0}
.ticket{margin-top:18px;border:1.5px dashed #11120F;border-radius:12px;padding:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--paper2);font-family:'IBM Plex Mono',monospace;font-size:11px;letter-spacing:0.06em;text-transform:uppercase}
.footer{max-width:1340px;margin:0 auto;padding:20px;border-top:1.5px solid #11120F;display:flex;flex-wrap:wrap;gap:14px;justify-content:space-between;font-family:'IBM Plex Mono',monospace;font-size:11px;letter-spacing:0.06em;text-transform:uppercase;color:var(--muted)}
