:root {
  --paper: #f2f1ee;
  --cream: #f7f6f4;
  --ink: #2e2d2b;
  --stone: #6e6b67;
  --line: #e2e0dc;
  --miso: #a65c40;
  --miso-deep: #8a4b35;

  --font-sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    sans-serif;

  --text-sm: 0.8125rem;
  --text-base: 1.0625rem;
  --text-xl: 1.5rem;
  --text-2xl: 1.75rem;

  --leading-body: 1.6;
  --leading-tight: 1.4;
  --page: 60rem;
  --radius: 8px;
  --hover: 0.32s cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-body);
}

a {
  color: var(--miso-deep);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color var(--hover),
    border-bottom-color var(--hover);
}

a:hover {
  color: var(--miso);
  border-bottom-color: var(--miso);
}

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

.page {
  max-width: var(--page);
  margin: 0 auto;
}

p + p {
  margin-top: 0.9em;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  a {
    transition: none;
  }
}
