:root {
  --ink-green: #0E2A24;
  --ink-green-700: #173D34;
  --ink-green-500: #2C574A;
  --crown-gold: #C8A24A;
  --copper: #B0763B;
  --copper-deep: #8A5A2B;
  --paper: #FCFAF4;
  --paper-warm: #F7F2E8;
  --ink: #141A17;
  --muted: #5F6F65;
  --line-gold: #DCC894;
  --gold-gradient: linear-gradient(135deg, #E8B25C, #D98A2B);
  --font-display: "FZYaSongS-B-GB", "方正风雅宋", "Noto Serif SC", "Songti SC", "STSong", serif;
  --font-body: "Source Han Sans SC", "思源黑体", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  --shell: min(1240px, calc(100% - 48px));
  --gutter: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 220ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% 6%, rgba(200, 162, 74, 0.08), transparent 28rem),
    radial-gradient(circle at 90% 0%, rgba(44, 87, 74, 0.07), transparent 32rem),
    repeating-linear-gradient(0deg, rgba(20, 26, 23, 0.016) 0 1px, transparent 1px 5px);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.85;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--copper-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

a:hover {
  color: var(--copper);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--crown-gold);
  outline-offset: 3px;
}

::selection {
  background: var(--crown-gold);
  color: var(--ink-green);
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: inherit;
  font-family: var(--font-display);
  font-weight: 700;
}

p {
  margin-bottom: 1.2em;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 10px 16px;
  border: 1px solid var(--crown-gold);
  background: var(--paper);
  color: var(--ink-green);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink-green);
  border-bottom: 1px solid rgba(220, 200, 148, 0.58);
  box-shadow: 0 1px 0 rgba(20, 26, 23, 0.25);
  color: var(--paper);
}

.header-shell {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
  width: var(--shell);
  min-height: 88px;
  margin-inline: auto;
  padding-block: 12px;
  transition: min-height var(--dur) var(--ease), padding var(--dur) var(--ease);
}

.scroll-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gold-gradient);
  transition: width 100ms linear;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--paper);
  text-decoration: none;
}

.brand:hover {
  color: var(--paper);
}

.brand:hover .brand__mark {
  background-color: rgba(200, 162, 74, 0.16);
  border-color: var(--crown-gold);
}

.brand__mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--crown-gold);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(232, 178, 92, 0.18), transparent 58%),
    rgba(252, 250, 244, 0.02);
  color: var(--crown-gold);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  transition: width var(--dur) var(--ease), height var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.brand__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand__name {
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  white-space: nowrap;
}

.brand__line {
  color: rgba(247, 242, 232, 0.66);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  line-height: 1.4;
  white-space: nowrap;
}

.brand__edition {
  padding: 3px 5px;
  border: 1px solid rgba(200, 162, 74, 0.55);
  color: var(--crown-gold);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  line-height: 1.4;
  white-space: nowrap;
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid rgba(200, 162, 74, 0.55);
  background: transparent;
  color: var(--paper);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav-toggle:hover {
  border-color: var(--crown-gold);
  background: rgba(200, 162, 74, 0.08);
}

.nav-toggle__lines {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle__lines span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--crown-gold);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.site-header[data-open] .nav-toggle__lines span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.site-header[data-open] .nav-toggle__lines span:nth-child(2) {
  opacity: 0;
}

.site-header[data-open] .nav-toggle__lines span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.site-nav {
  justify-self: center;
  min-width: 0;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 10px 9px;
  color: rgba(252, 250, 244, 0.84);
  font-size: 13px;
  letter-spacing: 0.03em;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.site-nav__link::after {
  position: absolute;
  right: 9px;
  bottom: 5px;
  left: 9px;
  height: 1px;
  background: var(--gold-gradient);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.site-nav__link:hover {
  color: var(--paper);
}

.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav__link[aria-current="page"] {
  color: var(--crown-gold);
}

.site-nav__index {
  color: var(--crown-gold);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0;
  line-height: 1;
  opacity: 0.85;
}

.site-nav__text {
  display: inline-block;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), transform var(--dur) var(--ease), filter var(--dur) var(--ease);
}

.header-action--ghost {
  border-color: rgba(200, 162, 74, 0.55);
  background: rgba(252, 250, 244, 0.02);
  color: var(--paper);
}

.header-action--ghost:hover {
  border-color: var(--crown-gold);
  background: rgba(200, 162, 74, 0.08);
  color: var(--crown-gold);
}

.header-action--solid {
  border-color: transparent;
  background: var(--gold-gradient);
  color: var(--ink-green);
  font-weight: 700;
}

.header-action--solid:hover {
  color: var(--ink-green);
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.site-header[data-scrolled] .header-shell {
  min-height: 64px;
  padding-block: 8px;
}

.site-header[data-scrolled] .brand__mark {
  width: 36px;
  height: 36px;
  font-size: 16px;
}

.site-header[data-scrolled] .brand__line,
.site-header[data-scrolled] .brand__edition {
  display: none;
}

.site-footer {
  position: relative;
  border-top: 1px solid var(--crown-gold);
  background-color: var(--ink-green);
  background-image:
    radial-gradient(circle at 82% 8%, rgba(200, 162, 74, 0.12), transparent 28rem),
    linear-gradient(180deg, rgba(23, 61, 52, 0.45), transparent 34%);
  color: var(--paper);
}

.site-footer::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--crown-gold) 0 28px, transparent 28px 56px);
  content: "";
  opacity: 0.4;
  pointer-events: none;
}

.footer-shell {
  width: var(--shell);
  margin-inline: auto;
  padding-block: clamp(42px, 6vw, 72px) 28px;
}

.footer-mast {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 32px;
  padding-bottom: 36px;
}

.footer-brand {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.footer-brand__mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--crown-gold);
  border-radius: 50%;
  background: rgba(200, 162, 74, 0.06);
  color: var(--crown-gold);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.footer-brand__name {
  margin: 0;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.footer-brand__line {
  margin: 4px 0 0;
  color: var(--crown-gold);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  line-height: 1.5;
}

.footer-brand__note {
  grid-column: 2;
  max-width: 38em;
  margin: 10px 0 0;
  color: rgba(247, 242, 232, 0.68);
  font-size: 14px;
  line-height: 1.8;
}

.footer-stamp {
  display: grid;
  place-content: center;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(200, 162, 74, 0.78);
  border-radius: 50%;
  color: var(--crown-gold);
  text-align: center;
  transform: rotate(-6deg);
}

.footer-stamp span {
  font-family: var(--font-mono);
  font-size: 17px;
  line-height: 1.1;
}

.footer-stamp small {
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.14em;
  line-height: 1.2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr minmax(280px, 1.35fr);
  gap: clamp(20px, 3vw, 40px);
  padding-block: 40px;
  border-top: 1px solid rgba(220, 200, 148, 0.24);
  border-bottom: 1px solid rgba(220, 200, 148, 0.24);
}

.footer-col {
  min-width: 0;
}

.footer-col__title {
  margin: 0 0 16px;
  color: var(--crown-gold);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.4;
}

.footer-links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-link {
  position: relative;
  display: inline-block;
  color: rgba(247, 242, 232, 0.82);
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.footer-link::after {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 1px;
  background: var(--gold-gradient);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.footer-link:hover {
  color: var(--crown-gold);
}

.footer-link:hover::after {
  transform: scaleX(1);
}

.footer-contact {
  min-width: 0;
}

.footer-contact__list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.footer-contact__list div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
}

.footer-contact__list dt {
  color: rgba(200, 162, 74, 0.9);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  line-height: 1.5;
}

.footer-contact__list dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: rgba(247, 242, 232, 0.76);
  font-size: 13px;
  line-height: 1.65;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  color: rgba(247, 242, 232, 0.58);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

.footer-legal p {
  margin: 0;
}

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-legal__links a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.footer-legal__links a:hover {
  color: var(--crown-gold);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(64px, 9vw, 120px);
}

.section--tight {
  padding-block: clamp(40px, 6vw, 72px);
}

.section--paper {
  background: var(--paper);
  color: var(--ink);
}

.section--ink {
  background: var(--ink-green);
  color: var(--paper);
}

.section--ink .lede,
.section--ink .prose,
.section--ink p {
  color: rgba(247, 242, 232, 0.76);
}

.section--ink .rule {
  background: rgba(220, 200, 148, 0.35);
}

.measure {
  max-width: 34em;
}

.prose {
  max-width: 680px;
}

.prose p {
  margin-bottom: 1.2em;
}

.flow > * + * {
  margin-top: var(--flow-space, 24px);
}

.chapter-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: clamp(16px, 3vw, 32px);
}

.chapter-index {
  position: relative;
  padding-top: 0.35em;
  color: var(--crown-gold);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
}

.chapter-index::after {
  display: block;
  width: 42px;
  height: 1px;
  margin-top: 10px;
  background: var(--gold-gradient);
  content: "";
}

.chapter-index--display {
  padding-top: 0;
  font-size: clamp(64px, 10vw, 140px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.82;
  opacity: 0.88;
}

.chapter-index--display::after {
  width: 72px;
  margin-top: 18px;
}

.chapter-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.lede {
  max-width: 34em;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.8;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--copper-deep);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
}

.rule {
  width: 100%;
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--line-gold);
}

.rule--short {
  width: 64px;
  background: var(--gold-gradient);
}

.grid {
  display: grid;
  gap: var(--gutter);
}

.grid--7-5 {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.grid--8-4 {
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
}

.grid--cards {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  position: relative;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line-gold);
  background: var(--paper-warm);
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.card::before {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 18px;
  height: 18px;
  border-top: 2px solid var(--crown-gold);
  border-left: 2px solid var(--crown-gold);
  content: "";
  pointer-events: none;
}

.card:hover {
  border-color: var(--crown-gold);
  transform: translateY(-2px);
}

.card--paper {
  background:
    linear-gradient(135deg, rgba(200, 162, 74, 0.07), transparent 38%),
    var(--paper-warm);
}

.card--stack {
  box-shadow: 8px 8px 0 rgba(220, 200, 148, 0.3), 16px 16px 0 rgba(247, 242, 232, 0.65);
}

.card--ink {
  border-color: rgba(200, 162, 74, 0.52);
  background: var(--ink-green-700);
  color: var(--paper);
}

.card--ink .card__meta {
  color: var(--crown-gold);
}

.card--ink .card__body {
  color: rgba(247, 242, 232, 0.74);
}

.card__meta {
  margin-bottom: 12px;
  color: var(--copper-deep);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1.6;
}

.card__title {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35;
}

.card__body {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-gold);
  background:
    linear-gradient(135deg, rgba(200, 162, 74, 0.22), rgba(44, 87, 74, 0.18)),
    var(--paper-warm);
  isolation: isolate;
}

.media-frame::before {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 16px;
  height: 16px;
  border-top: 1px solid var(--crown-gold);
  border-right: 1px solid var(--crown-gold);
  content: "";
  pointer-events: none;
  z-index: 2;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--wide {
  aspect-ratio: 16 / 9;
}

.media-frame--tall {
  aspect-ratio: 3 / 4;
}

.media-frame--square {
  aspect-ratio: 1 / 1;
}

.media-frame__caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 10px 12px;
  background: rgba(14, 42, 36, 0.86);
  color: rgba(247, 242, 232, 0.82);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), transform var(--dur) var(--ease), filter var(--dur) var(--ease);
}

.button--primary {
  background: var(--gold-gradient);
  color: var(--ink-green);
  font-weight: 700;
}

.button--primary:hover {
  color: var(--ink-green);
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.button--ghost {
  border-color: var(--crown-gold);
  background: transparent;
  color: var(--ink-green);
}

.button--ghost:hover {
  background: rgba(200, 162, 74, 0.12);
  color: var(--ink-green);
}

.section--ink .button--ghost {
  color: var(--paper);
}

.button--quiet {
  min-height: auto;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--copper);
  background: transparent;
  color: var(--copper-deep);
  text-decoration: none;
}

.button--quiet:hover {
  border-color: var(--crown-gold);
  color: var(--copper);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border: 1px solid var(--line-gold);
  background: var(--paper-warm);
  color: var(--copper-deep);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

.tag--copper {
  border-color: rgba(176, 118, 59, 0.5);
  background: rgba(176, 118, 59, 0.08);
  color: var(--copper-deep);
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 12px;
  border: 1px solid var(--line-gold);
  background: var(--paper);
  color: var(--ink-green);
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.4;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.chip:hover,
.chip[aria-pressed="true"] {
  border-color: var(--crown-gold);
  background: var(--gold-gradient);
  color: var(--ink-green);
}

.breadcrumbs {
  padding-block: 16px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs__item:not(:last-child)::after {
  color: var(--line-gold);
  content: "/";
}

.breadcrumbs__link {
  color: inherit;
  text-decoration: none;
}

.breadcrumbs__link:hover {
  color: var(--copper-deep);
}

.step-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0 0 0 clamp(16px, 3vw, 28px);
  border-left: 1px solid var(--line-gold);
  list-style: none;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(56px, 88px) minmax(0, 1fr);
  gap: clamp(12px, 2vw, 24px);
  padding-block: 22px;
  border-bottom: 1px solid rgba(220, 200, 148, 0.45);
}

.step:last-child {
  border-bottom: 0;
}

.step::before {
  position: absolute;
  top: 30px;
  left: calc(clamp(16px, 3vw, 28px) * -1 - 3px);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--crown-gold);
  content: "";
}

.step__index {
  color: var(--crown-gold);
  font-family: var(--font-mono);
  font-size: clamp(34px, 5vw, 64px);
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.step__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.35;
}

.step__body {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

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

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

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
}

.accordion__trigger[aria-expanded="true"] {
  color: var(--copper-deep);
}

.accordion__icon {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1px solid var(--crown-gold);
}

.accordion__icon::before,
.accordion__icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 1px;
  background: var(--crown-gold);
  content: "";
  transform: translate(-50%, -50%);
  transition: transform var(--dur) var(--ease);
}

.accordion__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.accordion__trigger[aria-expanded="true"] .accordion__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.accordion__panel {
  padding: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.chapter-nav {
  border-left: 1px solid var(--line-gold);
  padding-left: 16px;
}

.chapter-nav__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chapter-nav__link {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-decoration: none;
}

.chapter-nav__link:hover,
.chapter-nav__link[aria-current="true"] {
  color: var(--copper-deep);
}

.chapter-nav__link[aria-current="true"] {
  font-weight: 700;
}

.notice {
  padding: 16px 18px;
  border: 1px solid var(--line-gold);
  background: var(--paper-warm);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.8;
}

.notice--gold {
  border-left: 3px solid var(--crown-gold);
  background:
    linear-gradient(90deg, rgba(200, 162, 74, 0.13), transparent 42%),
    var(--paper-warm);
}

@media (max-width: 1280px) {
  .brand__edition {
    display: none;
  }
}

@media (max-width: 1120px) {
  .header-shell {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 72px;
    padding-block: 10px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .nav-toggle {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    justify-self: stretch;
    padding-top: 14px;
    border-top: 1px solid rgba(220, 200, 148, 0.26);
  }

  .site-nav__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .site-nav__link {
    display: flex;
    padding: 12px 8px;
    border-bottom: 1px solid rgba(220, 200, 148, 0.18);
    font-size: 15px;
  }

  .site-nav__link::after {
    display: none;
  }

  .site-nav__link[aria-current="page"] {
    background: rgba(200, 162, 74, 0.1);
  }

  .header-actions {
    display: none;
    grid-column: 1 / -1;
    justify-self: stretch;
    padding-top: 10px;
    padding-bottom: 14px;
  }

  .header-actions .header-action {
    flex: 1;
  }

  .site-header[data-open] .site-nav {
    display: block;
  }

  .site-header[data-open] .header-actions {
    display: flex;
  }

  .site-header[data-scrolled] .header-shell {
    min-height: 64px;
  }

  .grid--7-5,
  .grid--8-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 16px;
  }

  .header-shell,
  .footer-shell,
  .shell {
    width: min(100% - 32px, 1240px);
  }

  .brand__mark {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }

  .brand__name {
    font-size: 15px;
  }

  .brand__line {
    display: none;
  }

  .site-nav__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-mast {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-stamp {
    display: none;
  }

  .footer-brand {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .footer-brand__mark {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .footer-brand__note {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .footer-contact {
    grid-column: auto;
  }

  .footer-contact__list div {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
  }

  .chapter-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .chapter-index--display {
    font-size: clamp(56px, 18vw, 96px);
  }

  .chapter-index::after {
    margin-top: 6px;
  }

  .step {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .step__index {
    font-size: 34px;
  }

  .card--stack {
    box-shadow: 5px 5px 0 rgba(220, 200, 148, 0.3), 10px 10px 0 rgba(247, 242, 232, 0.65);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
