:root {
  --ink: #2c2926;
  --muted: #6d675f;
  --paper: #f3eee6;
  --white: #fffdf9;
  --line: #e3d6c4;
  --accent: #dd9933;
  --accent-dark: #9a6420;
  --dark: #1c1916;
  --dark-2: #2a241e;
  --max: 1120px;
  --font: Lato, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --h1: clamp(2rem, 1.2rem + 3.6vw, 5.2rem);
  --h2: clamp(1.45rem, 1.15rem + 1.1vw, 2.4rem);
  --lede-size: clamp(1rem, 0.35vw + 0.92rem, 1.15rem);
  --card-title: clamp(1.15rem, 0.6vw + 0.95rem, 1.35rem);
  --gutter: clamp(16px, 2.5vw, 20px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 0, rgba(221, 153, 51, 0.14), transparent 22rem),
    var(--paper);
  line-height: 1.6;
  overflow-wrap: break-word;
}

a { color: inherit; }

img, video, iframe, svg { max-width: 100%; height: auto; }

.wrap { width: min(var(--max), calc(100% - var(--gutter) * 2)); margin: 0 auto; }

.site-top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 253, 249, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 62px;
}

.brand { display: flex; align-items: center; }

.brand img { height: 24px; width: auto; }

.top-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 22px; }

.nav-link {
  color: #5c564e;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.nav-link.current,
.nav-link:hover { color: var(--accent-dark); }

.nav-link.current { box-shadow: inset 0 -1px 0 var(--accent); }

.nav-toggle {
  display: none;
  margin-left: auto;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: #5c564e;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.hero {
  background:
    radial-gradient(circle at 88% 0, rgba(221, 153, 51, 0.28), transparent 24rem),
    linear-gradient(180deg, #231f1b 0%, #1c1916 100%);
  color: #f7f1e6;
  padding: clamp(28px, 4vw, 54px) 0 clamp(76px, 8vw, 108px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  gap: 36px;
  align-items: start;
}

.crumb {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
  color: #cbbfae;
  font-size: 0.92rem;
}

.crumb a { color: #f7f1e6; text-decoration: none; font-weight: 700; }

.kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.15; }

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: var(--h1);
  font-weight: 900;
  letter-spacing: -0.045em;
}

.lede {
  max-width: 38rem;
  margin: 18px 0 0;
  font-size: var(--lede-size);
  color: #eadfcf;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--dark);
  font-weight: 700;
  text-decoration: none;
}

.btn:hover { background: #e6a84a; }

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.hero-panel {
  padding: 8px 22px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 253, 249, 0.05);
}

.panel-label {
  margin: 16px 0 0;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-panel a {
  display: block;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #f7f1e6;
  text-decoration: none;
}

.hero-panel a:first-of-type { margin-top: 8px; }

.hero-panel a strong { display: block; }

.hero-panel a span { color: #cbbfae; font-size: 0.92rem; }

.hero-panel a:hover strong { color: var(--accent); }

.routes { margin-top: -52px; position: relative; z-index: 2; }

.route-grid,
.fit-grid,
.points,
.cards {
  display: grid;
  gap: 14px;
}

.route-grid,
.fit-grid,
.points,
.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.hero-grid > *,
.route-grid > *,
.fit-grid > *,
.points > *,
.cards > *,
.band-grid > * { min-width: 0; }

.route,
.tile,
.page-card,
.points li,
.fit-grid article {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.route {
  display: block;
  padding: 22px 22px 20px;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(28, 25, 22, 0.08);
}

.route em,
.tile .num,
.points li::before {
  color: var(--accent-dark);
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.route strong,
.tile strong,
.page-card h3,
.fit-grid h3 {
  display: block;
  margin: 8px 0;
  color: var(--dark);
  font-size: var(--card-title);
}

.route span,
.tile span,
.page-card p,
.fit-grid p,
.section-head p,
.empty { color: var(--muted); }

.route:hover,
.tile:hover,
.page-card:hover { border-color: var(--accent); }

.fit,
.purpose,
.library { padding: clamp(36px, 5vw, 64px) 0 10px; }

.section-head { max-width: 40rem; margin-bottom: 22px; }

.section-head h2,
.band h2 {
  margin: 0;
  font-size: var(--h2);
  letter-spacing: -0.03em;
}

.section-head p { margin: 10px 0 0; }

.fit-grid article,
.points li { padding: 22px; }

.fit-grid h3,
.points { margin: 0; }

.points { list-style: none; padding: 0; counter-reset: item; }

.points li::before {
  content: counter(item, decimal-leading-zero);
  counter-increment: item;
  display: block;
  margin-bottom: 10px;
}

.published { margin-top: 28px; }

.group { margin-top: 28px; }

.group .section-head { margin-bottom: 14px; }

.cards { margin-top: 8px; }

.tile,
.page-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px;
  color: inherit;
  text-decoration: none;
}

.tile .count {
  margin-top: 8px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.tile .go {
  margin-top: auto;
  padding-top: 18px;
  color: var(--accent-dark);
  font-size: 0.92rem;
}

.page-card h3 { margin-top: 0; }

.search {
  width: min(360px, 100%);
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  color: var(--ink);
}

.empty {
  margin: 22px 0 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(221, 153, 51, 0.12);
  color: var(--ink);
}

.band {
  margin-top: clamp(36px, 5vw, 54px);
  padding: clamp(36px, 5vw, 56px) 0;
  background:
    radial-gradient(circle at 0 100%, rgba(221, 153, 51, 0.2), transparent 20rem),
    var(--dark);
  color: #f4ecdf;
}

.band-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.band .kicker { margin-bottom: 10px; }

.band p { margin: 12px 0 0; color: #eadfcf; }

.legal { color: #cbbfae !important; }

.contact-list { display: grid; gap: 10px; }

.contact-list a {
  display: block;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-list a:hover { border-color: var(--accent); }

.contact-list small {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-foot { padding: 26px 0 40px; color: var(--muted); }

.foot-row,
.socials {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.socials { justify-content: flex-end; }

.socials a { color: var(--accent-dark); font-weight: 700; text-decoration: none; }

a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 1024px) {
  .hero-grid,
  .band-grid { grid-template-columns: minmax(0, 1fr); }
  .route-grid,
  .fit-grid,
  .points,
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  h1 { max-width: 16ch; }
}

@media (max-width: 860px) {
  .top-row {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    min-height: 52px;
    padding: 8px 0;
  }
  .brand { min-width: 0; max-width: calc(100% - 88px); }
  .brand img { height: auto; max-height: 22px; max-width: 100%; }
  .js .site-top .nav-toggle {
    display: inline-flex;
    align-items: center;
  }
  .js .site-top .top-nav {
    display: none;
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 6px;
  }
  .js .site-top.is-open .top-nav { display: flex; }
  .js .site-top .nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    border-top: 1px solid var(--line);
  }
  .routes { margin-top: -40px; }
}

@media (max-width: 700px) {
  .route-grid,
  .fit-grid,
  .points,
  .cards,
  .band-grid { grid-template-columns: minmax(0, 1fr); }
  h1 { max-width: none; }
  .hero-actions .btn { flex: 1 1 140px; }
  .foot-row,
  .socials { align-items: flex-start; }
  .socials { justify-content: flex-start; }
}
