@import url('https://fonts.googleapis.com/css2?family=Cormorant:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --neon: #87ff71;
  --gold: #ffce5c;
  --ink: #192617;
  --ink-deep: #101a0d;
  --paper: #efffe6;
  --side: 288px;
  --font-display: 'Cormorant', 'Songti SC', 'Noto Serif SC', Georgia, serif;
  --font-body: 'Montserrat', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

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

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

body {
  margin: 0;
  padding-left: var(--side);
  background-color: var(--ink);
  background-image: radial-gradient(rgba(135, 255, 113, 0.10) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.78;
  overflow-x: hidden;
}

a { color: inherit; }

/* ---------- side rail ---------- */
.side {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--side);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 20px 28px;
  background: var(--ink-deep);
  border-right: 2px dashed rgba(135, 255, 113, 0.35);
  overflow-y: auto;
  overflow-x: hidden;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 2px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--neon);
  text-decoration: none;
}

.brand::before {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: rotate(-10deg);
  transition: transform 0.25s ease;
}

.brand:hover::before { transform: rotate(16deg) scale(1.15); }

.aside-mark {
  display: block;
  height: 10px;
  border-radius: 999px;
  background-image: radial-gradient(var(--gold) 2px, transparent 2px);
  background-size: 12px 10px;
  opacity: 0.7;
}

.side nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.side nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 2px solid rgba(135, 255, 113, 0.45);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--paper);
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.side nav a:hover,
.side nav a:focus-visible {
  background: var(--neon);
  border-color: var(--neon);
  color: var(--ink);
  transform: translateX(5px) rotate(-1.2deg);
}

.side nav a.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  font-weight: 700;
}

.contact {
  margin-top: auto;
  padding-top: 18px;
  border-top: 2px dotted rgba(255, 206, 92, 0.45);
}

.contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.55);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.contact a:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.6); }

/* ---------- hero ---------- */
main { position: relative; z-index: 1; }
article { position: relative; }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 26px 84px;
  overflow: hidden;
  border-bottom: 3px dashed rgba(255, 206, 92, 0.4);
}

.shapes { position: absolute; inset: 0; pointer-events: none; }
.shapes .s { position: absolute; display: block; }

.s1 {
  width: 118px; height: 118px;
  top: 12%; left: 7%;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: rotate(-12deg);
  animation: drift 9s ease-in-out infinite alternate;
}

.s2 {
  width: 92px; height: 92px;
  bottom: 16%; right: 9%;
  background: var(--neon);
  border-radius: 50%;
  mix-blend-mode: screen;
  opacity: 0.85;
}

.s3 {
  width: 176px; height: 176px;
  top: 58%; left: 4%;
  border: 4px dotted var(--neon);
  border-radius: 50%;
  opacity: 0.5;
  transform: rotate(8deg);
}

.s4 {
  width: 0; height: 0;
  top: 17%; right: 12%;
  border-left: 58px solid transparent;
  border-right: 58px solid transparent;
  border-bottom: 96px solid rgba(255, 206, 92, 0.55);
  transform: rotate(18deg);
}

@keyframes drift {
  from { transform: rotate(-12deg) translateY(0); }
  to { transform: rotate(-4deg) translateY(-16px); }
}

.ghost {
  position: absolute;
  top: 50%; left: 50%;
  margin: 0;
  transform: translate(-50%, -50%) rotate(-6deg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 15vw, 220px);
  line-height: 0.85;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(135, 255, 113, 0.30);
  pointer-events: none;
  user-select: none;
}

.hero h1 {
  position: relative;
  margin: 0;
  max-width: 15ch;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
}

.hero hr {
  position: relative;
  width: min(300px, 58%);
  margin: 30px 0 0;
  border: 0;
  border-top: 3px dashed var(--gold);
  transform: rotate(-1.6deg);
}

.cue {
  position: relative;
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--neon);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--gold);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cue:hover { transform: translate(-2px, -3px) rotate(-1deg); box-shadow: 8px 8px 0 var(--gold); }

/* ---------- content ---------- */
article > div:not(.hero) {
  max-width: 840px;
  margin: 0 auto;
  padding: 62px 32px 10px;
  scroll-margin-top: 112px;
  border-top: 2px dotted rgba(255, 206, 92, 0.26);
}

article > div:not(.hero):last-child { padding-bottom: 76px; }

article h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  line-height: 1.16;
  color: var(--neon);
}

article h2 + hr {
  width: 130px;
  margin: 0 0 26px;
  border: 0;
  border-top: 3px dashed rgba(135, 255, 113, 0.6);
  transform: rotate(-1.2deg);
  transform-origin: left center;
}

article h3 {
  margin: 34px 0 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.25;
  color: var(--gold);
}

article h3 + hr {
  width: 84px;
  margin: 0 0 18px;
  border: 0;
  border-top: 2px dotted rgba(255, 206, 92, 0.65);
}

article p { margin: 0 0 20px; max-width: 40em; }
article ul, article ol { margin: 0 0 22px; padding-left: 24px; }
article li { margin: 0 0 10px; }
article ul li::marker { color: var(--gold); }
article ol li::marker { color: var(--neon); font-weight: 700; }

article a {
  color: var(--neon);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

article a:hover { color: var(--gold); }
article strong { color: var(--gold); }

article blockquote {
  margin: 0 0 22px;
  padding: 14px 20px;
  border-left: 6px solid var(--neon);
  border-radius: 0 10px 10px 0;
  background: rgba(135, 255, 113, 0.08);
}

article img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 2px solid rgba(135, 255, 113, 0.4);
}

article table { width: 100%; border-collapse: collapse; margin: 0 0 22px; }
article th, article td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px dashed rgba(255, 206, 92, 0.4);
}

/* ---------- footer ---------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 24px;
  padding: 30px 24px;
  background: var(--ink-deep);
  border-top: 2px dashed rgba(135, 255, 113, 0.3);
  font-size: 16px;
}

.foot address { font-style: normal; color: var(--paper); opacity: 0.85; }

.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.foot ul a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 4px;
  color: var(--neon);
  text-decoration: none;
  border-bottom: 2px dotted rgba(135, 255, 113, 0.5);
}

.foot ul a:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* ---------- reveal ---------- */
.reveal-ready article > div:not(.hero) {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-ready article > div.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-ready article > div:not(.hero) { opacity: 1; transform: none; transition: none; }
  .s1 { animation: none; }
}

/* ---------- top button ---------- */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  min-height: 46px;
  padding: 10px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--neon);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--gold);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.to-top.shown { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- narrow ---------- */
@media (max-width: 900px) {
  body { padding-left: 0; }

  .side {
    position: sticky;
    top: 0;
    inset: auto;
    width: auto;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-right: 0;
    border-bottom: 2px dashed rgba(135, 255, 113, 0.35);
    overflow-x: auto;
    overflow-y: hidden;
  }

  .brand { font-size: 17px; white-space: nowrap; }
  .brand::before { width: 12px; height: 12px; }
  .aside-mark { display: none; }

  .side nav { flex: 1 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; }
  .side nav ul { flex-direction: row; gap: 8px; }
  .side nav a { white-space: nowrap; padding: 9px 14px; min-height: 42px; font-size: 16px; }

  .contact { margin: 0; padding: 0 0 0 10px; border-top: 0; border-left: 2px dotted rgba(255, 206, 92, 0.5); flex: 0 0 auto; }
  .contact a { width: auto; min-height: 42px; padding: 8px 14px; white-space: nowrap; box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.55); }

  .hero { min-height: 86vh; min-height: 86svh; padding: 70px 20px 60px; }
  .hero h1 { font-size: clamp(2rem, 8.5vw, 3rem); }
  .ghost { font-size: clamp(48px, 15vw, 120px); }

  .s1 { width: 74px; height: 74px; top: 9%; left: 4%; }
  .s2 { width: 60px; height: 60px; bottom: 12%; right: 7%; }
  .s3 { width: 110px; height: 110px; top: 66%; left: 2%; }
  .s4 { border-left-width: 38px; border-right-width: 38px; border-bottom-width: 64px; top: 13%; right: 8%; }

  article > div:not(.hero) { padding: 46px 20px 8px; scroll-margin-top: 132px; }
  article > div:not(.hero):last-child { padding-bottom: 56px; }
  .foot { padding: 22px 16px; gap: 2px 14px; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
