@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/dm-sans-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/instrument-serif-italic-latin.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f1f4fa;
  --ink: #172239;
  --blue: #263fc4;
  --muted: #535e74;
  --rule: #cbd2df;
  --gutter: clamp(24px, 5.8vw, 96px);
  font-family: 'DM 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; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
::selection { color: white; background: var(--blue); }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 12px 20px;
  transform: translateY(-180%);
  background: white;
  border-radius: 8px;
}
.skip-link:focus { transform: none; }

.page {
  min-height: 100vh;
  min-height: 100svh;
  max-width: 2000px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: clip;
}

.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header {
  position: relative;
  z-index: 1;
  min-height: clamp(76px, 7.1vw, 108px);
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(21px, 1.7vw, 26px);
  font-weight: 650;
  letter-spacing: -.065em;
}
.wordmark img { width: 33px; height: 33px; }
.languages { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }
.languages a { display: grid; place-items: center; min-width: 36px; min-height: 44px; color: var(--muted); }
.languages a[aria-current='page'] { color: var(--blue); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.languages span { color: #a7afc2; font-weight: 400; }
.languages a:hover, .site-footer a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 46% 54%;
  align-items: center;
  min-height: min(48vw, 770px);
  padding: clamp(70px, 7vw, 112px) 0;
  isolation: isolate;
}
.intro { position: relative; z-index: 1; justify-self: start; }
.location {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(27px, 3vw, 48px);
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .15em;
}
.pin {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 1.5px solid var(--blue);
  border-radius: 50% 50% 50% 2px;
  transform: translateY(-1px) rotate(-45deg);
  position: relative;
}
.pin::after { content: ''; position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--blue); top: 2.5px; left: 2.5px; }
h1 { margin: 0; font-weight: 400; }
.greeting {
  display: block;
  font-size: clamp(62px, 6.35vw, 124px);
  line-height: 1.05;
  letter-spacing: -.077em;
}
h1 em {
  display: block;
  margin: -.005em 0 0 -.027em;
  font: italic 400 clamp(91px, 9.45vw, 181px)/.99 'Instrument Serif', Georgia, serif;
  letter-spacing: -.044em;
  color: var(--blue);
}
:lang(zh-CN) .greeting { font-size: clamp(50px, 4.72vw, 89px); letter-spacing: -.065em; line-height: 1.25; }
:lang(zh-CN) .location { letter-spacing: .13em; }
.contact {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: clamp(35px, 3.65vw, 60px);
  min-height: 52px;
  padding: 0 24px;
  border-radius: 100px;
  color: white;
  background: var(--blue);
  font-size: 15px;
  font-weight: 550;
  line-height: 1;
  transition: background-color .17s ease;
}
.contact:hover { background: #172a9b; }
.arrow { position: relative; width: 13px; height: 13px; }
.arrow::before, .arrow::after { content: ''; position: absolute; }
.arrow::before { top: 1px; right: 1px; height: 8px; width: 8px; border-top: 1.6px solid; border-right: 1.6px solid; }
.arrow::after { height: 1.6px; width: 14px; top: 1px; right: 1px; background: currentColor; transform-origin: right center; transform: rotate(-45deg); }
.art { position: absolute; right: calc(var(--gutter) * -.65); width: 61%; pointer-events: none; }
.art img { display: block; height: auto; width: 100%; }
.site-footer {
  min-height: 79px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 13px;
}
.site-footer a { padding: 8px 0; }

@media (max-width: 760px) {
  .hero { display: flex; flex-direction: column; align-items: stretch; padding: 54px 0 0; min-height: auto; }
  .location { margin-bottom: 25px; }
  .greeting { font-size: clamp(61px, 10.5vw, 80px); }
  h1 em { font-size: clamp(86px, 15.4vw, 114px); }
  :lang(zh-CN) .greeting { font-size: clamp(46px, 7.5vw, 60px); }
  .contact { min-height: 48px; margin-top: 29px; padding: 0 22px; }
  .art { position: static; width: min(94%, 500px); align-self: flex-end; margin: -24px calc(var(--gutter) * -.52) 0 0; }
  .site-footer { min-height: 66px; }
}

@media (max-width: 500px) {
  .hero { justify-content: center; padding-top: clamp(34px, 7vh, 60px); }
  .art { width: min(102%, 405px); margin-top: 6px; margin-bottom: 7px; }
  .wordmark img { width: 29px; height: 29px; }
  .languages { gap: 2px; }
  .site-footer { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

.home-actions { display: flex; gap: 12px 24px; align-items: center; flex-wrap: wrap; margin-top: clamp(35px, 3.65vw, 60px); }
.home-actions .contact { margin-top: 0; }
.register-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--blue); font-size: 15px; font-weight: 550; }
.register-link:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .home-actions { margin-top: 29px; } }
