/* 韩国特色与实验性零售十日探店计划 — editorial single page */

:root {
  --paper: #f3eee4;
  --paper-2: #eae3d4;
  --paper-3: #fffdf8;
  --ink: #1b1814;
  --ink-soft: #4d473e;
  --ink-faint: #7a7368;
  --line: #d4cbb8;
  --line-strong: #b9b09c;
  --brick: #8e3a30;
  --brick-soft: #c45a4a;
  --moss: #355348;
  --gold: #7c5e2e;
  --warn: #8a4a12;
  --cross: #3a4a6a;
  --fact: #255144;
  --infer: #5a554c;
  --shadow: 0 1px 0 rgba(27, 24, 20, 0.04);
  --radius: 10px;
  --max: 74rem;
  --read: 46rem;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Noto Sans SC",
    "Noto Sans CJK KR", "Noto Sans KR", "Source Han Sans SC", "Source Han Sans K",
    "Apple SD Gothic Neo", "Malgun Gothic", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-serif: "Songti SC", "Noto Serif CJK SC", "Noto Serif SC", "Noto Serif CJK KR",
    "Noto Serif KR", "Source Han Serif SC", "Source Han Serif K", "Apple Myungjo",
    "Batang", "Times New Roman", Georgia, serif;
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
  background: var(--paper);
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  line-height: 1.7;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(142, 58, 48, 0.05), transparent 55%),
    radial-gradient(900px 400px at 100% 0%, rgba(53, 83, 72, 0.05), transparent 50%),
    var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--brick);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: #6d2a22;
}

a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.85rem;
  border-radius: 0 0 6px 6px;
}

.skip-link:focus {
  top: 0;
  color: var(--paper);
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, white);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.55rem 1.25rem 0;
}

.header-brand {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.4rem;
}

.header-brand .mark {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}

.header-brand .meta {
  font-size: 0.78rem;
  color: var(--ink-faint);
  white-space: nowrap;
}

.nav-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav-scroll::-webkit-scrollbar {
  display: none;
}

.site-nav {
  display: flex;
  gap: 0.15rem;
  padding: 0 0 0.45rem;
  min-width: max-content;
}

.site-nav a {
  display: inline-block;
  padding: 0.28rem 0.62rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.82rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  color: var(--ink);
  background: var(--paper-3);
  border-color: var(--line);
}

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.4rem 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brick);
  margin: 0 0 0.7rem;
  font-weight: 600;
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 650;
  font-size: clamp(1.7rem, 4.2vw, 2.7rem);
  line-height: 1.25;
  margin: 0 0 1rem;
  letter-spacing: 0.01em;
}

.lede {
  font-size: 1.12rem;
  max-width: 42rem;
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
}

.lede strong {
  color: var(--ink);
  font-weight: 650;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 48rem;
}

.legend li {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  font-size: 0.86rem;
  color: var(--ink-soft);
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
}

.legend li strong {
  color: var(--ink);
  font-weight: 650;
  flex: none;
}

/* Badges */
.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.22em 0.48em;
  border-radius: 3px;
  vertical-align: 0.08em;
  margin-left: 0.25em;
  white-space: nowrap;
  border: 1px solid transparent;
}

.tag-fact {
  color: var(--fact);
  background: #e4efe8;
  border-color: #c5d8cc;
}

.tag-cross {
  color: var(--cross);
  background: #e7ebf3;
  border-color: #c9d1e0;
}

.tag-verify {
  color: var(--warn);
  background: #f6ead8;
  border-color: #e4d0aa;
}

.tag-infer {
  color: var(--infer);
  background: #ece9e2;
  border-color: #d6d0c6;
}

.tag-opt {
  color: var(--moss);
  background: #e6efe9;
  border-color: #c5d6cb;
}

.tag-off {
  color: #6b2d27;
  background: #f4e4e0;
  border-color: #e0c4be;
}

.tag-type {
  color: var(--ink-soft);
  background: var(--paper-2);
  border-color: var(--line);
}

/* Layout */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 4.5rem;
}

section {
  padding: 2.4rem 0 0.4rem;
  border-bottom: 1px solid var(--line);
}

section > h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin: 0 0 0.85rem;
  letter-spacing: 0.01em;
}

.sec-lead,
.prose p,
.prose li {
  color: var(--ink-soft);
}

.sec-lead,
.prose {
  max-width: var(--read);
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 0.9rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.note {
  max-width: var(--read);
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: 0.85rem 1rem;
  border-radius: 0 8px 8px 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.note.alert {
  border-left-color: var(--brick);
  background: #faf3ef;
}

/* Day overview */
.day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  gap: 0.75rem;
  margin: 1.1rem 0 1.4rem;
}

.day-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem 1rem;
  text-decoration: none;
  color: inherit;
  min-height: 8.2rem;
  box-shadow: var(--shadow);
}

.day-card:hover {
  border-color: var(--line-strong);
  background: #fff;
}

.day-card .day-no {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--brick);
}

.day-card h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.35;
  color: var(--ink);
}

.day-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
  flex: 1;
}

.day-card .count {
  font-size: 0.78rem;
  color: var(--ink-faint);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 0.8rem 0 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-3);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 36rem;
}

th,
td {
  text-align: left;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--paper-2);
  font-weight: 650;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: 0;
}

td a {
  overflow-wrap: anywhere;
}

.weekday-table td:first-child,
.overview-table td:first-child {
  white-space: nowrap;
  font-weight: 650;
}

/* Day sections */
.day {
  padding-top: 2.2rem;
}

.day-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--brick);
}

.day h2 {
  margin-bottom: 0.5rem;
}

.route {
  max-width: var(--read);
  margin: 0 0 1.15rem;
  padding: 0.85rem 1rem;
  background: var(--paper-2);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

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

.group-label {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin: 1.4rem 0 0.7rem;
  color: var(--ink);
}

.store-list {
  display: grid;
  gap: 0.8rem;
}

.store {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.1rem 1.05rem;
  box-shadow: var(--shadow);
}

.store.is-optional {
  background: color-mix(in srgb, var(--paper-2) 55%, var(--paper-3));
  border-style: dashed;
}

.store-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.6rem;
  margin-bottom: 0.35rem;
}

.store-head h3 {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  margin: 0;
  line-height: 1.35;
  flex: 1 1 16rem;
}

.store-head .kr {
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 0.92em;
  font-family: var(--font-sans);
}

.store-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0 0 0.6rem;
}

.feature {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
}

.facts {
  display: grid;
  gap: 0.35rem 1.2rem;
  margin: 0;
}

@media (min-width: 700px) {
  .facts {
    grid-template-columns: 1fr 1fr;
  }
  .facts .span-2 {
    grid-column: 1 / -1;
  }
}

.facts div {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.5rem;
  font-size: 0.92rem;
}

.facts dt {
  color: var(--ink-faint);
  font-weight: 650;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding-top: 0.15rem;
}

.facts dd {
  margin: 0;
  color: var(--ink);
}

.links {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.aside-line {
  margin: 0.9rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* Filters */
.filters {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.9rem 0 1rem;
  position: sticky;
  top: calc(var(--header-h) + 0.15rem);
  z-index: 8;
  background: color-mix(in srgb, var(--paper) 92%, white);
  padding: 0.45rem 0;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.filter-row .lbl {
  font-size: 0.78rem;
  color: var(--ink-faint);
  width: 3.2rem;
  flex: none;
}

.chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--paper-3);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.82rem;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
}

.chip[aria-pressed="true"],
.chip:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: #fff;
}

.chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

#filter-empty {
  display: none;
  color: var(--ink-soft);
  padding: 0.8rem 0;
}

.list-block[hidden],
.catalog-row[hidden] {
  display: none !important;
}

.catalog .table-wrap + .table-wrap {
  margin-top: 0.2rem;
}

/* Dropped */
.dropped td:first-child {
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, var(--brick) 55%, transparent);
  color: var(--ink-soft);
}

/* Footer */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.8rem;
  color: var(--ink-faint);
  font-size: 0.84rem;
}

.back-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--paper-3);
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(27, 24, 20, 0.08);
}

.back-top:hover {
  background: #fff;
}

@media (max-width: 640px) {
  :root {
    --header-h: 5.4rem;
  }
  body {
    font-size: 0.98rem;
  }
  .header-brand .meta {
    display: none;
  }
  .hero {
    padding-top: 1.6rem;
  }
  .facts div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
  .filters {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
  table {
    min-width: 30rem;
    font-size: 0.84rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .day-card,
  .store,
  .chip {
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  }
}
