:root {
  color-scheme: dark;
  --paper: #071410;
  --paper-deep: #030806;
  --card: rgb(10 28 22 / 78%);
  --ink: #eafff5;
  --muted: #7ec9a8;
  --accent: #39ff9a;
  --accent-soft: rgb(57 255 154 / 28%);
  --hot: #ff5ec8;
  --earth: #ffd24a;
  --water: #3de8ff;
  --line: rgb(57 255 154 / 18%);
  --shadow: 0 18px 48px rgb(0 0 0 / 45%), 0 0 36px rgb(57 255 154 / 10%);
  --neon-glow: 0 0 22px rgb(57 255 154 / 45%);
  --serif: Georgia, "Times New Roman", serif;
  --chinese: "Songti SC", STSong, "Noto Serif CJK SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
}

html[data-theme="fire"] {
  --paper: #140810;
  --paper-deep: #0a0408;
  --accent: #ff5ec8;
  --accent-soft: rgb(255 94 200 / 26%);
  --hot: #ff8a4a;
  --water: #ffb347;
  --muted: #d89ab8;
  --line: rgb(255 94 200 / 20%);
  --shadow: 0 18px 48px rgb(0 0 0 / 45%), 0 0 36px rgb(255 94 200 / 12%);
  --neon-glow: 0 0 22px rgb(255 94 200 / 45%);
}

html[data-theme="earth"] {
  --paper: #101008;
  --paper-deep: #080804;
  --accent: #ffd24a;
  --accent-soft: rgb(255 210 74 / 24%);
  --hot: #ff9f43;
  --water: #7dff6a;
  --muted: #c4b07a;
  --line: rgb(255 210 74 / 18%);
  --shadow: 0 18px 48px rgb(0 0 0 / 45%), 0 0 36px rgb(255 210 74 / 10%);
  --neon-glow: 0 0 22px rgb(255 210 74 / 40%);
}

html[data-theme="metal"] {
  --paper: #0a0e14;
  --paper-deep: #05070a;
  --accent: #b8c7ff;
  --accent-soft: rgb(184 199 255 / 22%);
  --hot: #ff7eb6;
  --water: #7af0ff;
  --muted: #94a3c4;
  --line: rgb(184 199 255 / 18%);
  --shadow: 0 18px 48px rgb(0 0 0 / 45%), 0 0 36px rgb(184 199 255 / 10%);
  --neon-glow: 0 0 22px rgb(184 199 255 / 38%);
}

html[data-theme="water"] {
  --paper: #060f16;
  --paper-deep: #030810;
  --accent: #3de8ff;
  --accent-soft: rgb(61 232 255 / 24%);
  --hot: #7dffbe;
  --water: #5ecbff;
  --muted: #7eb8d4;
  --line: rgb(61 232 255 / 18%);
  --shadow: 0 18px 48px rgb(0 0 0 / 45%), 0 0 36px rgb(61 232 255 / 12%);
  --neon-glow: 0 0 22px rgb(61 232 255 / 42%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse 70% 45% at 8% 18%, rgb(57 255 154 / 10%), transparent 58%),
    radial-gradient(ellipse 55% 40% at 92% 78%, rgb(61 232 255 / 8%), transparent 52%),
    radial-gradient(circle at 72% 12%, rgb(255 94 200 / 6%), transparent 38%),
    linear-gradient(180deg, var(--paper-deep), var(--paper));
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.6;
  transition: background-color 300ms ease, color 300ms ease;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 82%, rgb(57 255 154 / 5%) 0 1px, transparent 2px) 0 0 / 28px 28px,
    radial-gradient(circle at 76% 24%, rgb(61 232 255 / 4%) 0 1px, transparent 2px) 0 0 / 34px 34px;
  content: "";
  pointer-events: none;
}

.nature-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.nature-leaf {
  position: absolute;
  width: 120px;
  height: 180px;
  border-radius: 0 90% 0 90%;
  background: linear-gradient(145deg, rgb(57 255 154 / 18%), rgb(61 232 255 / 8%));
  box-shadow: var(--neon-glow);
  filter: blur(0.2px);
  opacity: 0.55;
}

.nature-leaf-1 {
  top: 12%;
  left: -2%;
  transform: rotate(-28deg);
}

.nature-leaf-2 {
  top: 58%;
  right: 4%;
  width: 90px;
  height: 140px;
  transform: rotate(42deg);
}

.nature-leaf-3 {
  bottom: 8%;
  left: 18%;
  width: 70px;
  height: 110px;
  transform: rotate(-12deg);
  opacity: 0.35;
}

.nature-bloom {
  position: absolute;
  top: 22%;
  right: 12%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 94 200 / 10%), transparent 68%);
  box-shadow: 0 0 80px rgb(255 94 200 / 12%);
}

.nature-ring {
  position: absolute;
  bottom: 18%;
  right: 22%;
  width: 280px;
  height: 280px;
  border: 1px solid rgb(57 255 154 / 14%);
  border-radius: 50%;
  box-shadow: inset 0 0 40px rgb(57 255 154 / 6%);
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--hot);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #041008;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: var(--neon-glow);
  transform: translateY(-180%);
}

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

.site-header,
.site-footer,
.section-shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.wordmark-mark,
.footer-mark > span {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--water));
  color: #041008;
  font-family: var(--chinese);
  letter-spacing: 0;
  box-shadow: var(--neon-glow);
}

.wordmark-mark {
  width: 34px;
  height: 34px;
  font-size: 1.25rem;
}

.site-nav {
  display: flex;
  gap: clamp(14px, 2.8vw, 34px);
  font-family: var(--sans);
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-nav a,
.site-footer a {
  text-decoration-color: transparent;
  text-underline-offset: 5px;
}

.site-nav a:hover,
.site-footer a:hover {
  text-decoration-color: var(--accent);
}

.hero {
  padding-block: clamp(46px, 8vw, 96px) 44px;
}

.issue-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: clamp(34px, 6vw, 72px);
  padding-block: 7px;
  border-block: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: clamp(0.58rem, 1.2vw, 0.72rem);
  letter-spacing: 0.08em;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.62fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
}

.eyebrow,
.detail-meta {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.04;
}

h1 {
  max-width: 850px;
  margin-bottom: 28px;
  font-size: clamp(3.25rem, 7.5vw, 7.2rem);
  font-weight: 400;
  letter-spacing: -0.065em;
}

h1 em {
  color: var(--accent);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.1em;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.45rem, 5.4vw, 5.4rem);
  font-weight: 400;
  letter-spacing: -0.05em;
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.hero-intro {
  max-width: 670px;
  margin: 0;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.button-primary {
  background: linear-gradient(120deg, var(--accent), var(--water));
  border-color: transparent;
  color: #041008;
  box-shadow: var(--neon-glow);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.button-primary:hover {
  box-shadow: 0 0 32px rgb(57 255 154 / 55%);
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.button-disabled {
  border-color: var(--line);
  background: rgb(57 255 154 / 6%);
  color: var(--muted);
}

.detail-character {
  font-family: var(--chinese);
  font-size: clamp(8rem, 20vw, 15rem);
  line-height: 0.8;
  text-align: center;
  text-shadow: 8px 8px 0 var(--accent-soft), 0 0 30px rgb(57 255 154 / 25%);
}

.coming-note {
  max-width: 240px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.72rem;
  line-height: 1.4;
}

.paper-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.now-card {
  position: relative;
  min-height: 430px;
  padding: 24px;
  overflow: hidden;
  transform: rotate(1.2deg);
}

.now-card::before,
.now-card::after {
  position: absolute;
  border: 1px solid var(--accent-soft);
  border-radius: 50%;
  content: "";
}

.now-card::before {
  top: -76px;
  right: -68px;
  width: 210px;
  height: 210px;
}

.now-card::after {
  right: -23px;
  bottom: -50px;
  width: 125px;
  height: 125px;
}

.card-kicker {
  position: relative;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
}

.live-dot::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--hot);
  content: "";
}

.local-time {
  display: block;
  margin: 14px 0 8px;
  font-size: clamp(4.8rem, 9vw, 7rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.075em;
  line-height: 1;
}

.now-translation {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding-block: 18px;
  border-block: 1px solid var(--line);
}

.large-hanzi {
  font-family: var(--chinese);
  font-size: 3.8rem;
  line-height: 0.9;
}

.romanized {
  display: block;
  margin-top: 6px;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.72rem;
  text-align: center;
}

.now-label {
  display: flex;
  flex-direction: column;
  line-height: 1.45;
}

.now-label strong {
  color: var(--hot);
  font-size: 1.15rem;
}

.now-label span {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.72rem;
}

.now-card > p {
  max-width: 260px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.scribble {
  position: absolute;
  right: 22px;
  bottom: 26px;
  color: var(--accent);
  font-family: cursive;
  font-size: 0.92rem;
  transform: rotate(-7deg);
}

.stamp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(42px, 7vw, 78px);
  align-items: center;
}

.stamp {
  display: inline-flex;
  padding: 6px 12px;
  border: 1px solid currentColor;
  border-radius: 3px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stamp:nth-child(even) {
  border-style: dashed;
  color: var(--muted);
}

.stamp-tilt-left {
  transform: rotate(-2deg);
}

.stamp-tilt-right {
  transform: rotate(1.5deg);
}

.footnote {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.manifesto-band {
  margin-block: clamp(36px, 8vw, 90px);
  padding: clamp(44px, 6vw, 72px) max(24px, calc((100vw - 1080px) / 2));
  border-block: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgb(57 255 154 / 10%), rgb(61 232 255 / 8%) 48%, rgb(255 94 200 / 6%)),
    var(--card);
  box-shadow: inset 0 0 60px rgb(57 255 154 / 4%);
}

.manifesto-band p {
  max-width: 1040px;
  margin: 0 auto;
  font-size: clamp(1.8rem, 4.7vw, 4.8rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.manifesto-band span {
  color: var(--accent);
  font-family: var(--chinese);
  text-shadow: 0 0 24px rgb(57 255 154 / 35%);
}

.manifesto-band::after {
  display: block;
  width: 120px;
  height: 3px;
  margin: 28px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--water), transparent);
  content: "";
  box-shadow: 0 0 16px rgb(57 255 154 / 40%);
}

.field-notes,
.terms-section,
.pillars-section,
.platforms,
.finale {
  padding-block: clamp(70px, 11vw, 145px);
}

.section-heading {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: end;
  margin-bottom: clamp(42px, 7vw, 78px);
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading > p,
.terms-blurb {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.shichen-lab {
  overflow: hidden;
}

.shichen-tabs {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  border-bottom: 1px solid var(--line);
}

.shichen-tab {
  min-width: 0;
  padding: 17px 4px 14px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.shichen-tab:last-child {
  border-right: 0;
}

.shichen-tab span,
.shichen-tab small {
  display: block;
}

.shichen-tab span {
  font-family: var(--chinese);
  font-size: 1.55rem;
  line-height: 1;
}

.shichen-tab small {
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 0.58rem;
  text-transform: uppercase;
}

.shichen-tab:hover,
.shichen-tab.is-active {
  background: linear-gradient(180deg, var(--accent-soft), rgb(57 255 154 / 8%));
  color: var(--accent);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.shichen-detail {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) 1fr;
  gap: clamp(30px, 7vw, 90px);
  align-items: center;
  min-height: 380px;
  padding: clamp(32px, 6vw, 78px);
}

.detail-meta {
  color: var(--hot);
}

.shichen-detail h3 {
  max-width: 650px;
  margin-bottom: 20px;
  font-size: clamp(2rem, 4.4vw, 4.2rem);
}

.shichen-detail p {
  max-width: 680px;
}

.dictionary-note {
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: rgb(57 255 154 / 6%);
  color: var(--muted);
  font-size: 0.9rem;
}

.terms-section {
  display: block;
}

.terms-header {
  max-width: 720px;
  margin-bottom: 28px;
}

.terms-header h2 {
  margin-bottom: 10px;
  font-size: clamp(2.2rem, 4.8vw, 4.6rem);
}

.terms-blurb {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.solar-term-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: term;
}

.solar-term-grid li {
  display: flex;
  gap: 8px;
  align-items: baseline;
  min-height: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgb(57 255 154 / 4%);
  counter-increment: term;
}

.solar-term-grid li::before {
  flex: none;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.58rem;
  content: counter(term, decimal-leading-zero);
}

.solar-term-grid span {
  font-family: var(--chinese);
  font-size: 1rem;
  line-height: 1;
}

.solar-term-grid small {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.62rem;
  line-height: 1.2;
  text-align: right;
}

.solar-term-grid li:hover {
  border-color: var(--accent);
  background: rgb(57 255 154 / 10%);
  box-shadow: 0 0 16px rgb(57 255 154 / 12%);
}

.pillar-spread {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr)) 1.2fr;
  gap: 16px;
}

.pillar-card {
  display: flex;
  min-height: 320px;
  padding: 22px 14px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--card-accent);
  border-radius: 22px;
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
  background: var(--card);
  box-shadow: 0 8px 24px rgb(52 61 85 / 7%);
  text-align: center;
}

.pillar-card.fire {
  --card-accent: var(--hot);
}

.pillar-card.wood {
  --card-accent: var(--accent);
}

.pillar-card.water {
  --card-accent: var(--water);
}

.pillar-card.earth {
  --card-accent: var(--earth);
}

.pillar-card {
  box-shadow: var(--shadow);
}

.pillar-card small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.pillar-card b {
  color: var(--card-accent);
  font-family: var(--chinese);
  font-size: 4.4rem;
  font-weight: 600;
  line-height: 1.05;
}

.pillar-card span {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.7rem;
  line-height: 1.45;
}

.pillar-caption {
  display: flex;
  padding: 26px;
  border: 1px dashed var(--accent);
  border-radius: 22px;
  flex-direction: column;
  justify-content: space-between;
  background: rgb(57 255 154 / 4%);
}

.caption-number {
  color: var(--accent);
  font-size: clamp(3rem, 6vw, 5.4rem);
  letter-spacing: -0.06em;
}

.pillar-caption p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.platform-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.platform-list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.platform-list li:hover {
  border-color: var(--accent);
  box-shadow: var(--neon-glow);
}

.platform-name {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.platform-detail {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.78rem;
  line-height: 1.45;
}

.finale {
  text-align: center;
}

.finale h2 {
  max-width: 820px;
  margin-inline: auto;
}

.finale > p:not(.eyebrow) {
  margin-bottom: 28px;
  color: var(--muted);
}

.theme-picker {
  display: flex;
  gap: 9px;
  margin-top: 44px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.68rem;
}

.theme-picker button {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  background: var(--choice);
  box-shadow: 0 0 10px var(--choice);
  cursor: pointer;
}

.theme-picker button[aria-pressed="true"] {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--ink), 0 0 18px var(--choice);
}

.theme-picker [data-theme-choice="wood"] {
  --choice: #39ff9a;
}

.theme-picker [data-theme-choice="fire"] {
  --choice: #ff5ec8;
}

.theme-picker [data-theme-choice="earth"] {
  --choice: #ffd24a;
}

.theme-picker [data-theme-choice="metal"] {
  --choice: #b8c7ff;
}

.theme-picker [data-theme-choice="water"] {
  --choice: #3de8ff;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  padding-block: 40px 54px;
  border-top: 1px solid var(--line);
  align-items: center;
}

.footer-mark {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-mark > span {
  width: 42px;
  height: 42px;
  font-size: 1.5rem;
}

.footer-mark p,
.copyright {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.site-footer nav {
  display: flex;
  gap: 18px;
  font-family: var(--sans);
  font-size: 0.72rem;
}

.copyright {
  text-align: right;
}

.copyright span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.6rem;
}

/* Public information pages */
.page-main {
  width: min(860px, calc(100% - 48px));
  min-height: 65vh;
  margin-inline: auto;
  padding-block: clamp(62px, 10vw, 120px);
}

.page-hero {
  margin-bottom: 58px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--ink);
}

.page-hero h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 8vw, 6.8rem);
}

.page-hero > p:last-child {
  max-width: 670px;
  color: var(--muted);
  font-size: 1.08rem;
}

.effective-date {
  display: inline-block;
  margin-top: 20px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
}

.prose {
  font-size: 1rem;
}

.prose section {
  margin-block: 54px;
  scroll-margin-top: 30px;
}

.prose h2 {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.035em;
}

.prose h3 {
  margin-top: 32px;
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose li + li {
  margin-top: 9px;
}

.prose a {
  color: var(--accent);
  font-weight: 700;
  text-underline-offset: 4px;
}

.prose-callout {
  margin-block: 34px;
  padding: 22px 24px;
  border-left: 4px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: var(--card);
}

.prose-callout p {
  margin: 0;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 34px 0;
}

.support-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.support-card h3 {
  margin-top: 0;
}

.support-card p:last-child {
  margin-bottom: 0;
}

.contact-card {
  margin-top: 54px;
  padding: clamp(26px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(120deg, rgb(57 255 154 / 12%), rgb(61 232 255 / 10%)),
    var(--card);
  box-shadow: var(--neon-glow);
  color: var(--ink);
}

.contact-card h2,
.contact-card p {
  color: inherit;
}

.contact-card a {
  color: var(--accent);
}

.license-block {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow-x: auto;
  background: var(--card);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.error-page {
  display: grid;
  min-height: calc(100vh - 180px);
  place-items: center;
  text-align: center;
}

.error-code {
  display: block;
  color: var(--accent);
  font-family: var(--chinese);
  font-size: clamp(8rem, 30vw, 18rem);
  line-height: 0.8;
}

@media (max-width: 920px) {
  .hero-grid,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .now-card {
    width: min(430px, 100%);
    min-height: 390px;
    justify-self: end;
  }

  .section-heading {
    gap: 24px;
  }

  .section-heading > p {
    max-width: 640px;
  }

  .solar-term-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pillar-spread {
    grid-template-columns: repeat(4, 1fr);
  }

  .pillar-caption {
    min-height: 180px;
    grid-column: 1 / -1;
  }

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

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer nav {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .site-header,
  .site-footer,
  .section-shell,
  .page-main {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 72px;
  }

  .site-nav {
    gap: 13px;
  }

  .site-nav a:nth-child(-n + 2) {
    display: none;
  }

  .issue-line span:nth-child(2) {
    display: none;
  }

  .hero-grid {
    gap: 50px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .now-card {
    justify-self: center;
    transform: none;
  }

  .shichen-tabs {
    grid-template-columns: repeat(6, 1fr);
  }

  .shichen-tab:nth-child(6) {
    border-right: 0;
  }

  .shichen-tab:nth-child(-n + 6) {
    border-bottom: 1px solid var(--line);
  }

  .shichen-detail {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .detail-character {
    font-size: 8rem;
  }

  .pillar-spread {
    grid-template-columns: 1fr 1fr;
  }

  .pillar-card {
    min-height: 275px;
  }

  .solar-term-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-mark,
  .site-footer nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-footer nav {
    grid-column: auto;
    grid-row: auto;
  }

  .copyright {
    text-align: center;
  }

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

@media (max-width: 420px) {
  .site-nav a:last-child {
    display: none;
  }

  h1 {
    font-size: 3.05rem;
  }

  .issue-line {
    font-size: 0.54rem;
  }

  .now-card {
    padding: 20px;
  }

  .local-time {
    font-size: 4.7rem;
  }

  .shichen-tab {
    padding-inline: 2px;
  }

  .pillar-card {
    min-height: 240px;
  }

  .pillar-card b {
    font-size: 3.4rem;
  }

  .theme-picker {
    flex-wrap: wrap;
  }
}

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

@media print {
  .site-header,
  .site-footer,
  .theme-picker,
  .button {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .page-main {
    width: 100%;
    padding: 0;
  }

  .prose p,
  .prose li {
    color: black;
  }
}
