:root {
  --color-ink: #171717;
  --color-muted: #5c5f66;
  --color-line: #d9dce1;
  --color-surface: #ffffff;
  --color-surface-alt: #f4f6f8;
  --color-green: #0b6f55;
  --color-green-dark: #084d3c;
  --color-red: #d7442e;
  --color-blue: #2458b8;
  --color-yellow: #efc84a;
  --color-shadow: rgba(18, 24, 40, 0.12);
  --font-display: Georgia, "Noto Serif TC", "Source Han Serif TC", serif;
  --font-body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --container: 1160px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-surface);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

code,
kbd,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

code,
kbd {
  border: 1px solid var(--color-line);
  border-radius: 5px;
  background: #f7f7f7;
  padding: 0.05rem 0.35rem;
  white-space: nowrap;
}

pre {
  overflow-x: auto;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: #101415;
  color: #f4f6f8;
  padding: 1rem;
  line-height: 1.55;
}

pre code {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  white-space: pre;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  max-width: 11ch;
  font-size: clamp(2.65rem, 7vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

h3 {
  font-size: 1.25rem;
  line-height: 1.3;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  border-radius: 6px;
  background: var(--color-ink);
  color: white;
  padding: 0.6rem 0.9rem;
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
