/* ============================================
   kuanmaru — sound artist · tea practitioner
   editorial minimal × eastern ritual
   ============================================ */

:root {
  --paper:     #f5f1e8;     /* 米白紙 */
  --paper-2:   #ece6d5;     /* 較深紙色（區段對比） */
  --ink:       #161310;     /* 墨黑 */
  --ink-soft:  #3a342c;     /* 軟墨 */
  --muted:     #6e6557;     /* 落款灰 */
  --line:      #1f1b15;     /* 邊框墨 */

  --vermilion: #b8281e;     /* 朱砂 — 主強調色 */
  --cinnabar:  #9c1b14;     /* 較深朱砂 */
  --tea-green: #6b7146;     /* 茶葉青（次要強調） */
  --rice:      #fbf8ef;     /* 宣紙白 */

  --sans:      'Inter Tight', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, sans-serif;
  --sans-zh:   'Noto Sans TC', 'Inter Tight', sans-serif;
  --serif-zh:  'Noto Serif TC', serif;  /* 仍保留偶爾使用 */
  --mono:      'JetBrains Mono', ui-monospace, monospace;

  --max: 1200px;
  --pad-x: clamp(1.5rem, 5vw, 4rem);
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 紙紋疊層 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(circle at 18% 25%, rgba(184,40,30,0.025) 0, transparent 45%),
    radial-gradient(circle at 82% 70%, rgba(0,0,0,0.020) 0, transparent 50%),
    repeating-linear-gradient(
      0deg,
      transparent 0, transparent 2px,
      rgba(60,40,20,0.008) 2px, rgba(60,40,20,0.008) 3px
    );
  mix-blend-mode: multiply;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: opacity 0.2s ease, color 0.2s ease;
}
a:hover { opacity: 0.6; color: var(--cinnabar); }

em { font-style: italic; }

strong {
  font-weight: 500;
  background: linear-gradient(to top,
    rgba(184,40,30,0.14) 0%,
    rgba(184,40,30,0.14) 35%,
    transparent 35%);
  padding: 0 2px;
}

/* ============== NAV ============== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(245, 241, 232, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(31,27,21,0.12);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.nav-mark {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  color: var(--vermilion);
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: lowercase;
  letter-spacing: 0.08em;
}
.nav-links a {
  border: none;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--vermilion);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

@media (max-width: 700px) {
  .nav-links { gap: 1rem; font-size: 0.7rem; }
  .nav-mark { font-size: 0.95rem; }
}

/* ============== HERO ============== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem var(--pad-x) 4rem;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  text-align: center;
  max-width: 800px;
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: var(--muted);
  margin-bottom: 3rem;
  animation: fadeUp 1s ease 0.2s both;
}
.hero-title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(3.5rem, 13vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  margin-bottom: 2rem;
  animation: fadeUp 1.2s ease 0.4s both;
  color: var(--ink);
}
.hero-tagline {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 0.4rem;
  animation: fadeUp 1s ease 0.7s both;
}
.hero-tagline-zh {
  font-family: var(--serif-zh);
  font-size: 1.05rem;
  color: var(--vermilion);
  letter-spacing: 0.4em;
  font-weight: 600;
  margin-bottom: 3.5rem;
  animation: fadeUp 1s ease 0.8s both;
  padding-left: 0.4em;  /* 視覺對齊字距 */
}
.hero-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: lowercase;
  color: var(--muted);
  animation: fadeUp 1s ease 1s both;
}

/* 印章感角落漢字 */
.hero-seal-top, .hero-seal-bot {
  position: absolute;
  display: flex;
  gap: 0.5rem;
  font-family: var(--sans-zh);
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--rice);
  z-index: 2;
  animation: fadeUp 1.4s ease 1.2s both;
}
.hero-seal-top    { top: 7.5rem; right: 3rem; }
.hero-seal-bot    { bottom: 3rem; left: 3rem; }
.seal-zh {
  background: var(--vermilion);
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  letter-spacing: 0;
  box-shadow: 0 2px 6px rgba(184,40,30,0.25);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 700px) {
  .hero-seal-top, .hero-seal-bot { display: none; }
}

/* ============== SECTION SHELL ============== */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 7rem var(--pad-x) 6rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.section-alt {
  background: var(--paper-2);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.section-alt > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
  flex-wrap: wrap;
}
.section-num {
  font-family: var(--sans-zh);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.25em;
  color: var(--vermilion);
}
.section h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  letter-spacing: -0.035em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.h2-zh {
  font-family: var(--sans-zh);
  font-weight: 700;
  font-size: 0.4em;
  color: var(--muted);
  letter-spacing: 0.25em;
}

.section-intro {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 700px;
  margin-bottom: 3rem;
  letter-spacing: -0.005em;
}

/* ============== ABOUT ============== */
.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 4rem;
}
@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
.about-col p {
  margin-bottom: 1.3rem;
  font-size: 1.05rem;
}
.lead {
  font-size: 1.3rem !important;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 2rem !important;
  border-left: 3px solid var(--vermilion);
  padding-left: 1.5rem;
}

.about-side {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.side-block h4 {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: lowercase;
  color: var(--vermilion);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed rgba(184,40,30,0.35);
}
.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tag-list li {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: all 0.2s ease;
  letter-spacing: -0.005em;
}
.tag-list li:hover {
  background: var(--vermilion);
  color: var(--rice);
  border-color: var(--vermilion);
}
.zh-text {
  font-family: var(--sans-zh);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.95;
  margin-bottom: 0.8rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* ============== PRACTICE ============== */
.practice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (max-width: 760px) {
  .practice-grid { grid-template-columns: 1fr; }
}
.practice-item {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  transition: background 0.3s ease;
}
.practice-item:hover { background: var(--paper); }
.practice-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.practice-tag {
  color: var(--vermilion);
}
.practice-tag::before { content: '◐ '; }

.practice-item h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.15;
  margin-bottom: 0.4rem;
  letter-spacing: -0.025em;
}
.practice-zh {
  font-family: var(--sans-zh);
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.practice-item p:last-child {
  font-size: 1rem;
  line-height: 1.65;
}

/* ============== WORKS ============== */
.work-block {
  padding: 3rem 0;
  border-top: 1px solid rgba(31,27,21,0.2);
}
.work-block:first-of-type { border-top: 1px solid var(--line); }

.work-head {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--muted);
}
.work-year {
  color: var(--vermilion);
  font-weight: 600;
  font-size: 0.85rem;
}
.work-format::before {
  content: '· ';
  margin-right: 0.3em;
  color: var(--muted);
}

.work-block h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 0.3rem;
}
.work-zh {
  font-family: var(--sans-zh);
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.work-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 720px;
  margin-bottom: 1.5rem;
}
.work-links {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  margin-top: 1rem;
}
.work-links a {
  border-bottom: 1px solid currentColor;
  color: var(--vermilion);
}

/* ▸ embeds */
.embed-wrap {
  margin-top: 1.2rem;
  margin-bottom: 0.8rem;
  border: 1px solid var(--line);
  background: var(--ink);
  overflow: hidden;
  max-width: 720px;
}
.embed-wrap iframe {
  display: block;
  width: 100%;
  border: 0;
}
.embed-soundcloud { background: var(--paper); }
.embed-bandcamp   { background: var(--paper); }
.embed-bandcamp iframe { height: 120px; }

.embed-youtube-short {
  max-width: 320px;
  aspect-ratio: 9 / 16;
  padding: 0;
  background: var(--ink);
}
.embed-youtube-short iframe {
  width: 100%;
  height: 100%;
}

/* ▸ external link cards (Instagram) */
.external-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 720px;
  margin-top: 1rem;
}
.ext-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: all 0.25s ease;
  border-bottom: 1px solid var(--line);
}
.ext-card:hover {
  background: var(--ink);
  color: var(--rice);
  opacity: 1;
  transform: translateY(-2px);
}
.ext-card:hover .ext-card-tag { color: var(--rice); opacity: 0.7; }
.ext-card:hover .ext-card-cta { color: var(--rice); }
.ext-card-tag {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--muted);
}
.ext-card-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.ext-card-cta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  margin-top: 0.4rem;
  color: var(--vermilion);
}

/* ============== WRITING ============== */
.writing-list { display: grid; gap: 0; }
.writing-item {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}
.writing-item:last-child { border-bottom: 1px solid var(--line); }

.writing-item h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.3rem;
}
.writing-zh {
  font-family: var(--sans-zh);
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.writing-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: lowercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.writing-item p:last-child {
  font-size: 1.05rem;
  max-width: 720px;
}

.writing-item.placeholder {
  background: linear-gradient(to right, rgba(184,40,30,0.06), transparent);
  padding-left: 1.5rem;
  border-left: 2px solid var(--vermilion);
}
.writing-item.placeholder h3 {
  color: var(--cinnabar);
}

/* ============== CONTACT ============== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.contact-lead {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.3;
  margin-bottom: 0.8rem;
}
.contact-lead-zh {
  font-family: var(--sans-zh);
  font-size: 0.95rem;
  color: var(--vermilion);
  letter-spacing: 0.3em;
  font-weight: 700;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 1.2rem;
}
.contact-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed rgba(31,27,21,0.25);
}
.contact-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: lowercase;
  color: var(--vermilion);
}
.contact-list a {
  font-size: 1.05rem;
  word-break: break-all;
}

/* ============== FOOTER ============== */
.footer {
  background: var(--ink);
  color: var(--rice);
  padding: 4rem var(--pad-x);
  text-align: center;
  position: relative;
  z-index: 2;
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-mark {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  opacity: 0.7;
  letter-spacing: 0.5em;
  color: var(--vermilion);
}
.footer p {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: lowercase;
  margin-bottom: 0.6rem;
}
.footer-line {
  opacity: 0.55;
  font-family: var(--sans) !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: 0.01em !important;
}

/* ============== RESPONSIVE TWEAKS ============== */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 5rem var(--pad-x) 4rem; }
  .section-head {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  .work-block h3 { font-size: 1.6rem; }
  .embed-youtube-short { max-width: 100%; }
}

/* ============== DEVOTION DETAIL STYLES ============== */
.writing-body {
  font-size: 1.05rem !important;
  line-height: 1.65;
  margin-bottom: 1rem !important;
  max-width: 720px;
}

.writing-zh-detail {
  margin-top: 1.5rem;
  max-width: 720px;
  border-top: 1px dashed rgba(31,27,21,0.3);
  padding-top: 1rem;
}

.writing-zh-detail summary {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--vermilion);
  cursor: pointer;
  padding: 0.4rem 0;
  user-select: none;
  list-style: none;
}
.writing-zh-detail summary::-webkit-details-marker {
  display: none;
}
.writing-zh-detail summary::before {
  content: '＋ ';
  font-weight: 700;
  margin-right: 0.3em;
}
.writing-zh-detail[open] summary::before {
  content: '− ';
}

.writing-zh-detail p {
  font-family: var(--sans-zh);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.9;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

/* placeholder 那個 cinnabar 顏色標題改回去,因為現在這是真實的精采計劃 */
.writing-item.placeholder h3 {
  color: var(--ink);
}

/* ============== HERO LOGO (手寫標準字) ============== */
.hero-logo {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 0 auto 0.5rem;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.04));
  animation: fadeUp 1.2s ease 0.4s both;
}

.hero-title {
  /* logo 取代文字,清掉文字樣式 */
  font-size: 0;
  line-height: 0;
  letter-spacing: 0;
  margin-bottom: 2rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  .hero-logo { max-width: 90%; }
}

/* ============== IMAGES / FIGURES ============== */

/* About 區的主視覺 banner (迪斯可球茶藝音樂會橫式) */
.about-banner {
  margin: 0 0 2.5rem;
  width: 100%;
  position: relative;
}
.about-banner img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
}
.about-banner figcaption {
  margin-top: 0.8rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: lowercase;
  line-height: 1.5;
}
.about-banner figcaption em {
  font-style: italic;
  color: var(--ink-soft);
}

/* Selected Works 雙圖並排 */
.work-image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 1.5rem 0 0.6rem;
  max-width: 720px;
}
.work-image-pair figure {
  margin: 0;
}
.work-image-pair img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3/4;
  display: block;
  border: 1px solid var(--line);
}
@media (max-width: 600px) {
  .work-image-pair {
    grid-template-columns: 1fr;
  }
  .work-image-pair img {
    aspect-ratio: auto;
  }
}

/* 圖片下方的攝影師 credit (跨多張共用) */
.image-credit {
  font-family: var(--mono) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.08em !important;
  color: var(--muted) !important;
  text-transform: lowercase;
  margin-top: 0.6rem !important;
  margin-bottom: 1rem !important;
  max-width: 720px;
}

/* Selected Works 區的作品照 */
.work-image {
  margin: 1.5rem 0;
  max-width: 720px;
}
.work-image img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
}
.work-image figcaption {
  margin-top: 0.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: lowercase;
}

/* 響應式: 手機上肖像縮小 */
@media (max-width: 880px) {
  .about-portrait { max-width: 100%; }
}

/* Devotion 的兩個關鍵問句 - 視覺上更醒目 */
.writing-question {
  font-size: 1.2rem !important;
  line-height: 1.4;
  color: var(--ink);
  padding: 0.5rem 0 0.5rem 1.2rem;
  border-left: 3px solid var(--vermilion);
  margin: 1.5rem 0 !important;
  letter-spacing: -0.015em;
  font-weight: 500;
}
.writing-question em {
  font-style: italic;
}
.writing-question strong {
  background: none;
  padding: 0;
  font-weight: 600;
}

.zh-question {
  border-left: 3px solid var(--vermilion);
  padding-left: 1.2rem;
  margin: 1.2rem 0 !important;
  font-size: 1rem !important;
}

/* Spotify 嵌入 */
.embed-spotify {
  background: var(--paper);
  border: 1px solid var(--line);
  max-width: 720px;
}
.embed-spotify iframe {
  width: 100%;
}
