:root {
  color-scheme: dark;
  --ink: #0b1210;
  --paper: #f3f7f4;
  --muted: #b5c3bc;
  --jade: #82dfb0;
  --line: #364840;
  --gutter: clamp(1rem, 5vw, 5rem);
  font-family: "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--paper); }
a { color: inherit; text-underline-offset: .25em; }
img { display: block; max-width: 100%; height: auto; }
::selection { color: var(--ink); background: var(--jade); }
:focus-visible { outline: 2px solid var(--jade); outline-offset: 5px; }
.shell { width: min(100% - 2 * var(--gutter), 86rem); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; padding: .75rem; background: var(--ink); transform: translateY(-160%); }
.skip:focus { transform: none; }

.header, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header { min-height: 5rem; border-bottom: 1px solid var(--line); }
.brand { display: grid; gap: .4rem; text-decoration: none; }
.brand img { width: 7rem; }
.brand span { font-size: .75rem; letter-spacing: .13em; color: var(--muted); }
nav { display: flex; align-items: center; gap: clamp(.8rem, 3vw, 2.4rem); }
nav a { display: grid; place-items: center; min-height: 44px; font-size: .9375rem; text-decoration: none; }
nav a:hover { text-decoration: underline; }

.hero {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  align-items: stretch;
  min-height: 29rem;
  padding-block: clamp(1.5rem, 5vw, 4.5rem);
  gap: clamp(1.5rem, 5vw, 5rem);
}

.intro { align-self: center; padding-block: 1rem; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.5rem, 5.5vw, 4.75rem); line-height: 1; letter-spacing: -.04em; font-weight: 750; }
h1 span { display: block; color: var(--jade); }
.description { max-width: 34ch; margin-top: .8rem; color: var(--muted); font-size: 1.0625rem; line-height: 1.65; }
.button { display: inline-flex; align-items: center; min-height: 48px; margin-top: 1.6rem; padding: .75rem 1.15rem; background: var(--jade); color: var(--ink); font-weight: 650; text-decoration: none; }
.button:hover { background: #a7f1cb; }

.identity {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 23rem;
  padding: clamp(1.2rem, 3vw, 2.5rem);
  background: #123529;
  border: 1px solid #476f5d;
}
.identity-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; font-size: .875rem; letter-spacing: .08em; }
.emblem { align-self: center; justify-self: center; width: 76%; max-width: 23rem; margin-block: 2rem; }
.identity p { padding-top: 1rem; border-top: 1px solid #638777; color: #d3ebde; letter-spacing: .12em; overflow-wrap: anywhere; }

.services, .locations { display: grid; grid-template-columns: .85fr 1fr 1fr; gap: 1.5rem 2.5rem; padding-block: clamp(1.6rem, 3.6vw, 3rem); border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
h2 { font-size: 1rem; font-weight: 600; color: var(--jade); }
h3 { font-size: clamp(1.25rem, 2.55vw, 1.85rem); line-height: 1.15; letter-spacing: -.025em; }
.services p { margin-top: .5rem; color: var(--muted); line-height: 1.6; }
.locations h2 span { display: block; margin-top: .35rem; color: var(--muted); font-weight: 400; }
.locations ul { display: grid; grid-column: span 2; grid-template-columns: 1fr 1fr; gap: .75rem 2.5rem; margin: 0; padding: 0; list-style: none; }
.locations li { font-size: 1.125rem; font-weight: 600; }
.locations li span { display: inline-block; margin-inline-start: .35em; color: var(--muted); font-weight: 400; }
.footer { min-height: 4.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }

@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .identity { min-height: 17rem; }
  .emblem { max-width: 15rem; }
  .services, .locations { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .services h2, .locations h2 { grid-column: 1 / -1; }
}

@media (max-width: 360px) {
  .services { grid-template-columns: 1fr; }
}

.language-picker { display: flex; align-items: center; gap: .75rem; padding-inline-start: 1rem; border-inline-start: 1px solid var(--line); }
.language-picker a[aria-current="page"] { color: var(--jade); text-decoration: underline; }
:lang(zh-Hans) h1 { font-size: clamp(2rem, 4.3vw, 4rem); line-height: 1.16; letter-spacing: 0; }
:lang(zh-Hans) .description { max-width: 24em; }

@media (max-width: 520px) {
  .header { flex-wrap: wrap; justify-content: flex-start; gap: .25rem 1.25rem; padding-block: .8rem .25rem; }
  .header nav { gap: .9rem; flex-wrap: wrap; }
  .language-picker { gap: .65rem; padding-inline-start: .8rem; }
}
