:root {
  --bg: #FAF6EC;
  --bg-section: #F4ECDB;
  --bg-card: #FFFCF6;
  --ink: #2A241B;
  --ink-soft: #4A453E;
  --ink-muted: #897F6C;
  --line: #D9CDB2;
  --line-soft: #E8E0CA;
  --gold: #B8924A;
  --gold-deep: #8C6A2D;
  --gold-soft: #E5D5A8;
  --shadow: 0 1px 3px rgba(110, 80, 30, 0.08), 0 8px 24px rgba(110, 80, 30, 0.04);

  --font-zh-serif: 'Noto Serif SC', 'Songti SC', serif;
  --font-zh-sans: 'Noto Sans SC', sans-serif;
  --font-en-serif: 'Cormorant Garamond', serif;
  --font-decor: 'Ma Shan Zheng', 'Noto Serif SC', cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body.al-body {
  font-family: var(--font-zh-sans);
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }

/* NAV */
.nav-thin {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  width: 100%;
  padding: 0.7rem clamp(1.5rem, 4vw, 3rem);
  display: flex; justify-content: space-between; align-items: center;
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-zh-serif); font-weight: 600;
  color: var(--ink); letter-spacing: 0.02em;
}
.nav-mark { width: 22px; height: 22px; color: var(--gold); }
.nav-links { list-style: none; display: flex; gap: 1.5rem; font-size: 0.92rem; color: var(--ink-muted); }
.nav-links a:hover { color: var(--gold-deep); }

/* MAIN */
.al-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem clamp(1.5rem, 4vw, 3rem) 5rem;
}

/* HEADER */
.al-header {
  margin-bottom: 2.8rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line-soft);
}
.al-eyebrow {
  font-family: var(--font-en-serif);
  font-style: italic;
  color: var(--gold-deep);
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
}
.al-title {
  font-family: var(--font-decor);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--ink);
  line-height: 1.1;
}
.al-subtitle {
  margin-top: 0.55rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

/* INTRO PANEL */
.al-intro {
  background: var(--bg-section);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 2.8rem;
}
.al-intro-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.al-intro-text {
  font-family: var(--font-zh-serif);
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.9;
}
.al-intro-meta {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
  font-family: var(--font-en-serif);
  font-style: italic;
}

/* 2×2 ALTITUDE GRID */
.al-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 700px) {
  .al-grid { grid-template-columns: 1fr; }
}

/* ALTITUDE CARD */
.al-card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 1.8rem 1.8rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.al-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

/* COLOR SWATCH HEADER */
.al-card-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--line-soft);
}
.al-swatch {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.al-swatch.white { background: #F8F5F0; }
.al-swatch.red   { background: #C94040; }
.al-swatch.green { background: #5A8E5A; }
.al-swatch.black { background: #2A2420; }

.al-card-heading { flex: 1; }
.al-card-no {
  font-family: var(--font-en-serif);
  font-style: italic;
  color: var(--gold-deep);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
}
.al-card-name {
  font-family: var(--font-zh-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.al-card-name-en {
  font-family: var(--font-en-serif);
  font-style: italic;
  color: var(--ink-muted);
  font-size: 0.9rem;
}
.al-color-label {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* BODY ROWS */
.al-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.al-row-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}
.al-row-value {
  font-family: var(--font-zh-serif);
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ZODIAC TAGS */
.al-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.al-tag {
  padding: 0.15rem 0.6rem;
  font-size: 0.78rem;
  border-radius: 3px;
  background: var(--bg-section);
  color: var(--ink-soft);
  font-family: var(--font-zh-serif);
}

/* ANGEL LIST */
.al-angels {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.al-angels li {
  font-size: 0.88rem;
  font-family: var(--font-zh-serif);
  color: var(--ink-soft);
  padding-left: 0.9rem;
  position: relative;
}
.al-angels li::before {
  content: "✦";
  position: absolute; left: 0;
  color: var(--gold);
  font-size: 0.62rem;
  top: 0.38em;
}

/* DOMAIN */
.al-domain {
  font-size: 0.9rem;
  font-family: var(--font-zh-serif);
  color: var(--ink-soft);
  line-height: 1.75;
}

/* READ LINK */
.al-card-foot {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--line-soft);
}
.al-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-family: var(--font-zh-serif);
  color: var(--gold-deep);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}
.al-read-btn:hover { color: var(--gold); }

/* MODAL */
.al-modal[hidden] { display: none; }
.al-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 4rem 1rem 2rem;
  overflow-y: auto;
}
.al-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(30, 24, 16, 0.55);
  backdrop-filter: blur(3px);
}
.al-modal-card {
  position: relative;
  width: 100%; max-width: 760px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2.5rem 2.2rem 2.2rem;
  box-shadow: 0 20px 60px rgba(20, 14, 6, 0.3);
  z-index: 1;
}
.al-modal-close {
  position: absolute; top: 0.8rem; right: 1rem;
  font-size: 1.6rem; color: var(--ink-muted);
  width: 2rem; height: 2rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.al-modal-close:hover { color: var(--ink); background: var(--bg-section); }

.al-modal-head {
  text-align: center;
  padding-bottom: 1.2rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--line-soft);
}
.al-modal-no {
  font-family: var(--font-en-serif);
  font-style: italic;
  color: var(--gold-deep);
  letter-spacing: 0.18em;
  font-size: 0.9rem;
}
.al-modal-name {
  font-family: var(--font-zh-serif);
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--ink);
  margin: 0.3rem 0;
}
.al-modal-alt {
  font-family: var(--font-en-serif);
  font-style: italic;
  color: var(--ink-muted);
  font-size: 1rem;
}

.al-modal-body { font-family: var(--font-zh-serif); }
.al-mh {
  font-family: var(--font-zh-sans);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
  margin: 1.2rem 0 0.4rem;
}
.al-narration {
  white-space: pre-wrap;
  color: var(--ink-soft);
  line-height: 1.95;
  font-size: 1rem;
  font-family: var(--font-zh-serif);
}
.al-footnotes {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line-soft);
  font-size: 0.84rem;
  color: var(--ink-muted);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.al-source {
  margin-top: 1.2rem;
  font-size: 0.8rem;
  font-family: var(--font-en-serif);
  font-style: italic;
  color: var(--ink-muted);
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: 2rem 0;
  background: var(--bg-section);
}
.footer-inner {
  width: 100%;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  display: flex; align-items: center; gap: 1rem;
  font-size: 0.86rem; color: var(--ink-muted);
}
.footer-mark { color: var(--gold); font-size: 1.3rem; }
.footer-text { flex: 1; line-height: 1.4; }
.footer-zh { color: var(--ink-soft); }
.footer-en { font-family: var(--font-en-serif); font-style: italic; font-size: 0.82rem; }
.footer-top { color: var(--gold-deep); }
.footer-top:hover { color: var(--gold); }
