
:root{--fg:#111;--bg:#fff;--muted:#666;--card:#f7f7f7;--accent:#0b5fff;--radius:14px;--max:980px}
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background:var(--bg);color:var(--fg)}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:var(--max);margin:0 auto;padding:32px 20px}
.header{display:flex;gap:16px;align-items:center;margin-bottom:8px}
/* .header img{width:64px;height:64px;border-radius:50%;object-fit:cover;box-shadow:0 4px 10px rgba(0,0,0,.08)} */
.header img{
    border-radius: 0 !important;   /* no circle */
    box-shadow: none !important;   /* remove soft shadow if you don't want it */
    height: px;                  /* pick a portrait height you like */
    width: auto;                   /* keep original aspect ratio */
    object-fit: contain;           /* avoid cropping */
    background: transparent;       /* no fallback background bleed */
  }
.nav{display:flex;gap:16px;margin:8px 0 24px 0;flex-wrap:wrap}
.nav a{padding:6px 10px;border-radius:8px}
.nav a.active,.tabbar button.active{background:var(--card)}
h1{font-size:28px;margin:8px 0 0}
h2{font-size:24px;margin:24px 0 8px}
.muted{color:var(--muted)}
/* indent is here!!!! */
.card{background:var(--card);border-radius:var(--radius);padding:60px}
.footer{margin:64px 0 24px;color:var(--muted);font-size:14px}
.badge{font-size:12px;padding:2px 8px;border-radius:999px;background:#eaeaea;color:#444;margin-left:6px}
.list{display:grid;gap:12px}
.item{padding:14px;border-radius:12px;background:#fff;border:1px solid #eee}
.item .title{font-weight:600}
.meta{font-size:14px;color:var(--muted)}
.tabbar{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}
.tabbar button{border:0;background:transparent;padding:8px 12px;border-radius:999px;cursor:pointer}
.tags{display:flex;gap:6px;flex-wrap:wrap}
.tag{font-size:12px;padding:2px 8px;border-radius:999px;background:#eef5ff;border:1px solid #dbe7ff}
.controls{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:8px 0 16px}
input[type="search"]{padding:8px 10px;border-radius:8px;border:1px solid #ddd;min-width:220px}
.btn{padding:8px 12px;border-radius:8px;border:1px solid #ddd;background:#fff;cursor:pointer}
.pagination{display:flex;gap:8px;margin-top:12px}
papertitle{font-weight:800;font-size:20px;line-height:1.2}
a.a2{color:inherit;text-decoration:underline}
a.a2:hover{text-decoration:none}
@media (prefers-color-scheme: dark){:root{--fg:#eee;--bg:#0b0b0b;--muted:#aaa;--card:#151515}.item{background:#0f0f0f;border-color:#222}input[type="search"]{background:#0f0f0f;border-color:#333;color:#eee}.btn{background:#0f0f0f;border-color:#333;color:#eee}}


/* ---- Card grid ---- */
.grid-cards{display:grid;gap:20px;grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}
.card-visual{display:block;border-radius:16px;overflow:hidden;background:#ffffff;border:1px solid #eee;transition:transform .06s ease, box-shadow .06s ease}
.card-visual:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,.06)}
.card-visual img{width:100%;height:180px;object-fit:cover;display:block}
.card-visual .pad{padding:14px}
.card-visual .title{font-weight:700;line-height:1.2;margin:6px 0 6px}
.card-visual .excerpt{color:var(--muted);font-size:15px}
.card-visual .meta{font-size:13px;color:var(--muted)}
.badge-slim{font-size:11px;background:#eaeaea;color:#555;border-radius:999px;padding:2px 6px}
@media (prefers-color-scheme: dark){.card-visual{background:#0f0f0f;border-color:#222}}
/* === Header portrait (shared across Activities / Blogs / Publications) === */

/* Layout: portrait | brand | nav (top-right) */
.header{
    display: grid;
    grid-template-columns: 180px 1fr auto;  /* left portrait | middle brand | right nav */
    grid-template-rows: auto auto;         /* row1 (nav) + row2 (brand) */
    column-gap: 16px;
    row-gap: 10px;
  }
  .header .site-portrait{
    grid-column: 1;
    grid-row: 1 / span 2;
    height: 200px; width: auto; object-fit: cover; border-radius: 0; box-shadow: none;
    align-self: center;
  }
  
  /* NAV — place top-right */
  .header .nav.main-nav{
    grid-column: 3;
    grid-row: 1;
    justify-self: end;                 /* right edge */
    display: flex;
    gap: 12px;
    margin-right: 8px;                 /* tweak if you want even closer to right */
  }
  .header img.site-avatar {
    /* size */
    height: 144px;              /* tweak: 56–84px if you like */
    width: auto;               /* keep original aspect ratio */
    max-width: 0px;          /* safety in case of super-wide images */
  
    /* presentation */
    object-fit: contain;       /* no cropping */
    border-radius: 0 !important;  /* no circle */
    box-shadow: none !important;  /* remove soft glow */
  
    /* layout safety */
    display: block;
  }
  
  @media (max-width: 640px) {
    .header img.site-avatar { height: 80px; }
  }
  

  .header .brand{
    grid-column: 2 / 4;     /* name/subtitle/links under nav */
    grid-row: 2;
  }

  /* NAV buttons (pill style) */
  .nav.main-nav a{
    --nav-fg: #5c3414;                 /* brown text */
    --nav-bg: #f2e7dc;                 /* soft sand */
    --nav-bg-hover: #ead9c7;
    --nav-ring: rgba(138, 90, 43, .35);
  
    color: var(--nav-fg);
    background: var(--nav-bg);
    border: 1px solid #e6d8c9;
    padding: 8px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-variant-caps: small-caps;     /* distinct nav style */
    letter-spacing: .02em;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 0 rgba(0,0,0,.03);
    transition: background .15s ease, border-color .15s ease, transform .02s ease;
  }
  .nav.main-nav a:hover{
    background: var(--nav-bg-hover);
    border-color: #ddccb8;
    text-decoration: none;
  }
  .nav.main-nav a:active{ transform: translateY(1px); }
  .nav.main-nav a.active{
    background: #e9d6c3;
    border-color: #d9c4ad;
  }
  .nav.main-nav a:focus-visible{
    outline: 2px solid var(--nav-ring);
    outline-offset: 2px;
  }
  
  /* Keep normal content links brown (already set globally) */
  
  /* Responsive: allow nav wrap on small screens */
  @media (max-width: 900px){
    .header .site-portrait{ height: 110px; }
    .header .nav.main-nav{ flex-wrap: wrap; gap: 10px; }
  }
  
  
  /* If the portrait should be centered vertically instead of top-aligned,
     swap align-self:start for center, then use a smaller margin-top (e.g., 4px) */
/* Research 列表行：两列布局，垂直居中 */
/* Research 行：左图右文，统一左列宽，高度由内容自然决定 */
.research .list .item{
    display: grid !important;
    grid-template-columns: 260px 1fr; /* 调整左列宽度 280~360 都可 */
    gap: 16px;
    align-items: stretch;             /* 两列同高，方便左列垂直居中 */
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    background: #fff;
  }
  
  /* teaser 容器让内部媒体在“行高”里垂直居中；宽度对齐，高度自适应 */
  .research .list .item .teaser{
    height: 100%;
    display: flex;
    align-items: center;     /* 垂直居中 */
    justify-content: flex-start;
  }
  .research .list .item .teaser img,
  .research .list .item .teaser video{
    width: 100%;
    height: auto;            /* 高度按比例自适应 */
    object-fit: contain;     /* 不裁切，完整显示；想铺满可以改 cover */
    border-radius: 12px;
    border: 1px solid #eee;
    display: block;
  }
  
  /* 右侧内容的小优化 */
  .research .list .item .title{ margin: 0 0 6px; font-weight: 700; line-height: 1.2; }
  .research .list .item .meta{  margin: 0 0 6px; font-size: 14px; color: var(--muted); }
  .research .list .item p{      margin: 6px 0 0; }
  
  /* 窄屏改上下排布 */
  @media (max-width: 780px){
    .research .list .item{
      grid-template-columns: 1fr;
      align-items: start;
    }
    .research .list .item .teaser{
      height: auto;
    }
  }
 /* 让右侧文字块在这一行里垂直居中 */
.research .list .item .content{
    display: flex;
    flex-direction: column;   /* 纵向排版标题/作者/摘要 */
    justify-content: center;  /* 垂直居中整块文字 */
    height: 100%;             /* 占满这一行的高度，才能居中 */
  }
  
  /* 为了更“正中”，把默认的外边距收一收（可按需调） */
  .research .list .item .content .title{ margin: 0 0 6px; }
  .research .list .item .content .meta{  margin: 0 0 6px; }
  .research .list .item .content p{      margin: 6px 0 0; }
/* 让 em 只保留斜体，不继承奇怪颜色/粗细 */
.research em { font-size: 14px; font-style: italic; color: inherit; font-weight: inherit; }

/* 更紧凑的徽标高度（不影响行间距） */
.pill{
    display: inline-flex;          /* 让自身高度由内容+内边距决定 */
    align-items: center;           /* 文本垂直居中 */
    padding: 2px 10px;             /* ← 上下更小（可改 1px 8px 更紧） */
    line-height: 1.3;                /* ← 内部行高=文字本身 */
    font-size: 14px;               /* 字号不变/可微调 12–13px */
    border-radius: 999px;
    border: 1px solid #e5e5e5;
    background: #f6f6f6;
    color: #444;
    vertical-align: middle;        /* 与周围文字对齐，避免拉高行盒 */
  }
  
  /* 继承颜色主题，但使用紧凑 padding */
  .pill-orange{
    color:#8a5a00; border-color:#f3d6a4; background:#fff4e0; font-weight:600;
    padding: 0.5px 10px;             /* 需要更紧就改为 1px 10px */
  }
  .pill-red{
    color:#c62828; border-color:#f5c6c6; background:#fdecec; font-weight:700;
    padding: 2px 12px;
  }
  

/* venue 行的排版（可选） */
.meta.venue{ margin: 8px 0 6px; }
.meta.venue .name{ font-size: 16px; font-style: italic; }
  
/* ----- Global link color (content area) ----- */
:root{
    --link-brown: #8a5a2b;     /* base */
    --link-brown-hover: #6f461f; /* hover/active */
  }
  
  /* All regular links turn brown */
  a{
    color: var(--link-brown);
    text-decoration: none;
  }
  a:hover, a:focus-visible{
    color: var(--link-brown-hover);
    text-decoration: underline;
  }
  
  /* Keep code/monospace inline links consistent */
  code a{ text-decoration: underline; }
  
  /* Ensure links in .meta/.quicklinks etc. inherit the same */
  .meta a, .quicklinks a, .content a, .brand a{ color: var(--link-brown); }
  .meta a:hover, .quicklinks a:hover, .content a:hover, .brand a:hover{
    color: var(--link-brown-hover);
  }
  
  /* Dark mode tweak (optional) */
  @media (prefers-color-scheme: dark){
    :root{
      --link-brown: #cfa077;
      --link-brown-hover: #e5bb94;
    }
  }
/* ----- Nav buttons (top-right) ----- */
.nav.main-nav{
    display: flex;
    gap: 12px;
    margin-left: auto;             /* keep to the right */
  }
  
  /* Button look */
  .nav.main-nav a{
    --nav-fg: #5c3414;            /* brown text */
    --nav-bg: #f2e7dc;            /* soft sand */
    --nav-bg-hover: #ead9c7;
    --nav-ring: rgba(138, 90, 43, .35);
  
    color: var(--nav-fg);
    background: var(--nav-bg);
    border: 1px solid #e6d8c9;
    padding: 6px 12px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 0 rgba(0,0,0,.03);
    transition: background .15s ease, border-color .15s ease, transform .02s ease;
  }
  
  .nav.main-nav a:hover{
    background: var(--nav-bg-hover);
    border-color: #ddccb8;
    text-decoration: none;         /* keep buttons non-underlined */
  }
  
  .nav.main-nav a:active{
    transform: translateY(1px);
  }
  
  .nav.main-nav a.active{
    background: #e9d6c3;          /* active state */
    border-color: #d9c4ad;
  }
  /* --- Author links (no underline, same color as text) --- */
a.a2 {
    color: inherit;                /* same color as surrounding text */
    text-decoration: none !important;
    font-weight: 500;
  }
  
  a.a2:hover {
    text-decoration: underline;    /* optional: show underline only on hover */
    color: var(--link-brown-hover); /* optional subtle hover color */
  }
  
  
  /* Keyboard focus ring */
  .nav.main-nav a:focus-visible{
    outline: 2px solid var(--nav-ring);
    outline-offset: 2px;
    text-decoration: none;
  }
  
  /* Dark mode for nav (optional) */
  @media (prefers-color-scheme: dark){
    .nav.main-nav a{
      --nav-fg: #f0e2d6;
      --nav-bg: #3a2a1f;
      --nav-bg-hover: #493528;
      --nav-ring: rgba(255, 214, 170, .4);
      border-color: #5a4333;
    }
    .nav.main-nav a.active{ background: #4a372a; border-color:#6a5240; }
  }
    

  .misc-title.gradient {
    background: linear-gradient(90deg,#8a5a2b 0%,#c98d56 40%,#6f461f 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    letter-spacing: .02em; font-weight: 900;
  }
  .misc-title.ribbon{
    display:inline-block; padding:6px 14px; border-radius:999px;
    background:#f2e7dc; border:1px solid #e6d8c9; color:#5c3414;
    font-weight:800; letter-spacing:.02em; box-shadow:0 1px 0 rgba(0,0,0,.05);
  }
  .misc-title.neon {
    position:relative; font-weight:900; letter-spacing:.01em;
  }
  .misc-title.neon::after{
    content:""; position:absolute; left:0; right:0; bottom:-6px; height:6px;
    border-radius:6px; background:linear-gradient(90deg,#ffcf8f,#ff9c6e,#f28e2c);
    filter: blur(1px) saturate(1.2);
  }
  .misc-title.sticker{
    display:inline-block; padding:2px 8px; background:#fff;
    border:1px solid #ebe3da; border-radius:10px;
    box-shadow: 0 2px 0 #e2d5c8, 0 6px 12px rgba(0,0,0,.06);
    font-weight:800; color:#7a4c23;
  }
  .misc-title.sparkle{ position:relative; padding-left:1.6em; font-weight:900; }
  .misc-title.sparkle::before{
    content:"✦"; position:absolute; left:0; top:0; color:#c98d56; font-size:1.1em;
    filter: drop-shadow(0 0 2px rgba(201,141,86,.35));
  }
          
/* Filter chips (same as All Posts / Publications) */
.tagchip{
    display:inline-flex; align-items:center; line-height:1;
    padding:6px 10px; font-size:13px; border-radius:999px;
    border:1px solid #e6d8c9; background:#f2e7dc; color:#5c3414; font-weight:600;
    cursor:pointer; user-select:none;
  }
  .tagchip.is-on{ box-shadow:0 0 0 2px rgba(138,90,43,.15) inset; }
  .tag-all     { background:#eef1ff; border-color:#d9defa; color:#293a9b; }
  .tag-hosted  { background:#eefbf1; border-color:#d4f0da; color:#226b36; }
  .tag-attended{ background:#c0e2f4ee; border-color:#93c0fbde; color:#3d72c8; }
  .tag-star    { background:#f5eedd; border-color:#e5dbbf; color:#7a5a1a; }
  
  /* Star icon: hollow ☆ / filled ★ — drawn by CSS ONLY */
  .card-visual{ position:relative; }
  .star-btn{
    position:absolute; top:10px; right:10px;
    display:inline-flex; align-items:center; justify-content:center;
    width:32px; height:32px; border-radius:999px;
    border:1px solid #e6d8c9; background:#fff; color:#8a5a00; cursor:pointer;
    box-shadow:0 1px 0 rgba(0,0,0,.05);
    font-size:18px; line-height:1;
  }
  .star-btn[data-on="false"]::before{ content:"☆"; }
  .star-btn[data-on="true"]::before{  content:"★"; }
/* Blog rows are positioning contexts for the star */
.list .item{ position: relative; }





/* per-tag chips – make them match your row tag colours (add/adjust as needed) */
.chip-diary       { background:#e9ecff; border-color:#d7defa; color:#293a9b; }
.chip-hangout     { background:#eefbf1; border-color:#d4f0da; color:#226b36; }
.chip-notes       { background:#fdecec; border-color:#f5c6c6; color:#b93b3b; }
.chip-seasons     { background:#fff4e0; border-color:#f3d6a4; color:#8a5a00; }
.chip-performance { background:#edf6ff; border-color:#d6e8fa; color:#245a9b; }
.chip-eval        { background:#f2f2f2; border-color:#e5e5e5; color:#555; }


