@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #F7F3EA;
  --espresso: #1C1813;
  --terracotta: #C44A33;
  --olive: #A9AE4E;
  --olive-soft: #EBEDD8;
  --alert-soft: #F2DDD7;
  --muted: #6F685C;
  --line: #E2DCCF;
  --display: "Space Grotesk", ui-sans-serif, system-ui, "PingFang TC", "Microsoft JhengHei", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--espresso);
  background: var(--paper);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--olive);
  outline-offset: 3px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .7rem 1.2rem;
  border: 1px solid var(--terracotta);
  border-radius: 999px;
  color: #fff;
  background: var(--terracotta);
  font: 700 .84rem/1 var(--body);
  letter-spacing: .04em;
  text-decoration: none;
}

.button:hover { background: var(--espresso); border-color: var(--espresso); }

.button-secondary { color: var(--espresso); background: transparent; border-color: var(--espresso); }

.button-secondary:hover { color: #fff; }

[hidden] { display: none !important; }

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