@font-face {
  font-family: "Instrument Sans";
  src: url("./instrument-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fafaf8;
  --ink: #20211f;
  --muted: #545651;
  --rule: #d9dad4;
  --gutter: clamp(22px, 5.55vw, 96px);
  --content: 1280px;
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.6; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid #294dd0; outline-offset: 5px; }
::selection { background: #dce3ff; color: var(--ink); }
.frame { width: min(calc(100% - 2 * var(--gutter)), var(--content)); margin-inline: auto; }
.skip {
  position: absolute; left: var(--gutter); top: 8px; z-index: 5;
  transform: translateY(-160%); background: var(--ink); color: white; padding: 8px 16px;
}
.skip:focus { transform: none; }

.masthead {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 26px; min-height: 80px; padding-block: 14px;
}
.wordmark {
  justify-self: start; font-size: 2rem; font-weight: 650;
  letter-spacing: -.075em; line-height: 1; padding: 6px 2px 8px 0;
}
.nav, .actions { display: flex; align-items: center; }
.nav { gap: 32px; }
.actions { justify-content: end; gap: 22px; }
.nav a, .lang {
  display: inline-flex; align-items: center; min-height: 42px; color: var(--muted);
  font-size: .9rem; font-weight: 500;
}
.nav a:hover, .lang:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.lang { color: var(--ink); }
.contact-button {
  white-space: nowrap; border-radius: 5px; background: var(--ink); color: #fff;
  padding: 10px 19px; font-size: .9rem; font-weight: 500;
}
.contact-button:hover { background: #42453e; }

.intro {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .8fr);
  align-items: end; gap: clamp(30px, 7vw, 110px); padding-block: clamp(54px, 5.4vw, 82px) 40px;
}
.company-name { font-size: .94rem; font-weight: 500; letter-spacing: -.01em; margin-bottom: 18px; }
h1 {
  font-size: clamp(2.6rem, 4.65vw, 4.5rem); line-height: 1.1; font-weight: 480;
  letter-spacing: -.055em; text-wrap: balance;
}
html[lang="zh-CN"] h1 { line-height: 1.2; }
.intro-copy {
  max-width: 32rem; justify-self: end; color: var(--muted); padding-bottom: 3px;
  font-size: clamp(1rem, 1.21vw, 1.125rem); line-height: 1.72;
}
.visual {
  display: block; height: clamp(255px, 30.2vw, 447px); width: 100%;
  overflow: hidden; border-radius: 5px; background: #1d3c85;
}
.visual img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 51%; }

.services {
  display: grid; grid-template-columns: minmax(0, .88fr) repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 80px); padding-block: clamp(48px, 5.8vw, 86px);
}
h2 { font-size: clamp(1.65rem, 2.35vw, 2.45rem); line-height: 1.25; font-weight: 480; letter-spacing: -.045em; }
h3 { margin-bottom: 11px; font-size: 1.19rem; line-height: 1.45; font-weight: 580; letter-spacing: -.025em; }
.service p { color: var(--muted); font-size: 1rem; line-height: 1.7; max-width: 33em; }
.service-link {
  display: inline-flex; align-items: center; min-height: 40px; margin-top: 7px;
  font-size: .94rem; font-weight: 550; text-decoration: underline; text-underline-offset: 5px;
  text-decoration-color: #a6a79f;
}
.service-link:hover, .mail:hover { text-decoration-color: currentColor; }

.contact {
  border-top: 1px solid var(--rule); padding-block: 41px 44px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.mail {
  font-size: clamp(1.45rem, 2.7vw, 2.6rem); line-height: 1.25; font-weight: 450;
  letter-spacing: -.045em; text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 7px; text-decoration-color: #babbb5;
}
.foot {
  min-height: 70px; border-top: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between; gap: 12px 25px; flex-wrap: wrap;
  color: var(--muted); font-size: .875rem; padding-block: 17px;
}

@media (max-width: 800px) {
  .masthead { min-height: 72px; gap: 16px; }
  .nav { gap: 20px; }
  .actions { gap: 15px; }
  .intro { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); column-gap: 24px; padding-block: 44px 30px; }
  .services { grid-template-columns: repeat(2,minmax(0, 1fr)); row-gap: 24px; }
  .services > h2 { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .masthead { display: flex; justify-content: space-between; min-height: 67px; gap: 12px; }
  .wordmark { font-size: 1.74rem; }
  .nav { display: none; }
  .actions { gap: 14px; }
  .lang { min-width: 32px; justify-content: center; }
  .contact-button { padding: 9px 14px; }
  .intro { display: block; padding-block: 37px 27px; }
  .company-name { margin-bottom: 14px; font-size: .875rem; }
  h1 { font-size: clamp(2.4rem, 8.8vw, 3.15rem); }
  .intro-copy { margin-top: 17px; justify-self: start; padding: 0; }
  .visual { height: clamp(215px, 63vw, 340px); }
  .services { display: block; padding-block: 36px; }
  .services > h2 { margin-bottom: 26px; }
  .service + .service { margin-top: 18px; border-top: 1px solid var(--rule); padding-top: 21px; }
  h3 { margin-bottom: 6px; }
  .contact { flex-direction: column; align-items: flex-start; gap: 13px; padding-block: 31px 35px; }
  .foot { display: grid; gap: 2px; font-size: .82rem; padding-block: 19px; }
}
