/* Taipei editorial theme — navy, porcelain and warm brass. */
:root {
  --bg-color: #f7f9fc;
  --card-bg: #ffffff;
  --text-primary: #172b49;
  --text-secondary: #647083;
  --accent-primary: #183451;
  --accent-dark: #10253d;
  --accent-light: #a78b51;
  --accent-dim: #edf1f6;
  --gold-light: #9a7d44;
  --gold-dark: #183451;
  --gold-secondary: #9a7d44;
  --gold-dim: #e4e9ef;
  --line: #dce2ea;
}
body { background: #fff; }
.container { width: min(1240px, calc(100% - 96px)); }
#navbar {
  min-height: 88px;
  background: #fffffff5;
  padding: 15px max(48px, calc((100% - 1320px) / 2));
  border-bottom: 1px solid #dce2ea;
}
.logo { display: flex; flex-direction: column; gap: 1px; line-height: 1.3; letter-spacing: .2em; }
.logo span { font-size: 26px; }
.logo small { font: 9px/1.4 Georgia,serif; letter-spacing: .23em; }
.nav-links { gap: 27px; }
.nav-links a { display: flex; flex-direction: column; align-items: center; font-size: 13px; color: #263a53; letter-spacing: .08em; }
.nav-links a::before { content: attr(data-en); order: 2; font: 8px/1.7 Arial,sans-serif; color: #87909a; letter-spacing: .1em; }
.nav-links li:last-child a { border: 0; border-left: 1px solid #c7cfd9; border-radius: 0; padding: 0 0 0 24px; }
.nav-links li:last-child a:hover { background: none; color: #9a7d44; }
.nav-links a::after { background: #ac8b4d; }
#hero {
  height: 480px;
  min-height: 0;
  margin-top: 88px;
  padding: 0;
  background: #dce8f0;
  border: 0;
  display: flex;
  align-items: center;
  isolation: isolate;
}
#hero::before, #hero::after, .hero-content h1::before { display: none; }
.hero-panorama { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -1; }
.hero-content {
  display: block;
  width: min(1240px, calc(100% - 96px));
  margin: auto;
  padding-bottom: 20px;
}
.hero-eyebrow { color: #405673; font-size: 12px; letter-spacing: .21em; margin: 0 0 21px; }
.hero-content h1 { color: #112d4e; font-size: clamp(68px, 6vw, 94px); line-height: 1.4; font-weight: 700; letter-spacing: .18em; margin: 0 0 16px; }
.hero-content .tagline { max-width: 550px; font-family: var(--font-heading); font-size: 24px; font-weight: 700; letter-spacing: .06em; line-height: 1.9; margin-bottom: 25px; color: #1c3857; }
.hero-content .sub-tagline { font-size: 15px; max-width: 510px; line-height: 2; letter-spacing: .05em; color: #40546c; margin-bottom: 32px; }
.cta-button { background: #183451; border-color: #183451; border-radius: 0; color: #fff; font-size: 13px; gap: 22px; padding: 13px 25px; }
.cta-button::after { content: ''; display: block; width: 16px; height: 16px; background: url('images/icons/arrow-up-right.svg') center/contain no-repeat; filter: invert(1); }
.hero-content>.cta-button { margin: 0; color: #183451; background: #e8cf98; border-color: #d6bc85; border-radius: 2px; padding: 13px 29px; }
.hero-content>.cta-button::after { filter: none; }
.hero-content>.cta-button:hover { background: #f1dfb8; }
.expertise-rail { background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 6px 20px #18345106; }
.expertise-rail .container { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 28px 0; }
.expertise-rail a { display: flex; align-items: center; gap: 20px; padding: 0 28px; border-left: 1px solid var(--line); }
.expertise-rail a:first-child { padding-left: 0; border: 0; }
.expertise-rail a:last-child { padding-right: 0; }
.expertise-rail a>img { width: 33px; height: 33px; opacity: .72; filter: invert(49%) sepia(28%) saturate(694%) hue-rotate(2deg) brightness(93%); }
.expertise-rail strong { display: block; font: 700 17px/1.8 var(--font-heading); letter-spacing: .04em; }
.expertise-rail small { font-size: 12px; color: var(--text-secondary); }
.expertise-rail .rail-arrow { margin-left: auto; width: 15px; height: 15px; opacity: .35; filter: none; }
.expertise-rail a:hover strong { color: #9a7d44; }
.content-section { padding: 84px 0; }
.alt-bg { background: #f1f4f8; }
.section-title { font-size: 31px; font-weight: 700; letter-spacing: .08em; padding-bottom: 17px; margin-bottom: 35px; }
.section-title::after { background: #b3955b; width: 32px; }
.section-kicker { display: block; color: #9a7d44; font: 10px/1.6 Arial,sans-serif; letter-spacing: .2em; margin-bottom: 10px; }
#about { background: #f8fafd; padding: 64px 0; }
#about .container { display: grid; grid-template-columns: .95fr 2.2fr; gap: 60px; align-items: start; }
.section-heading { position: relative; }
.section-heading .section-title { margin-bottom: 24px; }
.about-portrait { display: block; width: 180px; height: 190px; object-fit: cover; object-position: center 28%; border-radius: 0 38px 0 0; }
.bio-text { max-width: none; font-size: 14px; padding-top: 8px; }
.bio-text p { line-height: 2; margin-bottom: 18px; }
.latest-section { padding: 65px 0 72px; border-top: 1px solid #e8edf2; }
.section-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 25px; }
.section-header .section-title { margin-bottom: 0; padding-bottom: 0; }
.section-header .section-title::after { display: none; }
.text-link { font-size: 12px; color: #6b7788; display: inline-flex; align-items: center; gap: 18px; }
.text-link img { width: 20px; opacity: .55; }
.text-link:hover { color: #9a7d44; }
.home-posts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.home-post { display: block; min-width: 0; }
.home-post-image { aspect-ratio: 1.85; overflow: hidden; background: #e8edf2; margin-bottom: 17px; }
.home-post-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.home-post:hover .home-post-image img { transform: scale(1.035); }
.home-post time { color: #8a7350; font: 11px/1.6 Arial,sans-serif; letter-spacing: .05em; }
.home-post h3 { margin: 8px 0 13px; font-size: 18px; line-height: 1.7; }
.home-post .post-link { font-size: 11px; color: #7a8696; display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); }
.post-link img { width: 17px; opacity: .5; }
.edu-card { background: #fff; border-color: #e0e5ec; border-top-color: #b3955b; border-radius: 0; }
.edu-card::before { color: #a48a58; }
.timeline { border-color: #cbd6e2; }
.timeline-item .year { color: #9a7d44; }
.timeline-item::before { border-color: #a48a58; background: #fff; }
.service-block { border-left-color: #b3955b; background: #fff; }
.service-card, .service-card h4 { border-color: #d7e0e9; }
.skill-card { border-radius: 0; border-top: 2px solid #b3955b; padding-top: 30px; }
.skill-card .icon { background: #f1f4f8; border-radius: 0; }
.skill-card .icon img { width: 26px; height: 26px; opacity: .7; }
#philosophy { background: #172f4b; }
#philosophy .section-title { color: #fff; }
.main-quote { color: #e5d2a9; font-size: clamp(24px,2.3vw,33px); }
.phi-item { border-color: #ffffff25; }
.phi-item h4 { color: #dbc293; }
.phi-item p { color: #c5cfdb; }
.contact-form { background: #f8fafd; border-color: #e0e6ee; border-radius: 0; }
.form-row input,.contact-form textarea { background: #fff; border-color: #d7e0e9; border-radius: 0; }
.form-row input:focus,.contact-form textarea:focus { border-color: #8096af; box-shadow: 0 0 0 3px #18345108; }
input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; }
footer { background: #edf1f6; border-color: #dae2ec; }
footer p { color: #758397; }
.modal-overlay { background: #10253d80; }
.modal-box { border-radius: 2px; }
/* Match public journal and article pages. */
.blog-hero { background: #eef3f8; border-bottom-color: #dce3ec; text-align: center; padding: 145px 0 62px; }
.blog-hero h1 { color: #183451; font-weight: 700; }
.blog-hero p { margin-inline: auto; }
.blog-card { border-color: #dce3ec; border-radius: 0; }
.blog-card:hover { border-color: #b4c0cf; box-shadow: 0 12px 30px #1834510d; }
.card-date,.post-meta { color: #a08654; }
.card-title { color: #183451; }
.post-cover { border-radius: 0; }
.post-content blockquote { background: #eef3f8; color: #183451; }
@media(min-width:1600px) {
  #hero { padding: 0; height: 590px; min-height: 0; }
}
@media(max-width:1100px) {
  .container,.hero-content { width: calc(100% - 64px); }
  #navbar { padding-inline: 32px; }
  .nav-links { gap: 19px; }
  .hero-content .tagline { max-width: 470px; font-size: 21px; }
  .hero-content .sub-tagline { max-width: 420px; font-size: 13px; }
  #hero { height: 510px; }
  .hero-content h1 { font-size: 74px; }
  .expertise-rail a { padding-inline: 18px; gap: 14px; }
  .expertise-rail strong { font-size: 15px; }
  .expertise-rail small { font-size: 11px; }
  #about .container { gap: 40px; }
}
@media(max-width:900px) {
  #navbar { min-height: 76px; padding: 12px 26px; }
  .logo span { font-size: 24px; }
  .logo small { font-size: 8px; }
  .nav-links { background: #fff; padding: 22px 26px; gap: 14px 24px; }
  .nav-links a { align-items: flex-start; padding: 7px 0; font-size: 14px; }
  .nav-links li:last-child a { padding: 7px 0; border: 0; text-align: left; }
  #hero { margin-top: 76px; height: 485px; padding: 0; }
  .hero-content h1 { font-size: 64px; margin: 0 0 15px; }
  .hero-eyebrow { font-size: 10px; max-width: 300px; letter-spacing: .1em; }
  .hero-content .tagline { max-width: 370px; font-size: 19px; }
  .hero-content .sub-tagline { max-width: 330px; font-size: 12px; }
  .expertise-rail .container { padding-block: 24px; }
  .expertise-rail a { align-items: flex-start; gap: 12px; }
  .expertise-rail a>img { width: 25px; height: 25px; margin-top: 5px; }
  .expertise-rail .rail-arrow { display: none; }
  .expertise-rail small { display: none; }
  #about .container { grid-template-columns: .8fr 2fr; gap: 36px; }
  .about-portrait { width: 150px; height: 175px; }
  .content-section { padding: 64px 0; }
  .home-posts { gap: 20px; }
  .home-post h3 { font-size: 16px; }
}
@media(max-width:600px) {
  .container,.hero-content { width: calc(100% - 44px); }
  #navbar { padding-inline: 22px; }
  #hero { height: auto; min-height: 0; display: block; margin-top: 76px; padding: 0; background: #eef4f9; overflow: visible; }
  .hero-panorama { position: relative; display: block; height: 320px; object-position: 69% center; z-index: 0; }
  .hero-content { position: relative; background: #f8fafd; width: 100%; padding: 30px 22px 35px; }
  .hero-eyebrow { font-size: 10px; max-width: none; margin-bottom: 12px; }
  .hero-content h1 { margin: 0 0 13px; font-size: 52px; line-height: 1.35; letter-spacing: .15em; }
  .hero-content .tagline { max-width: 370px; font-size: 18px; line-height: 1.9; margin-bottom: 12px; }
  .hero-content .sub-tagline { max-width: none; font-size: 12px; line-height: 2; margin-bottom: 22px; }
  .hero-content>.cta-button { padding: 11px 23px; }
  .expertise-rail .container { width: 100%; padding: 0; }
  .expertise-rail a { flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 22px 9px; margin: 0; border-color: #e1e7ee; }
  .expertise-rail a:first-child { padding-left: 9px; }
  .expertise-rail a:last-child { padding-right: 9px; }
  .expertise-rail a>img { width: 25px; height: 25px; margin: 0; }
  .expertise-rail strong { font-family: var(--font-body); font-size: 11px; font-weight: 500; line-height: 1.7; letter-spacing: 0; }
  #about { padding: 44px 0; }
  #about .container { display: block; }
  .section-heading { min-height: 100px; margin-bottom: 20px; padding-top: 6px; }
  .section-heading .section-title { margin-bottom: 0; }
  .about-portrait { position: absolute; right: 0; top: 0; width: 88px; height: 102px; border-radius: 0 24px 0 0; }
  .bio-text { padding-top: 0; font-size: 14px; }
  .bio-text p { line-height: 2; }
  .section-title { font-size: 27px; }
  .section-kicker { font-size: 9px; margin-bottom: 7px; }
  .latest-section { padding: 44px 0; }
  .section-header { gap: 12px; align-items: center; }
  .text-link { font-size: 11px; gap: 8px; }
  .home-posts { grid-template-columns: 1fr; gap: 26px; }
  .home-post { display: grid; grid-template-columns: 112px minmax(0,1fr); column-gap: 16px; }
  .home-post-image { grid-column: 1; grid-row: 1 / 4; aspect-ratio: 1.1; margin: 0; }
  .home-post time,.home-post h3,.home-post .post-link { grid-column: 2; }
  .home-post h3 { font-size: 15px; line-height: 1.65; margin: 5px 0 9px; }
  .home-post .post-link { font-size: 10px; padding-top: 8px; }
  .content-section { padding: 52px 0; }
  .blog-hero { padding: 125px 0 42px; text-align: left; }
  .blog-hero h1 { font-size: 29px; }
}
