/* Minimal, clean, responsive styles */
:root{
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #555;
  --accent: #1a73e8;
  --border: #e5e7eb;
  --card: #f8fafc;
}

@media (prefers-color-scheme: dark){
  :root{
    --bg: #0b0b0c;
    --text: #f5f5f5;
    --muted: #c0c0c0;
    --accent: #82b1ff;
    --border: #1f2937;
    --card: #121417;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: clamp(16px, 1.2vw + 12px, 18px);
}

.container{
  max-width: 900px;
  padding: 0 1rem;
  margin: 0 auto;
}

.site-header{
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand{
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.nav{
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav a{
  text-decoration: none;
  color: var(--text);
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
}
.nav a[aria-current="page"]{ font-weight: 600; }
.nav a:hover, .nav a:focus{
  outline: none;
  background: var(--card);
}

.hero{
  display: grid;
  grid-template-columns: 200px 1fr;
  column-gap: 2.5rem;
  gap: 1.25rem;
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
}
.avatar{
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--card);
  background: var(--card);
}
.intro h1{
  margin: 0 0 0.25rem 0;
  font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem);
  line-height: 1.2;
}
.tagline{ color: var(--muted); margin-top: 0; }
.buttons{ display: flex; gap: 0.75rem; }

.btn{
  display: inline-block;
  text-decoration: none;
  background: var(--accent);
  color: white;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  font-weight: 600;
}
.btn:hover, .btn:focus{ filter: brightness(0.95); }
.btn-secondary{
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.news{ padding: 1.25rem 0 2rem; }
.news h2{ margin-top: 1rem; }
.news-list{
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: grid;
  gap: 0.75rem;
}
.news-list li{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
}
.news time{ font-variant-numeric: tabular-nums; color: var(--muted); }

.note{
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.75rem;
}

.site-footer{
  border-top: 1px solid var(--border);
  padding: 1rem 0 2rem;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

@media (max-width: 700px){
  .hero{
    grid-template-columns: 1fr;
    text-align: center;
  }
  .avatar{
    margin: 0 auto;
  }
  .buttons{ justify-content: center; flex-wrap: wrap; }
}

.han{
  font-family:
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans CJK SC", "Source Han Sans SC", "SimHei", "SimSun",
    sans-serif !important;   /* ensure it overrides other rules */
  font-weight: 600;
}

@font-face{
  font-family: "MyFangSong";
  src: url("assets/fonts/FangSong.woff2") format("woff2"),
       url("assets/fonts/FangSong.woff") format("woff");
  font-display: swap;
}
.fangsong{ font-family: "MyFangSong", serif !important; }

/* Profile column under the photo */
.profile{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.subtitle{
  margin: 0.6rem 0 0.2rem;
  color: var(--muted);
  font-size: 1rem;
}

/* Contact list with small icons */
.icon-list{
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
  display: grid;
  gap: 0.45rem;
}

.icon-row{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
}

.icon-row:hover,
.icon-row:focus{
  color: var(--accent);
}

.icon{
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.icon svg{
  width: 18px;
  height: 18px;
}

/* Mobile: center the left column nicely when stacked */
@media (max-width: 700px){
  .profile{ text-align: center; }
}

/* Uniform icon sizing */
.icon-row{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-row i{
  font-size: 16px;   /* icon size */
  line-height: 1;    /* remove extra vertical whitespace */
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Remove bullets/indent for the icon list */
.icon-list{
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0.4rem 0 0;
}
.icon-list > li{ list-style: none !important; }  /* extra safety */

:root { --subhead-size: 1rem; }   /* 16px */

.subtitle { font-size: var(--subhead-size); }

/* Make the icon text match the subtitle size */
.icon-list, .icon-row, .icon-list a { font-size: var(--subhead-size); }

/* Make the icons themselves scale with the text size */
.icon-row i{
  font-size: 1em;
  width: 1em;
  height: 1em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
