:root {
  color-scheme: light;
  --ink: #18181b;
  --paper: #f9f5ee;
  --blue: #243de9;
  --orange: #ff7858;
  --lime: #ddfa59;
  --violet: #d7c0ff;
  --line: 2px solid var(--ink);
  --ease: cubic-bezier(.2,.75,.3,1);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 16px/1.55 "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid #17171a; outline-offset: 4px; box-shadow: 0 0 0 4px #fff; }
.wrap { width: min(1376px, calc(100% - 80px)); margin-inline: auto; }
.topbar { border-bottom: var(--line); }
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 22px; font-weight: 900; white-space: nowrap; }
.brand-mark { width: 34px; aspect-ratio: 1; background: var(--blue); clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 38%); }
.topbar nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 44px); }
.topbar a { text-decoration: none; }
.topbar nav a { display: inline-grid; place-items: center; min-height: 44px; font-weight: 750; }
.topbar nav a:is(:hover, [aria-current="page"]) { text-decoration: underline; text-underline-offset: .3em; }
.action {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 46px; width: fit-content; padding: 8px 14px;
  text-decoration: none; background: var(--lime); border: var(--line); color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink); font-weight: 800;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.action:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
.action:active { transform: translate(3px,3px); box-shadow: none; }

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 48px); }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .topbar .wrap { flex-wrap: wrap; padding-top: 7px; gap: 0 12px; }
  .brand { font-size: 19px; }
  .brand-mark { width: 29px; }
  .topbar nav { order: 1; width: 100%; justify-content: space-between; gap: 10px; }
  .topbar nav a { font-size: 14px; }
  .topbar .action { min-height: 44px; font-size: 14px; padding-inline: 9px; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .action { transition: none; }
  .action:is(:hover,:active) { transform: none; }
}
