:root {
  color-scheme: light;
  --paper: #fafafa;
  --white: #fff;
  --wash: #f0f0f0;
  --line: #dfdfdf;
  --line-strong: #bdbdbd;
  --ink: #151515;
  --text: #404040;
  --muted: #616161;
  --night: #151515;
  --night-surface: #1e1e1e;
  --night-line: #3b3b3b;
  --night-text: #bdbdbd;
  --radius: 12px;
  --gutter: clamp(18px, 4.6vw, 74px);
  --measure: 1280px;
  --space: clamp(64px, 9.5vw, 140px);
  --padding: clamp(20px, 3.6vw, 52px);
  --font: "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --fixed: ui-monospace, SFMono-Regular, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--font); }
:where(h1, h2, h3, p, figure, dl, dd) { margin: 0; }
:where(h1, h2, h3) { line-height: 1.14; font-weight: 750; }
:where(a) { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.24em; }
:where(a:hover) { text-decoration-thickness: 2px; }
:where(button, input, select) { color: inherit; font: inherit; }
:where(button) { cursor: pointer; }
:where(img, svg) { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:where([id]) { scroll-margin-top: 28px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
::selection { color: var(--white); background: var(--ink); }

.wrap, .shell, .site-header {
  width: min(calc(100% - 2 * var(--gutter)), var(--measure));
  margin-inline: auto;
}
.skip-link, .skip {
  position: fixed;
  z-index: 10;
  inset: 12px auto auto 12px;
  padding: 10px 16px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(calc(-100% - 20px));
}
.skip-link:focus, .skip:focus { transform: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-header, .mast-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}
.site-header, .mast { border-bottom: 1px solid var(--line); }
.brand, .wordmark { width: fit-content; }
.brand img, .wordmark img { width: 119px; height: auto; }
.desktop-nav, .main-nav, .site-footer nav, .footer nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 38px);
}
:is(.desktop-nav, .main-nav, .site-footer nav, .footer nav) a {
  color: var(--muted);
  font-size: 0.875rem;
  white-space: nowrap;
  text-decoration: none;
}
:is(.desktop-nav, .main-nav, .site-footer nav, .footer nav) a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.button, .btn, .nav-try {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  min-height: 46px;
  padding: 9px 17px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--ink);
  color: var(--white);
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color 160ms, color 160ms, border-color 160ms;
}
.button:hover, .btn:hover { background: #373737; }
.button:focus-visible, .btn:focus-visible, .nav-try:focus-visible { outline-color: var(--ink); }
.button-small, .nav-try {
  justify-self: end;
  min-height: 38px;
  padding-inline: 13px;
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
  font-size: 0.82rem;
}
.button-small:hover, .nav-try:hover { background: var(--wash); border-color: var(--line-strong); }
.text-link { width: fit-content; font-weight: 650; }
.mono { font-family: var(--fixed); }

.site-footer, .footer {
  padding-block: 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}
.site-footer, .footer-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
:where(.site-footer, .footer) a img { width: 92px; }
:where(.site-footer, .footer) nav { flex-wrap: wrap; row-gap: 6px; }

@media (max-width: 720px) {
  .site-header, .mast-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 12px;
    padding-top: 12px;
  }
  .desktop-nav, .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: clamp(12px, 4vw, 24px);
    flex-wrap: wrap;
    padding-block: 10px;
  }
  .desktop-nav a, .main-nav a { font-size: clamp(0.75rem, 3.3vw, 0.875rem); }
  .button-small, .nav-try { grid-column: 2; grid-row: 1; }
}

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