@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@400;600;700&family=Noto+Sans+TC:wght@400;500;600&family=DM+Mono:wght@400;500&display=swap');

:root {
  --bg-base:      #1A0E2E;
  --bg-warm:      #23153B;
  --bg-card:      #2C1B4A;
  --coral:        #F4B740;
  --coral-light:  #4A3719;
  --coral-dark:   #D89B1F;
  --sand:         #B8A0D9;
  --sand-light:   #3A2A5C;
  --earth:        #F5EFE0;
  --earth-mid:    #C9BEDD;
  --earth-light:  #9A8CBD;
  --olive:        #6FCF97;
  --olive-light:  #1E3A2C;
  --text:         #F5EFE0;
  --serif:        'Noto Serif TC', Georgia, serif;
  --sans:         'Noto Sans TC', 'Helvetica Neue', sans-serif;
  --mono:         'DM Mono', 'Courier New', monospace;
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    16px;
  --shadow-warm:  0 4px 24px rgba(244,183,64,0.18);
  --shadow-card:  0 2px 12px rgba(0,0,0,0.35);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg-base);
  color: var(--earth);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.4; color: var(--earth); }
p { margin-bottom: 1rem; }
ul, ol { padding-left: 1.4em; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26,14,46,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sand-light);
  height: 60px;
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--earth);
  letter-spacing: 0.02em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.nav-logo-sub {
  font-size: 0.78rem;
  font-family: var(--sans);
  font-weight: 500;
  color: var(--earth-light);
}
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--earth-mid);
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--coral);
  transition: width 0.2s ease;
}
.nav-links a:hover { color: var(--earth); }
.nav-links a:hover::after { width: 100%; }

.nav-hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--earth);
  border-radius: 2px;
  transition: 0.3s;
}

@media (max-width: 680px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--bg-base);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--sand-light);
    padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 24px; }
  .nav-links a::after { display: none; }
}

.site-footer {
  background: var(--bg-warm);
  border-top: 1px solid var(--sand-light);
  padding: 32px 0;
  margin-top: 64px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.footer-brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--earth);
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--earth-light);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--coral); }
.footer-copy {
  font-size: 0.78rem;
  color: var(--earth-light);
  margin: 0;
}


/* article layout constraint — override blog.css cache */
.blog-post { max-width: 760px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
