@font-face {
  font-family: "食录宋体";
  src: url("./atlas-display.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #f5f6f3;
  --surface: #fcfdfb;
  --ink: #202a2b;
  --mute: #515f60;
  --faint: #617072;
  --line: #d7dfdd;
  --accent: #a13a2b;
  --tint: #f3e8e3;
  --catalog-title: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;
  --display: "食录宋体", var(--catalog-title);
  --site-width: 1520px;
  --card-line: #dfe6e3;
  --card-radius: 16px;
  --gutter: clamp(22px, 4vw, 64px);
  --header-height: 76px;
}

body { accent-color: var(--accent); }

::selection { background: var(--accent); color: var(--surface); }
:focus-visible { outline-color: var(--accent); }

header {
  background: var(--bg);
  backdrop-filter: none;
}

.bar {
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--site-width);
  padding-inline: var(--gutter);
}

.logo {
  min-height: 44px;
  font: 600 clamp(18px, 1.5vw, 22px)/1.2 var(--display);
  letter-spacing: .01em;
  gap: 11px;
}

.logo-icon { display: inline-flex; flex: none; color: var(--accent); }
.logo-icon .i { width: 25px; height: 25px; stroke-width: 1.25; }
.nav { flex: none; gap: clamp(22px, 3.8vw, 56px); }
.nav a { font-size: 15px; color: var(--ink); }
.nav .i { width: 20px; height: 20px; }
.nav a.on:after { height: 2px; }

h1, .card h3, .city b, .creator-entry h2 {
  font-family: var(--catalog-title);
  font-weight: 600;
}

.atlas-copy h1, .creators-title, .sech h2, .sech h3 {
  font-family: var(--display);
  font-weight: 600;
}

main { max-width: var(--site-width); padding-inline: var(--gutter); }

.sech { flex-wrap: wrap; gap: 5px 12px; }
.sech h3 { margin: 0; line-height: 1.3; }
.sech > span { font-variant-numeric: tabular-nums; }
.sech + .cities { margin-top: 20px; }
.sec > .sech + .region-section { margin-top: 28px; }

.sub .sep { background: var(--line); }

.search input {
  border-color: #98a6a3;
  background: var(--surface);
  border-radius: 4px;
  box-shadow: none;
  caret-color: var(--accent);
}

.search input::placeholder { color: var(--mute); opacity: 1; }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px #a13a2b30; }
.search > .i, .search > .clr { top: 50%; transform: translateY(-50%); }
.search > .i { color: var(--mute); }

.section-jumps button, .pill {
  background: var(--surface);
  border-color: var(--line);
  border-radius: 4px;
}

.card, .city, .creator-entry {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: var(--card-radius);
}

.grid, .creator-list { gap: clamp(13px, 1.45vw, 22px); }

.card {
  align-self: start;
  border: 0;
  padding: clamp(19px, 1.85vw, 27px);
  box-shadow: 0 2px 9px rgb(32 42 43 / 7%);
}

.card h3 {
  margin: 0;
  font-size: clamp(21px, 1.78vw, 27px);
  line-height: 1.32;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 0;
  margin-top: 7px;
  font-size: 13px;
  color: var(--mute);
}

.card-meta > span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  overflow-wrap: anywhere;
}

.card-meta > span + span::before {
  content: "";
  width: 3px;
  height: 3px;
  flex: none;
  margin-inline: 9px;
  border-radius: 50%;
  background: #aebbb8;
}

.store-price { font-variant-numeric: tabular-nums; }

.row {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--card-line);
}

.rt {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 3px 10px;
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.review-date {
  color: var(--faint);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
}

.rv {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.68;
  overflow-wrap: anywhere;
}

.rv.none { color: var(--faint); font-size: 13px; }

.video-title {
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding-block: 9px;
  color: var(--mute);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

.video-title .i { width: 15px; height: 15px; margin-top: 3px; }
.video-title:hover { color: var(--accent); text-decoration: underline; }

.city, .creator-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  align-content: start;
  padding: 19px 20px;
  transition: border-color var(--e), background-color var(--e);
}

.city:hover, .creator-entry:hover {
  background: var(--surface);
  border-color: #aab8b6;
}

.city b, .creator-entry h2 {
  grid-area: 1 / 1;
  margin: 0;
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.32;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

.city-meta, .creator-entry p {
  display: block;
  grid-column: 1 / -1;
  margin: 7px 0 0;
  color: var(--mute);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1.55;
}

.city-meta small, .creator-entry small {
  display: block;
  grid-column: 1 / -1;
  margin-top: 3px;
  color: var(--faint);
  font-size: 12px;
}

.city-arrow, .creator-arrow {
  display: flex;
  grid-area: 1 / 2;
  align-self: center;
  color: var(--mute);
  transition: transform var(--e);
}

.city:hover .city-arrow, .creator-entry:hover .creator-arrow {
  color: var(--accent);
  transform: translateX(2px);
}
.region-chevron { border-color: var(--line); }
.region-meta { align-items: center; }
.region-meta, .creator-city-meta { font-variant-numeric: tabular-nums; }
.region-meta span+span:before { color: #879693; }

#app.atlas-home {
  max-width: none;
  padding: 0 0 86px;
}

.atlas-hero {
  border-block-end: 1px solid var(--line);
  overflow: hidden;
}

.atlas-hero-inner {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(475px, 42vw, 622px);
  max-width: var(--site-width);
  margin-inline: auto;
  padding: 54px var(--gutter);
}

.atlas-copy {
  position: relative;
  z-index: 1;
  width: min(42vw, 620px);
}

.atlas-copy h1 {
  font-size: clamp(34px, 4.6vw, 69px);
  line-height: 1.34;
  letter-spacing: -.032em;
}

.atlas-intro { display: flex; flex-wrap: wrap; margin: 19px 0 0; color: var(--mute); font-size: clamp(16px, 1.3vw, 20px); }
.atlas-search { margin-top: 30px; width: min(100%, 460px); }
.atlas-search input { background: var(--surface); }
.atlas-search input:placeholder-shown { padding-right: 16px; }
.atlas-search > .i { width: 21px; height: 21px; left: 14px; }
.atlas-stats { gap: 12px; margin-top: 21px; font-size: 14px; }
.atlas-stats b { font-size: 14px; }
.atlas-records { margin: 2px 0 0; color: var(--faint); font-size: 13px; }

.atlas-art {
  position: absolute;
  z-index: 0;
  inset: 0 0 0 32%;
  pointer-events: none;
}

.atlas-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  mix-blend-mode: multiply;
  mask-image: linear-gradient(to right, transparent 1%, #000 27%);
}

.atlas-content {
  max-width: var(--site-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.atlas-cities { padding-top: 32px; }
.atlas-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}

.atlas-section-head h2 {
  margin: 0;
  font: 600 clamp(25px, 2.15vw, 34px)/1.25 var(--display);
  letter-spacing: -.02em;
}

.atlas-section-head button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  border: none;
  padding: 0;
  background: none;
  color: var(--accent);
  white-space: nowrap;
}

.atlas-section-head button:hover { text-decoration: underline; text-underline-offset: 4px; }

.atlas-city-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.atlas-city {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name arrow" "count arrow";
  align-items: center;
  gap: 6px 10px;
  padding: 21px clamp(17px, 2.2vw, 34px);
}

.atlas-city + .atlas-city { border-inline-start: 1px solid var(--line); }
.atlas-city-name { grid-area: name; font: 600 clamp(21px, 2.05vw, 32px)/1.2 var(--display); }
.atlas-city-count { grid-area: count; color: var(--mute); font-size: 13px; }
.atlas-city .i { grid-area: arrow; color: var(--accent); width: 19px; height: 19px; }
.atlas-city:hover { background: var(--surface); }
.atlas-city:hover .atlas-city-name { color: var(--accent); }
.atlas-city:hover .i { transform: translateX(3px); }
.atlas-city .i { transition: transform var(--e); }

#all-cities { scroll-margin-top: calc(var(--header-height) + 18px); }
#all-cities:focus { outline: none; }
#all-cities > .region-section:first-child { margin-top: 45px; }

@media (max-width: 780px) {
  :root { --header-height: 62px; }
  .logo { gap: 9px; }
  .logo-icon .i { width: 21px; height: 21px; }
  .nav a { font-size: 14px; }
  .nav .i { display: block; width: 17px; height: 17px; }
  .atlas-hero-inner { display: block; padding: 30px 0 0; min-height: 0; }
  .atlas-copy { width: auto; padding-inline: var(--gutter); }
  .atlas-copy h1 { font-size: clamp(32px, 8.9vw, 51px); line-height: 1.32; }
  .atlas-intro { margin-top: 9px; }
  .atlas-search { margin-top: 16px; }
  .atlas-stats { margin-top: 13px; font-size: 13px; }
  .atlas-stats b { font-size: 13px; }
  .atlas-records { font-size: 12px; }
  .atlas-art { position: relative; inset: auto; height: clamp(180px, 50vw, 300px); margin-top: 12px; }
  .atlas-cover { object-position: 65% 56%; mask-image: linear-gradient(to bottom, transparent, #000 20%); }
  .atlas-cities { padding-top: 16px; }
  .atlas-section-head { margin-bottom: 12px; }
  .atlas-city { grid-template-areas: "name arrow" "count count"; padding: 14px 10px; gap: 5px 4px; }
  .atlas-city-count { font-size: 11px; }
  .atlas-city .i { width: 15px; height: 15px; }
  #all-cities > .region-section:first-child { margin-top: 30px; }
}

@media (max-width: 390px) {
  .nav { gap: 14px; }
}

@media (max-width: 350px) {
  .nav .i { display: none; }
  .atlas-city { padding-inline: 7px; }
}
