:root {
  --gold: 38 33% 53%;
  --cream: 37 90% 85%;
  --foreground: 42 30% 94%;
  --muted: 37 32% 72%;
  --ink: 210 48% 10%;
  --sea: 207 44% 15%;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 90% 50% at 50% -12%, hsl(213 50% 22% / 0.95), transparent 68%),
    radial-gradient(ellipse 46% 36% at 100% 100%, hsl(var(--gold) / 0.12), transparent 70%),
    linear-gradient(180deg, hsl(var(--ink)) 0%, hsl(var(--sea)) 46%, hsl(208 42% 13%) 100%);
  background-attachment: fixed;
  color: hsl(var(--foreground));
  font-family: "Manrope", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: hsl(var(--gold) / 0.85);
  color: hsl(var(--ink));
}

:focus-visible {
  outline: 1px solid hsl(var(--gold));
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  transform: translateY(-160%);
  background: hsl(var(--ink));
  color: hsl(var(--cream));
  padding: 0.5rem 0.75rem;
  z-index: 50;
}

.skip:focus {
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: hsl(var(--ink) / 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--gold) / 0.28);
}

.header-inner,
.footer-grid {
  width: min(72rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.5rem;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: hsl(var(--cream));
  text-decoration: none;
}

.brand-mark {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border: 1.5px solid hsl(var(--gold) / 0.55);
  box-shadow: inset 0 0 0 1px hsl(var(--gold) / 0.28);
  border-radius: 999px;
  color: hsl(var(--gold));
  font-family: "Ma Shan Zheng", "Noto Serif SC", serif;
  font-size: 1.65rem;
  line-height: 1;
}

.brand-name {
  font-family: "Marcellus", "Noto Serif SC", serif;
  letter-spacing: 0.18em;
  font-size: 1.05rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.35rem;
}

.site-nav a {
  color: hsl(var(--muted));
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.site-nav a:hover {
  color: hsl(var(--cream));
}

.begin {
  border: 1px solid hsl(var(--gold) / 0.28);
  padding: 0.5rem 0.9rem;
  color: hsl(var(--cream)) !important;
}

.begin:hover {
  background: hsl(var(--gold) / 0.12);
}

.article {
  position: relative;
  width: min(48rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2.75rem 0 4.5rem;
}

.mast {
  position: relative;
}

.mast::after {
  content: "命";
  position: absolute;
  right: -0.08em;
  top: -0.45em;
  font-family: "Ma Shan Zheng", "Noto Serif SC", serif;
  font-size: clamp(6.5rem, 18vw, 9rem);
  line-height: 1;
  color: hsl(var(--gold));
  opacity: 0.055;
  pointer-events: none;
  user-select: none;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin: 0 0 1.35rem;
  color: hsl(var(--muted));
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.crumbs a:hover {
  color: hsl(var(--cream));
}

.eyebrow {
  margin: 0;
  color: hsl(var(--gold));
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Marcellus", "Noto Serif SC", serif;
  font-weight: 400;
  color: hsl(var(--cream));
}

h1 {
  margin: 0.55rem 0 1.2rem;
  font-size: clamp(2rem, 4.4vw, 2.85rem);
  line-height: 1.18;
  text-wrap: balance;
}

h2 {
  margin: 2.8rem 0 0.85rem;
  padding-top: 1.45rem;
  border-top: 1px solid hsl(var(--gold) / 0.28);
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  line-height: 1.25;
  text-wrap: balance;
}

h3 {
  margin: 1.7rem 0 0.45rem;
  font-size: 1.28rem;
  line-height: 1.3;
}

p {
  margin: 0.9rem 0;
}

.prose p,
.prose li {
  color: hsl(var(--foreground) / 0.9);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.prose strong {
  color: hsl(var(--cream));
  font-weight: 600;
}

.prose a {
  color: hsl(var(--cream));
  text-decoration-color: hsl(var(--gold) / 0.75);
  text-underline-offset: 3px;
}

.prose a:hover {
  text-decoration-color: hsl(var(--cream));
}

ul,
ol {
  margin: 0.8rem 0 1rem;
  padding-left: 1.25rem;
}

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

li::marker {
  color: hsl(var(--gold));
}

.cta {
  margin: 1.6rem 0 1.8rem;
}

.cta a {
  display: inline-block;
  max-width: 100%;
  border: 1px solid hsl(var(--gold) / 0.45);
  background: hsl(var(--gold) / 0.1);
  color: hsl(var(--cream));
  text-decoration: none;
  padding: 0.85rem 1.1rem;
  font-weight: 600;
  line-height: 1.4;
}

.cta a:hover {
  background: hsl(var(--gold) / 0.18);
}

.table-wrap {
  margin: 1.15rem 0 1.35rem;
  overflow-x: auto;
  border-top: 1px solid hsl(var(--gold) / 0.28);
}

table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
}

th,
td {
  padding: 0.75rem 0.7rem 0.75rem 0;
  border-bottom: 1px solid hsl(var(--gold) / 0.22);
  text-align: left;
  vertical-align: top;
}

thead th {
  color: hsl(var(--gold));
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

tbody th[scope="row"] {
  color: hsl(var(--cream));
  font-family: "Marcellus", "Noto Serif SC", serif;
  font-size: 1rem;
  font-weight: 400;
  white-space: nowrap;
  padding-right: 0.85rem;
}

td {
  color: hsl(var(--foreground) / 0.9);
  font-size: 0.95rem;
  line-height: 1.5;
  padding-right: 0.85rem;
}

.site-footer {
  border-top: 1px solid hsl(var(--gold) / 0.28);
  background: hsl(var(--ink));
  padding: 3rem 0 0;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

.footer-grid p,
.footer-grid a {
  color: hsl(var(--muted));
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-grid .eyebrow {
  color: hsl(var(--gold));
  font-size: 11px;
  letter-spacing: 0.3em;
}

.footer-grid a {
  text-decoration: none;
}

.footer-grid a:hover,
.footer-grid a[aria-current="page"] {
  color: hsl(var(--cream));
}

.footer-grid ul {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
}

.footer-grid li + li {
  margin-top: 0.4rem;
}

.lockup {
  margin: 0 0 0.7rem;
  font-family: "Marcellus", "Noto Serif SC", serif;
  letter-spacing: 0.18em;
  color: hsl(var(--cream)) !important;
  font-size: 1.05rem !important;
}

.stele {
  font-family: "Ma Shan Zheng", "Noto Serif SC", serif;
  letter-spacing: 0;
}

.legal {
  margin: 2rem 0 0;
  font-size: 11px !important;
  letter-spacing: 0.04em;
  text-align: center;
  color: hsl(var(--muted));
  border-top: 1px solid hsl(207 26% 30% / 0.6);
  padding: 1.1rem 1rem 1.3rem;
}

.guide-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}

.guide-list li {
  margin: 0;
  padding: 1.15rem 0 1.2rem;
  border-top: 1px solid hsl(var(--gold) / 0.28);
}

.guide-list li:last-child {
  border-bottom: 1px solid hsl(var(--gold) / 0.28);
}

.prose .guide-list a {
  color: hsl(var(--cream));
  font-family: "Marcellus", "Noto Serif SC", serif;
  font-size: 1.35rem;
  line-height: 1.3;
  text-decoration: none;
}

.prose .guide-list a:hover {
  text-decoration: underline;
  text-decoration-color: hsl(var(--gold) / 0.75);
  text-underline-offset: 3px;
}

.guide-list p {
  margin: 0.45rem 0 0;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.3fr 0.8fr 1.1fr;
    gap: 2.5rem;
  }
}

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