/* ============================================================
   shared.css — 全站共用樣式
   yhsien-labs / thectx-portal
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@300;400;600;900&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Noto+Sans+Mono:wght@300;400&display=swap');

/* ── CSS VARIABLES ── */
:root {
  --ink: #1a1410;
  --paper: #f5f0e8;
  --gold: #b8860b;
  --gold-light: #d4a843;
  --rust: #8b3a2a;
  --mist: #8a9aaa;
  --line: rgba(26,20,16,0.12);
}

/* ── RESET ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Noto Serif TC', 'Cormorant Garamond', Georgia, serif;
  overflow-x: hidden;
}

/* ── NOISE TEXTURE ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.4;
}

/* ── NAV（about / theory 頁） ── */
.top-nav {
  padding: 28px 8vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.top-nav a {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}
.top-nav a:hover { color: var(--ink); }

.site-label {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--mist);
}

/* ── EYEBROW ── */
.eyebrow {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.eyebrow::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

/* ── DIVIDER ── */
.divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 2.5rem;
  opacity: 0.6;
}

/* ── SECTION LABEL ── */
.section-label {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.76rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* ── FADE IN ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ── FOOTER ── */
.footer {
  padding: 6vh 8vw;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-left .project {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.76rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.footer-left .author {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--mist);
}

.footer-right {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--mist);
  text-align: right;
  line-height: 1.9;
}

.footer-right .tagline {
  font-family: 'Noto Serif TC', serif;
  font-size: 0.82rem;
  font-style: italic;
  color: rgba(26,20,16,0.45);
  margin-bottom: 0.5rem;
  display: block;
  letter-spacing: 0.05em;
  font-weight: 300;
}

/* ── STATEMENT BLOCK（about / theory 頁） ── */
.stmt-block {
  background: var(--ink);
  color: var(--paper);
  padding: 8vh 8vw;
  position: relative;
  overflow: hidden;
}

.stmt-block::before {
  content: '煉化';
  position: absolute;
  right: 5vw;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18vw;
  font-weight: 900;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  pointer-events: none;
}

.stmt-inner { max-width: 820px; }

.stmt-zh {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 400;
  line-height: 2.2;
  color: rgba(245,240,232,0.9);
  margin-bottom: 1.5rem;
}

.stmt-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-style: italic;
  font-weight: 300;
  color: rgba(245,240,232,0.7);
  line-height: 1.9;
}
