:root {
  color-scheme: light;
  --ink: #173b39;
  --ink-deep: #052f2f;
  --ink-dark: #032525;
  --ink-soft: #315b57;
  --paper: #f5f1df;
  --paper-light: #fbf8ec;
  --paper-deep: #e9e1c8;
  --gold: #d4af37;
  --gold-dark: #a68120;
  --gold-soft: #e4cb72;
  --red: #9c352b;
  --muted: #6d7168;
  --line: rgba(79, 72, 50, 0.2);
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC",
    "SimSun", serif;
  --sans: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.7;
}

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

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

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

.phone-page {
  min-height: 100vh;
  overflow: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 71px;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(217, 223, 215, 0.86);
  background: rgba(251, 251, 247, 0.62);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  color: #1d2522;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #cbd8ce;
  border-radius: 50%;
  background: #fff;
  color: #1f6f5b;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 900;
}

.brand > span:not(.brand-mark) {
  min-width: 0;
}

.brand strong {
  display: block;
  color: #1d2522;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.brand small {
  display: block;
  max-width: min(48vw, 520px);
  margin-top: 3px;
  color: #607069;
  font-size: 12px;
  line-height: 1.2;
  white-space: normal;
}

.topnav {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.topnav a {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 6px;
  color: #1d2522;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  text-decoration: none;
}

.topnav a::after {
  display: none;
}

.topnav a:hover,
.topnav a.active {
  background: #edf3ee;
}

.topnav a.active {
  background: #e4efe8;
  color: #134c3c;
  font-weight: 800;
}

.home-hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 72px);
  place-items: center;
  overflow: hidden;
  padding: 80px 24px 100px;
  color: var(--paper);
  text-align: center;
  background:
    radial-gradient(circle at 50% 36%, rgba(212, 175, 55, 0.1), transparent 24%),
    radial-gradient(circle at 50% 120%, rgba(65, 116, 109, 0.5), transparent 48%),
    linear-gradient(180deg, #073f3e 0%, #042f30 54%, #022728 100%);
}

.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -15%;
  left: -8%;
  height: 42%;
  opacity: 0.42;
  background:
    radial-gradient(ellipse at 16% 85%, transparent 0 19%, #113f3d 20% 26%, transparent 27%),
    radial-gradient(ellipse at 35% 100%, transparent 0 27%, #0b3736 28% 34%, transparent 35%),
    radial-gradient(ellipse at 65% 100%, transparent 0 24%, #123f3d 25% 31%, transparent 32%),
    radial-gradient(ellipse at 88% 90%, transparent 0 22%, #0b3736 23% 31%, transparent 32%);
  filter: blur(1px);
}

.home-hero::after {
  bottom: -24%;
  height: 48%;
  opacity: 0.62;
  transform: scaleX(-1);
  filter: blur(4px);
}

.hero-aura {
  position: absolute;
  top: 5%;
  left: 50%;
  width: min(560px, 86vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  opacity: 0.32;
}

.hero-aura img {
  position: absolute;
  inset: 14%;
  width: 72%;
  height: 72%;
  object-fit: contain;
  opacity: 0.5;
  filter: invert(80%) sepia(48%) saturate(517%) hue-rotate(3deg) brightness(88%);
  animation: hero-spin 100s linear infinite;
}

.hero-orbit {
  position: absolute;
  inset: 3%;
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 50%;
}

.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px dashed rgba(212, 175, 55, 0.26);
  border-radius: 50%;
}

.hero-orbit::after {
  inset: 21%;
  border-style: solid;
}

.hero-copy {
  position: relative;
  z-index: 2;
  margin-top: 106px;
}

.hero-copy h1 {
  margin: 0;
  color: var(--paper-light);
  font-family: var(--serif);
  font-size: clamp(64px, 9vw, 126px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.13em;
  text-indent: 0.13em;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.26);
}

.hero-lead {
  margin: 28px 0 0;
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 28px);
  letter-spacing: 0.28em;
  text-indent: 0.28em;
}

.hero-copy blockquote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 18px 0 0;
  color: rgba(245, 241, 223, 0.76);
  font-family: var(--serif);
  font-size: clamp(13px, 1.2vw, 16px);
  letter-spacing: 0.08em;
}

.hero-copy blockquote::before,
.hero-copy blockquote::after {
  content: "";
  width: clamp(40px, 8vw, 110px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.hero-copy blockquote::after {
  transform: scaleX(-1);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 46px;
}

.button {
  display: inline-grid;
  min-width: 160px;
  min-height: 52px;
  place-items: center;
  border: 1px solid var(--gold);
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.12em;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-gold {
  background: rgba(3, 40, 40, 0.8);
  color: var(--gold-soft);
  box-shadow: inset 0 0 0 4px rgba(212, 175, 55, 0.06);
}

.button-paper {
  border-color: var(--paper-deep);
  background: var(--paper);
  color: var(--ink-deep);
  box-shadow: inset 0 0 0 4px rgba(5, 47, 47, 0.05);
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 24px;
  display: grid;
  width: 26px;
  height: 42px;
  place-items: start center;
  padding-top: 8px;
  border: 1px solid rgba(245, 241, 223, 0.28);
  border-radius: 999px;
}

.scroll-cue span {
  width: 3px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold-soft);
  animation: scroll-cue 1.8s ease-in-out infinite;
}

.classic-stream {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  padding: 40px max(24px, calc((100vw - 1320px) / 2));
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.35), transparent 25% 75%, rgba(255, 255, 255, 0.28)),
    var(--paper-light);
}

.stream-heading {
  align-self: center;
  padding-right: 26px;
  border-right: 1px solid rgba(156, 53, 43, 0.25);
}

.stream-heading p {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.stream-heading span {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.classic-marquee {
  overflow: hidden;
  border: 1px solid rgba(79, 72, 50, 0.16);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.classic-list {
  display: flex;
  width: max-content;
  animation: classic-scroll 40s linear infinite;
}

.classic-marquee:hover .classic-list,
.classic-marquee:focus-within .classic-list {
  animation-play-state: paused;
}

.classic-group {
  display: grid;
  grid-template-columns: repeat(9, 116px);
  flex: 0 0 auto;
}

.classic-group a {
  display: flex;
  min-height: 164px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 14px 8px;
  border-right: 1px solid rgba(79, 72, 50, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), transparent),
    rgba(245, 241, 223, 0.72);
  text-align: center;
  transition:
    color 0.25s ease,
    background 0.25s ease;
}

.classic-group a:hover {
  background: var(--ink);
  color: var(--gold-soft);
}

.classic-group strong {
  max-height: 6.5em;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  writing-mode: vertical-rl;
  letter-spacing: 0.16em;
}

.classic-group span {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 11px;
  writing-mode: vertical-rl;
  letter-spacing: 0.1em;
}

.classic-group a:hover span {
  color: rgba(245, 241, 223, 0.68);
}

.home-section {
  width: min(var(--content), calc(100% - 48px));
  margin: 0 auto;
}

.canon-feature {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.75fr;
  min-height: 480px;
  margin-top: 86px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: var(--ink-deep);
  box-shadow: 0 24px 60px rgba(3, 37, 37, 0.18);
}

.canon-copy {
  position: relative;
  padding: 62px 56px;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 82% 110%, rgba(87, 139, 130, 0.4), transparent 48%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 45%);
}

.canon-copy::after {
  content: "藏";
  position: absolute;
  right: -20px;
  bottom: -90px;
  color: rgba(212, 175, 55, 0.05);
  font-family: var(--serif);
  font-size: 260px;
  line-height: 1;
}

.section-kicker,
.section-title > p {
  margin-bottom: 8px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.22em;
}

.canon-copy h2 {
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.1;
  letter-spacing: 0.12em;
}

.canon-copy > p:not(.section-kicker) {
  position: relative;
  z-index: 1;
  max-width: 530px;
  color: rgba(245, 241, 223, 0.72);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 2;
}

.text-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 9px 16px;
  border: 1px solid rgba(212, 175, 55, 0.7);
  color: var(--gold-soft);
  font-family: var(--serif);
}

.text-link span {
  transition: transform 0.2s ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.canon-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 72%, rgba(212, 175, 55, 0.12), transparent 38%),
    linear-gradient(180deg, transparent, rgba(1, 25, 25, 0.46));
}

.canon-visual::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5%;
  left: 0;
  height: 34%;
  background: radial-gradient(ellipse at 50% 100%, #37625b, transparent 66%);
  opacity: 0.35;
  filter: blur(14px);
}

.book {
  position: absolute;
  bottom: 64px;
  display: grid;
  width: 128px;
  height: 278px;
  place-items: center;
  border: 1px solid rgba(228, 203, 114, 0.5);
  background: #123f3e;
  box-shadow: 14px 14px 30px rgba(0, 0, 0, 0.28);
  transform: perspective(800px) rotateY(-13deg);
}

.book::before,
.book::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 7px;
  border-right: 1px solid rgba(212, 175, 55, 0.36);
  border-left: 1px solid rgba(212, 175, 55, 0.18);
}

.book::before {
  left: 8px;
}

.book::after {
  right: 8px;
}

.book span {
  padding: 15px 8px;
  border: 1px solid rgba(79, 72, 50, 0.35);
  background: var(--paper-deep);
  color: var(--ink-deep);
  font-family: var(--serif);
  font-size: 20px;
  writing-mode: vertical-rl;
  letter-spacing: 0.18em;
}

.book-back {
  left: 56%;
  bottom: 78px;
  height: 238px;
  opacity: 0.56;
  transform: perspective(800px) rotateY(-13deg) translateX(54px);
}

.book-middle {
  left: 50%;
  bottom: 71px;
  height: 258px;
  opacity: 0.76;
  transform: perspective(800px) rotateY(-13deg) translateX(23px);
}

.book-front {
  left: 42%;
  z-index: 2;
}

.canon-index {
  display: grid;
  align-content: center;
  padding: 28px 34px;
  background: var(--paper-light);
}

.canon-index a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0 12px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.canon-index a:last-child {
  border-bottom: 0;
}

.canon-index span {
  grid-row: 1 / 3;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(166, 129, 32, 0.46);
  color: var(--gold-dark);
  font-family: var(--serif);
}

.canon-index strong {
  font-family: var(--serif);
  font-size: 17px;
}

.canon-index small {
  color: var(--muted);
  font-size: 12px;
}

.portal-section {
  padding: 100px 0 90px;
}

.section-title {
  margin-bottom: 42px;
  text-align: center;
}

.section-title h2 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.section-title > span {
  color: var(--muted);
  font-size: 14px;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}

.portal-card {
  position: relative;
  display: flex;
  min-height: 440px;
  flex-direction: column;
  padding: 34px 30px 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

.portal-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 46px rgba(3, 37, 37, 0.13);
}

.portal-light {
  background:
    radial-gradient(circle at 35% 88%, rgba(41, 88, 81, 0.1), transparent 28%),
    var(--paper-light);
}

.portal-dark {
  color: var(--paper);
  background:
    radial-gradient(circle at 50% 82%, rgba(212, 175, 55, 0.12), transparent 30%),
    var(--ink-deep);
}

.portal-card::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -55px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 50%;
}

.portal-liuyao::before {
  content: "";
  position: absolute;
  right: 18%;
  bottom: 62px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 50%;
  background: url("./assets/bagua-home.png") center / 80% no-repeat;
  filter: invert(78%) sepia(53%) saturate(430%) hue-rotate(3deg);
  opacity: 0.28;
}

.portal-fulu::before {
  content: "符";
  position: absolute;
  right: 32px;
  bottom: 56px;
  color: rgba(156, 53, 43, 0.12);
  font-family: var(--serif);
  font-size: 144px;
  transform: rotate(-8deg);
}

.portal-novel::before {
  content: "书";
  position: absolute;
  right: 28px;
  bottom: 40px;
  color: rgba(212, 175, 55, 0.08);
  font-family: var(--serif);
  font-size: 180px;
}

.portal-number {
  color: var(--gold-dark);
  font-family: var(--serif);
  font-size: 13px;
}

.portal-dark .portal-number {
  color: var(--gold);
}

.portal-card h3 {
  margin: 38px 0 4px;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.portal-card div p {
  color: var(--gold-dark);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.portal-dark div p {
  color: var(--gold);
}

.portal-card > strong {
  position: relative;
  z-index: 2;
  max-width: 230px;
  margin-top: auto;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.9;
}

.portal-dark > strong {
  color: rgba(245, 241, 223, 0.62);
}

.portal-go {
  position: relative;
  z-index: 2;
  margin-top: 24px;
  color: var(--gold-dark);
  font-family: var(--serif);
  font-size: 14px;
}

.portal-dark .portal-go {
  color: var(--gold-soft);
}

.principles {
  position: relative;
  margin-bottom: 88px;
  padding: 54px 60px 50px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 8% 45%, rgba(212, 175, 55, 0.08), transparent 22%),
    radial-gradient(circle at 92% 52%, rgba(5, 47, 47, 0.08), transparent 24%),
    var(--paper-light);
}

.principles::before,
.principles::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border-color: rgba(166, 129, 32, 0.5);
}

.principles::before {
  top: 10px;
  left: 10px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.principles::after {
  right: 10px;
  bottom: 10px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.section-title.compact {
  margin-bottom: 34px;
}

.section-title.compact h2 {
  font-size: 32px;
}

.principle-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.principle-list article {
  padding: 8px 48px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.principle-list article:last-child {
  border-right: 0;
}

.principle-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin: 0 auto 15px;
  border: 1px solid rgba(166, 129, 32, 0.4);
  border-radius: 50%;
  color: var(--gold-dark);
  font-family: var(--serif);
  font-size: 22px;
}

.principle-list h3 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 19px;
}

.principle-list p {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.85;
}

.site-footer {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(245, 241, 223, 0.64);
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(69, 118, 110, 0.55), transparent 55%),
    var(--ink-deep);
}

.site-footer > div {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.site-footer strong {
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.16em;
}

.site-footer > div span {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid #bd5b49;
  color: #d8735e;
  font-family: var(--serif);
  font-size: 12px;
}

.site-footer p {
  margin: 16px 0 4px;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.2em;
}

.site-footer small {
  display: block;
  color: rgba(245, 241, 223, 0.38);
  font-size: 11px;
}

.icp-link {
  margin-top: 8px;
  color: rgba(245, 241, 223, 0.42);
  font-size: 12px;
  text-decoration: none;
}

.icp-link:hover {
  color: rgba(245, 241, 223, 0.72);
}

/* Shared subpages */
.subpage {
  min-height: 100vh;
  padding-bottom: 72px;
  background:
    linear-gradient(rgba(245, 241, 223, 0.94), rgba(245, 241, 223, 0.94)),
    radial-gradient(circle at 8% 12%, rgba(5, 47, 47, 0.09), transparent 24%);
}

.sub-hero,
.panel {
  width: min(960px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.sub-hero {
  position: relative;
  margin-top: 54px;
  margin-bottom: 22px;
  padding: 60px 64px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.34);
  color: var(--paper);
  background:
    radial-gradient(circle at 84% 30%, rgba(212, 175, 55, 0.12), transparent 24%),
    var(--ink-deep);
  box-shadow: 0 22px 52px rgba(3, 37, 37, 0.14);
}

.sub-hero::after {
  content: "";
  position: absolute;
  right: -52px;
  bottom: -70px;
  width: 300px;
  height: 300px;
  background: url("./assets/bagua-home.png") center / contain no-repeat;
  filter: invert(78%) sepia(53%) saturate(430%) hue-rotate(3deg);
  opacity: 0.13;
}

.sub-kicker,
.section-head > p {
  position: relative;
  z-index: 1;
  margin-bottom: 6px;
  color: var(--gold-dark);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.2em;
}

.sub-hero .sub-kicker {
  color: var(--gold);
}

.sub-hero h1 {
  position: relative;
  z-index: 1;
  margin: 6px 0 14px;
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 600;
  letter-spacing: 0.1em;
}

.sub-hero > p {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 0;
  color: rgba(245, 241, 223, 0.7);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.95;
}

.panel {
  position: relative;
  margin-bottom: 22px;
  padding: 38px 42px;
  border: 1px solid var(--line);
  background: rgba(251, 248, 236, 0.86);
  box-shadow: 0 14px 38px rgba(50, 48, 38, 0.07);
}

.section-head h2 {
  margin-bottom: 24px;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.qa-panel {
  display: grid;
  gap: 12px;
}

.qa-panel article,
.canon-scroll article,
.list-card article,
.ritual-grid article,
.check-list p,
.warning-lines p,
.identify-box {
  padding: 20px 22px;
  border: 1px solid rgba(79, 72, 50, 0.14);
  background: rgba(245, 241, 223, 0.5);
}

.qa-panel h3,
.canon-scroll h3,
.identify-box h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
}

.qa-panel p,
.canon-scroll p,
.identify-box p,
.check-list p,
.warning-lines p,
.ritual-grid span,
.list-card {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.canon-scroll,
.list-card,
.check-list,
.warning-lines {
  display: grid;
  gap: 12px;
}

.list-card article {
  display: flex;
  gap: 14px;
}

.ritual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.ritual-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-family: var(--serif);
  font-size: 19px;
}

.identify-box {
  display: flex;
  gap: 22px;
}

.fu-paper {
  display: grid;
  width: 84px;
  min-height: 138px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(156, 53, 43, 0.3);
  background: #e7c663;
}

.fu-paper span {
  color: var(--red);
  font-family: var(--serif);
  font-size: 34px;
}

.fu-paper i {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--red);
}

.back-link,
.source-link {
  position: relative;
  z-index: 1;
  display: inline-grid;
  min-height: 38px;
  place-items: center;
  padding: 0 15px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: var(--gold-soft);
  font-family: var(--serif);
}

.source-link {
  margin-top: 20px;
}

form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

select,
textarea,
input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  background: var(--paper-light);
  color: var(--ink);
  font: inherit;
}

select:focus,
textarea:focus,
input:focus {
  border-color: var(--gold-dark);
}

button {
  min-height: 48px;
  border: 1px solid var(--gold);
  border-radius: 0;
  background: var(--ink);
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 15px;
}

@keyframes hero-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes scroll-cue {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(12px);
  }
}

@keyframes classic-scroll {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1050px) {
  .classic-stream {
    grid-template-columns: 1fr;
  }

  .stream-heading {
    padding-right: 0;
    border-right: 0;
    text-align: center;
  }

  .classic-group {
    grid-template-columns: repeat(9, 108px);
  }

  .canon-feature {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .canon-index {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, 1fr);
  }

  .canon-index a {
    padding: 22px 12px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

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

@media (max-width: 760px) {
  .home-hero {
    min-height: calc(100svh - 60px);
    padding: 64px 18px 90px;
  }

  .hero-aura {
    top: 9%;
    width: min(410px, 100vw);
  }

  .hero-copy {
    margin-top: 62px;
  }

  .hero-copy h1 {
    font-size: clamp(48px, 16vw, 76px);
    letter-spacing: 0.08em;
    text-indent: 0.08em;
  }

  .hero-lead {
    margin-top: 22px;
    font-size: 16px;
    letter-spacing: 0.17em;
    text-indent: 0.17em;
  }

  .hero-copy blockquote {
    align-items: flex-start;
    padding: 0 12px;
    font-size: 13px;
    line-height: 1.9;
  }

  .hero-copy blockquote::before,
  .hero-copy blockquote::after {
    display: none;
  }

  .hero-actions {
    gap: 12px;
    margin-top: 34px;
  }

  .button {
    min-width: 134px;
    min-height: 48px;
    font-size: 15px;
  }

  .classic-stream {
    padding: 34px 14px;
  }

  .classic-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
    scrollbar-width: none;
  }

  .classic-marquee::-webkit-scrollbar {
    display: none;
  }

  .classic-list {
    animation-duration: 32s;
  }

  .classic-group {
    grid-template-columns: repeat(9, 104px);
  }

  .home-section {
    width: calc(100% - 28px);
  }

  .canon-feature {
    grid-template-columns: 1fr;
    margin-top: 52px;
  }

  .canon-copy {
    min-height: 390px;
    padding: 44px 30px;
  }

  .canon-visual {
    min-height: 360px;
  }

  .book {
    bottom: 42px;
  }

  .canon-index {
    grid-template-columns: repeat(2, 1fr);
    padding: 16px;
  }

  .canon-index a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .portal-section {
    padding: 64px 0 58px;
  }

  .portal-grid {
    grid-template-columns: 1fr;
  }

  .portal-card {
    min-height: 360px;
  }

  .principles {
    margin-bottom: 48px;
    padding: 42px 24px;
  }

  .principle-list {
    grid-template-columns: 1fr;
  }

  .principle-list article {
    padding: 24px 8px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .principle-list article:last-child {
    border-bottom: 0;
  }

  .subpage {
    padding-bottom: 72px;
  }

  .sub-hero,
  .panel {
    width: calc(100% - 28px);
  }

  .sub-hero {
    margin-top: 22px;
    padding: 42px 28px;
  }

  .panel {
    padding: 28px 22px;
  }

  .ritual-grid {
    grid-template-columns: 1fr;
  }

  .identify-box {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .brand small {
    max-width: 100%;
  }

  .topnav {
    width: 100%;
    justify-content: space-between;
  }

  .topnav a {
    flex: 1;
    padding: 8px 4px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
