:root {
  --ink: #172029;
  --muted: #667078;
  --paper: #f5f2ea;
  --paper-deep: #ebe6dc;
  --white: #fffdf8;
  --line: #d8d2c6;
  --accent: #e95d3f;
  --accent-soft: #f7cbbf;
  --navy: #172d3d;
  --green: #3f725e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
::selection { background: var(--accent-soft); color: var(--ink); }

[data-lang="en"] { display: none; }
html[data-language="en"] [data-lang="zh"] { display: none; }
html[data-language="en"] [data-lang="en"] { display: revert; }

.topbar {
  position: relative;
  z-index: 10;
  width: min(100%, 1500px);
  height: 84px;
  margin: 0 auto;
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1; }
.brand b { font-family: Georgia, "Times New Roman", serif; font-size: 20px; letter-spacing: -.02em; }
.brand small { margin-top: 6px; color: var(--muted); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.brand-sun {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  overflow: hidden;
}
.brand-sun::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--accent); }
.brand-sun::after { content: ""; position: absolute; left: 5px; right: 5px; top: 20px; height: 1px; background: var(--ink); box-shadow: 0 5px 0 var(--ink), 0 10px 0 var(--ink); }
.brand-sun i { position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, transparent 49%, var(--ink) 50%, transparent 52%); opacity: .25; }

.topnav { display: flex; align-items: center; gap: 28px; font-size: 13px; font-weight: 650; }
.topnav > a { position: relative; }
.topnav > a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px; background: var(--accent); transition: right .2s ease; }
.topnav > a:hover::after, .topnav > a:focus-visible::after { right: 0; }
.language-switch { display: flex; padding: 3px; border: 1px solid var(--ink); border-radius: 999px; }
.language-switch button { min-width: 34px; height: 28px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-size: 10px; font-weight: 800; }
.language-switch button[aria-pressed="true"] { background: var(--ink); color: var(--white); }

main { overflow: hidden; }
.hero {
  position: relative;
  width: min(100%, 1500px);
  min-height: 620px;
  margin: 0 auto;
  padding: 110px 42px 86px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: end;
  gap: 70px;
  border-bottom: 1px solid var(--ink);
}
.hero::before {
  content: "";
  position: absolute;
  width: 510px;
  height: 510px;
  right: 18px;
  top: -66px;
  border: 1px solid rgba(23, 32, 41, .14);
  border-radius: 50%;
}
.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 180px;
  right: 93px;
  top: 188px;
  border-radius: 360px 360px 0 0;
  background: var(--accent);
  opacity: .9;
}
.hero-grid {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .35;
  background-image: linear-gradient(rgba(23, 32, 41, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 32, 41, .07) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 90%);
}
.hero-copy { position: relative; z-index: 2; max-width: 980px; }
.eyebrow { margin: 0 0 28px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(63, 114, 94, .16); }
.hero h1 { max-width: 950px; margin: 0; font-family: Georgia, "Noto Serif SC", "Songti SC", serif; font-size: clamp(54px, 7vw, 104px); font-weight: 400; line-height: .99; letter-spacing: -.055em; }
.hero h1 em { color: var(--accent); font-weight: 400; }
.hero-description { max-width: 660px; margin: 34px 0 0; color: var(--muted); font-size: 16px; line-height: 1.9; }
.hero-note { position: relative; z-index: 2; padding: 22px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.hero-note span { display: block; color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.hero-note strong { display: block; margin: 8px 0 20px; font-family: Georgia, serif; font-size: 48px; font-weight: 400; }
.hero-note p { margin: 0; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.content-grid {
  width: min(calc(100% - 84px), 1416px);
  margin: 0 auto;
  padding: 112px 0;
  display: grid;
  grid-template-columns: minmax(250px, .75fr) minmax(420px, 1.25fr);
  gap: clamp(70px, 10vw, 170px);
}
.section-heading { display: flex; align-items: flex-start; gap: 22px; }
.section-heading > span { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: white; font-family: Georgia, serif; font-size: 13px; }
.section-heading p, .principles-heading p { margin: 2px 0 12px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.section-heading h2, .principles-heading h2 { margin: 0; font-family: Georgia, "Noto Serif SC", "Songti SC", serif; font-size: clamp(32px, 4vw, 52px); font-weight: 400; line-height: 1.15; letter-spacing: -.04em; }
.prose { max-width: 760px; padding-top: 4px; }
.prose p { margin: 0; color: var(--muted); font-size: 16px; line-height: 2; }
.prose p + p { margin-top: 25px; }

.principles { padding: 108px max(42px, calc((100vw - 1416px) / 2)); background: var(--navy); color: var(--white); }
.principles-heading { max-width: 760px; }
.principles-heading p { color: #f49c86; }
.principle-list { margin-top: 68px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255, 255, 255, .5); }
.principle-list article { min-height: 280px; padding: 28px 34px 34px 0; border-right: 1px solid rgba(255, 255, 255, .18); }
.principle-list article + article { padding-left: 34px; }
.principle-list article:last-child { border-right: 0; }
.principle-list article > span { color: #f49c86; font-family: Georgia, serif; font-size: 12px; }
.principle-list h3 { margin: 58px 0 15px; font-family: Georgia, "Noto Serif SC", "Songti SC", serif; font-size: 27px; font-weight: 400; }
.principle-list p { max-width: 330px; margin: 0; color: rgba(255, 253, 248, .68); font-size: 13px; line-height: 1.8; }

.contact { align-items: start; }
.contact-card { padding: 42px; border: 1px solid var(--ink); background: var(--white); box-shadow: 8px 8px 0 var(--ink); }
.contact-card p { max-width: 620px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.contact-card > div > a { display: inline-flex; margin-top: 18px; padding-bottom: 4px; border-bottom: 1px solid var(--accent); color: var(--accent); font-family: ui-monospace, "Cascadia Mono", monospace; font-size: 14px; }
.contact-card > div > a span { margin-left: 9px; }
.home-button { margin-top: 44px; padding: 17px 21px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--ink); background: var(--ink); color: var(--white); font-size: 12px; font-weight: 800; }
.home-button:hover, .home-button:focus-visible { border-color: var(--accent); background: var(--accent); }
.home-button i { font-size: 18px; font-style: normal; }

.notice {
  width: min(calc(100% - 84px), 1416px);
  margin: 0 auto 110px;
  padding: 30px 34px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 22px;
  border: 1px solid var(--line);
  background: var(--paper-deep);
}
.notice > span { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-family: Georgia, serif; font-size: 16px; }
.notice h2 { margin: 1px 0 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.notice p { max-width: 1040px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }

.footer {
  width: min(100%, 1500px);
  min-height: 170px;
  margin: 0 auto;
  padding: 38px 42px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  border-top: 1px solid var(--ink);
}
.footer p { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-align: center; text-transform: uppercase; }
.footer-link { justify-self: end; font-size: 12px; font-weight: 750; }
.footer-brand small { letter-spacing: .04em; text-transform: none; }

a:focus-visible, button:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 4px; }

@media (max-width: 900px) {
  .topbar { height: 72px; padding: 0 20px; }
  .topnav { gap: 16px; }
  .hero { min-height: 590px; padding: 80px 20px 64px; grid-template-columns: minmax(0, 1fr) 190px; gap: 35px; }
  .hero::before { right: -190px; }
  .hero::after { right: -100px; }
  .hero h1 { font-size: clamp(50px, 11vw, 78px); }
  .content-grid { width: calc(100% - 40px); padding: 80px 0; grid-template-columns: 1fr; gap: 48px; }
  .principles { padding: 80px 20px; }
  .principle-list { grid-template-columns: 1fr; }
  .principle-list article, .principle-list article + article { min-height: auto; padding: 28px 0 36px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }
  .principle-list article:last-child { border-bottom: 0; }
  .principle-list h3 { margin-top: 26px; }
  .notice { width: calc(100% - 40px); margin-bottom: 80px; }
  .footer { padding: 34px 20px; grid-template-columns: 1fr auto; }
  .footer p { display: none; }
}

@media (max-width: 600px) {
  .brand b { font-size: 17px; }
  .brand-sun { width: 34px; height: 34px; }
  .topnav > a { display: none !important; }
  .hero { min-height: auto; padding-top: 64px; display: block; }
  .hero::before { width: 320px; height: 320px; right: -170px; top: 10px; }
  .hero::after { width: 220px; height: 110px; right: -110px; top: 170px; }
  .hero h1 { font-size: 49px; }
  .hero-description { font-size: 14px; }
  .hero-note { max-width: 220px; margin-top: 54px; }
  .section-heading { gap: 15px; }
  .section-heading > span { width: 40px; height: 40px; flex-basis: 40px; }
  .section-heading h2, .principles-heading h2 { font-size: 34px; }
  .prose p { font-size: 14px; }
  .contact-card { padding: 28px 23px; box-shadow: 5px 5px 0 var(--ink); }
  .notice { padding: 25px 22px; grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
  .footer-link { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
