/* =========================================================
   EverGrow typography layer
   Loaded after each page's inline <style>, so these rules win.
   Headings: EB Garamond (EN) + 思源宋体 Noto Serif SC (CN), same as the logo wordmark.
   Body: system sans (PingFang / Microsoft YaHei / Noto Sans SC).
   Weights: 400 and 500 only (wordmark keeps its own 600/700).
   ========================================================= */

@font-face {
  font-family: "EverGrow Garamond";
  src: url("../fonts/garamond-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "EverGrow Garamond";
  src: url("../fonts/garamond-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "EverGrow Serif SC";
  src: url("../fonts/serif-sc-400.woff2?v=20261110") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "EverGrow Serif SC";
  src: url("../fonts/serif-sc-500.woff2?v=20261110") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --t-serif: "EverGrow Garamond", "EB Garamond", Garamond, "EverGrow Serif SC", "Noto Serif SC",
    "Source Han Serif SC", "Songti SC", "STSong", "Times New Roman", serif;
  --t-sans: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --t-ink: #1c1c1a;
  --t-body: #4a4944;
  --t-muted: #77746c;
  --t-faint: #cfccc4;

  /* existing variables used by the inline styles */
  --font-serif: var(--t-serif);
  --font-stack: var(--t-sans);
  --text: var(--t-ink);
  --muted: var(--t-muted);
}

body {
  font-family: var(--t-sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--t-ink);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- small uppercase labels (shared) ---------- */
nav a,
.btn-black,
.list-title .title-en,
.service-principle strong,
.tag,
.event-tag,
.social-label,
.article-category {
  font-family: var(--t-sans);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* ---------- header ---------- */
nav a {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--t-ink);
}

/* ---------- hero ---------- */
.welcome-left h1 {
  font-family: var(--t-serif);
  font-weight: 400;
  font-size: clamp(4.5rem, 8.4vw, 7.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.welcome-left p {
  font-weight: 400;
  color: var(--t-body);
  letter-spacing: 0;
}

.welcome-left p > span:first-child {
  font-family: var(--t-serif);
  font-size: 1.3rem;
  letter-spacing: 0.01em;
}

.welcome-left p .welcome-cn,
.welcome-left p > span:not(:first-child) {
  font-family: "EverGrow Serif SC", "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: 1rem;
  letter-spacing: 0.18em;
  margin-top: 8px;
  color: var(--t-muted);
}

.welcome-info {
  font-size: 14px;
  letter-spacing: 0.04em;
}

.btn-black {
  font-size: 12px;
  letter-spacing: 0.22em;
  padding: 16px 34px;
  background: var(--t-ink);
}

/* ---------- section headings ---------- */
.section-header h2,
.sidebar-sticky h2,
.footer-title,
.get-in-touch-btn {
  font-family: var(--t-serif);
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.01em;
}

.section-header h2,
.sidebar-sticky h2 {
  font-size: clamp(2.25rem, 3.4vw, 3.25rem);
  line-height: 1.15;
}

.sidebar-sticky h2 {
  margin-bottom: 28px;
}

.section-header h2 .section-subtitle,
.story-subtitle,
.section-note {
  font-family: var(--t-serif);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--t-muted);
  margin-top: 14px;
}

.sidebar-sticky > p {
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--t-muted);
}

.arrow-icon {
  font-size: 1.5rem;
  font-weight: 300;
}

/* ---------- service list ---------- */
.list-title {
  font-family: var(--t-serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.list-title .title-cn {
  line-height: 1.3;
}

.list-title .title-en {
  font-size: 11px;
  line-height: 1.5;
  color: var(--t-muted);
  margin-top: 0.9em;
}

.list-subtitle {
  font-family: var(--t-serif);
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--t-muted);
}

.list-desc {
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: 0.02em;
  color: var(--t-body);
  max-width: 36em;
}

.service-principle strong {
  font-size: 11px;
  color: var(--t-ink);
}

.service-principle span {
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--t-muted);
}

/* ---------- cards (team, cases) ---------- */
.card h3 {
  font-family: var(--t-serif);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.card p {
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0.02em;
}

.card p strong {
  font-weight: 500;
}

.tag,
.event-tag {
  font-size: 11px;
}

.big-index {
  font-family: var(--t-serif);
  font-weight: 400;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--t-faint);
}

/* ---------- stories ---------- */
.featured-event h3 {
  font-family: var(--t-serif);
  font-weight: 500;
  font-size: 1.875rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.featured-event p {
  font-size: 16px;
  color: var(--t-body);
}

.story-text {
  font-family: var(--t-serif);
  font-weight: 500;
  font-size: 1.125rem;
  letter-spacing: 0.01em;
}

.story-arrow {
  font-size: 1.25rem;
  font-weight: 300;
}

/* ---------- about ---------- */
.about-lead {
  font-family: var(--t-serif);
  font-weight: 500;
  font-size: 1.75rem;
  line-height: 1.65;
  letter-spacing: 0.04em;
}

.about-identity {
  font-family: var(--t-serif);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.95;
  letter-spacing: 0.04em;
  color: var(--t-body);
}

.about-manifesto,
.about-text > div:not([class]) {
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: 0.02em;
  color: var(--t-muted);
}

.about-signoff {
  font-family: var(--t-serif);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0;
}

/* ---------- article (story page) ---------- */
.article-category {
  font-size: 11px;
  color: var(--t-muted);
}

.article-title {
  font-family: var(--t-serif);
  font-weight: 500;
  font-size: clamp(2.25rem, 4.2vw, 3.25rem);
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.article-meta {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--t-muted);
}

.article-content p {
  font-size: 17px;
  line-height: 2;
  letter-spacing: 0.02em;
  color: var(--t-body);
}

.article-content h2,
.article-content h3 {
  font-family: var(--t-serif);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.article-content h2 {
  font-size: 1.75rem;
  line-height: 1.4;
}

.article-content h3 {
  font-size: 1.375rem;
  line-height: 1.45;
}

.article-content blockquote {
  font-family: var(--t-serif);
  font-weight: 400;
  font-style: normal;
  font-size: 1.375rem;
  line-height: 1.8;
  letter-spacing: 0.04em;
}

.article-content figcaption {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--t-muted);
}

/* ---------- footer ---------- */
.footer-title,
.get-in-touch-btn {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1.15;
}

.arrow-up {
  font-weight: 300;
}

.contact-info p {
  font-size: 15px;
  letter-spacing: 0.02em;
}

.contact-info p strong {
  font-weight: 500;
  letter-spacing: 0.04em;
}

.social-label {
  font-size: 11px;
}

.social-value {
  font-size: 15px;
  font-weight: 400;
}

.copyright {
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* ---------- small screens ---------- */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .welcome-left h1 {
    font-size: clamp(3.25rem, 15vw, 4.5rem);
  }

  .welcome-left p > span:first-child {
    font-size: 1.125rem;
  }

  .welcome-left p .welcome-cn,
  .welcome-left p > span:not(:first-child) {
    font-size: 0.9375rem;
    letter-spacing: 0.14em;
  }

  .section-header h2,
  .sidebar-sticky h2 {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .list-title {
    font-size: 1.375rem;
  }

  .list-desc,
  .card p {
    font-size: 15px;
    line-height: 1.9;
  }

  .about-lead {
    font-size: 1.375rem;
  }

  .article-title {
    font-size: clamp(1.75rem, 7.5vw, 2.25rem);
  }

  .article-content p {
    font-size: 16px;
  }

  .footer-title,
  .get-in-touch-btn {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }
}

/* visually hidden text for screen readers and search engines */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
