:root {
  --paper: #F2EEE7;
  --paper-card: #FBF8F3;
  --ink: #3A3E42;
  --ink-deep: #12312A;
  --ink-deep-2: #0C241F;
  --cyan: #0E7C86;
  --cyan-soft: #7FC6C9;
  --amber: #E8791A;
  --amber-soft: #F7D9BC;
  --brick: #8C4A32;
  --glass: rgba(251, 248, 243, 0.62);
  --glass-strong: rgba(251, 248, 243, 0.82);
  --line: rgba(58, 62, 66, 0.16);
  --line-strong: rgba(58, 62, 66, 0.32);
  --line-light: rgba(251, 248, 243, 0.2);
  --shadow-float: 0 18px 48px rgba(18, 49, 42, 0.12);
  --font-display: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --max: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(58, 62, 66, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 62, 66, 0.022) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

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

a:hover {
  color: var(--ink-deep);
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--amber-soft);
  color: var(--ink-deep);
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 999;
  padding: 10px 16px;
  background: var(--ink-deep);
  color: var(--paper-card);
  border: 1px solid var(--cyan-soft);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.skip-link:focus-visible {
  transform: none;
  background: var(--ink-deep-2);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 10px var(--gutter) 0;
  background: linear-gradient(
    180deg,
    rgba(242, 238, 231, 0.98) 0%,
    rgba(242, 238, 231, 0.92) 68%,
    rgba(242, 238, 231, 0) 100%
  );
}

.header-utility {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  min-height: 34px;
  max-height: 42px;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow: hidden;
  background: var(--ink-deep);
  color: var(--paper);
  border-top: 3px solid var(--brick);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(127, 198, 201, 0.18);
  opacity: 1;
  transition:
    max-height 0.3s var(--ease),
    opacity 0.2s var(--ease),
    padding 0.3s var(--ease),
    border-width 0.3s var(--ease);
}

.header-utility__line {
  min-width: 0;
  overflow: hidden;
  color: rgba(251, 248, 243, 0.86);
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.header-utility__meta {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.update-mark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--amber-soft);
}

.update-mark__dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(232, 121, 26, 0.18);
}

.header-version {
  color: rgba(251, 248, 243, 0.64);
}

.header-version .mono {
  color: var(--cyan-soft);
}

.header-shell {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin: 8px auto 0;
  padding: 7px 8px 7px 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  background: var(--glass);
  border: 1px solid rgba(251, 248, 243, 0.78);
  border-radius: 999px;
  box-shadow: 0 14px 36px rgba(18, 49, 42, 0.11);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    padding 0.3s var(--ease),
    background 0.3s var(--ease),
    border-radius 0.3s var(--ease),
    margin 0.3s var(--ease);
}

.site-header[data-compact] .header-utility {
  min-height: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top-width: 0;
  opacity: 0;
}

.site-header[data-compact] .header-shell {
  margin-top: 0;
  padding-top: 6px;
  padding-bottom: 6px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 3px 6px 3px 2px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.brand:hover {
  background: rgba(127, 198, 201, 0.16);
  color: var(--ink-deep);
}

.brand__mark,
.footer-brand__mark {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 4px;
  overflow: hidden;
  background: var(--brick);
  border: 1px solid rgba(18, 49, 42, 0.24);
  border-radius: var(--radius);
}

.brand__mark i,
.footer-brand__mark i {
  display: block;
  min-height: 100%;
  background: var(--amber-soft);
  border-radius: 1px;
}

.brand__mark i:nth-child(2),
.footer-brand__mark i:nth-child(2) {
  background: var(--cyan-soft);
}

.brand__mark i:nth-child(3),
.footer-brand__mark i:nth-child(3) {
  background: var(--paper-card);
  opacity: 0.9;
}

.brand__text {
  display: grid;
  gap: 5px;
  min-width: 0;
  line-height: 1;
}

.brand__name {
  color: inherit;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand__sub {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--cyan);
  background: rgba(127, 198, 201, 0.12);
}

.nav-toggle__lines {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle__lines i {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle__label {
  display: inline-block;
}

.site-header[data-open] .nav-toggle {
  background: var(--ink-deep);
  border-color: var(--ink-deep);
  color: var(--paper-card);
}

.site-header[data-open] .nav-toggle__lines i:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header[data-open] .nav-toggle__lines i:nth-child(2) {
  opacity: 0;
}

.site-header[data-open] .nav-toggle__lines i:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.primary-nav {
  justify-self: center;
  min-width: 0;
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.primary-nav__link:hover {
  background: rgba(247, 217, 188, 0.68);
  border-color: rgba(232, 121, 26, 0.28);
  color: var(--ink-deep);
  transform: translateY(-2px);
}

.primary-nav__link[aria-current="page"] {
  background: var(--ink-deep);
  border-color: var(--ink-deep);
  color: var(--paper-card);
  box-shadow: inset 0 -2px 0 var(--cyan-soft);
}

.primary-nav__link[aria-current="page"]:hover {
  background: var(--ink-deep-2);
  color: var(--paper-card);
  transform: none;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 6px;
  min-width: 0;
}

.city-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.city-switch:hover {
  border-color: var(--cyan);
  background: rgba(127, 198, 201, 0.12);
}

.city-switch__label {
  display: inline-block;
}

.city-switch__value {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  background: rgba(127, 198, 201, 0.14);
  color: var(--ink-deep);
}

.btn--amber {
  background: var(--amber);
  border-color: var(--amber);
  color: #1C1309;
}

.btn--amber:hover {
  background: #F08A2A;
  border-color: #F08A2A;
  color: #120D06;
}

.scroll-meter {
  width: 100%;
  max-width: var(--max);
  height: 2px;
  margin: 0 auto;
  overflow: hidden;
  background: transparent;
  pointer-events: none;
}

.scroll-meter__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transition: width 0.12s linear;
}

.city-panel {
  position: absolute;
  z-index: 120;
  top: calc(100% - 2px);
  right: var(--gutter);
  width: min(540px, calc(100vw - 36px));
  overflow: hidden;
  background: var(--paper-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-float);
}

.city-panel__inner {
  padding: 18px;
}

.city-panel__title {
  margin: 0 0 12px;
  color: var(--brick);
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.city-panel__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.city-option {
  appearance: none;
  padding: 8px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.city-option:hover {
  border-color: var(--cyan);
  background: rgba(127, 198, 201, 0.14);
}

.city-option[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--paper-card);
  font-weight: 700;
}

.site-footer {
  margin-top: 80px;
  color: rgba(251, 248, 243, 0.82);
  background-color: var(--ink-deep);
  background-image:
    linear-gradient(115deg, rgba(14, 124, 134, 0.16), transparent 42%),
    repeating-linear-gradient(90deg, rgba(251, 248, 243, 0.035) 0 1px, transparent 1px 72px);
  border-top: 6px solid var(--brick);
}

.footer-top {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) var(--gutter) clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 1.6fr);
  gap: clamp(32px, 5vw, 72px);
}

.footer-brand-block {
  min-width: 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper-card);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer-brand:hover {
  color: var(--amber-soft);
}

.footer-brand__mark {
  width: 34px;
  height: 34px;
}

.footer-brand__name {
  display: inline-block;
  font-size: inherit;
}

.footer-brand__line {
  max-width: 34em;
  margin: 16px 0 0;
  color: rgba(251, 248, 243, 0.72);
  font-size: 14px;
  line-height: 1.8;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-light);
  color: var(--cyan-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.footer-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-meta__item .mono {
  color: var(--amber-soft);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer-col {
  min-width: 0;
}

.footer-col__title {
  margin: 0 0 14px;
  color: var(--amber-soft);
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.footer-list {
  display: grid;
  gap: 9px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list__link {
  display: inline-block;
  color: rgba(251, 248, 243, 0.78);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.footer-list__link:hover {
  color: var(--paper-card);
  border-bottom-color: var(--cyan-soft);
  transform: translateY(-2px);
}

.footer-contact {
  background: rgba(12, 36, 31, 0.56);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.footer-contact__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: grid;
  gap: 6px;
}

.footer-contact__line {
  color: rgba(251, 248, 243, 0.76);
  font-size: 12px;
  line-height: 1.8;
}

.footer-contact__line .mono {
  color: var(--paper-card);
}

.footer-contact__note {
  color: rgba(251, 248, 243, 0.56);
  font-size: 12px;
  line-height: 1.7;
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.18);
}

.footer-bottom__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(251, 248, 243, 0.56);
  font-size: 11px;
}

.footer-legal,
.footer-copyright {
  margin: 0;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page-main {
  display: block;
  min-height: 60vh;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.col-main {
  grid-column: 1 / span 7;
  min-width: 0;
}

.col-aside {
  grid-column: 9 / span 4;
  min-width: 0;
}

.breadcrumbs {
  padding: 20px 0 8px;
  font-size: 13px;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  opacity: 0.78;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  color: var(--brick);
  font-family: var(--font-mono);
  opacity: 0.72;
}

.breadcrumbs__link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.breadcrumbs__link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.breadcrumbs__current {
  color: var(--ink-deep);
  font-weight: 700;
}

.display-title {
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-title {
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.lede {
  max-width: 42em;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.75;
}

.eyebrow,
.placard {
  color: var(--brick);
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.eyebrow {
  display: inline-block;
}

.placard {
  display: inline-flex;
  align-items: center;
  border-left: 3px solid var(--brick);
  padding-left: 10px;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card--glass {
  background: var(--glass);
  border-color: rgba(251, 248, 243, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card--ink {
  background: linear-gradient(135deg, var(--ink-deep), #0C241F 70%);
  border-color: rgba(127, 198, 201, 0.24);
  color: var(--paper);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--cyan);
  border-radius: var(--radius);
  background: transparent;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.tag--muted {
  border-color: var(--line-strong);
  color: var(--ink);
}

.tag--amber {
  border-color: var(--amber);
  background: var(--amber-soft);
  color: #4A2A0E;
}

.data-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.rule {
  height: 1px;
  margin: 24px 0;
  border: 0;
  background: var(--line);
}

.image-frame {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--ink-deep);
  background-image:
    linear-gradient(135deg, rgba(127, 198, 201, 0.16), transparent 55%),
    repeating-linear-gradient(90deg, rgba(251, 248, 243, 0.07) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(0deg, rgba(251, 248, 243, 0.05) 0 1px, transparent 1px 24px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--paper-card);
}

.image-frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(251, 248, 243, 0.18);
  pointer-events: none;
}

.image-frame img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-frame__placeholder {
  position: relative;
  z-index: 1;
  padding: 16px;
  color: rgba(251, 248, 243, 0.72);
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-align: center;
}

.image-frame__caption {
  margin-top: 8px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.image-frame--wide {
  aspect-ratio: 21 / 9;
}

.image-frame--square {
  aspect-ratio: 1;
}

.image-frame--tall {
  aspect-ratio: 3 / 4;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-btn {
  appearance: none;
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.filter-btn:hover {
  border-color: var(--cyan);
  background: rgba(127, 198, 201, 0.12);
}

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

.filter-count {
  margin-left: auto;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

[data-filter-item][hidden] {
  display: none !important;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1200px) {
  .header-actions .btn--ghost {
    display: none;
  }

  .primary-nav__link {
    padding-inline: 8px;
    font-size: 13px;
  }

  .brand__sub {
    display: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    padding: 8px 18px 0;
  }

  .header-utility {
    min-height: 30px;
    max-height: 38px;
    padding: 4px 12px;
  }

  .header-utility__line {
    font-size: 11px;
  }

  .header-utility__meta {
    gap: 10px;
  }

  .header-version {
    display: none;
  }

  .header-shell {
    grid-template-columns: auto auto 1fr;
    gap: 10px;
    padding: 7px 9px;
    border-radius: 18px;
  }

  .brand {
    order: 1;
  }

  .nav-toggle {
    display: inline-flex;
    order: 2;
    justify-self: start;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    padding: 10px;
    background: var(--paper-card);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow-float);
    justify-self: stretch;
  }

  .site-header[data-open] .primary-nav {
    display: block;
  }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .primary-nav__link {
    justify-content: flex-start;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: var(--radius);
    font-size: 15px;
  }

  .header-actions {
    order: 3;
    justify-self: end;
  }

  .header-actions .btn--ghost {
    display: none;
  }

  .city-switch {
    min-height: 36px;
    padding: 6px 8px;
    font-size: 11px;
  }

  .btn--amber {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 12px;
  }

  .city-panel {
    top: calc(100% - 2px);
    right: 18px;
    width: min(520px, calc(100vw - 36px));
  }

  .grid-12 {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .col-main,
  .col-aside {
    grid-column: 1 / -1;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 8px 12px 0;
  }

  .header-utility {
    justify-content: flex-end;
  }

  .header-utility__line {
    display: none;
  }

  .header-utility__meta {
    width: 100%;
    justify-content: space-between;
  }

  .header-shell {
    gap: 8px;
  }

  .brand__name {
    font-size: 15px;
  }

  .brand__sub {
    display: none;
  }

  .city-panel__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-top {
    padding-top: 32px;
  }

  .footer-bottom__inner {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .brand__text {
    display: none;
  }

  .header-shell {
    padding: 6px 7px;
  }

  .header-actions {
    gap: 4px;
  }

  .city-switch__label {
    display: none;
  }

  .btn--amber {
    padding: 7px 10px;
    font-size: 11px;
  }

  .header-utility__meta {
    gap: 8px;
    font-size: 10px;
  }

  .update-mark {
    font-size: 10px;
  }

  .city-panel__inner {
    padding: 14px;
  }

  .city-panel__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-columns {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    font-size: 21px;
  }

  .footer-contact__line,
  .footer-contact__note {
    font-size: 11px;
  }

  .footer-bottom__inner {
    font-size: 10px;
  }
}

@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;
    scroll-behavior: auto !important;
  }

  .js [data-reveal],
  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }

  .skip-link {
    transition: none;
  }
}
