:root {
  --desk: #cfd3c0;
  --paper: #faf8f3;
  --ink: #24312b;
  --sage: #3d4f42;
  --gold: #a68456;
  --gold-soft: #d9c4a0;
  --accent-red: #b0413a;
  --shadow: rgba(36, 49, 43, 0.28);

  --font-serif-zh: 'Noto Serif TC', 'Songti TC', serif;
  --font-round: 'Huninn', 'Yuanti TC', 'Microsoft JhengHei', sans-serif;
  --font-en: 'Cormorant Garamond', 'Palatino Linotype', Palatino, serif;

  --radius-page: 22px;
  --touch: 44px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-fab-row-h: 2.6rem;
  --nav-main-row-h: 3.4rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: var(--font-round);
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100dvh;
  perspective: 1800px;
}

::selection {
  background: var(--gold-soft);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

a {
  color: var(--sage);
}

h1, h2, h3, p {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
