:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --paper: #faf7f4;
  --surface: #fffdfb;
  --ink: #261d23;
  --muted: #655760;
  --line: #e7dcd9;
  --accent: #8c2849;
  --accent-dark: #681b34;
  --wash: #f6e9eb;
  --measure: 71rem;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.65; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--accent-dark); }
a:focus-visible, summary:focus-visible, audio:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 5px; }
svg { display: inline-block; width: 1.15rem; height: 1.15rem; flex: none; }
img { display: block; }
.wrap { width: min(var(--measure), calc(100% - 3.5rem)); margin-inline: auto; }
.skip {
  position: absolute;
  z-index: 2;
  inset: .75rem auto auto .75rem;
  padding: .55rem 1rem;
  transform: translateY(-200%);
  border-radius: .45rem;
  background: var(--surface);
}
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.topbar, .footer-main { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.topbar { min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; font-weight: 760; white-space: nowrap; }
.brand small { margin-left: .22rem; color: var(--muted); font-size: .81rem; font-weight: 500; }
.topbar nav, .footer-main nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(.65rem, 2.75vw, 2rem); }
.topbar nav a, .footer-main nav a, .top-player { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); text-decoration: none; font-size: .89rem; }
.topbar nav a { min-height: 2.75rem; }
.topbar nav a[aria-current], .topbar nav a:hover, .footer-main nav a:hover { color: var(--accent); }
.topbar nav a[aria-current] { font-weight: 720; }
.top-player { color: var(--accent-dark); border: 1px solid var(--line); padding: .48rem .75rem; border-radius: .65rem; white-space: nowrap; }
.top-player:hover { background: var(--wash); }
.hero {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding-block: clamp(3.5rem, 8vw, 6.75rem) clamp(3rem, 7vw, 5.5rem);
}
.label { margin: 0 0 .6rem; color: var(--accent); font-size: .82rem; font-weight: 730; letter-spacing: .085em; }
.hero-copy .label { display: flex; align-items: center; gap: .62rem; }
.hero-copy .label span { width: 1.65rem; height: 1px; background: currentColor; }
h1, h2, h3 { line-height: 1.22; overflow-wrap: anywhere; text-wrap: pretty; }
h1 { margin: .22em 0 .36em; font-size: clamp(2.25rem, 5.3vw, 4.55rem); letter-spacing: -.055em; font-weight: 780; }
h2 { margin: .2em 0 .65em; font-size: clamp(1.55rem, 3vw, 2.55rem); letter-spacing: -.035em; }
h3 { margin: .1em 0 .35em; font-size: clamp(1.06rem, 2vw, 1.38rem); letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.04rem, 1.52vw, 1.22rem); max-width: 45ch; color: var(--muted); line-height: 1.82; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.3rem; margin-top: 1.5rem; }
.button, .text-action { display: inline-flex; align-items: center; gap: .48rem; text-decoration: none; font-size: .94rem; font-weight: 720; min-height: 2.75rem; }
.button { padding: .67rem 1rem; border-radius: .65rem; color: #fff; background: var(--accent); }
.button:hover { background: var(--accent-dark); color: #fff; }
.text-action:hover { text-decoration: underline; }
.hero-figure {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 23rem;
  margin: 0;
  overflow: hidden;
  padding: 2.25rem 1.25rem;
  border: 1px solid #553348;
  border-radius: 1.55rem;
  background: radial-gradient(ellipse at 70% 38%, #4a233e 0, #301d34 47%, #211828 85%);
}
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.illustration {
  width: min(100%, 19.5rem); padding: .95rem 1rem 1rem;
  color: #fff8fa;
  background: rgb(39 24 42 / 87%);
  border: 1px solid rgb(255 237 242 / 26%);
  border-radius: 1rem;
  box-shadow: 0 12px 42px rgb(16 12 21 / 38%);
  transform: rotate(-3deg);
}
.ill-label { margin: 0 0 .55rem; display: flex; align-items: center; justify-content: space-between; font-size: .77rem; letter-spacing: .1em; color: #f9bdc7; }
.ill-label span { width: .44rem; height: .44rem; border-radius: 50%; background: #fab6c6; }
.illustration ol { padding: 0; margin: 0; list-style: none; }
.illustration li { display: flex; align-items: center; gap: .8rem; padding: .6rem 0; border-top: 1px solid #6c495e; }
.illustration li > span { font-variant-numeric: tabular-nums; color: #f5c1c9; font-size: .78rem; }
.illustration strong, .illustration small { display: block; }
.illustration small { font-size: .77rem; color: #e6ccd6; }
.guides-home, .project { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.28fr); gap: clamp(1rem, 5vw, 4.5rem); padding-block: 2.9rem 4rem; border-top: 1px solid var(--line); }
.section-lead > p:last-child, .project p:not(.label) { color: var(--muted); max-width: 34ch; }
.guide-list { border-top: 1px solid var(--line); }
.guide-row { display: grid; grid-template-columns: 2.3rem 1fr 2rem; align-items: start; gap: .85rem; padding: 1rem .25rem 1.05rem; border-bottom: 1px solid var(--line); }
.guide-row:hover { background: var(--surface); }
.guide-number { color: #73606a; font-size: .86rem; font-variant-numeric: tabular-nums; margin-top: .1rem; }
.guide-intro .label { margin: 0 0 .23rem; font-size: .74rem; }
.guide-intro h3 a { color: var(--ink); text-decoration: none; }
.guide-intro h3 a:hover { color: var(--accent); text-decoration: underline; }
.guide-intro p:last-child { margin: 0; color: var(--muted); font-size: .92rem; }
.row-arrow { justify-self: end; align-self: center; color: var(--accent); }
.project { padding-block: 2.8rem 3.8rem; }
.project h2 { margin-bottom: 0; font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.project p:not(.label) { max-width: 42ch; }
.page-heading { padding-block: 2.3rem 2.1rem; border-bottom: 1px solid var(--line); }
.page-heading.compact { padding-top: 3.4rem; }
.page-heading h1 { max-width: 24ch; font-size: clamp(2rem, 4.75vw, 3.55rem); }
.page-heading .lead { max-width: 53ch; margin-bottom: 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-bottom: 1.45rem; color: var(--muted); font-size: .88rem; }
.crumbs a { color: var(--muted); }
.guides-index { max-width: 54rem; padding-block: 2.6rem 4.25rem; }
.guides-index h2 { font-size: 1.4rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, 12.75rem) minmax(0, 45rem); gap: clamp(1.2rem, 5vw, 4.25rem); align-items: start; padding-block: 2.25rem 3.2rem; }
.toc { position: sticky; top: 1.5rem; padding-left: .9rem; border-left: 2px solid var(--line); font-size: .9rem; }
.toc ol { padding-left: 1.1rem; margin-block: .5rem 0; }
.toc li { margin: .47rem 0; color: var(--muted); }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }
.prose { font-size: 1.025rem; line-height: 1.94; }
.prose.standalone { max-width: 45rem; padding-block: 2.3rem 3.5rem; }
.prose section + section { margin-top: 2.55rem; }
.prose h2 { margin: 0 0 .65em; font-size: clamp(1.32rem, 2.55vw, 1.8rem); scroll-margin-top: 1rem; }
.prose ul, .prose ol { margin: 1rem 0; padding-inline-start: 1.35em; }
.prose li + li { margin-top: .55em; }
.note, .prose details { background: var(--wash); border: 1px solid #ead1d6; padding: .75rem 1rem; border-radius: .8rem; }
.prose details { margin-block: 1.15rem; background: var(--surface); border-color: var(--line); }
.prose details p { margin: .55rem 0 0; }
.prose summary { color: var(--accent); cursor: pointer; font-weight: 700; }
.prose table { width: 100%; border-spacing: 0; margin-block: 1.25rem; font-size: .95rem; border: 1px solid var(--line); border-radius: .8rem; overflow: hidden; background: var(--surface); }
.prose caption { color: var(--muted); font-size: .8rem; text-align: left; padding-bottom: .35rem; }
.prose th, .prose td { text-align: left; padding: .6rem .75rem; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th:first-child { width: 25%; }
.prose thead th { background: var(--wash); font-size: .89rem; }
.prose tr:last-child > :is(th, td) { border-bottom-width: 0; }
.steps, .audio-pair { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 1.15rem 0; }
.steps > div, .audio-pair > figure { margin: 0; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--surface); }
.steps span { display: block; color: var(--accent); font-size: .85rem; font-variant-numeric: tabular-nums; }
.steps p { margin: .3rem 0 0; font-size: .9rem; color: var(--muted); line-height: 1.55; }
.audio-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.audio-pair audio { display: block; width: 100%; margin-block: .6rem .36rem; }
.audio-pair small { color: var(--muted); font-size: .79rem; }
.audio-pair figcaption b { color: var(--accent); padding-right: .25rem; }
.article-end { margin-top: 1.8rem; }
.related { border-top: 1px solid var(--line); padding-block: 1.7rem 3.65rem; }
.related h2 { font-size: 1.35rem; }
.related ul { padding: 0; margin: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .55rem 1.6rem; }
.related a { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; min-height: 2.65rem; }
.related a:hover { text-decoration: underline; }
.site-footer { border-top: 1px solid var(--line); background: #f6efed; padding: 1.65rem 0; }
.footer-main p { margin: .5rem 0 0; font-size: .85rem; color: var(--muted); }

@media (max-width: 760px) {
  .wrap { width: calc(100% - 2rem); }
  .hero { grid-template-columns: 1fr; padding-block: 2.85rem 2.75rem; }
  .hero-figure { min-height: 18rem; }
  .guides-home, .project, .article-layout { grid-template-columns: 1fr; }
  .guides-home, .project { padding-block: 2rem 2.85rem; }
  .toc { position: static; }
  .page-heading { padding-block: 1.55rem 1.55rem; }
  .page-heading.compact { padding-top: 2rem; }
  .footer-main { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 490px) {
  .topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .15rem .5rem; padding-block: .62rem .17rem; }
  .top-player { grid-column: 2; grid-row: 1; padding-inline: .55rem; }
  .topbar nav { grid-column: 1 / -1; gap: 1.35rem; }
  .guide-row { grid-template-columns: 1.5rem 1fr 1.2rem; gap: .45rem; }
  .hero-figure { padding-block: 1.7rem; min-height: 16rem; }
  .illustration { transform: none; }
  .audio-pair { grid-template-columns: 1fr; }
  .prose th, .prose td { padding-inline: .45rem; }
  .steps { grid-template-columns: 1fr; }
}
@media print {
  .wrap { width: 100%; }
  .top-player, .actions, .hero-figure, .site-footer, .article-end { display: none; }
  .hero, .article-layout { display: block; }
  body { background: #fff; color: #000; }
}
