:root {
  --paper: #f6f5ee;
  --surface: #fffefa;
  --ink: #17261f;
  --forest: #24513e;
  --moss: #dce8d9;
  --map: #4e83d1;
  --map-deep: #315f9f;
  --coral: #e78369;
  --line: rgba(23, 38, 31, 0.14);
  --shadow: 0 24px 70px rgba(33, 58, 47, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
}
a { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 20; background: var(--ink); color: white; padding: .8rem 1rem; }
.skip-link:focus { top: 1rem; }
.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { border-radius: 50%; box-shadow: 0 6px 18px rgba(36, 81, 62, .15); }
.brand span { display: grid; }
.brand strong { font: 700 1.35rem Georgia, "Songti SC", serif; }
.brand small { color: var(--forest); }
nav { display: flex; align-items: center; gap: 1.5rem; }
nav a { text-decoration: none; font-size: .92rem; }
.repo-link { border: 1px solid var(--ink); border-radius: 999px; padding: .65rem 1rem; }

main, footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.hero { min-height: 650px; display: grid; grid-template-columns: .92fr 1.08fr; gap: 4.5rem; align-items: center; }
.eyebrow { color: var(--map-deep); font-size: .72rem; font-weight: 800; letter-spacing: .18em; }
h1, h2 { margin: 0; font-family: Georgia, "Songti SC", "STSong", serif; font-weight: 600; line-height: 1.08; }
h1 { margin-top: 1.2rem; font-size: clamp(3rem, 6vw, 5.4rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2.1rem, 4vw, 3.8rem); letter-spacing: -.035em; }
.lead { max-width: 34rem; margin: 1.7rem 0; color: #536158; font-size: 1.08rem; line-height: 1.85; }
.actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.actions a { padding: .9rem 1.25rem; border-radius: 14px; text-decoration: none; font-weight: 700; }
.primary { background: var(--forest); color: white; }
.secondary { border: 1px solid var(--line); background: rgba(255,255,255,.55); }
.safe-note { display: flex; gap: .55rem; align-items: center; margin-top: 1.4rem; color: #68746c; font-size: .8rem; }
.safe-note span { width: 8px; height: 8px; border-radius: 50%; background: #5da875; box-shadow: 0 0 0 5px rgba(93,168,117,.12); }

.hero-map { position: relative; min-height: 480px; overflow: hidden; border-radius: 36px; padding: 1.6rem; color: white; background: var(--map); box-shadow: var(--shadow); isolation: isolate; }
.hero-map::before, .hero-map::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; z-index: -1; }
.hero-map::before { width: 520px; height: 520px; top: -240px; right: -180px; }
.hero-map::after { width: 360px; height: 360px; left: -190px; bottom: -170px; }
.map-meta { display: flex; justify-content: space-between; font-family: Georgia, "Songti SC", serif; font-size: 1.2rem; }
.map-meta b { font: 600 .75rem Inter, sans-serif; background: rgba(255,255,255,.17); padding: .55rem .7rem; border-radius: 999px; }
.route-line { position: absolute; left: 15%; top: 48%; width: 70%; height: 120px; border-top: 3px dashed rgba(255,255,255,.7); transform: rotate(-8deg); }
.stop { position: absolute; display: grid; gap: .15rem; background: var(--surface); color: var(--ink); padding: .75rem 1rem .8rem 3.6rem; border-radius: 16px; box-shadow: 0 12px 26px rgba(24,51,90,.2); }
.stop i { position: absolute; left: .65rem; top: 50%; translate: 0 -50%; width: 2.35rem; height: 2.35rem; display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: white; font-style: normal; font-weight: 800; }
.stop strong { font-family: Georgia, "Songti SC", serif; }
.stop small { color: #758078; }
.stop-one { left: 8%; top: 36%; }
.stop-two { left: 42%; top: 53%; }
.stop-three { right: 7%; top: 30%; }
.map-caption { position: absolute; left: 1.6rem; right: 1.6rem; bottom: 1.6rem; padding: 1rem 1.2rem; color: var(--ink); background: rgba(255,254,250,.94); border-radius: 18px; font-size: .9rem; }

.route-band { display: grid; grid-template-columns: repeat(9, auto); gap: 1rem; align-items: center; padding: 1.4rem 1.6rem; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 12px 40px rgba(38,61,50,.06); }
.route-band span { white-space: nowrap; font-size: .85rem; }
.route-band b { margin-right: .4rem; color: var(--map-deep); }
.route-band i { color: var(--coral); font-style: normal; }

.product, .principles { padding: 9rem 0 2rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.2rem; }
.section-heading > p { max-width: 25rem; color: #68746c; line-height: 1.7; }
.screen-tabs { display: flex; gap: .55rem; margin-bottom: 1rem; }
.screen-tabs button { appearance: none; border: 1px solid var(--line); border-radius: 999px; padding: .7rem 1rem; background: transparent; color: var(--ink); cursor: pointer; }
.screen-tabs button[aria-selected="true"] { background: var(--forest); color: white; border-color: var(--forest); }
.screen-frame { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); }
.screen-frame img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.screen-frame figcaption { padding: 1rem 1.2rem; color: #667269; font-size: .86rem; border-top: 1px solid var(--line); }

.principle-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.principle-grid article { min-height: 260px; padding: 1.5rem; border-top: 4px solid var(--map); border-radius: 4px 4px 20px 20px; background: var(--surface); }
.principle-grid span { color: var(--coral); font-weight: 800; }
.principle-grid h3 { margin-top: 3.7rem; font: 600 1.35rem Georgia, "Songti SC", serif; }
.principle-grid p { color: #69756d; line-height: 1.7; font-size: .9rem; }
.stack { display: flex; justify-content: center; gap: .6rem; flex-wrap: wrap; padding: 5rem 0; }
.stack p { margin: 0; padding: .6rem .85rem; border: 1px solid var(--line); border-radius: 999px; font-size: .78rem; }
footer { display: flex; justify-content: space-between; align-items: center; padding: 2.5rem 0 4rem; border-top: 1px solid var(--line); }
footer strong { font: 600 1.4rem Georgia, "Songti SC", serif; }
footer p { color: #6d786f; }
footer a { color: var(--forest); font-weight: 800; text-decoration: none; }

a:focus-visible, button:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
@media (max-width: 900px) {
  nav a:not(.repo-link) { display: none; }
  .hero { grid-template-columns: 1fr; gap: 2rem; padding: 5rem 0; }
  .hero-map { min-height: 420px; }
  .route-band { grid-template-columns: 1fr; }
  .route-band i { transform: rotate(90deg); }
  .section-heading { align-items: start; flex-direction: column; }
  .principle-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .site-header, main, footer { width: min(100% - 24px, 1180px); }
  h1 { font-size: 3.15rem; }
  .hero-map { min-height: 500px; }
  .stop-one { top: 27%; }
  .stop-two { left: 18%; top: 48%; }
  .stop-three { top: 68%; }
  .principle-grid { grid-template-columns: 1fr; }
  .screen-tabs { overflow-x: auto; }
  footer { align-items: start; flex-direction: column; gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
