/* ============================================================
   LUMINARE 流光尘序 — Master Stylesheet
   v1.0 · 2026
   ============================================================ */

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

:root {
  /* COLORS */
  --paper: #faf8f3;
  --ink: #1a1a1a;
  --night: #0a0a0a;
  --darker: #060606;
  --cream: #f0e9d6;
  --gold: #B8924B;
  --gold-bright: #d9b16a;

  /* OPACITY UTILITIES on dark */
  --line-dark: rgba(240, 233, 214, 0.08);
  --line-mid: rgba(240, 233, 214, 0.22);
  --line-strong: rgba(240, 233, 214, 0.4);
  --muted: rgba(240, 233, 214, 0.55);
  --dim: rgba(240, 233, 214, 0.35);

  /* OPACITY UTILITIES on light */
  --line-light: #e5e2da;
  --muted-light: #76746e;
}

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

body {
  background: var(--night);
  color: var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ============================================================ */
/* TYPOGRAPHY UTILITIES                                          */
/* ============================================================ */
.serif { font-family: Georgia, "Times New Roman", serif; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Monaco, "Cascadia Code", monospace; }
.cjk { font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; }

a { color: inherit; }

/* ============================================================ */
/* NAV — used on every page                                      */
/* ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  background: rgba(10, 10, 10, 0.72);
  border-bottom: 1px solid var(--line-dark);
}
.nav-brand {
  font-family: Georgia, serif;
  font-size: 13px;
  letter-spacing: 5px;
  color: var(--cream);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-brand .dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
}
.nav-links {
  display: flex;
  gap: 36px;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--muted);
}
.nav-links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 4px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a.active { border-bottom: 1px solid var(--gold); }

@media (max-width: 720px) {
  .nav { padding: 16px 22px; }
  .nav-links { gap: 16px; font-size: 10px; letter-spacing: 2px; }
  .nav-brand { font-size: 12px; letter-spacing: 4px; }
}

/* ============================================================ */
/* SECTION LAYOUT                                                */
/* ============================================================ */
section {
  padding: 130px 40px;
  position: relative;
}
.container {
  max-width: 1080px;
  margin: 0 auto;
}
.container-narrow {
  max-width: 720px;
  margin: 0 auto;
}

.section-num {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px;
  letter-spacing: 5px;
  color: var(--gold);
  margin-bottom: 24px;
}
.section-title {
  font-family: Georgia, serif;
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: 1px;
  line-height: 1.2;
  margin-bottom: 28px;
  font-weight: 400;
}
.section-intro {
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 72px;
}
.section-intro.center { margin-left: auto; margin-right: auto; }

/* Section background variants */
.section--dark { background: var(--night); color: var(--cream); }
.section--darker { background: var(--darker); color: var(--cream); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--paper .section-intro { color: var(--muted-light); }

/* ============================================================ */
/* BUTTONS / CTA                                                 */
/* ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  font-family: Georgia, serif;
  font-size: 14px;
  letter-spacing: 2px;
  text-decoration: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 100px;
  transition: all 0.4s ease;
  background: transparent;
  cursor: pointer;
}
.btn:hover {
  background: var(--gold);
  color: var(--night);
}
.btn .arrow { transition: transform 0.3s; }
.btn:hover .arrow { transform: translateX(4px); }

.link-arrow {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: var(--gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 1px;
  transition: opacity 0.3s;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.link-arrow:hover { border-bottom-color: var(--gold); }
.section--paper .link-arrow { color: var(--gold); }

/* ============================================================ */
/* FOOTER — used on every page                                   */
/* ============================================================ */
footer {
  background: var(--darker);
  padding: 56px 40px 40px;
  border-top: 1px solid var(--line-dark);
}
.footer-content {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
}
.footer-col {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.85;
}
.footer-col h5 {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-col a {
  color: var(--cream);
  text-decoration: none;
  display: block;
  padding: 4px 0;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--gold); }
.footer-mark {
  width: 90px;
  margin-bottom: 16px;
}
.footer-brand-name {
  font-family: Georgia, serif;
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--cream);
  margin-bottom: 4px;
}
.footer-brand-cn {
  font-size: 10px;
  letter-spacing: 5px;
  color: var(--muted);
  margin-bottom: 8px;
}
.footer-bottom {
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--dim);
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 720px) {
  footer { padding: 40px 22px 28px; }
  .footer-content { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { font-size: 9px; }
}

/* ============================================================ */
/* HERO COMPONENT                                                */
/* ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 40px 80px;
  text-align: center;
  position: relative;
  background: var(--night);
  overflow: hidden;
}
.hero--short { min-height: 64vh; }

.hero-eyebrow {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 7px;
  color: var(--gold);
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 1.2s 0.2s ease-out forwards;
}

.hero-mark {
  width: 100%;
  max-width: 680px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 1.4s 0.5s ease-out forwards;
}

.hero-en {
  font-family: Georgia, serif;
  font-size: clamp(38px, 7vw, 72px);
  letter-spacing: clamp(8px, 1.6vw, 16px);
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 22px;
  text-indent: clamp(8px, 1.6vw, 16px);
  opacity: 0;
  animation: fadeUp 1.4s 0.9s ease-out forwards;
}
.hero-cn {
  font-size: clamp(13px, 1.6vw, 17px);
  letter-spacing: clamp(18px, 3vw, 28px);
  color: var(--cream);
  text-indent: clamp(18px, 3vw, 28px);
  opacity: 0;
  animation: fadeUpFinal 1.4s 1.2s ease-out forwards;
}
.hero-tagline {
  margin-top: 64px;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 1.5px;
  opacity: 0;
  animation: fadeUpFinal 1.4s 1.5s ease-out forwards;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeIn 2s 2s ease-out forwards;
}
.hero-scroll-hint .line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: pulseLine 2.5s ease-in-out infinite;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUpFinal {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 0.8; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pulseLine {
  0%, 100% { opacity: 0.35; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================================ */
/* PHILOSOPHY (poem) — used on home & about                      */
/* ============================================================ */
.philosophy {
  background: var(--darker);
  text-align: center;
  padding: 160px 40px;
  color: var(--cream);
}
.philosophy-title {
  font-family: Georgia, serif;
  font-size: clamp(32px, 4.5vw, 48px);
  letter-spacing: 2px;
  margin-bottom: 88px;
  font-weight: 400;
}
.stanza {
  margin-bottom: 48px;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 2.1;
  color: var(--cream);
  font-weight: 300;
}
.stanza.dimmer { color: var(--muted); }
.stanza p { margin-bottom: 4px; }
.stanza .accent { color: var(--gold); font-style: italic; }

.philosophy-divider {
  margin: 72px auto;
  width: 56px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}
.philosophy-closing {
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(20px, 2.8vw, 28px);
  line-height: 1.85;
  color: var(--cream);
  font-weight: 400;
}
.philosophy-closing .light-name {
  color: var(--gold);
  letter-spacing: 10px;
  display: block;
  margin-bottom: 18px;
  text-indent: 10px;
}

/* ============================================================ */
/* CONSTELLATION + PANEL CARDS                                   */
/* ============================================================ */
.constellation {
  background: var(--darker);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  padding: 72px 56px;
  margin-bottom: 64px;
}
.constellation-svg {
  width: 100%;
  height: auto;
  display: block;
}
.constellation-caption {
  text-align: center;
  margin-top: 24px;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--dim);
  font-family: ui-monospace, monospace;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.panel-card {
  background: var(--darker);
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  padding: 32px 28px;
  transition: all 0.4s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
}
.panel-card:hover {
  border-color: var(--line-mid);
  transform: translateY(-4px);
}
.panel-card:hover .own-dot {
  r: 9;
  filter: drop-shadow(0 0 12px rgba(184, 146, 75, 0.6));
}
.panel-card .own-dot {
  transition: r 0.4s, filter 0.4s;
}
.panel-svg {
  width: 100%;
  height: auto;
  margin-bottom: 22px;
  display: block;
}
.panel-num {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 8px;
}
.panel-name {
  font-family: Georgia, serif;
  font-size: 24px;
  letter-spacing: 2px;
  margin-bottom: 4px;
  color: var(--cream);
}
.panel-cn {
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--muted);
  margin-bottom: 16px;
}
.panel-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 18px;
}
.panel-tag {
  display: inline-block;
  font-family: ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 2px;
  color: var(--gold);
  padding: 4px 10px;
  border: 1px solid var(--line-mid);
  border-radius: 100px;
}

/* ============================================================ */
/* CTA SECTIONS                                                  */
/* ============================================================ */
.cta-section {
  background: var(--night);
  padding: 160px 40px;
  text-align: center;
}
.cta-eyebrow {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 5px;
  color: var(--gold);
  margin-bottom: 28px;
}
.cta-headline {
  font-family: Georgia, serif;
  font-size: clamp(26px, 3.8vw, 40px);
  line-height: 1.3;
  margin-bottom: 48px;
  color: var(--cream);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}
.cta-headline .em { color: var(--gold); font-style: italic; }
.cta-email {
  display: inline-block;
  font-family: Georgia, serif;
  font-size: clamp(22px, 2.8vw, 30px);
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 1px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gold);
  transition: color 0.3s;
}
.cta-email:hover { color: var(--gold); }

.cta-info-grid {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.info-block .label {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 8px;
}
.info-block .value {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 700px) {
  .cta-info-grid { grid-template-columns: 1fr; gap: 22px; text-align: center; }
}

/* ============================================================ */
/* MISC                                                          */
/* ============================================================ */
.divider-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  margin: 0 auto;
  opacity: 0.5;
}

@media (max-width: 700px) {
  section { padding: 90px 22px; }
  .philosophy { padding: 110px 22px; }
  .cta-section { padding: 120px 22px; }
  .constellation { padding: 44px 22px; }
  .panel-card { padding: 26px 22px; }
}
