/* ===== Custom fonts ===== */
@font-face{
  font-family: "Marcellus";
  src: url("/assets/fonts/Marcellus-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: "Chiron Sung HK";
  src: url("/assets/fonts/ChironSungHK-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: "Chiron Sung HK";
  src: url("/assets/fonts/ChironSungHK-BoldItalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
:root {
  --bg: #FFFEF7;                 /* main background */
  --panel: rgba(0, 0, 0, 0.04);  /* card background */
  --text: #000000;               /* main text */
  --muted: rgba(0, 0, 0, 0.62);  /* secondary text */
  --line: rgba(0, 0, 0, 0.10);   /* borders */
  --accent: #AE4EFC;             /* purple */
  --accent2: #FFCD42;            /* gold */
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
}


* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body{
  background:
    radial-gradient(900px 560px at 18% 10%, rgba(120, 70, 158, 0.22), transparent 62%),
    radial-gradient(1000px 620px at 82% 18%, rgba(255, 205, 66, 0.24), transparent 64%),
    radial-gradient(900px 600px at 55% 92%, rgba(120, 70, 158, 0.10), transparent 68%),
    linear-gradient(180deg, rgba(120, 70, 158, 0.06), transparent 35%),
    var(--bg);

  color: var(--text);
  font-family: "Marcellus", serif;
  line-height: 1.55;
}

/* 中文用 Chiron（你現在只有 Bold，所以順便鎖 700） */
:lang(zh), :lang(zh-Hant), :lang(zh-TW){
  font-family: "Chiron Sung HK", serif;
  font-weight: 700;
}





.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.logo {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.links a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  margin-left: 14px;
  font-size: 14px;
}

.links a:hover {
  color: rgba(255, 255, 255, 1);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero {
  padding: 58px 0 34px;
  position: relative;
}
.kicker {
  color: var(--muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-size: 12px;
  margin: 0 0 10px;
}
h1 {
  font-size: 44px;
  line-height: 1.05;
  margin: 0 0 12px;
  letter-spacing: -0.8px;
}
.sub {
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 22px;
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  background: rgba(0, 0, 0, 0.02);
}

.btn:hover {
  border-color: rgba(0, 0, 0, 0.18);
}

.btn.primary {
  background: rgba(174, 78, 252, 0.12);
  border-color: rgba(174, 78, 252, 0.35);
}


.art-twist {
  position: absolute;
  right: 0;
  top: 18px;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, rgba(174, 78, 252, 0.55), transparent 58%),
    radial-gradient(circle at 70% 70%, rgba(255, 205, 66, 0.60), transparent 60%);
  filter: blur(3px);
  opacity: 0.55;
  pointer-events: none;
}


.section { padding: 28px 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 10px;
}
.section-head p { color: var(--muted); margin: 0; }

h2 { margin: 0; font-size: 22px; letter-spacing: -0.2px; }

.grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.tag {
  display: inline-block;
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
}
.card h3 { margin: 0 0 8px; font-size: 16px; }
.desc { margin: 0 0 12px; color: var(--muted); }
.card-link { color: var(--text); text-decoration: none; }
.card-link:hover { text-decoration: underline; }

.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.split p { color: var(--muted); margin: 10px 0 0; }

.pillbox { display: flex; flex-wrap: wrap; gap: 10px; align-content: start; }
.pill {
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(255,255,255,0.02);
}

.about { color: var(--muted); max-width: 75ch; }

.contact { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }

.footer {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding: 18px 0 34px;
  color: var(--muted);
}

@media (max-width: 760px) {
  h1 { font-size: 34px; }
  .grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .art-twist { width: 160px; height: 160px; top: 8px; opacity: 0.6; }
  .links a { margin-left: 10px; }
}
/* ===== NAV fixed size + opacity hover only (single source of truth) ===== */
header.nav,
.nav{
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(120, 70, 158, 0.90); /* #78469E */
  border-bottom: 1px solid rgba(0,0,0,0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  opacity: 0.5;                 /* 預設半透明 */
  transition: opacity 220ms ease;
}

.nav:hover,
.nav:focus-within{
  opacity: 1;                   /* hover/focus 變清楚 */
}

/* 固定尺寸（縮起來的大小） */
.nav .container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 8px;
}

.nav-inner{
  min-height: 52px;
  align-items: center;
}

/* Logo 固定大小 */
.logo img{
  height: 40px;
  width: auto;
  display: block;
}































