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

:root {
  --bg:         #F8F7F4;
  --surface:    #FFFFFF;
  --text:       #1A1A1A;
  --text-muted: #747070;
  --accent:     #A83226;
  --border:     #E0DBD5;
  --font-sans:  'Inter', 'Taipei Sans TC', 'Noto Sans TC', sans-serif;
  --font-serif: 'Cormorant Garamond', 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(248, 247, 244, 0.90);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: 52px;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); }

/* ── MAIN ── */
main {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ── SECTIONS ── */
section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 2rem;
}

/* ── PAGE HERO ── */
.page-hero {
  padding-top: 108px;
  padding-bottom: 52px;
  border-top: none !important;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.page-hero .hero-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.07em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.page-hero .hero-sub::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── RESEARCH BLOCK ── */
.research-block + .research-block {
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border);
}

.research-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 300;
  margin-bottom: 0.3rem;
  line-height: 1.2;
}

.research-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-bottom: 0.9rem;
}

.research-desc {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--text);
  max-width: 620px;
  margin-bottom: 1.6rem;
}

.research-desc p + p { margin-top: 0.75em; }

/* ── PDF VIEWER ── */
.pdf-wrap iframe {
  width: 100%;
  height: 560px;
  border: 1px solid var(--border);
  display: block;
  background: #fff;
}

.pdf-actions {
  display: flex;
  gap: 1.4rem;
  margin-top: 0.5rem;
}

.pdf-actions a {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.pdf-actions a:hover { color: var(--accent); }

/* ── FILE PLACEHOLDER ── */
.file-placeholder {
  border: 1px dashed var(--border);
  padding: 2.5rem 1.5rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  text-align: center;
}

/* ── SUPPLEMENTARY DOCS ── */
.doc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.doc-list li a {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}

.doc-list li a:hover { color: var(--accent); }

/* ── POSTER ── */
.poster-wrap {
  margin: 1.4rem 0;
}

.poster-wrap img {
  max-width: 100%;
  max-height: 600px;
  border: 1px solid var(--border);
  display: block;
}

.caption {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  font-style: italic;
}

/* ── YOUTUBE GRID ── */
.yt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.yt-item h3 {
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.yt-item .yt-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.yt-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.yt-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ── IG NOTE ── */
.ig-note {
  border: 1px solid var(--border);
  padding: 1.2rem 1.6rem;
  font-size: 0.87rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-muted);
}

.ig-note a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.ig-note a:hover { text-decoration: underline; }

/* ── PAINTING GRID ── */
.painting-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.painting-item img {
  width: 100%;
  display: block;
  border: 1px solid var(--border);
  height: auto;
}

/* ── GALLERY ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.4rem;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: opacity 0.2s;
}

.gallery-grid img:hover { opacity: 0.8; }

.gallery-note {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.9rem;
  font-style: italic;
}

/* ── ORIGAMI ── */
.origami-wrap {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.origami-wrap img {
  width: 100%;
  border: 1px solid var(--border);
  display: block;
}

.origami-desc {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--text);
}

.origami-desc p + p { margin-top: 0.8em; }

.origami-desc a {
  color: var(--accent);
  text-decoration: none;
}

.origami-desc a:hover { text-decoration: underline; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
}

footer p {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ── RESPONSIVE ── */
@media (max-width: 740px) {
  nav { padding: 0 1.4rem; }
  main { padding: 0 1.4rem; }
  .nav-links { gap: 1.2rem; }
  .yt-grid { grid-template-columns: 1fr; }
  .painting-grid { grid-template-columns: 1fr; }
  .origami-wrap { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 2.4rem; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  footer { flex-direction: column; gap: 0.4rem; text-align: center; }
  .nav-links { gap: 0.9rem; }
}
