:root {
  --paper: #f8f7f4;
  --paper-deep: #f0ede8;
  --ink: #1c1917;
  --ink-soft: #2d2a26;
  --muted: #6b6560;
  --line: #e4e0da;
  --accent: #9b5c43;
  --success: #2f694f;
  --success-soft: #e4eee8;
  --coffee: #6f4e37;
  --cafe: #e91e63;
  --bar: #9c27b0;
  --restaurant: #f44336;
  --activity: #2196f3;
  --nature: #4caf50;
  --stay: #009688;
  --market: #ff9800;
  --day-trip: #3f51b5;
  --shopping: #ffc107;
  --display: "Archivo", "Noto Sans KR", sans-serif;
  --body: "Manrope", "Noto Sans KR", sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(28, 25, 23, 0.018) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 7px;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

button, input, select { font: inherit; }

button, a, input, select { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 78%, white);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-180%);
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus { transform: none; }

.site-header {
  min-height: 72px;
  padding: max(15px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 15px max(20px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--ink);
  color: var(--paper);
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: 0.045em;
}

.brand-mark {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(248, 247, 244, 0.52);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.site-header nav,
footer nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 36px);
}

.site-header nav a,
footer nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header nav a:hover,
footer nav a:hover { color: #d9a88f; }

main { overflow: clip; }

.hero {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(68px, 10vw, 132px) 22px clamp(70px, 9vw, 116px);
}

.hero::after {
  content: "지금";
  position: absolute;
  z-index: -1;
  top: 27px;
  right: -0.08em;
  color: rgba(155, 92, 67, 0.075);
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(8rem, 26vw, 22rem);
  font-weight: 700;
  line-height: 1;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 17px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 880px;
  margin-bottom: 34px;
  font-family: var(--display);
  font-size: clamp(3.25rem, 10vw, 8.25rem);
  font-stretch: 88%;
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.87;
}

h1 em {
  color: var(--accent);
  font-style: normal;
  font-stretch: 110%;
  font-weight: 600;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  max-width: 580px;
  margin-bottom: 32px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.hero-meta > div {
  min-height: 92px;
  padding: 19px clamp(12px, 3vw, 25px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--paper);
}

.meta-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-meta time,
.hero-meta strong {
  font-family: var(--display);
  font-size: clamp(1rem, 2.4vw, 1.28rem);
  font-weight: 700;
  line-height: 1.25;
}

.hero-deck {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2.1vw, 1.22rem);
  line-height: 1.72;
}

.guide {
  background: var(--paper-deep);
  border-block: 1px solid var(--line);
  padding: clamp(58px, 8vw, 100px) max(20px, env(safe-area-inset-right)) clamp(72px, 10vw, 126px) max(20px, env(safe-area-inset-left));
}

.guide > * { max-width: 1180px; margin-inline: auto; }

.guide-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 35px;
}

.guide h2 {
  margin-bottom: 0;
  font-family: var(--display);
  font-size: clamp(2.15rem, 5vw, 4.2rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.all-toggle,
.clear-button,
.state-panel button {
  min-height: 46px;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 10px 16px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease;
}

.all-toggle:hover,
.all-toggle[aria-pressed="true"],
.clear-button:hover,
.state-panel button:hover {
  background: var(--ink);
  color: var(--paper);
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(2, minmax(150px, 1fr)) auto;
  align-items: end;
  gap: 12px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.filters label > span,
.category-filter > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.filters input,
.filters select {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-bottom: 1px solid #cfc9c1;
  border-radius: 0;
  padding: 8px 3px;
  background: transparent;
  color: var(--ink);
}

.filters input::placeholder { color: #98918a; }

.category-filter {
  margin-top: 22px;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-chip {
  --category: var(--ink);
  min-height: 44px;
  border: 1px solid color-mix(in srgb, var(--category) 58%, var(--line));
  border-radius: 0;
  padding: 9px 14px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.77rem;
  font-weight: 650;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.category-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 8px;
  background: var(--category);
}

.category-chip:hover { transform: translateY(-1px); }

.category-chip[aria-pressed="true"] {
  background: var(--category);
  color: white;
}

.category-chip[aria-pressed="true"]::before { background: white; }

.result-status {
  min-height: 28px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.state-panel {
  min-height: 210px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: 42px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  text-align: center;
}

.state-panel[hidden] { display: none; }

.state-panel p { margin: 0; color: var(--muted); }

.state-panel strong { color: var(--ink); }

.loading-mark {
  width: 28px;
  height: 28px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.results {
  margin: 12px auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
}

.place-card {
  --category: var(--ink);
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(22px, 4vw, 34px);
  background: var(--paper);
  border-top: 4px solid var(--category);
  box-shadow: 0 1px 0 rgba(28, 25, 23, 0.05);
  opacity: 0;
  transform: translateY(12px);
  animation: reveal 0.48s ease-out forwards;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.place-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(28, 25, 23, 0.09);
}

@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 24px;
}

.category-label {
  color: var(--category);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.open-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--success);
  font-size: 0.73rem;
  font-weight: 750;
}

.open-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
}

.open-badge.is-closed { color: var(--muted); }
.open-badge.is-closed::before { background: var(--muted); }

.place-title {
  margin-bottom: 5px;
  font-family: var(--display);
  font-size: clamp(1.55rem, 3.2vw, 2.25rem);
  font-weight: 740;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.local-name {
  margin-bottom: 21px;
  color: var(--muted);
  font-family: "Noto Sans KR", var(--body);
  font-size: 0.95rem;
}

.place-location {
  margin-bottom: 21px;
  color: var(--ink-soft);
  font-size: 0.83rem;
  font-weight: 600;
}

.place-location span + span::before { content: " · "; color: var(--muted); }

.hours-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 15px;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

.hours-summary dt { color: var(--muted); }
.hours-summary dd { margin: 0; font-weight: 650; }

.card-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-actions a {
  min-height: 44px;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.card-actions .naver {
  background: #03c75a;
  border-color: #03c75a;
  color: #102117;
}

.card-actions a:hover { border-color: var(--ink); }
.card-actions .naver:hover { background: #02b752; border-color: #02b752; }

.hours-note {
  max-width: 1020px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 130px) 22px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(24px, 6vw, 72px);
}

.note-number {
  color: var(--accent);
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.hours-note h2 {
  max-width: 760px;
  margin-bottom: 20px;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 730;
  letter-spacing: -0.045em;
  line-height: 1;
}

.hours-note p {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
}

footer {
  padding: clamp(50px, 7vw, 84px) max(22px, env(safe-area-inset-right)) max(50px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
  display: grid;
  grid-template-columns: 1fr minmax(240px, 1fr) auto;
  align-items: start;
  gap: 30px;
  background: var(--ink);
  color: var(--paper);
}

.footer-brand { align-self: start; }

footer p {
  max-width: 420px;
  margin: 7px 0 0;
  color: #b8b1aa;
  font-size: 0.85rem;
}

@media (max-width: 820px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .clear-button { width: 100%; }
  .results { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; }
  footer nav { flex-wrap: wrap; }
}

@media (max-width: 570px) {
  .site-header { min-height: 66px; }
  .site-header .brand > span:last-child { display: none; }
  .site-header nav { gap: 10px; }
  .hero { padding-top: 64px; }
  .hero-meta { grid-template-columns: 1fr; }
  .hero-meta > div { min-height: 76px; }
  .guide-heading-row { align-items: stretch; flex-direction: column; }
  .all-toggle { width: 100%; }
  .filters { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
  .hours-note { grid-template-columns: 1fr; gap: 12px; }
  .card-actions a { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
