:root {
  color-scheme: dark;
  --ink: #0b0b0d;
  --ink-2: #131316;
  --ink-3: #202126;
  --surface: rgba(19, 19, 22, 0.86);
  --surface-strong: rgba(28, 28, 32, 0.9);
  --paper: #f4efe6;
  --muted: #b9b0a3;
  --line: rgba(244, 239, 230, 0.14);
  --line-strong: rgba(244, 239, 230, 0.24);
  --red: #ff533d;
  --amber: #f7bf4f;
  --cyan: #4fd6c7;
  --lime: #d9ef5a;
  --blue: #7ea5ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(115deg, rgba(255, 83, 61, 0.08), transparent 28%),
    linear-gradient(245deg, rgba(79, 214, 199, 0.08), transparent 34%),
    var(--ink);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

img {
  display: block;
  max-width: 100%;
  color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(244, 239, 230, 0.12);
  background:
    linear-gradient(90deg, rgba(255, 83, 61, 0.08), transparent 24%, rgba(79, 214, 199, 0.06)),
    rgba(8, 8, 10, 0.9);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 32px, var(--max));
  min-height: 72px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 184px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.32);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand strong {
  font-size: 1.03rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a.is-active {
  border-color: var(--line-strong);
  color: var(--paper);
  background: rgba(255, 255, 255, 0.075);
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 54px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(247, 191, 79, 0.34);
  border-radius: 999px;
  background: rgba(247, 191, 79, 0.1);
  color: var(--amber);
  font-weight: 900;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--ink-2);
  color: var(--paper);
}

.hero {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(8, 8, 10, 0.96), rgba(8, 8, 10, 0.78) 43%, rgba(8, 8, 10, 0.28)),
    var(--hero-image);
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 -120px 120px rgba(8, 8, 10, 0.7);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--red), var(--amber), var(--cyan));
  opacity: 0.9;
}

.page-hero {
  min-height: 420px;
}

.hero-home {
  --hero-image: url("../images/hero-index.jpg");
}

.hero-catalog {
  --hero-image: url("../images/hero-catalog.jpg");
}

.hero-restaurants {
  --hero-image: url("../images/hero-restaurants.jpg");
}

.hero-districts {
  --hero-image: url("../images/hero-districts.jpg");
}

.hero-routes {
  --hero-image: url("../images/hero-routes.jpg");
}

.hero-guide {
  --hero-image: url("../images/hero-guide.jpg");
}

.hero-sources {
  --hero-image: url("../images/hero-sources.jpg");
}

.hero-inner,
.section-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 48px;
  align-items: end;
  min-height: inherit;
  padding: 96px 0 54px;
}

.page-hero .hero-inner {
  align-items: center;
  padding-top: 72px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.card-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid rgba(217, 239, 90, 0.35);
  border-radius: 6px;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  max-width: 850px;
  margin-bottom: 20px;
  font-size: clamp(3.4rem, 8vw, 7rem);
  line-height: 0.93;
  text-wrap: balance;
}

h2 {
  margin-bottom: 12px;
  font-size: 2.1rem;
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.18;
}

.lead {
  max-width: 710px;
  color: #ded5c8;
  font-size: 1.15rem;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--paper), #ffffff);
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper);
  box-shadow: none;
}

.button.ghost {
  background: transparent;
  color: var(--paper);
  box-shadow: none;
}

.hero-panel {
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(12, 12, 14, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-panel h2 {
  font-size: 1.25rem;
}

.hero-panel p {
  color: var(--muted);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.stat {
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.065);
}

.stat strong {
  display: block;
  color: var(--amber);
  font-size: 2rem;
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-size: 0.86rem;
}

.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.section.alt {
  background:
    linear-gradient(90deg, rgba(255, 83, 61, 0.035), transparent 38%, rgba(79, 214, 199, 0.035)),
    #101114;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-header p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
}

.grid-4,
.grid-3,
.text-grid,
.routes-preview {
  display: grid;
  gap: 18px;
}

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

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

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

.editorial-card,
.text-card,
.rank-card,
.guide-card,
.story-card,
.district-card,
.route-card,
.place-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    var(--ink-2);
  overflow: hidden;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
}

.editorial-card {
  display: grid;
  min-height: 430px;
  grid-template-rows: 230px auto;
  transition: transform 180ms ease, border-color 180ms ease;
}

.editorial-card:hover,
.place-card:hover,
.route-card:hover,
.district-card:hover {
  border-color: rgba(247, 191, 79, 0.62);
  transform: translateY(-2px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.editorial-card img,
.story-card img,
.district-card img,
.route-card img,
.guide-card img,
.place-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--ink-3);
}

.editorial-card > :not(img) {
  margin-inline: 16px;
}

.editorial-card .card-kicker {
  width: fit-content;
  margin-top: 16px;
}

.editorial-card h3 {
  margin-top: 14px;
  font-size: 1.35rem;
}

.editorial-card p {
  margin: 0 16px 18px;
  color: var(--muted);
}

.text-card,
.rank-card {
  padding: 18px;
}

.step-number {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--cyan);
  font-size: 0.88rem;
  font-weight: 900;
}

.meta-line,
.tag-row,
.card-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.meta-line span,
.tag-row span {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #d8d0c5;
  font-size: 0.78rem;
}

.route-strip {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(255, 83, 61, 0.08), transparent 44%, rgba(79, 214, 199, 0.06)),
    var(--ink-2);
}

.route-strip span {
  color: var(--cyan);
  font-size: 0.84rem;
  font-weight: 800;
}

.route-strip small {
  color: var(--amber);
  font-weight: 900;
}

.catalog-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(15, 15, 18, 0.94);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

.filters label,
.check-row {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

.filters input[type="search"],
.filters select {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  background: #09090a;
  color: var(--paper);
}

.filters input:focus,
.filters select:focus {
  border-color: var(--cyan);
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.filter-tab {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper);
  font-weight: 700;
}

.filter-tab.is-active {
  border-color: rgba(255, 83, 61, 0.65);
  background: rgba(255, 83, 61, 0.14);
  color: #fff;
}

.check-row {
  grid-template-columns: 18px 1fr;
  align-items: center;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--muted);
}

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

.place-card {
  display: grid;
  grid-template-rows: 230px auto;
}

.place-card figure {
  position: relative;
  margin: 0;
  overflow: hidden;
}

.place-card figure::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(8, 8, 10, 0.78), transparent 58%);
}

.place-card figcaption {
  position: absolute;
  z-index: 1;
  left: 12px;
  bottom: 12px;
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(11, 11, 13, 0.82);
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 800;
}

.place-card-body {
  display: grid;
  gap: 12px;
  padding: 15px;
}

.card-topline {
  justify-content: space-between;
}

.card-topline > span {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}

.icon-button.is-active {
  border-color: rgba(247, 191, 79, 0.7);
  background: rgba(247, 191, 79, 0.14);
  color: var(--amber);
}

.place-card h3 {
  margin-bottom: 0;
}

.place-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.place-details {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.place-details summary {
  color: var(--paper);
  font-weight: 800;
}

.place-details dl {
  display: grid;
  gap: 6px;
  margin: 12px 0;
}

.place-details dl div {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px;
}

.place-details dt {
  color: var(--muted);
}

.place-details dd {
  margin: 0;
}

.empty-state {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
}

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

.story-card,
.guide-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  min-height: 240px;
}

.story-card > div,
.guide-card > div,
.district-content,
.route-content {
  padding: 18px;
}

.story-card p,
.guide-card p,
.district-card p,
.route-card p,
.rank-card p,
.text-card p {
  color: var(--muted);
}

.index-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.index-row {
  display: grid;
  grid-template-columns: 1fr 180px 70px;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(19, 19, 22, 0.82);
}

.index-row:last-child {
  border-bottom: 0;
}

.index-row:hover {
  background: var(--ink-3);
}

.index-row small {
  color: var(--muted);
}

.index-row strong {
  color: var(--amber);
}

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

.rank-card > span {
  color: var(--red);
  font-size: 2rem;
  font-weight: 950;
  line-height: 1;
}

.district-grid,
.routes-grid {
  display: grid;
  gap: 22px;
}

.district-card,
.route-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  min-height: 330px;
}

.split-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.split-list div {
  display: grid;
  gap: 7px;
}

.split-list strong {
  color: var(--amber);
}

.split-list span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #dfd6c9;
}

.route-card ol {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding-left: 22px;
}

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

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

.source-list li {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
}

.source-list a {
  color: var(--cyan);
  font-weight: 900;
}

.source-list p {
  margin: 8px 0 0;
  color: var(--muted);
}

.notice {
  padding: 18px;
  border: 1px solid rgba(247, 191, 79, 0.4);
  border-radius: var(--radius);
  background: rgba(247, 191, 79, 0.08);
}

.newsletter {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: center;
}

.newsletter-form {
  display: grid;
  gap: 10px;
}

.newsletter-form input {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #09090a;
  color: var(--paper);
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--lime);
  font-size: 0.9rem;
}

.site-footer {
  padding: 36px 0;
  background:
    linear-gradient(90deg, rgba(255, 83, 61, 0.06), transparent, rgba(79, 214, 199, 0.05)),
    #080809;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.footer-inner a {
  color: var(--paper);
}

@media (max-width: 1040px) {
  .hero-inner,
  .catalog-shell,
  .newsletter {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 620px;
  }

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

  .filters {
    position: static;
  }

  .district-card,
  .route-card {
    grid-template-columns: 280px 1fr;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 64px;
    gap: 12px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    right: 16px;
    left: 16px;
    display: none;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #0f0f12;
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    min-height: 42px;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(to bottom, rgba(11, 11, 13, 0.82), rgba(11, 11, 13, 0.96)),
      var(--hero-image);
    background-position: center;
  }

  .hero-inner {
    gap: 28px;
    padding: 64px 0 38px;
  }

  h1 {
    font-size: 3.15rem;
  }

  .lead {
    font-size: 1rem;
  }

  .section {
    padding: 48px 0;
  }

  .section-header,
  .footer-inner,
  .catalog-toolbar {
    display: grid;
    align-items: start;
  }

  .grid-4,
  .grid-3,
  .text-grid,
  .catalog-grid,
  .story-grid,
  .rank-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .story-card,
  .guide-card,
  .district-card,
  .route-card {
    grid-template-columns: 1fr;
  }

  .story-card img,
  .guide-card img,
  .district-card img,
  .route-card img {
    height: 230px;
  }

  .index-row {
    grid-template-columns: 1fr;
  }

  .route-strip {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .split-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .hero-inner,
  .section-inner,
  .footer-inner,
  .header-inner {
    width: min(100% - 24px, var(--max));
  }

  h1 {
    font-size: 2.55rem;
  }

  .brand {
    min-width: 0;
    gap: 8px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .brand-copy span {
    display: none;
  }

  .brand strong {
    font-size: 0.92rem;
  }

  .header-action {
    min-width: 46px;
    padding: 7px 10px;
  }

  h2 {
    font-size: 1.72rem;
  }

  .stat-grid,
  .tabs {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .button-row {
    display: grid;
  }

  .button {
    width: 100%;
  }
}
