:root {
  color-scheme: light;
  --page: #f5f7f4;
  --surface: #ffffff;
  --surface-soft: #edf4f1;
  --text: #17211d;
  --muted: #4d5d56;
  --border: #c8d4cf;
  --accent: #075f52;
  --accent-strong: #00483e;
  --focus: #a23d00;
  --warning: #714800;
  --shadow: 0 16px 42px rgba(23, 33, 29, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 280px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(7, 95, 82, 0.09), transparent 24rem),
    var(--page);
  font-size: 1rem;
  line-height: 1.72;
  overflow-wrap: anywhere;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.16em;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 0.25rem;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  border: 2px solid currentColor;
  border-radius: 0.6rem;
  color: var(--surface);
  background: var(--accent-strong);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer {
  padding-inline: max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-right));
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
}

.header-inner,
.footer-inner,
.page-shell {
  width: min(100%, 45rem);
  margin-inline: auto;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 1rem;
  min-height: 4.5rem;
  padding-block: 0.7rem;
}

.brand {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border-radius: 0.55rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--surface);
  background: var(--accent);
}

.page-shell {
  padding: 2.25rem 1rem 4rem;
}

.hero,
.content-card,
.support-card,
.route-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero {
  padding: clamp(1.35rem, 5vw, 2.5rem);
  border-top: 0.4rem solid var(--accent);
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 760;
  letter-spacing: 0.08em;
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.32;
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.25rem);
  letter-spacing: -0.035em;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 5vw, 1.7rem);
}

h3 {
  margin: 1.5rem 0 0.55rem;
  font-size: 1.12rem;
}

p,
ul,
ol {
  max-width: 43em;
}

ul,
ol {
  padding-inline-start: 1.4rem;
}

.lede {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.updated {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.content-card,
.support-card {
  margin-top: 1.25rem;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.content-card section + section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

li + li {
  margin-top: 0.5rem;
}

.notice {
  margin-block: 1.25rem;
  padding: 1rem;
  border-left: 0.3rem solid var(--warning);
  border-radius: 0.35rem;
  color: var(--text);
  background: #fff7df;
}

.route-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.route-card {
  display: block;
  min-height: 7.5rem;
  padding: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.route-card strong {
  display: block;
  color: var(--accent-strong);
  font-size: 1.2rem;
}

.route-card span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
}

details {
  border-top: 1px solid var(--border);
}

details:last-child {
  border-bottom: 1px solid var(--border);
}

summary {
  min-height: 3.25rem;
  padding-block: 0.85rem;
  cursor: pointer;
  color: var(--accent-strong);
  font-weight: 700;
}

details > :not(summary) {
  margin-inline: 0;
  padding-bottom: 1rem;
}

.email-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding: 0.25rem 0;
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface-soft);
}

.footer-inner {
  padding-block: 1.5rem 2.25rem;
}

.footer-inner p {
  margin: 0.35rem 0;
}

@media (min-width: 40rem) {
  .site-header,
  .site-footer,
  .page-shell {
    padding-inline: 1.25rem;
  }

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

@media (max-width: 30rem) {
  .header-inner {
    align-items: stretch;
  }

  .site-nav {
    width: 100%;
    min-width: 0;
  }

  .site-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav a {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-contrast: more) {
  :root {
    --page: #ffffff;
    --surface-soft: #ffffff;
    --text: #000000;
    --muted: #252525;
    --border: #303030;
    --accent: #00493f;
    --accent-strong: #00352e;
    --focus: #8a2f00;
    --shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (forced-colors: active) {
  .hero,
  .content-card,
  .support-card,
  .route-card,
  .notice {
    border: 2px solid CanvasText;
    box-shadow: none;
  }

  .site-nav a[aria-current="page"] {
    border: 2px solid LinkText;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  .skip-link,
  .site-nav {
    display: none;
  }

  .hero,
  .content-card,
  .support-card {
    border-color: #777777;
    box-shadow: none;
  }
}
