/* ============================================================
   Hengxin Info — modern minimal · editorial typography
   Design posture: paper-toned background + deep ink text +
   vermilion accent; serif headlines carry the hierarchy,
   no card stacking.
   ============================================================ */

:root {
  /* Palette */
  --paper: #faf9f6;          /* paper-toned background */
  --surface: #ffffff;        /* card / separated blocks */
  --ink: #1c2128;            /* primary text */
  --ink-soft: #4a5261;       /* secondary text */
  --ink-faint: #8b93a1;      /* muted text */
  --line: #e4e2dc;           /* divider lines */
  --accent: #9e2b25;         /* vermilion, the only accent color */
  --accent-soft: #f3e5e3;    /* light tint of the accent */

  /* Type: serifs carry headings (editorial feel),
     sans handles body copy and UI */
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC",
                "SimSun", Georgia, serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
               "Noto Sans SC", system-ui, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  /* Metrics */
  --container: 1080px;
  --radius: 6px;
  --header-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 18px;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name em {
  font-style: normal;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
}

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

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: color .15s, background .15s;
}

.site-nav a:hover { color: var(--ink); background: var(--accent-soft); }

.site-nav .nav-cta {
  color: var(--accent);
  font-weight: 600;
  border: 1px solid var(--accent);
  margin-left: 8px;
}

.site-nav .nav-cta:hover {
  background: var(--accent);
  color: #fff;
}

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--line);
}

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

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(34px, 5.2vw, 54px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-wrap: balance;
  margin-bottom: 24px;
}

.lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 620px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 26px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn-primary:hover { background: #872320; border-color: #872320; }

.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--surface);
}

.btn-ghost:hover { border-color: var(--ink-faint); }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.hero-meta dt {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

.hero-meta dd {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ---------- Shared sections ---------- */

.section { padding: 80px 0; }

.section-head { max-width: 640px; margin-bottom: 48px; }

.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

.section-head p { color: var(--ink-soft); font-size: 15px; }

/* ---------- Services: numbered editorial list ---------- */

.services { border-bottom: 1px solid var(--line); }

.service-list { list-style: none; }

.service-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 24px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.service-item:first-child { border-top: none; padding-top: 0; }

.service-no {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--accent);
  font-weight: 700;
  line-height: 1;
  padding-top: 4px;
}

.service-body h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-body p {
  color: var(--ink-soft);
  max-width: 640px;
}

.service-tags {
  margin-top: 14px !important;
  font-size: 13px !important;
  color: var(--ink-faint) !important;
  letter-spacing: 0.02em;
}

/* ---------- Regulatory Briefs ---------- */

.update-list {
  list-style: none;
  border-top: 1px solid var(--line);
}

.update-item {
  display: grid;
  grid-template-columns: 110px 84px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.update-item time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-faint);
  white-space: nowrap;
}

.update-tag {
  justify-self: start;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
}

.update-text h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.update-text p {
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- About ---------- */

.about { border-top: 1px solid var(--line); }

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}

.about h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
  margin-bottom: 20px;
}

.about p { color: var(--ink-soft); margin-bottom: 16px; max-width: 560px; }

.principles {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.principles h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  margin-bottom: 16px;
}

.principles ul { list-style: none; }

.principles li {
  font-size: 14px;
  color: var(--ink-soft);
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.principles li:first-child { border-top: none; padding-top: 0; }

.principles strong { color: var(--ink); }

/* ---------- Contact ---------- */

.contact {
  background: var(--ink);
  color: #f2f0ea;
}

.contact-inner { max-width: 720px; }

.contact h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 14px;
}

.contact > .container > p {
  color: #b9bcc2;
  margin-bottom: 40px;
}

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

.channel-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #8b93a1;
  margin-bottom: 6px;
}

.contact-channels a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
  padding-bottom: 1px;
  transition: border-color .15s;
}

.contact-channels a:hover { border-color: #fff; }

.contact-channels span:not(.channel-label) { color: #e6e4de; font-size: 15px; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  background: var(--paper);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}

.footer-brand {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 14px;
}

.footer-nav {
  display: flex;
  gap: 20px;
}

.footer-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13px;
}

.footer-nav a:hover { color: var(--ink); }

.footer-note {
  flex-basis: 100%;
  font-size: 12px;
  color: var(--ink-faint);
}

/* ---------- Focus states & restrained motion ---------- */

a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero { padding: 64px 0 56px; }
  .section { padding: 56px 0; }
  .hero-meta { grid-template-columns: 1fr; gap: 18px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-channels { grid-template-columns: 1fr; gap: 18px; }
  .service-item { grid-template-columns: 56px 1fr; gap: 16px; }
  .update-item { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
  .update-item time { order: -1; }
}

@media (max-width: 620px) {
  .site-nav a:not(.nav-cta) { display: none; } /* narrow screens: keep brand + contact entry only */
  .hero-actions .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
