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

/* ── Variables ─────────────────────────────────────────── */
:root {
  --bg:        #f7f4ef;
  --surf:      #ffffff;
  --surf2:     #f2ede6;
  --surf3:     #e8e0d4;
  --border:    #d6cfc4;
  --border2:   #c4bbb0;
  --gold:      #9a6f2e;
  --gold-lt:   #b8883a;
  --gold-bg:   #fdf3e3;
  --text:      #2a2118;
  --text2:     #7a6a58;
  --text3:     #b0a090;
  --miss-bg:   #f0ede8;
  --miss-bdr:  #cdc7bf;
  --today-bg:  #7a1f10;
  --today-bdr: #a03220;
  --avail-bdr: #9a6f2e;
  --r:         8px;
  --r-lg:      14px;
  --font-s:    'Noto Serif TC', serif;
  --font-b:    'Noto Sans TC', sans-serif;
  --shadow:    0 2px 16px rgba(60,40,20,.12);
  --shadow-lg: 0 4px 28px rgba(60,40,20,.18);
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-family: var(--font-b); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--surf2); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ── Page shell ────────────────────────────────────────── */
.page { min-height: 100vh; padding: 1.5rem 1rem 4rem; max-width: 1100px; margin: 0 auto; }

/* ── Back link ─────────────────────────────────────────── */
.back { display: inline-flex; align-items: center; gap: .4rem; color: var(--text2); font-size: .88rem; padding: .4rem 0; margin-bottom: 1.8rem; transition: color .2s; }
.back:hover { color: var(--gold); }
.back::before { content: '←'; font-size: 1rem; }

/* ── Section heading ───────────────────────────────────── */
.sec-title { font-family: var(--font-s); font-size: clamp(1.5rem,4vw,2.1rem); font-weight: 700; color: var(--text); letter-spacing: .04em; margin-bottom: 1.8rem; }

/* ── Nav grid (lang/section pages) ────────────────────── */
.nav-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; }
.nav-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 120px; background: var(--surf); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.4rem; text-align: center;
  transition: all .2s; box-shadow: var(--shadow);
}
.nav-card:hover { background: var(--gold-bg); border-color: var(--gold-lt); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.nav-card .nc-icon { font-size: 2rem; margin-bottom: .5rem; }
.nav-card .nc-label { font-family: var(--font-s); font-size: 1.1rem; color: var(--text); font-weight: 600; }
.nav-card .nc-sub { font-size: .75rem; color: var(--text2); margin-top: .25rem; }

/* ── Buttons ───────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; padding: .55rem 1rem; border-radius: var(--r); font-size: .82rem; font-weight: 500; transition: all .18s; white-space: nowrap; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-lt); }
.btn-outline { border: 1px solid var(--border2); color: var(--text2); background: var(--surf); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-bg); }

/* ── Skeleton loading animation ───────────────────────── */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--surf2) 25%, var(--surf3) 50%, var(--surf2) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 4px;
}
