/* Hallmark · shape: travel notebook, day-by-day timeline · genre: editorial · theme: custom · job: visit · idea: "card per stop, tap for story, our comments and Google Map" · vibe: "mikan, onsen wood, indigo noren, winter evening"
 * paper: oklch(96% 0.02 85) · accent: oklch(64% 0.16 50) · display: Gowun Batang · body: Pretendard · hero: night photo of Dogo Honkan with title and one action · nav: sticky chip tabs · footer: plain credits · imagery: photographs (Wikimedia Commons, one from the user's Notion) · signature: bottom sheet with story, our comment bubbles and live Google Map
 * axes: warm-paper/serif-display/mikan · posture: cover · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R, phone app so one reveal only (the sheet), no scroll choreography */
/* waive 24b: phone spacing tuned by eye at 390px, Korean line metrics; waive 26b: no disabled controls exist; waive F7: pills used for tags and chips as the app's single tag language */
:root {
  --paper: #f7f2e8;
  --paper-2: #efe7d8;
  --card: #fffdf8;
  --ink: #1f2a3a;
  --ink-2: #4a5466;
  --muted: #7a7f88;
  --line: #e2d8c6;
  --mikan: #e0702a;
  --mikan-deep: #b9551a;
  --mikan-soft: #fbe4d1;
  --doyo: #d45c80;
  --doyo-soft: #fbe3ea;
  --cheol: #3a6aa8;
  --cheol-soft: #e0eaf7;
  --night: #1a2230;
  --night-2: #243044;
  --on-night: #f3ead9;
  --shade: rgba(20, 24, 32, 0.45);
  --shade-strong: rgba(14, 18, 26, 0.72);
  --white: #fffaf3;
  --glass: rgba(255,255,255,0.14);
  --glass-line: rgba(255,255,255,0.22);
  --shade-soft: rgba(14,18,26,0.05);
  --text-shadow: rgba(0,0,0,0.5);
  --btn: #a94b14;
  --btn-hover: #8f3e10;
  --free-ink: #94400e;
  --warn-ink: #a8385c;
  --ok: #3f8a5b;

  --font-body: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-display: "Gowun Batang", "Nanum Myeongjo", serif;

  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  --pad: 20px;
  --maxw: 520px;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; }

:focus-visible { outline: 3px solid var(--mikan); outline-offset: 2px; transition: none; }

/* ---------- cover ---------- */
.cover {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  color: var(--on-night);
  background: var(--night);
  isolation: isolate;
}
.cover img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.cover::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--shade-soft) 30%, var(--shade-strong) 88%);
}
.cover-in { padding: 0 var(--pad) 36px; max-width: var(--maxw); margin: 0 auto; width: 100%; }
.fact.dday {
  display: inline-block; font-size: 14px; padding: 4px 12px; border-radius: 999px;
  background: var(--btn); color: var(--white); font-weight: 600;
}
.cover h1 {
  font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1.15; margin: 0 0 10px;
  overflow-wrap: break-word; min-width: 0; letter-spacing: -0.5px; text-wrap: balance;
}
.cover p { margin: 0 0 22px; font-size: 17px; color: var(--on-night); opacity: 0.92; }
.cover-facts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.fact { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none;
  background: var(--btn); color: var(--white); padding: 13px 20px; border-radius: 999px; font-weight: 600; font-size: 16px;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { background: var(--btn-hover); }
.btn:active { transform: scale(0.97); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.ghost:hover { background: var(--paper-2); }
.btn.small { padding: 9px 14px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- tabs ---------- */
.tabs {
  position: sticky; top: 0; z-index: 20; background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.tabs-in { display: flex; gap: 6px; overflow-x: auto; padding: 10px var(--pad); scrollbar-width: none; max-width: var(--maxw); margin: 0 auto; }
.tabs-in::-webkit-scrollbar { display: none; }
.tab {
  flex: none; text-decoration: none; font-size: 15px; padding: 7px 14px; border-radius: 999px;
  color: var(--ink-2); background: transparent; border: 1px solid transparent;
  transition: background-color .15s ease, color .15s ease;
}
.tab:hover { background: var(--paper-2); }
.tab.on { background: var(--ink); color: var(--paper); }

/* ---------- sections ---------- */
.block { padding: 36px var(--pad) 12px; }
.sec-head h2 {
  font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.25; margin: 0 0 6px;
  overflow-wrap: break-word; min-width: 0; text-wrap: balance;
}
.sec-head p { margin: 0 0 20px; color: var(--ink-2); }
.sub { font-size: 14px; color: var(--muted); }

/* day header photo */
.day-photo { position: relative; border-radius: var(--r-lg); overflow: hidden; margin: 0 0 22px; aspect-ratio: 16 / 10; background: var(--paper-2); }
.day-photo img { width: 100%; height: 100%; object-fit: cover; }
.day-photo .cap {
  position: absolute; left: 14px; bottom: 12px; right: 14px; color: var(--white); font-size: 14px;
  text-shadow: 0 1px 6px var(--text-shadow);
}
.day-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, var(--shade) 100%); pointer-events: none; }
.day-photo .cap { z-index: 1; }
.routes { margin: -8px 0 22px; }
.day-num { font-family: var(--font-display); color: var(--mikan); font-size: 18px; margin-bottom: 2px; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 50px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.stop { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; margin-bottom: 14px; position: relative; }
.stop .time { font-size: 14px; font-weight: 600; color: var(--ink-2); padding-top: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.stop .dot { position: absolute; left: 45px; top: 19px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--mikan); z-index: 1; }
.stop.minor .dot { border-color: var(--muted); width: 10px; height: 10px; left: 46px; }

.card {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0; overflow: hidden;
  transition: transform .15s ease, border-color .15s ease;
}
.card:hover { border-color: var(--mikan); }
.card:active { transform: scale(0.985); }
.card-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 12px 14px; align-items: start; }
.card .thumb { width: 64px; height: 64px; border-radius: var(--r-sm); object-fit: cover; background: var(--paper-2); }
.card h3 { margin: 0 0 2px; font-size: 17px; font-weight: 700; line-height: 1.35; overflow-wrap: break-word; min-width: 0; }
.card .line { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.tag { font-size: 12.5px; padding: 2px 9px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.tag.free { background: var(--mikan-soft); color: var(--free-ink); }
.tag.warn { background: var(--doyo-soft); color: var(--warn-ink); }
.tag.opt { background: var(--cheol-soft); color: var(--cheol); }
.card .more { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--mikan-deep); margin-top: 8px; font-weight: 600; }

.plain { background: transparent; border: 0; padding: 12px 0 0; }
.plain p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* comment bubbles */
.bubbles { display: grid; gap: 6px; padding: 0 14px 12px; }
.bubble { max-width: 88%; font-size: 14px; line-height: 1.45; padding: 7px 11px; border-radius: 14px; overflow-wrap: anywhere; }
.bubble b { font-weight: 700; margin-right: 6px; }
.bubble.doyo { background: var(--doyo-soft); color: var(--ink); justify-self: start; border-bottom-left-radius: 4px; }
.bubble.doyo b { color: var(--doyo); }
.bubble.cheol { background: var(--cheol-soft); color: var(--ink); justify-self: end; border-bottom-right-radius: 4px; }
.bubble.cheol b { color: var(--cheol); }
.bubble .when { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.bubble.new { box-shadow: 0 0 0 2px var(--doyo); }

/* ---------- prep ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; margin-bottom: 14px; }
.panel h3 { margin: 0 0 10px; font-size: 18px; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { border-top: 1px solid var(--line); }
.checks li:first-child { border-top: 0; }
.checks label { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; padding: 10px 0; cursor: pointer; align-items: start; }
.checks input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--mikan); }
.checks input:checked + span { color: var(--muted); text-decoration: line-through; }
.checks .note { display: block; font-size: 13px; color: var(--muted); text-decoration: none; }
.kv { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 8px 12px; margin: 0; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.wx { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; margin: 4px 0 10px; }
.wx div { background: var(--paper); border-radius: var(--r-sm); padding: 10px 4px; }
.wx strong { display: block; font-family: var(--font-display); font-size: 22px; color: var(--ink); }
.wx span { font-size: 13px; color: var(--muted); }
.progress { height: 6px; border-radius: 999px; background: var(--paper-2); overflow: hidden; margin: 4px 0 12px; }
.progress i { display: block; height: 100%; width: 100%; background: var(--mikan); transform-origin: left; transition: transform .3s ease; }

/* ---------- explore ---------- */
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; }
.chip { border: 1px solid var(--line); background: var(--card); padding: 7px 13px; border-radius: 999px; font-size: 14px; cursor: pointer; transition: background-color .15s ease; }
.chip:hover { background: var(--paper-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.badge-new { font-size: 12px; color: var(--mikan-deep); font-weight: 700; margin-left: 6px; }

/* ---------- talk feed ---------- */
.night { background: var(--night); color: var(--on-night); margin-top: 28px; padding-bottom: 24px; }
.night .sec-head p { color: var(--on-night); opacity: 0.75; }
.thread { background: var(--night-2); border-radius: var(--r-md); padding: 12px 0 2px; margin-bottom: 12px; }
.thread .about { padding: 0 14px 8px; font-size: 13px; color: var(--on-night); opacity: 0.7; }
.thread .bubbles { padding-bottom: 12px; }
.thread .bubble { color: var(--ink); }
.thread .bubble .when { color: var(--ink-2); }

/* ---------- map ---------- */
.mapbox { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); aspect-ratio: 3 / 4; }
.mapbox iframe { width: 100%; height: 100%; border: 0; display: block; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

footer { padding: 28px var(--pad) 60px; font-size: 12.5px; color: var(--muted); }
footer p { margin: 0 0 8px; max-width: var(--maxw); margin-inline: auto; }

/* ---------- sheet ---------- */
.scrim { position: fixed; inset: 0; background: var(--shade); opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 40; }
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-width: var(--maxw); margin: 0 auto;
  background: var(--paper); border-radius: 24px 24px 0 0; max-height: 90svh; overflow-y: auto; overscroll-behavior: contain;
  transform: translateY(105%); transition: transform .32s cubic-bezier(.2,.8,.2,1);
}
.sheet.on { transform: translateY(0); }
.sheet .grab { position: relative; display: flex; justify-content: center; padding: 10px 0 6px; background: var(--paper); z-index: 2; }
.sheet .grab span { width: 42px; height: 5px; border-radius: 999px; background: var(--line); }
.sheet .close {
  position: absolute; right: 12px; top: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--paper-2); display: grid; place-items: center; z-index: 3; transition: background-color .15s ease;
}
.sheet .close:hover { background: var(--line); }
.sheet .close svg { width: 18px; height: 18px; }
.sh-photo { aspect-ratio: 16 / 10; background: var(--paper-2); }
.sh-photo img { width: 100%; height: 100%; object-fit: cover; }
.sh-body { padding: 18px var(--pad) 28px; }
.sh-body h2 { font-family: var(--font-display); font-size: 27px; line-height: 1.25; margin: 0 0 2px; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
.sh-body .ja { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.story { font-size: 16px; line-height: 1.75; margin: 14px 0 16px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }
.story h4 { margin: 0 0 6px; font-size: 14px; color: var(--mikan-deep); }
.story p { margin: 0 0 8px; }
.story p:last-child { margin-bottom: 0; }
.tips { margin: 0 0 16px; padding-left: 18px; }
.tips li { margin-bottom: 6px; font-size: 15px; }
.sh-map { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 11; background: var(--paper-2); margin-top: 6px; }
.sh-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.sh-h { font-size: 15px; font-weight: 700; margin: 18px 0 8px; }
.sh-body .bubbles { padding: 0; }
.src { font-size: 12.5px; color: var(--muted); margin-top: 14px; }

@media (min-width: 700px) {
  .cover h1 { font-size: 56px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .tab, .chip, .scrim, .sheet, .progress i, .close { transition: none; }
}
