:root {
  --ink: #0f172a;
  --ink-soft: #5b6472;
  --bg: #f4f6f8;
  --card: #ffffff;
  --line: #e3e7ec;
  --accent: #0d9488;
  --accent-deep: #0b7c72;
  --accent-ink: #ffffff;
  --accent-soft: #e6f5f3;
  --miss: #dc2626;
  --good: #15803d;
  --bad: #dc2626;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 6px 20px rgba(15, 23, 42, 0.06);
  font-size: clamp(15px, 1.2vw + 12px, 18px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(120rem 40rem at 110% -10%, rgba(13, 148, 136, 0.08), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: "Iansui", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei",
    system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main,
.site-head,
.site-foot,
.tabs {
  max-width: 62rem;
  margin-inline: auto;
  padding-inline: 1.1rem;
}

button,
input,
textarea,
output {
  font: inherit;
  color: inherit;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

a {
  color: var(--accent-deep);
}

::selection {
  background: rgba(13, 148, 136, 0.22);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
