:root {
  --primary: #571a85;
  --secondary: #7e5f99;
  --surface: #f5f5f7;
  --ink: #231815;
  --accent: #0454a4;
  --footer: #8e6a9e;
  --card: #9a78b0;
  --white: #ffffff;
  --rule: #571a85;
  --font: "Noto Sans", "Noto Sans TC", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --serif: "Noto Serif TC", "Noto Serif SC", "Songti TC", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
}

img { max-width: 100%; height: auto; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--white);
  color: var(--primary);
  padding: 8px 12px;
  z-index: 20;
}

.skip:focus { top: 8px; }

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: relative;
  background: var(--white);
  padding: 22px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lang-switch {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.lang-chip {
  width: 36px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: var(--white);
  border-radius: 2px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.lang-chip.is-current { filter: brightness(0.82); }

.logo { display: block; line-height: 0; color: var(--primary); }

.logo img,
.footer-logo-link img {
  display: block;
  width: min(248px, 68vw);
  height: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px clamp(28px, 4.6vw, 68px);
  margin-top: 16px;
  padding-bottom: 6px;
}

.nav a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

html[lang^="zh"] .nav a { letter-spacing: 0.12em; text-transform: none; font-size: 15px; }

.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

.hero {
  position: relative;
  min-height: clamp(240px, 42vw, 500px);
  background: #d4c2e6 center / cover no-repeat;
  overflow: hidden;
}

.hero-home { background-color: #cbb6dc; min-height: clamp(260px, 46vw, 540px); }

.hero-pupillage { background-color: #d9d3ea; min-height: clamp(250px, 40vw, 480px); }

.hero-news {
  background-color: #e7dfd6;
  min-height: clamp(210px, 34vw, 420px);
}

.hero-members {
  background-color: #f4f2f5;
  min-height: clamp(168px, 26vw, 280px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 28px 7vw;
}

.hero-members h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--primary);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.sheet { padding: 54px 24px 72px; }

.prose-center,
.news-wrap,
.profile { max-width: 1040px; margin: 0 auto; }

.prose-narrow { max-width: 760px; }

.prose-center,
.prose-narrow { text-align: center; }

.prose h1,
.news-wrap > h1,
.prose-center h1 {
  margin: 4px 0 28px;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1a1a1a;
}

html[lang^="zh"] .prose h1,
html[lang^="zh"] .news-wrap > h1 { letter-spacing: 0.04em; }

.prose p { margin: 0 0 1.15em; }

.news-wrap > h1 { text-align: center; }

.member-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.member-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 7px solid var(--card);
  background: var(--card);
  min-width: 0;
}

.member-photo,
.profile-photo {
  display: grid;
  place-items: center;
  background: #3a4452 center / cover no-repeat;
  aspect-ratio: 5 / 4;
}

.profile-photo { aspect-ratio: auto; min-height: 480px; }

.member-photo.is-awaiting,
.profile-photo.is-awaiting {
  background-image: url("/assets/brand/member-awaiting.svg");
}

.await {
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(28px, 2.4vw, 40px);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.member-name {
  display: block;
  text-align: center;
  color: var(--white);
  background: var(--card);
  padding: 10px 8px 12px;
  font-size: 15px;
}

.member-card:hover .member-name,
.member-card:focus-visible .member-name { background: var(--primary); }

.profile-top {
  display: grid;
  grid-template-columns: minmax(240px, 0.86fr) 1.15fr;
  gap: 28px 48px;
  align-items: start;
}

.profile-intro h1 {
  margin: 0 0 18px;
  color: var(--primary);
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: 0;
  text-align: left;
}

.creds { list-style: none; margin: 0 0 18px; padding: 0; }

.creds li { margin: 0; }

.langs { margin: 0 0 8px; }

.profile-intro h2,
.profile-heading {
  color: var(--primary);
  font-size: 26px;
  font-weight: 700;
  margin: 26px 0 12px;
}

.areas { margin: 0; }

.areas span { display: block; }

.profile-rule { color: var(--primary); margin: 28px 0 8px; }

.profile .prose { text-align: left; max-width: none; }

.profile .prose p { margin: 0 0 1em; }

.news-list { margin-top: 18px; }

.news-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px 28px;
  align-items: baseline;
  padding: 16px 0 14px;
}

.news-row time,
.news-row a {
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
}

.news-row a:hover { text-decoration: underline; text-underline-offset: 3px; }

.news-rule,
.profile-rule {
  border: 0;
  border-top: 1px solid var(--primary);
  height: 0;
  margin: 0;
}

.news-article { max-width: 1040px; margin: 0 auto; }

.news-article > h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: 0;
  text-align: left;
  color: #1a1a1a;
}

.news-article time { display: block; margin: 8px 0 18px; }

.news-body p { margin: 0 0 1em; }

.news-cover { margin: 22px 0 0; }

.news-cover img { display: block; width: 100%; height: auto; }

.news-back { display: flex; justify-content: flex-end; margin: 28px 0 0; }

.back-link {
  width: 46px;
  height: 46px;
  background: var(--primary);
  border-radius: 4px;
  display: grid;
  place-items: center;
  position: relative;
  text-decoration: none;
}

.back-link::before {
  content: "";
  width: 12px;
  height: 12px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  margin-left: 4px;
}

.news-empty,
.news-missing { text-align: center; }

.news-more-wrap { text-align: center; margin-top: 22px; }

.news-more {
  background: var(--primary);
  color: var(--white);
  border: 0;
  padding: 8px 18px;
  font: inherit;
  cursor: pointer;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 540px;
  background: var(--surface);
}

.map-panel { position: relative; min-height: 480px; background: #e7eef2; }

.map-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.map-hit { position: absolute; inset: 0; text-decoration: none; color: #1c1c1c; }

.map-pin { position: absolute; left: 36%; top: 40%; width: 34px; height: auto; }

.map-hit span {
  position: absolute;
  left: 6%;
  bottom: 14%;
  font-family: var(--serif);
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.contact-info { padding: 72px 48px 64px 56px; }

.contact-info h1,
.contact-info h2 {
  margin: 0 0 16px;
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.contact-info h2 { margin-top: 52px; }

.contact-info address,
.contact-info p { font-style: normal; margin: 0 0 2px; line-height: 1.7; }

.contact-info a { color: inherit; text-decoration: none; }

.contact-info a:hover { text-decoration: underline; }

.site-footer {
  background: var(--footer);
  color: var(--white);
  padding: 34px 28px 16px;
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.45fr 0.85fr;
  gap: 28px 36px;
  align-items: start;
}

.footer-logo-link { display: inline-block; line-height: 0; color: var(--white); }

.footer-logo-link img { width: min(220px, 70vw); height: auto; }

.social { display: flex; gap: 12px; margin-top: 18px; color: var(--white); }

.social svg { width: 34px; height: 34px; display: block; }

.footer-contact h2,
.footer-nav h2 {
  margin: 6px 0 14px;
  font-size: 16px;
  font-weight: 700;
}

.footer-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px 18px;
}

.footer-split address { font-style: normal; font-size: 14px; line-height: 1.65; }

.footer-lines {
  border-left: 1px solid rgba(255, 255, 255, 0.75);
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.65;
}

.footer-lines p { margin: 0; }

.footer-lines a,
.footer-nav a { color: var(--white); text-decoration: none; }

.footer-lines a:hover,
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 2px; }

.footer-nav-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }

.footer-nav-cols a {
  display: block;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

html[lang^="zh"] .footer-nav-cols a { text-transform: none; letter-spacing: 0.04em; }

.footer-bottom {
  max-width: 1180px;
  margin: 28px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding-top: 8px;
}

.footer-bottom p { margin: 0; font-size: 12px; }

.site-footer .lang-switch { position: static; }

.site-footer .lang-chip {
  background: var(--white);
  color: var(--primary);
  filter: none;
}

.site-footer .lang-chip.is-current { outline: 2px solid var(--white); outline-offset: 1px; }

.pending { margin-top: 12px; }

@media (max-width: 1020px) {
  .member-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .lang-switch { position: static; align-self: flex-start; margin-bottom: 8px; }
  .logo img { width: min(220px, 78vw); }
  .contact-grid { grid-template-columns: 1fr; }
  .map-panel { min-height: 380px; }
  .contact-info { padding: 36px 22px 48px; }
  .profile-top { grid-template-columns: 1fr; }
  .profile-photo { min-height: 320px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .member-grid { grid-template-columns: 1fr; }
  .news-row { grid-template-columns: 1fr; gap: 2px; }
  .footer-split { grid-template-columns: 1fr; }
  .footer-lines { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.55); padding-top: 12px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .sheet { padding: 36px 18px 56px; }
  .nav { gap: 10px 16px; }
  .nav a { letter-spacing: 0.12em; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
