/* ─────────────────────────────────────────────────────────────────
   FENG & YU — extension stylesheet
   styles for: the portal (3 doors), Volume I (cover + chapters), Volume II stub
   ───────────────────────────────────────────────────────────────── */

/* ════════════════════════════════════════════════════════════════════
   PORTAL  ·  site/index.html (post-gate)
   ════════════════════════════════════════════════════════════════════ */
body.is-portal { min-height: 100vh; }

main.portal {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8vh 4vw 12vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portal-head { text-align: center; margin-bottom: 6.5rem; }

.portal-mark {
  font-size: 0.7rem;
  letter-spacing: var(--tracked-wide);
  text-transform: uppercase;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}
.portal-mark .bar {
  display: inline-block;
  width: 3rem;
  height: 1px;
  background: var(--rule);
}

.portal-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  letter-spacing: -0.01em;
}
.portal-title .amp {
  font-style: italic;
  color: var(--sepia);
  font-weight: 400;
  margin: 0 0.15em;
}

.portal-sub {
  margin-top: 1.4rem;
  font-style: italic;
  color: var(--ink-muted);
  letter-spacing: var(--tracked-tight);
  font-size: 1.05rem;
}

/* ─── Three doors ─── */
.portal-doors {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  width: 100%;
  max-width: 760px;
}

.door {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  padding: 4.5rem 2rem 3.5rem;
  border: 1px solid var(--rule);
  background: rgba(255, 252, 244, 0.45);
  transition: transform 0.6s var(--ease-slow), box-shadow 0.6s var(--ease-slow),
              background 0.4s var(--ease), border-color 0.4s var(--ease);
  position: relative;
  min-height: 420px;
}
.door:hover {
  background: rgba(255, 252, 244, 0.85);
  border-color: rgba(29, 24, 19, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.door--featured {
  background: rgba(255, 250, 240, 0.7);
  border-color: rgba(138, 74, 48, 0.32);
}
.door--featured:hover {
  border-color: var(--sepia);
}
.door--coming {
  opacity: 0.65;
  background: rgba(245, 240, 225, 0.4);
}
.door--coming:hover {
  opacity: 0.85;
}

.door-roman {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.5rem;
  color: var(--sepia);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 1.4rem;
}

.door-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 0.9rem;
}

.door-rule {
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--ink-faint);
  margin: 0.4rem auto 1.2rem;
}

.door-meta {
  font-size: 0.75rem;
  letter-spacing: var(--tracked-mid);
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}

.door-desc {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: 22ch;
  margin: 0 auto auto;
}

.door-enter {
  margin-top: 2rem;
  font-size: 0.78rem;
  letter-spacing: var(--tracked-mid);
  text-transform: uppercase;
  color: var(--sepia);
  font-weight: 500;
}

.portal-foot {
  margin-top: 8rem;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: var(--tracked-mid);
  text-transform: uppercase;
  color: var(--ink-faint);
}
.portal-foot em { color: var(--sepia); font-style: italic; }

/* ════════════════════════════════════════════════════════════════════
   VOLUME I  ·  cover (emotion timeline)
   ════════════════════════════════════════════════════════════════════ */
body.is-vol-cover {
  min-height: 100vh;
}

.vol-cover {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 5vh 5vw 4vh;
}

.vol-cover-head {
  text-align: center;
  margin-bottom: 1.5rem;
}
.vol-cover-mark {
  font-size: 0.7rem;
  letter-spacing: var(--tracked-wide);
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}
.vol-cover-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.vol-cover-title strong {
  font-style: normal;
  font-weight: 500;
  color: var(--sepia);
}
.vol-cover-sub {
  font-style: italic;
  color: var(--ink-muted);
  font-size: 1.05rem;
  letter-spacing: var(--tracked-tight);
}

.vol-cover-chart-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin: 2rem 0 1.5rem;
}
.vol-cover-chart {
  width: 100%;
  max-width: 1280px;
  height: 56vh;
  min-height: 380px;
  position: relative;
}
.vol-cover-chart canvas { display: block; }

.vol-cover-legend {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  margin-top: 1.6rem;
  font-size: 0.78rem;
  letter-spacing: var(--tracked-mid);
  text-transform: uppercase;
  color: var(--ink-muted);
  flex-wrap: wrap;
}
.vol-cover-legend .sw {
  display: inline-block;
  width: 1.6rem;
  height: 2px;
  margin-right: 0.6rem;
  vertical-align: middle;
}
.vol-cover-legend .sw--affection { background: #c9533c; }
.vol-cover-legend .sw--tension   { background: #4a6580; }
.vol-cover-legend .sw--latenight { background: #8a7aa3; border-top: 1px dashed #8a7aa3; height: 0; }

.vol-cover-notes {
  text-align: center;
  max-width: 60rem;
  margin: 0 auto;
  color: var(--ink-muted);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
}

.vol-cover-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 2rem;
  border-top: 1px solid var(--rule-faint);
  margin-top: 1.5rem;
}
.vol-cover-foot .back {
  font-size: 0.75rem;
  letter-spacing: var(--tracked-mid);
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
}
.vol-cover-foot .back:hover { color: var(--ink); }
.vol-cover-foot .enter {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--sepia);
  text-decoration: none;
  letter-spacing: var(--tracked-tight);
}
.vol-cover-foot .enter:hover { color: var(--ink); }

/* ════════════════════════════════════════════════════════════════════
   VOLUME I  ·  chapter pages
   ════════════════════════════════════════════════════════════════════ */
body.is-vol-chapter {
  background: var(--paper);
}

.vol-chapter {
  max-width: 44rem;
  margin: 0 auto;
  padding: 7vh 1.6rem 12vh;
}

.vol-chapter-head {
  text-align: center;
  margin-bottom: 4rem;
}
.vol-chapter-mark {
  font-size: 0.7rem;
  letter-spacing: var(--tracked-wide);
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.4rem;
}
.vol-chapter-mark a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted var(--ink-faint);
}
.vol-chapter-mark a:hover { color: var(--sepia); border-color: var(--sepia); }
.vol-chapter-mark .sep { margin: 0 0.7em; color: var(--ink-faint); }

.vol-chapter-roman {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--sepia);
  margin-bottom: 0.6rem;
}

.vol-chapter-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.18;
  letter-spacing: -0.005em;
  margin-bottom: 0.8rem;
}
.vol-chapter-title em { color: var(--sepia); }

.vol-chapter-sub {
  font-style: italic;
  color: var(--ink-muted);
  font-size: 1rem;
  letter-spacing: var(--tracked-tight);
}

.vol-chapter-rule {
  display: block;
  width: 3rem;
  height: 1px;
  background: var(--ink-faint);
  margin: 2.2rem auto 0;
}

/* ─── prose body ─── */
.vol-body {
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.72;
  color: var(--ink-soft);
}
.vol-body p {
  margin-bottom: 1.6rem;
  text-align: justify;
  hyphens: auto;
}
.vol-body p.lead {
  font-style: italic;
  font-size: 1.28rem;
  color: var(--ink);
  margin-bottom: 2rem;
}
.vol-body strong {
  font-weight: 500;
  color: var(--ink);
}
.vol-body em { font-style: italic; }

/* ─── pull-quote / blockquote ─── */
.vol-body blockquote {
  margin: 2.2rem 0;
  padding: 0 1.2rem 0 1.6rem;
  border-left: 2px solid var(--sepia);
  font-style: italic;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.7;
}
.vol-body blockquote p { margin-bottom: 0.6rem; text-align: left; hyphens: none; }
.vol-body blockquote p:last-child { margin-bottom: 0; }
.vol-body blockquote .src {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: var(--tracked-mid);
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
}
.vol-body blockquote .zh {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
}

/* in-line aside */
.vol-body .aside-note {
  display: block;
  margin: 1.4rem 0;
  padding: 0.8rem 1.2rem;
  background: rgba(138, 74, 48, 0.06);
  border-left: 2px solid var(--ink-faint);
  font-size: 1rem;
  font-style: italic;
  color: var(--ink-muted);
}

.vol-body hr {
  border: 0;
  height: 1px;
  background: var(--rule);
  width: 30%;
  margin: 3.2rem auto;
}

/* ─── navigation ─── */
.vol-nav {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.6rem 6vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--rule-faint);
  padding-top: 2rem;
}
.vol-nav a {
  font-family: var(--serif);
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.78rem;
  letter-spacing: var(--tracked-mid);
  text-transform: uppercase;
  transition: color 0.3s var(--ease);
}
.vol-nav a:hover { color: var(--sepia); }
.vol-nav a .arrow { font-style: normal; color: var(--ink-faint); }
.vol-nav a:hover .arrow { color: var(--sepia); }
.vol-nav .next .arrow { margin-left: 0.5em; }
.vol-nav .prev .arrow { margin-right: 0.5em; }
.vol-nav .home {
  font-style: italic;
  color: var(--ink-faint);
}

/* ════════════════════════════════════════════════════════════════════
   VOLUME II  ·  placeholder
   ════════════════════════════════════════════════════════════════════ */
.vol2-stub {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.6rem;
}
.vol2-stub-inner { max-width: 32rem; }
.vol2-stub-roman {
  font-family: var(--serif);
  font-style: italic;
  font-size: 3rem;
  color: var(--sepia);
  margin-bottom: 1rem;
}
.vol2-stub-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.2rem;
}
.vol2-stub-sub {
  font-style: italic;
  color: var(--ink-muted);
  font-size: 1.1rem;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}
.vol2-stub-back {
  font-size: 0.78rem;
  letter-spacing: var(--tracked-mid);
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px dotted var(--ink-faint);
}
.vol2-stub-back:hover { color: var(--sepia); border-color: var(--sepia); }

/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .portal-doors { grid-template-columns: 1fr; gap: 1.4rem; }
  .door { min-height: 280px; padding: 3rem 1.6rem; }
  main.portal { padding: 6vh 1.4rem 8vh; }
  .portal-head { margin-bottom: 3.5rem; }
  .vol-cover-chart { height: 50vh; min-height: 320px; }
  .vol-cover-legend { gap: 1.2rem; font-size: 0.7rem; }
  .vol-body { font-size: 1.08rem; }
  .vol-body p { text-align: left; }
}

@media (max-width: 600px) {
  .vol-chapter { padding: 5vh 1.2rem 8vh; }
  .vol-cover { padding: 4vh 1.2rem 3vh; }
}
