@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;700&family=Noto+Serif+SC:wght@600;700&display=swap");

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f7efe2;
  color: #201e1d;
  font-family: "Figtree", "Noto Sans SC", system-ui, sans-serif;
  text-wrap: pretty;
}

a {
  color: #8e2e22;
}

:focus-visible {
  outline: 2px solid #b23a2c;
  outline-offset: 2px;
}

::selection {
  background: rgb(178 58 44 / 25%);
}

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

header nav a,
main a,
footer a {
  transition: background-color 160ms ease, color 160ms ease;
}

header nav a:hover,
header nav a:focus-visible {
  background: rgb(255 255 255 / 16%);
}

main a:hover {
  color: #b23a2c;
}

.footer-item {
  color: #a19786;
}

@media (max-width: 700px) {
  header nav {
    margin-left: 0 !important;
    width: 100%;
  }

  header nav a {
    padding-inline: 8px !important;
  }

  main > section {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  main > section > * {
    min-width: 0;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
