:root {
  color-scheme: light;
  --ink: #241d1b;
  --muted: #655a55;
  --red: #9e1823;
  --paper: #f8f5f1;
  --surface: #fff;
  --line: #e7ded5;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }

.wrap {
  width: min(100% - 48px, 960px);
  margin-inline: auto;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-content {
  min-height: 72px;
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 750;
}

.brand strong {
  color: var(--red);
  font-size: 28px;
  letter-spacing: -.055em;
  border-right: 1px solid var(--line);
  padding-right: 14px;
}

main { padding-block: clamp(36px, 7vw, 88px); }

h1 {
  font-size: clamp(34px, 6vw, 64px);
  letter-spacing: -.045em;
  margin: 0 0 36px;
  line-height: 1.15;
}

.tool-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.tool-card:hover {
  border-color: var(--red);
  background: #fffdfa;
}

.tool-card h2 {
  margin: 0 0 9px;
  font-size: 24px;
}

.tool-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.open-tool {
  flex: none;
  color: var(--red);
  font-weight: 750;
  white-space: nowrap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 520px) {
  .wrap { width: calc(100% - 36px); }
  h1 { margin-bottom: 25px; }
  .tool-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
  }
}
